/* Landing-page club photography carousel. */
.home-gallery {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 100px 0;
  background: var(--black);
  color: #fff;
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 38px;
}

.gallery-heading h2 {
  margin: 18px 0 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.gallery-heading p {
  max-width: 520px;
  margin: 0 0 5px;
  color: #c4c4c4;
  font-size: 1.06rem;
}

.gallery-stage {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  border: 1px solid #303034;
  border-radius: 24px;
  background: #151517;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  touch-action: pan-y;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition: opacity 0.7s ease, transform 1.1s ease, visibility 0s linear 0.7s;
}

.gallery-slide::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.gallery-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

.gallery-slide-team img {
  object-position: center 31%;
}

.gallery-slide figcaption {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 4vw, 52px);
  bottom: clamp(26px, 4vw, 50px);
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: calc(100% - 280px);
}

.gallery-slide figcaption span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.gallery-slide figcaption strong {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.gallery-controls {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 3vw, 40px);
  bottom: clamp(18px, 3vw, 38px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 8, 9, 0.82);
  backdrop-filter: blur(10px);
}

.gallery-controls button {
  min-width: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.gallery-controls button:hover {
  background: var(--red);
}

.gallery-arrow {
  font-size: 1.15rem !important;
}

.gallery-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 5px;
}

.gallery-counter {
  min-width: 54px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 850;
  text-align: center;
}

.gallery-controls .gallery-dot {
  min-width: 9px;
  min-height: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  background: #777;
}

.gallery-controls .gallery-dot.is-active {
  width: 28px;
  background: var(--red);
}

.gallery-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  font-size: 0.75rem !important;
}

.gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .home-gallery {
    padding: 75px 0;
  }

  .gallery-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 30px;
  }

  .gallery-stage {
    aspect-ratio: 4 / 5;
    border-radius: 18px;
  }

  .gallery-slide img {
    object-position: center center;
  }

  .gallery-slide-team img {
    object-position: center 30%;
  }

  .gallery-slide figcaption {
    left: 20px;
    right: 20px;
    bottom: 86px;
    max-width: none;
  }

  .gallery-controls {
    right: auto;
    left: 16px;
    bottom: 16px;
  }
}

@media (max-width: 420px) {
  .gallery-control-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .gallery-toggle {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-slide {
    transition: none;
  }
}
