/* 파리 시내 + 베르사유 — 사진 중심 헤더 갤러리 (paris-versailles.html 전용) */
.td-page .td-hero__media.pv-hero-gallery {
  aspect-ratio: auto;
  max-height: none;
  overflow: hidden;
  background: #e9e1d3;
}

.pv-hero-gallery::after {
  display: none;
}

.pv-hero-gallery__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 16px 10px;
}

.pv-hero-gallery__track::-webkit-scrollbar {
  display: none;
}

.pv-hero-gallery__slide {
  position: relative;
  flex: 0 0 86%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  background: #d9d0c0;
  scroll-snap-align: center;
  box-shadow: 0 8px 18px rgba(42, 34, 25, 0.12);
}

.pv-hero-gallery__slide--main {
  flex-basis: 94%;
  scroll-snap-align: start;
}

.pv-hero-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-hero-gallery__img--paris {
  object-position: center 42%;
}

.pv-hero-gallery__img--versailles {
  object-position: center 38%;
}

.pv-hero-gallery__img--seine {
  object-position: center 55%;
}

.pv-hero-gallery__slide::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(28, 24, 20, 0.42));
  pointer-events: none;
}

.pv-hero-gallery__slide figcaption {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 13px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
}

.pv-hero-gallery__hint {
  margin: 0;
  padding: 0 18px 10px;
  color: #756a5b;
  font-size: 0.74rem;
  text-align: right;
}

@media (min-width: 900px) {
  .pv-hero-gallery__track {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    height: clamp(440px, 48vw, 640px);
    padding: 0;
    overflow: hidden;
  }

  .pv-hero-gallery__slide,
  .pv-hero-gallery__slide--main {
    min-width: 0;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .pv-hero-gallery__slide--main {
    grid-row: 1 / 3;
  }

  .pv-hero-gallery__hint {
    display: none;
  }
}

@media (max-width: 430px) {
  .pv-hero-gallery__track {
    padding-inline: 10px;
  }

  .pv-hero-gallery__slide {
    flex-basis: 88%;
  }

  .pv-hero-gallery__slide--main {
    flex-basis: 96%;
  }
}
