.about-gallery-panel {
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 42px auto 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(143, 214, 148, 0.22), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #f1faf3 100%);
  box-shadow: var(--shadow);
}

.about-gallery-panel + .about-copy {
  margin-top: 34px;
}

.about-gallery-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(143, 214, 148, 0.13);
  pointer-events: none;
}

.about-gallery-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.about-gallery-copy h3 {
  margin: 0 0 10px;
  max-width: 650px;
  text-align: left;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 4vw, 43px);
  line-height: 1.08;
  color: var(--primary-dark);
}

.about-gallery-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.about-gallery-controls {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.about-gallery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(93, 187, 99, 0.28);
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  font-size: 25px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(31, 92, 58, 0.09);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.about-gallery-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--surface-2);
  box-shadow: 0 14px 28px rgba(31, 92, 58, 0.14);
}

.about-gallery-button:focus-visible,
.about-gallery-track:focus-visible {
  outline: 3px solid rgba(93, 187, 99, 0.48);
  outline-offset: 3px;
}

.about-gallery-button:disabled {
  opacity: .38;
  cursor: default;
  box-shadow: none;
}

.about-gallery-track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  margin-top: 28px;
  padding: 5px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(93, 187, 99, .72) rgba(220, 236, 223, .58);
  overscroll-behavior-x: contain;
}

.about-gallery-track::-webkit-scrollbar {
  height: 8px;
}

.about-gallery-track::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(220, 236, 223, .58);
}

.about-gallery-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(93, 187, 99, .72);
}

.about-gallery-slide {
  position: relative;
  flex: 0 0 clamp(270px, 41.5%, 430px);
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(220, 236, 223, .92);
  border-radius: 20px;
  background: #e8f3ea;
  box-shadow: 0 14px 28px rgba(31, 92, 58, .10);
  scroll-snap-align: start;
  animation: about-gallery-reveal .56s cubic-bezier(.2, .72, .22, 1) both;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.about-gallery-slide:nth-child(2) { animation-delay: .05s; }
.about-gallery-slide:nth-child(3) { animation-delay: .10s; }
.about-gallery-slide:nth-child(4) { animation-delay: .15s; }
.about-gallery-slide:nth-child(5) { animation-delay: .20s; }
.about-gallery-slide:nth-child(6) { animation-delay: .25s; }
.about-gallery-slide:nth-child(7) { animation-delay: .30s; }
.about-gallery-slide:nth-child(8) { animation-delay: .35s; }
.about-gallery-slide:nth-child(9) { animation-delay: .40s; }

.about-gallery-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(20, 50, 34, .14));
  opacity: .48;
  transition: opacity .25s ease;
  pointer-events: none;
}

.about-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .72, .22, 1), filter .35s ease;
}

.about-gallery-slide:hover {
  transform: translateY(-4px);
  border-color: rgba(93, 187, 99, .45);
  box-shadow: 0 22px 38px rgba(31, 92, 58, .17);
}

.about-gallery-slide:hover img {
  transform: scale(1.06);
  filter: saturate(1.06);
}

.about-gallery-slide:hover::after {
  opacity: .12;
}

.about-gallery-hint {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

@keyframes about-gallery-reveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 780px) {
  .about-gallery-panel {
    margin-top: 30px;
    padding: 20px 16px;
    border-radius: 22px;
  }

  .about-gallery-panel + .about-copy {
    margin-top: 24px;
  }

  .about-gallery-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .about-gallery-copy h3 {
    font-size: 34px;
  }

  .about-gallery-controls {
    align-self: flex-end;
  }

  .about-gallery-track {
    gap: 14px;
    margin-top: 18px;
  }

  .about-gallery-slide {
    flex-basis: min(82vw, 330px);
    border-radius: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-gallery-track {
    scroll-behavior: auto;
  }

  .about-gallery-slide {
    animation: none;
  }

  .about-gallery-slide,
  .about-gallery-slide img,
  .about-gallery-button {
    transition: none;
  }
}
