﻿.hero--photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #202124;
}

.hero-slideshow__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  animation: heroSlideFadeSeven 42s infinite ease-in-out;
  will-change: opacity, transform;
}

.hero-slideshow__slide:nth-child(1) {
  animation-delay: 0s;
  object-position: center 42%;
}

.hero-slideshow__slide:nth-child(2) {
  animation-delay: 6s;
  object-position: center 40%;
}

.hero-slideshow__slide:nth-child(3) {
  animation-delay: 12s;
  object-position: center 30%;
}

.hero-slideshow__slide:nth-child(4) {
  animation-delay: 18s;
  object-position: center 44%;
}

.hero-slideshow__slide:nth-child(5) {
  animation-delay: 24s;
  object-position: center 44%;
}

.hero-slideshow__slide:nth-child(6) {
  animation-delay: 30s;
  object-position: center 64%;
}

.hero-slideshow__slide:nth-child(7) {
  animation-delay: 36s;
  object-position: center 40%;
}

@keyframes heroSlideFadeSeven {
  0% {
    opacity: 1;
    transform: scale(1.03);
  }

  11% {
    opacity: 1;
    transform: scale(1.05);
  }

  14% {
    opacity: 0;
    transform: scale(1.06);
  }

  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(15, 16, 19, 0.38) 0%,
      rgba(20, 22, 27, 0.58) 48%,
      rgba(32, 33, 36, 0.82) 100%
    );
  z-index: 1;
  pointer-events: none;
}

.hero--photo .hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero--photo .hero__ambient,
.hero--photo .hero__seal {
  position: absolute;
  z-index: 2;
}

.hero--photo .hero__inner,
.hero--photo .hero__scroll {
  position: relative;
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow__slide {
    animation: none;
    opacity: 0;
    transform: none;
  }

  .hero-slideshow__slide:first-child {
    opacity: 1;
  }
}

.site-header .brand {
  position: relative;
  z-index: 22;
}

.gallery-grid--years {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.gallery-photo-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gallery-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-photo-card a:hover img {
  transform: scale(1.02);
}

.gallery-photo-card figcaption {
  padding: 16px 18px 18px;
}

.gallery-photo-card figcaption > span:not(.icon-badge) {
  display: block;
  margin-bottom: 6px;
  color: #6c7179;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-photo-card figcaption strong {
  display: block;
  margin-bottom: 6px;
  color: #202124;
  font-size: 1.04rem;
}

.gallery-photo-card figcaption p {
  margin: 0;
  color: #555961;
  line-height: 1.7;
}

.gallery-guide__lead {
  margin: 10px 0 0;
  max-width: 760px;
  color: #555961;
  line-height: 1.85;
}

.gallery-year {
  display: grid;
  gap: 26px;
}

.gallery-year__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.gallery-year__head h2 {
  margin: 0;
  line-height: 1.12;
}

.gallery-year__meta {
  margin: 0;
  color: #666a73;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
}

.gallery-year__intro {
  margin: -6px 0 0;
  max-width: 820px;
  color: #555961;
  line-height: 1.85;
}

.gallery-cluster {
  display: grid;
  gap: 16px;
}

.gallery-cluster + .gallery-cluster {
  margin-top: 8px;
}

.gallery-cluster__head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(32, 33, 36, 0.08);
}

.gallery-cluster__head h3 {
  margin: 0;
  color: #202124;
  font-size: 1.04rem;
  line-height: 1.3;
}

.gallery-masonry {
  column-count: 4;
  column-gap: 18px;
}

.gallery-tile {
  margin: 0 0 18px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(12, 18, 28, 0.08);
}

.gallery-tile a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 240ms ease;
}

.gallery-tile a:hover img {
  transform: scale(1.015);
}

.gallery-tile figcaption {
  padding: 10px 12px 12px;
  color: #555961;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (min-width: 721px) and (max-width: 980px) {
  .hero-slideshow__slide:nth-child(1) {
    object-position: center 40%;
  }

  .hero-slideshow__slide:nth-child(2) {
    object-position: center 38%;
  }

  .hero-slideshow__slide:nth-child(3) {
    object-position: center 22%;
  }

  .hero-slideshow__slide:nth-child(4) {
    object-position: center 42%;
  }

  .hero-slideshow__slide:nth-child(5) {
    object-position: center 44%;
  }

  .hero-slideshow__slide:nth-child(6) {
    object-position: center 62%;
  }

  .hero-slideshow__slide:nth-child(7) {
    object-position: center 40%;
  }
}

@media (max-width: 980px) {
  .gallery-grid--years {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-year__head {
    display: block;
  }

  .gallery-year__meta {
    margin-top: 10px;
    text-align: left;
  }

  .gallery-masonry {
    column-count: 3;
  }
}

@media (max-width: 720px) {
  .site-header .brand {
    padding: 8px 10px;
    border-radius: 14px;
  }

  .hero-slideshow__slide:nth-child(1) {
    object-position: center 40%;
  }

  .hero-slideshow__slide:nth-child(2) {
    object-position: center 38%;
  }

  .hero-slideshow__slide:nth-child(3) {
    object-position: center 26%;
  }

  .hero-slideshow__slide:nth-child(4) {
    object-position: center 38%;
  }

  .hero-slideshow__slide:nth-child(5) {
    object-position: center 42%;
  }

  .hero-slideshow__slide:nth-child(6) {
    object-position: center 64%;
  }

  .hero-slideshow__slide:nth-child(7) {
    object-position: center 40%;
  }

  .hero--photo .hero__seal {
    right: -26px;
    bottom: 84px;
  }

  .gallery-grid--years {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    column-count: 2;
    column-gap: 14px;
  }

  .gallery-tile {
    margin-bottom: 14px;
  }
}

@media (max-width: 520px) {
  .gallery-masonry {
    column-count: 1;
  }
}

