.cms-image-text-sections {
  --cms-section-brand: #194d35;
  --cms-section-container: 1480px;
  width: 100%;
}

.cms-image-text-section {
  color: #1c211d;
  background: #fff;
  padding: clamp(68px, 8vw, 124px) clamp(20px, 4vw, 56px);
}

.cms-image-text-section--soft {
  background: #f2f5f1;
}

.cms-image-text-section--brand {
  color: #fff;
  background: var(--cms-section-brand);
}

.cms-image-text-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(42px, 6.5vw, 96px);
  width: min(100%, var(--cms-section-container));
  margin: 0 auto;
}

.cms-image-text-section__media {
  aspect-ratio: 4 / 3;
  min-width: 0;
  overflow: hidden;
  background: #e7ebe6;
  border-radius: clamp(16px, 2vw, 28px);
  box-shadow: 0 20px 52px rgba(25, 45, 34, .12);
}

.cms-image-text-section__media.is-empty {
  display: none;
}

.cms-image-text-section__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.cms-image-text-section__copy {
  min-width: 0;
  padding: clamp(4px, 1.4vw, 20px) 0;
}

.cms-image-text-section__title {
  max-width: 720px;
  margin: 0;
  overflow-wrap: anywhere;
  letter-spacing: -.045em;
  font-size: clamp(32px, 4.1vw, 62px);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

.cms-image-text-section__body {
  max-width: 680px;
  margin: clamp(20px, 2.2vw, 32px) 0 0;
  overflow-wrap: anywhere;
  color: #606861;
  letter-spacing: -.015em;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.85;
  white-space: pre-line;
}

.cms-image-text-section--brand .cms-image-text-section__body {
  color: rgba(255, 255, 255, .78);
}

.cms-image-text-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin-top: clamp(26px, 3vw, 40px);
  padding: 0 22px;
  color: #fff;
  background: var(--cms-section-brand);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cms-image-text-section__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 55, 38, .22);
}

.cms-image-text-section--brand .cms-image-text-section__cta {
  color: var(--cms-section-brand);
  background: #fff;
}

.cms-image-text-section--image-right .cms-image-text-section__media {
  order: 2;
}

.cms-image-text-section--image-right .cms-image-text-section__copy {
  order: 1;
}

/* 이미지 강조 */
.cms-image-text-section--layout-image-focus .cms-image-text-section__inner {
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, .52fr);
  gap: clamp(34px, 5vw, 78px);
}

.cms-image-text-section--layout-image-focus.cms-image-text-section--image-right .cms-image-text-section__inner {
  grid-template-columns: minmax(300px, .52fr) minmax(0, 1.48fr);
}

.cms-image-text-section--layout-image-focus .cms-image-text-section__media {
  aspect-ratio: 16 / 11;
}

.cms-image-text-section--layout-image-focus .cms-image-text-section__title {
  font-size: clamp(30px, 3.35vw, 52px);
}

/* 텍스트 강조 */
.cms-image-text-section--layout-text-focus .cms-image-text-section__inner {
  grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr);
  gap: clamp(44px, 7vw, 110px);
}

.cms-image-text-section--layout-text-focus.cms-image-text-section--image-right .cms-image-text-section__inner {
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, .68fr);
}

.cms-image-text-section--layout-text-focus .cms-image-text-section__media {
  aspect-ratio: 4 / 5;
}

.cms-image-text-section--layout-text-focus .cms-image-text-section__title {
  max-width: 880px;
  font-size: clamp(38px, 5.2vw, 76px);
}

.cms-image-text-section--layout-text-focus .cms-image-text-section__body {
  max-width: 760px;
}

/* 위아래 배치 */
.cms-image-text-section--layout-stacked .cms-image-text-section__inner {
  display: block;
  width: min(100%, 1280px);
}

.cms-image-text-section--layout-stacked .cms-image-text-section__media {
  aspect-ratio: 16 / 7;
  max-height: 720px;
}

.cms-image-text-section--layout-stacked .cms-image-text-section__copy {
  max-width: 900px;
  margin: clamp(36px, 4.5vw, 64px) auto 0;
  padding: 0;
  text-align: center;
}

.cms-image-text-section--layout-stacked .cms-image-text-section__title,
.cms-image-text-section--layout-stacked .cms-image-text-section__body {
  margin-right: auto;
  margin-left: auto;
}

/* 겹침 카드 */
.cms-image-text-section--layout-overlap {
  padding-top: clamp(52px, 6vw, 92px);
  padding-bottom: clamp(52px, 6vw, 92px);
}

.cms-image-text-section--layout-overlap .cms-image-text-section__inner {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: clamp(520px, 52vw, 720px);
}

.cms-image-text-section--layout-overlap .cms-image-text-section__media,
.cms-image-text-section--layout-overlap .cms-image-text-section__copy {
  grid-area: 1 / 1;
}

.cms-image-text-section--layout-overlap .cms-image-text-section__media {
  align-self: stretch;
  height: 100%;
  aspect-ratio: auto;
  border-radius: clamp(18px, 2.3vw, 34px);
}

.cms-image-text-section--layout-overlap .cms-image-text-section__copy {
  z-index: 1;
  align-self: end;
  justify-self: start;
  width: min(540px, calc(100% - 44px));
  margin: clamp(22px, 4vw, 64px);
  padding: clamp(28px, 4vw, 54px);
  color: #1c211d;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: clamp(16px, 2vw, 26px);
  box-shadow: 0 24px 70px rgba(14, 34, 23, .22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cms-image-text-section--layout-overlap.cms-image-text-section--image-right .cms-image-text-section__copy {
  justify-self: end;
}

.cms-image-text-section--layout-overlap .cms-image-text-section__title {
  font-size: clamp(34px, 3.8vw, 56px);
}

.cms-image-text-section--layout-overlap .cms-image-text-section__body {
  color: #59635c;
  font-size: clamp(15px, 1.15vw, 18px);
}

.cms-image-text-section--layout-overlap.cms-image-text-section--brand .cms-image-text-section__copy {
  color: #fff;
  background: color-mix(in srgb, var(--cms-section-brand) 94%, transparent);
  border-color: rgba(255, 255, 255, .18);
}

.cms-image-text-section--layout-overlap.cms-image-text-section--brand .cms-image-text-section__body {
  color: rgba(255, 255, 255, .78);
}

@media (max-width: 1100px) {
  .cms-image-text-section--layout-image-focus .cms-image-text-section__inner,
  .cms-image-text-section--layout-image-focus.cms-image-text-section--image-right .cms-image-text-section__inner,
  .cms-image-text-section--layout-text-focus .cms-image-text-section__inner,
  .cms-image-text-section--layout-text-focus.cms-image-text-section--image-right .cms-image-text-section__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cms-image-text-section--layout-image-focus .cms-image-text-section__media,
  .cms-image-text-section--layout-text-focus .cms-image-text-section__media,
  .cms-image-text-section--layout-image-focus.cms-image-text-section--image-right .cms-image-text-section__media,
  .cms-image-text-section--layout-text-focus.cms-image-text-section--image-right .cms-image-text-section__media {
    order: 0;
    aspect-ratio: 16 / 10;
  }

  .cms-image-text-section--layout-image-focus .cms-image-text-section__copy,
  .cms-image-text-section--layout-text-focus .cms-image-text-section__copy,
  .cms-image-text-section--layout-image-focus.cms-image-text-section--image-right .cms-image-text-section__copy,
  .cms-image-text-section--layout-text-focus.cms-image-text-section--image-right .cms-image-text-section__copy {
    order: 1;
  }
}

@media (max-width: 900px) {
  .cms-image-text-section {
    padding: 64px 20px 72px;
  }

  .cms-image-text-section__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cms-image-text-section__media,
  .cms-image-text-section--layout-image-focus .cms-image-text-section__media,
  .cms-image-text-section--layout-text-focus .cms-image-text-section__media,
  .cms-image-text-section--image-right .cms-image-text-section__media {
    order: 0;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .cms-image-text-section__copy,
  .cms-image-text-section--image-right .cms-image-text-section__copy {
    order: 1;
    padding: 0 2px;
  }

  .cms-image-text-section__title,
  .cms-image-text-section--layout-image-focus .cms-image-text-section__title,
  .cms-image-text-section--layout-text-focus .cms-image-text-section__title {
    font-size: clamp(30px, 9vw, 43px);
  }

  .cms-image-text-section__body {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.78;
  }

  .cms-image-text-section--layout-stacked .cms-image-text-section__media {
    aspect-ratio: 4 / 3;
  }

  .cms-image-text-section--layout-stacked .cms-image-text-section__copy {
    margin-top: 30px;
    text-align: left;
  }

  .cms-image-text-section--layout-stacked .cms-image-text-section__title,
  .cms-image-text-section--layout-stacked .cms-image-text-section__body {
    margin-right: 0;
    margin-left: 0;
  }

  .cms-image-text-section--layout-overlap {
    padding: 64px 20px 72px;
  }

  .cms-image-text-section--layout-overlap .cms-image-text-section__inner {
    min-height: 0;
    gap: 0;
  }

  .cms-image-text-section--layout-overlap .cms-image-text-section__media,
  .cms-image-text-section--layout-overlap .cms-image-text-section__copy {
    grid-area: auto;
  }

  .cms-image-text-section--layout-overlap .cms-image-text-section__media {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 18px 18px 0 0;
    box-shadow: none;
  }

  .cms-image-text-section--layout-overlap .cms-image-text-section__copy,
  .cms-image-text-section--layout-overlap.cms-image-text-section--image-right .cms-image-text-section__copy {
    justify-self: stretch;
    width: 100%;
    margin: 0;
    padding: 28px 24px 30px;
    border: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 42px rgba(25, 45, 34, .1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@supports not (background: color-mix(in srgb, #000 50%, transparent)) {
  .cms-image-text-section--layout-overlap.cms-image-text-section--brand .cms-image-text-section__copy {
    background: var(--cms-section-brand);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cms-image-text-section__cta {
    transition: none;
  }
}

/* DAOLCHAE_YOUTUBE_BLOCKS */
.cms-image-text-section__media.is-youtube{aspect-ratio:16/9;background:#0d100e}.cms-image-text-section__youtube-frame{position:relative;width:100%;height:100%;min-height:100%;aspect-ratio:16/9}.cms-image-text-section__youtube-frame iframe{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}.cms-image-text-section--layout-overlap .cms-image-text-section__media.is-youtube{aspect-ratio:16/9;align-self:center;height:auto}.cms-image-text-section--layout-overlap .cms-image-text-section__youtube-frame{min-height:0}@media(max-width:900px){.cms-image-text-section__media.is-youtube,.cms-image-text-section--layout-overlap .cms-image-text-section__media.is-youtube{aspect-ratio:16/9;height:auto}}
