/* 오전 지베르니 — 사진 중심의 헤더 갤러리와 스토리 섹션 */
.td-page .td-hero__media.giverny-hero-gallery {
  aspect-ratio: auto;
  max-height: none;
  overflow: hidden;
  background: #e9e1d3;
}

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

.giverny-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;
}

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

.giverny-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);
}

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

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

.giverny-hero-gallery__img--house {
  object-position: center 58%;
}

.giverny-hero-gallery__img--bridge {
  object-position: center 63%;
}

.giverny-hero-gallery__img--pond {
  object-position: center 58%;
}

.giverny-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;
}

.giverny-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);
}

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

.giverny-story {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto;
  padding: 24px 20px;
  border: 1px solid rgba(176, 137, 61, 0.3);
  border-radius: 18px;
  background: #fbf8f2;
  box-shadow: 0 12px 30px rgba(52, 43, 31, 0.08);
}

.giverny-value {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto;
  padding: 26px 20px;
  border: 1px solid rgba(176, 137, 61, 0.34);
  border-radius: 18px;
  background: #f6f0e5;
  box-shadow: 0 12px 30px rgba(52, 43, 31, 0.08);
}

.giverny-value__eyebrow {
  margin: 0 0 8px;
  color: #a87b2d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.giverny-value__head h2 {
  margin: 0 0 12px;
  color: #27221c;
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.45rem, 6vw, 2.2rem);
  line-height: 1.42;
}

.giverny-value__head > p:last-child,
.giverny-value__card p,
.giverny-value__closing {
  color: #625a50;
  font-size: 0.93rem;
  line-height: 1.78;
}

.giverny-value__head > p:last-child {
  margin: 0;
}

.giverny-value__grid {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.giverny-value__card {
  padding: 18px;
  border: 1px solid rgba(176, 137, 61, 0.2);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.82);
}

.giverny-value__number {
  color: #b88936;
  font-family: Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.giverny-value__card h3 {
  margin: 7px 0 8px;
  color: #302920;
  font-size: 1rem;
  line-height: 1.5;
}

.giverny-value__card p {
  margin: 0;
}

.giverny-value__card small {
  display: block;
  margin-top: 8px;
  color: #83796c;
  font-size: 0.74rem;
  line-height: 1.55;
}

.giverny-value__closing {
  margin: 16px 2px 0;
  padding-top: 15px;
  border-top: 1px solid rgba(176, 137, 61, 0.25);
  color: #51483d;
  font-weight: 600;
}

.giverny-story__eyebrow {
  margin: 0 0 8px;
  color: #a87b2d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.giverny-story__copy h2 {
  margin: 0 0 10px;
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  line-height: 1.45;
  color: #27221c;
}

.giverny-story__copy > p:last-child {
  margin: 0;
  color: #625a50;
  font-size: 0.94rem;
  line-height: 1.8;
}

.giverny-story__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.giverny-story__gallery figure {
  margin: 0;
}

.giverny-story__gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #e5ded2;
}

.giverny-story__gallery figure:last-child img {
  object-position: center 45%;
}

.giverny-story__gallery figcaption {
  padding: 9px 2px 0;
  color: #6c6256;
  font-size: 0.76rem;
  line-height: 1.55;
}

@media (min-width: 900px) {
  .giverny-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;
  }

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

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

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

  .giverny-story {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: 32px;
    align-items: center;
    padding: 34px;
  }

  .giverny-value {
    padding: 38px 34px;
  }

  .giverny-value__head {
    max-width: 760px;
  }

  .giverny-value__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
  }

  .giverny-story__gallery {
    margin-top: 0;
    gap: 14px;
  }
}

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

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

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