.gallery { background: #152028; min-width: 0; max-width: 100%; }
.stage { position: relative; overflow: hidden; background: #152028; touch-action: pan-y; }
.stage .slide { width: 100%; height: 200px; object-fit: cover; display: block; cursor: zoom-in; }
.gallery-feature .stage .slide { height: 340px; }
.gallery .nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(18,48,58,.82); color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0 0 2px;
}
.gallery .nav:hover, .gallery .nav:focus,
#lightbox .nav:hover, #lightbox .nav:focus { background: #1f7a78; outline: none; }
.gallery .nav.prev { left: 8px; }
.gallery .nav.next { right: 8px; }
.gallery .count {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(18,48,58,.82); color: #f3f6f5;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px;
}
.thumbs {
  display: flex; gap: 4px; overflow-x: auto; padding: 6px;
  background: #12303a; scrollbar-width: thin;
}
.thumb {
  flex: 0 0 44px; height: 44px; padding: 0; border: 2px solid transparent;
  background: #152028; cursor: pointer; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.on, .thumb:focus { border-color: #9fd0cd; outline: none; }

#lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(18,48,58,.94);
  display: none; align-items: center; justify-content: center;
  padding: 48px 64px 56px;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
#lightbox .nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(31,122,120,.9); color: #fff; font-size: 28px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0 0 2px;
}
#lightbox .nav.prev { left: 16px; }
#lightbox .nav.next { right: 16px; }
#lightbox .count {
  position: absolute; left: 50%; right: auto; bottom: 16px; transform: translateX(-50%);
  background: rgba(18,48,58,.82); color: #f3f6f5;
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px;
}
#lightbox .lb-close {
  position: absolute; top: 12px; right: 16px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(31,122,120,.9); color: #fff; font-size: 28px; line-height: 1;
  cursor: pointer;
}
#lightbox .lb-close:hover, #lightbox .lb-close:focus { background: #1f7a78; outline: none; }
body.lb-open { overflow: hidden; }

@media (max-width: 767px) {
  .stage .slide,
  .gallery-feature .stage .slide { height: 240px; }
  #lightbox { padding: 56px 12px 56px; }
}
