/* Gallery grid and accessible, keyboard-operable photo viewer */
.srodekpage .su-custom-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 200px));
  gap: 12px;
  align-items: start;
  justify-content: start;
  margin: 22px 0 34px;
  width: 100%;
}
.srodekpage .su-custom-gallery-slide {
  float: none !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.srodekpage .su-custom-gallery-slide > a {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  cursor: zoom-in;
  background: #eee;
}
.srodekpage .su-custom-gallery-slide img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0 !important;
  transition: transform .2s ease;
}
.srodekpage .su-custom-gallery-slide > a:hover img { transform: scale(1.04); }
.srodekpage .su-custom-gallery-title { display: none !important; }
.srodekpage .bb-videos { width: 100%; margin: 24px auto 36px; }
.srodekpage .bb-videos__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.srodekpage .bb-video-card {
  min-width: 0;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #dedbd4;
  border-bottom: 3px solid #fde401;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.09);
}
.srodekpage .bb-video-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #171717;
}
.srodekpage .bb-video-card figcaption {
  padding: 9px 3px 3px;
  color: #252525;
  font: 600 14px/1.35 Arial, sans-serif;
}
.bb-lightbox[hidden] { display: none !important; }
.bb-lightbox {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center; justify-items: center;
  padding: 58px 22px 24px;
  background: rgba(0,0,0,.92);
}
.bb-lightbox__image {
  display: block; max-width: min(86vw, 1300px); max-height: 82vh;
  width: auto; height: auto; object-fit: contain;
  box-shadow: 0 10px 50px rgba(0,0,0,.45);
}
.bb-lightbox__button {
  display: grid; place-items: center; width: 48px; height: 56px;
  border: 1px solid rgba(255,255,255,.45); border-radius: 3px;
  color: #fff; background: rgba(255,255,255,.1); font-size: 32px;
  line-height: 1; cursor: pointer;
}
.bb-lightbox__button:hover { background: #fde401; border-color: #fde401; color: #111; }
.bb-lightbox__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; font-size: 28px; }
.bb-lightbox__counter { position: absolute; top: 25px; left: 50%; transform: translateX(-50%); color: white; font: 14px Arial,sans-serif; }
@media(max-width:600px){
  .srodekpage .su-custom-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .srodekpage .su-custom-gallery-slide > a { height: 42vw; max-height: 220px; }
  .srodekpage .bb-videos__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .srodekpage .bb-video-card { padding: 5px; }
  .srodekpage .bb-video-card figcaption { font-size: 12px; }
  .bb-lightbox { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 4px; padding: 58px 6px 18px; }
  .bb-lightbox__image { max-width: calc(100vw - 100px); max-height: 78vh; }
  .bb-lightbox__button { width: 40px; height: 48px; font-size: 27px; }
}
@media(min-width:601px) and (max-width:900px){
  .srodekpage .bb-videos__grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
}
