.gallery-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6rem, 12vw, 9rem) clamp(4.5rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--primary) 42%, transparent), transparent 31rem),
    radial-gradient(circle at 12% 82%, rgba(204, 139, 57, 0.22), transparent 26rem),
    linear-gradient(135deg, #12251a 0%, var(--secondary) 62%, #101a13 100%);
  color: rgba(255,255,255,.82);
}
.gallery-hero::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 3rem 3rem;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000);
}
.gallery-hero-inner { position: relative; z-index: 1; }
.gallery-hero .breadcrumbs a, .gallery-hero .breadcrumbs, .gallery-hero h1 { color: #fff; }
.gallery-hero-copy { max-width: 54rem; }
.gallery-hero-copy h1 { margin-bottom: 1rem; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -.055em; }
.gallery-hero-copy p { max-width: 46rem; margin: 0; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.gallery-hero-stats { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.gallery-hero-stats span { display: inline-flex; align-items: baseline; gap: .4rem; padding: .65rem .9rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.07); backdrop-filter: blur(9px); }
.gallery-hero-stats strong { color: #fff; font-size: 1.15rem; }

.gallery-section { background: #f7f5ef; }
.gallery-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.gallery-toolbar h2 { margin-bottom: 0; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; padding: .35rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.8); }
.gallery-filter { padding: .65rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 750; cursor: pointer; }
.gallery-filter.is-active { background: var(--secondary); color: #fff; }

.gallery-mosaic { columns: 4 17rem; column-gap: 1rem; column-fill: balance; }
.gallery-tile { width: 100%; margin: 0 0 1rem; break-inside: avoid; }
.gallery-tile[hidden] { display: none; }
.gallery-tile-button { position: relative; display: block; width: 100%; overflow: hidden; padding: 0; border: 0; border-radius: 1rem; background: #dfe6df; box-shadow: 0 .65rem 1.8rem rgba(25, 37, 28, .11); cursor: zoom-in; text-align: left; }
.gallery-tile-button img { display: block; width: 100%; height: auto; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.gallery-tile-button:hover img, .gallery-tile-button:focus-visible img { transform: scale(1.035); filter: saturate(1.04); }
.gallery-tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(6, 17, 10, .78)); opacity: .75; transition: opacity .25s ease; }
.gallery-tile-button:hover .gallery-tile-shade { opacity: 1; }
.gallery-tile-copy { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; display: grid; gap: .2rem; color: #fff; transform: translateY(.25rem); transition: transform .25s ease; }
.gallery-tile-button:hover .gallery-tile-copy { transform: translateY(0); }
.gallery-tile-copy strong { font-size: 1rem; }
.gallery-tile-copy small { color: rgba(255,255,255,.76); line-height: 1.35; }
.gallery-video-play { position: absolute; top: 50%; left: 50%; display: grid; width: 4rem; height: 4rem; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: rgba(9, 24, 14, .64); color: #fff; transform: translate(-50%, -50%); backdrop-filter: blur(10px); }
.gallery-video-play svg { width: 1.65rem; fill: currentColor; }
.gallery-expand-icon { position: absolute; top: .75rem; right: .75rem; display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 50%; background: rgba(9, 24, 14, .55); color: #fff; opacity: 0; transform: translateY(-.25rem); transition: opacity .25s ease, transform .25s ease; backdrop-filter: blur(8px); }
.gallery-expand-icon svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.gallery-tile-button:hover .gallery-expand-icon, .gallery-tile-button:focus-visible .gallery-expand-icon { opacity: 1; transform: translateY(0); }

.gallery-empty-state { display: grid; max-width: 46rem; margin-inline: auto; place-items: center; padding: clamp(3rem, 8vw, 6rem); border: 1px dashed color-mix(in srgb, var(--primary) 38%, var(--line)); border-radius: var(--radius-lg); background: rgba(255,255,255,.72); text-align: center; }
.gallery-empty-state > span { margin-bottom: 1rem; color: var(--primary); font-size: 2rem; }
.gallery-empty-state p { color: var(--muted); }

.gallery-cta-section { padding-top: 0; background: #f7f5ef; }
.gallery-cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-lg); background: var(--secondary); color: rgba(255,255,255,.8); }
.gallery-cta-panel > div { max-width: 48rem; }
.gallery-cta-panel h2 { color: #fff; }

.gallery-lightbox { width: min(96vw, 88rem); max-width: none; height: min(94vh, 62rem); max-height: none; padding: 0; border: 0; border-radius: 1.2rem; background: #08100b; color: #fff; box-shadow: 0 2rem 6rem rgba(0,0,0,.45); }
.gallery-lightbox::backdrop { background: rgba(3, 8, 5, .86); backdrop-filter: blur(8px); }
.gallery-lightbox-shell { position: relative; display: grid; height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
.gallery-lightbox-media { display: grid; min-height: 0; place-items: center; padding: 2.5rem 4.5rem 1rem; }
.gallery-lightbox-media img, .gallery-lightbox-media video { display: block; max-width: 100%; max-height: 100%; border-radius: .65rem; object-fit: contain; }
.gallery-lightbox-media video { width: 100%; height: 100%; background: #000; }
.gallery-lightbox-copy { padding: 1rem 4.5rem 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }
.gallery-lightbox-copy strong { font-size: 1.05rem; }
.gallery-lightbox-copy p { margin: .3rem 0 0; color: rgba(255,255,255,.7); }
.gallery-lightbox-close, .gallery-lightbox-nav { position: absolute; z-index: 2; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; background: rgba(8, 16, 11, .68); color: #fff; cursor: pointer; backdrop-filter: blur(10px); }
.gallery-lightbox-close { top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; font-size: 1.8rem; }
.gallery-lightbox-nav { top: 50%; width: 3.15rem; height: 3.15rem; transform: translateY(-50%); font-size: 2rem; }
.gallery-lightbox-prev { left: .8rem; }
.gallery-lightbox-next { right: .8rem; }
.gallery-lightbox button:hover { background: var(--primary-dark); }

@media (max-width: 62rem) {
  .gallery-mosaic { columns: 3 15rem; }
  .gallery-toolbar, .gallery-cta-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 42rem) {
  .gallery-hero-copy h1 { font-size: clamp(2.8rem, 17vw, 4.5rem); }
  .gallery-toolbar { margin-bottom: 1.4rem; }
  .gallery-filters { width: 100%; }
  .gallery-filter { flex: 1; }
  .gallery-mosaic { columns: 2 9.5rem; column-gap: .65rem; }
  .gallery-tile { margin-bottom: .65rem; }
  .gallery-tile-button { border-radius: .75rem; }
  .gallery-tile-copy { right: .75rem; bottom: .75rem; left: .75rem; }
  .gallery-tile-copy small { display: none; }
  .gallery-expand-icon { display: none; }
  .gallery-video-play { width: 3rem; height: 3rem; }
  .gallery-lightbox { width: 100vw; height: 100dvh; border-radius: 0; }
  .gallery-lightbox-media { padding: 4rem .75rem 1rem; }
  .gallery-lightbox-copy { padding: 1rem; }
  .gallery-lightbox-nav { top: auto; bottom: 5.5rem; }
}
@media (max-width: 24rem) { .gallery-mosaic { columns: 1; } }
@media (prefers-reduced-motion: reduce) {
  .gallery-tile-button img, .gallery-tile-copy, .gallery-expand-icon { transition: none; }
}
