/* Gallery */
.gallery-band { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item:nth-child(1) { grid-column: span 4; aspect-ratio: 16/9; }
.gallery-item:nth-child(2) { grid-column: span 2; }
.gallery-item:nth-child(3) { grid-column: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item:nth-child(5) { grid-column: span 2; }
.gallery-item:nth-child(6) { grid-column: span 3; aspect-ratio: 3/2; }
.gallery-item:nth-child(7) { grid-column: span 3; aspect-ratio: 3/2; }
.gallery-item:nth-child(8) { grid-column: span 6; aspect-ratio: 16/9; }
.gallery-item:nth-child(9) { grid-column: span 2; }
.gallery-item:nth-child(10) { grid-column: span 2; }
.gallery-item:nth-child(11) { grid-column: span 2; }
.gallery-item:nth-child(12) { grid-column: span 3; aspect-ratio: 3/2; }
.gallery-item:nth-child(13) { grid-column: span 3; aspect-ratio: 3/2; }
.gallery-item:nth-child(14) { grid-column: span 3; aspect-ratio: 3/2; }
.gallery-item:nth-child(15) { grid-column: span 3; aspect-ratio: 3/2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.gallery-item:hover img { transform: scale(1.08); filter: saturate(1.1); }
.gallery-item::after {
  content: attr(data-caption); position: absolute; inset: auto 0 0; padding: 2.2rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(13, 34, 41, .72));
  color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease;
}
.gallery-item:hover::after { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item, .gallery-item:nth-child(1), .gallery-item:nth-child(2), .gallery-item:nth-child(3), .gallery-item:nth-child(4), .gallery-item:nth-child(5), .gallery-item:nth-child(6), .gallery-item:nth-child(7), .gallery-item:nth-child(8), .gallery-item:nth-child(9), .gallery-item:nth-child(10), .gallery-item:nth-child(11), .gallery-item:nth-child(12), .gallery-item:nth-child(13), .gallery-item:nth-child(14), .gallery-item:nth-child(15) { grid-column: span 1; aspect-ratio: 4/3; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(8) { grid-column: span 2; aspect-ratio: 16/9; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-auto-rows: 130px; gap: 10px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 24, 29, .94); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 2.2rem;
  gap: 1rem;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 1100px; width: 100%; }
.lightbox-img { max-width: min(1200px, 92vw); max-height: 72vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); object-fit: contain; }
.lightbox-caption { text-align: center; color: #e8eef0; font-size: .98rem; letter-spacing: .02em; font-weight: 500; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; border: none; cursor: pointer; color: #fff; background: rgba(255,255,255,.09);
  backdrop-filter: blur(6px); transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 1.1rem; right: 1.1rem; width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 46%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; font-size: 1.4rem; display: grid; place-items: center; z-index: 2; }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-prev { left: 1.1rem; } .lightbox-next { right: 1.1rem; }

@media (max-width: 640px) {
  .lightbox-prev { left: .4rem; } .lightbox-next { right: .4rem; }
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 1.1rem; }
}
