/* Public 천안배 — page shell + intro (Figma 9337:957) */

.cheonan-page {
  background-color: #fff;
}

.cheonan-hero {
  position: relative;
  overflow: hidden;
}

.cheonan-hero__media {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: clamp(320px, 42vw, 640px);
  min-height: clamp(240px, 28vw, 420px);
  background-color: #ece7df;
  background-image:
    linear-gradient(180deg, rgba(25, 25, 25, 0.02) 0%, rgba(25, 25, 25, 0.08) 100%),
    url("/assets/images/seong-pear/hero.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.cheonan-content {
  width: 100%;
}

/* Intro — content max 1390 (project override; Figma shows 1290) */
.cheonan-intro {
  padding: clamp(64px, 5.21vw, 100px) 0;
  background-color: #fff;
}

.cheonan-intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 5.21vw, 100px);
  width: min(100%, 1390px);
  margin-inline: auto;
}

.cheonan-intro__title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(28px, 2.08vw, 40px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #191919;
  word-break: keep-all;
  overflow-wrap: break-word;
  
  
}

.cheonan-intro__sub {
  font-weight: 400;
  display: inline-block;
}
	
.cheonan-intro__body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.cheonan-intro__figure {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-radius: clamp(16px, 1.25vw, 24px);
  background-color: #f5f3ef;
  aspect-ratio: 1390 / 420;
  max-height: 420px;
}

.cheonan-intro__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cheonan-intro__copy {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(32px, 4vw, 80px);
  width: 100%;
}

.cheonan-intro__lead {
  margin: 0;
  flex: 1 1 auto;
  max-width: 500px;
  font-size: clamp(20px, 1.25vw, 24px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #535353;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.cheonan-intro__text {
  margin: 0;
  flex: 0 1 620px;
  width: min(100%, 620px);
  font-size: clamp(16px, 0.94vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #535353;
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 1023px) {
  .cheonan-hero__media {
    max-height: 480px;
    background-position: center;
  }

  .cheonan-intro__copy {
    flex-direction: column;
    gap: 24px;
  }

  .cheonan-intro__lead,
  .cheonan-intro__text {
    max-width: none;
    width: 100%;
    flex: none;
  }
}

@media (max-width: 767px) {
  .cheonan-hero__media {
    min-height: 200px;
    max-height: 360px;
    background-position: center;
  }

  .cheonan-intro {
    padding: 56px 0;
  }

  .cheonan-intro__inner {
    gap: 36px;
  }

  .cheonan-intro__body {
    gap: 28px;
  }

  .cheonan-intro__figure {
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }

  .cheonan-intro__title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .cheonan-intro__lead {
    font-size: 18px;
  }

  .cheonan-intro__text {
    font-size: 16px;
  }
}

/* Legacy story — Figma 9337:1093; content max 1390 */
.cheonan-legacy {
  padding: clamp(64px, 5.21vw, 100px) 0;
  background-color: #f5f3ef;
}

.cheonan-legacy__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 4.17vw, 80px);
  width: min(100%, 1390px);
  margin-inline: auto;
}

.cheonan-legacy__title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(24px, 1.67vw, 32px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #191919;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.cheonan-legacy__accent {
  color: #f99c1b;
}

.cheonan-legacy__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 4.17vw, 80px);
  width: 100%;
}

.cheonan-legacy__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 4.17vw, 80px);
  width: 100%;
}

.cheonan-legacy__row--reverse {
  flex-direction: row-reverse;
}

.cheonan-legacy__figure {
  margin: 0;
  flex: 1.35 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: clamp(16px, 1.25vw, 24px);
  background-color: #fff;
  aspect-ratio: 720 / 440;
}

.cheonan-legacy__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cheonan-legacy__copy {
  display: flex;
  flex: 0 1 605px;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  width: min(100%, 605px);
  min-width: 0;
}

.cheonan-legacy__copy p {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #535353;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 1023px) {
  .cheonan-legacy__row,
  .cheonan-legacy__row--reverse {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .cheonan-legacy__figure,
  .cheonan-legacy__copy {
    flex: none;
    width: 100%;
  }

  .cheonan-legacy__figure {
    max-height: 420px;
  }
}

@media (max-width: 767px) {
  .cheonan-legacy {
    padding: 56px 0;
  }

  .cheonan-legacy__inner,
  .cheonan-legacy__rows {
    gap: 40px;
  }

  .cheonan-legacy__title {
    font-size: clamp(22px, 5.5vw, 28px);
  }

  .cheonan-legacy__figure {
    border-radius: 16px;
    max-height: 300px;
  }

  .cheonan-legacy__copy {
    gap: 14px;
  }

  .cheonan-legacy__copy p {
    font-size: 22px;
  }
}

/* Gallery cards — Figma 9337:1126; content max 1390 */
.cheonan-gallery {
  padding: clamp(64px, 5.21vw, 100px) 0;
  background-color: #fff;
}

.cheonan-gallery__inner {
  width: min(100%, 1390px);
  margin-inline: auto;
}

.cheonan-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 4.17vw, 80px) 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cheonan-gallery__item {
  min-width: 0;
}

.cheonan-gallery__card {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 635 / 500;
  border-radius: clamp(16px, 1.25vw, 24px);
  background-color: #d8d8d8;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cheonan-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cheonan-gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(67, 45, 15, 0.92) 0%,
    rgba(61, 46, 25, 0) 55%
  );
  pointer-events: none;
  transition: background 0.55s ease;
}

.cheonan-gallery__text {
  position: absolute;
  left: clamp(20px, 2.6vw, 50px);
  right: clamp(20px, 2.6vw, 50px);
  bottom: clamp(24px, 2.6vw, 50px);
  z-index: 1;
  margin: 0;
  max-width: 32em;
  color: #fff;
  font-size: clamp(15px, 0.94vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.cheonan-gallery__card:hover,
.cheonan-gallery__card:focus-within {
  transform: translateY(-8px);
}

.cheonan-gallery__card:hover .cheonan-gallery__image,
.cheonan-gallery__card:focus-within .cheonan-gallery__image {
  transform: scale(1.06);
}

.cheonan-gallery__card:hover .cheonan-gallery__overlay,
.cheonan-gallery__card:focus-within .cheonan-gallery__overlay {
  background: linear-gradient(
    0deg,
    rgba(40, 26, 8, 0.96) 0%,
    rgba(61, 46, 25, 0.15) 58%
  );
}

@media (max-width: 1023px) {
  .cheonan-gallery__grid {
    gap: 28px 16px;
  }

  .cheonan-gallery__text {
    bottom: 20px;
  }
}

@media (max-width: 767px) {
  .cheonan-gallery {
    padding: 56px 0;
  }

  .cheonan-gallery__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cheonan-gallery__card {
    border-radius: 16px;
    aspect-ratio: 4 / 3;
  }

  .cheonan-gallery__text {
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: 15px;
  }

  .cheonan-gallery__card:hover,
  .cheonan-gallery__card:focus-within {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cheonan-gallery__card,
  .cheonan-gallery__image,
  .cheonan-gallery__overlay {
    transition: none;
  }

  .cheonan-gallery__card:hover,
  .cheonan-gallery__card:focus-within {
    transform: none;
  }

  .cheonan-gallery__card:hover .cheonan-gallery__image,
  .cheonan-gallery__card:focus-within .cheonan-gallery__image {
    transform: none;
  }
}
