/* =========================================================
TMR 이야기 	RE_ST0000V
========================================================= */
.main-title--ST {
  background-image: url('/resources/front/images/contents/hero_title_ST_pc.svg');

  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;

  max-width: 115rem;
  width: 100%;
  height: 13.1rem;
}

/* hero 오브젝트 */
/* ===========================================================
main.css랑 공통, 위치 다르면 부모클래스 추가 modifier
============================================================== */
.bg-objects--sub02 .hero__obj--pill {
  background-image: url('/resources/front/images/common/hero__object-ST-01.png');
  width: clamp(9.6rem, 9.8vw, 22rem);
  left: 20%;
}
.bg-objects--sub02 .hero__obj--star {
  background-image: url('/resources/front/images/common/hero__object-ST-02.png');
  width: clamp(9.6rem, 22vw, 23.9rem);
  top: 27%;
  right: clamp(-7rem, -3vw, -5rem);
}
.bg-objects--sub02 .hero__obj--flower {
  background-image: url('/resources/front/images/common/hero__object-ST-03.png');
  width: clamp(20.4rem, 17vw, 36rem);
  right: 15%;
  /* bottom: clamp(-12rem, -3.8vw, -7rem); */
}
.bg-objects--sub02 .hero__obj--pillblur {
  background-image: url('/resources/front/images/common/hero__object-ST-04.png');
  bottom: 21%;
}

/* 
  모바일
  */
@media screen and (max-width: 767px) {
  .main-title--ST {
    background-image: url('/resources/front/images/contents/hero_title_ST_mo.svg');

    max-width: 0;
    min-width: 26rem;
    height: 10.8rem;
  }

  .bg-objects--sub02 .hero__obj--pill {
    left: 17.5rem;
  }
  .bg-objects--sub02 .hero__obj--star {
    right: -3.8rem;
    top: 54%;
  }
  .bg-objects--sub02 .hero__obj--flower {
    width: clamp(16.4rem, 44.8vw, 22rem);
    left: 31%;
    bottom: clamp(-12rem, -5vw, -7rem);
  }
}

/* =========================================================
.section 01 .section--story
========================================================= */
.interview-area {
  max-width: 122rem;
  margin: 0 auto;
}
.story-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.story-item {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  width: 100%;
}

/* 미디어 전체 영역 */
.story-media {
  position: relative;
  max-width: 100.4rem;
  width: 100%;
  aspect-ratio: 784 / 440;
  overflow: hidden;
  border-radius: 4rem;
}

.story-media iframe{
   width: 100%;
  height: 100%;
  border : 0;
}

/* 썸네일 버튼 / 플레이어 공통 */
.story-thumb,
.story-player {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 썸네일 버튼 */
.story-thumb {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.story-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.16);
  z-index: 1;
}

/* 썸네일 이미지 */
.story-thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  transition: transform 0.3s ease-out;
}

.story-thumb:hover > img {
  transform: scale(1.2);
}

.story-thumb:focus-visible {
  outline: 2px dotted #150f96;
  outline-offset: -1rem;
  border-radius: 4rem;
  z-index: 3;
}

/* 플레이 아이콘 */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  transform: translate(-50%, -50%);
}

.play-icon,
.play-icon img {
  display: block;
  width: 8rem;
  height: 8rem;
}

/* 플레이어 */
.story-player {
  position: absolute;
  top: 0;
  left: 0;
}

.story-player iframe {
  display: block;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  margin: -1px;
  border: 0;
}

/* 텍스트 영역 */
.story-body {
  flex: 1;
  max-width: 41.6rem;
  padding: 4.8rem 4rem;
  background-color: #f0f5ff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 4rem;
}

.user-info {
  margin-bottom: 2rem;
}

.user-info .name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-strong, #020618);
}

.user-info .meta {
  font-size: var(--body-small-pc, 1.6rem);
  color: var(--color-text-caption, #45556c);
  margin-left: 1.2rem;
}

.story-title {
  font-family: var(--font-family-point);
  font-size: var(--title-h4-pc, 2.6rem);
  color: var(--color-text-strong, #020618);
  margin-bottom: 2rem;
  letter-spacing: -0.26px;
  word-break: keep-all;
  line-height: 1.36;
}

.story-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.6rem 1.2rem;
  border-radius: 10rem;
  background: #fff;
  color: var(--color-text-white);
  font-size: var(--body-small-pc, 1.6rem);
  font-weight: 700;
  background: #01c1d6;
}

/* --- 반응형 레이아웃 --- */

/* 모바일 */
@media screen and (max-width: 767px) {
  .story-item {
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.2rem;
  }

  .story-media {
    flex: none;
    max-width: 100%;
    border-radius: 2.4rem;
  }

  .story-thumb {
    border-radius: 2.4rem;
  }

  .story-title {
    font-size: 22px;
  }

  /* 플레이 아이콘 */
  .play-overlay {
    max-width: 4.8rem;
    width: 100%;
    height: 4.8rem;
  }

  .play-icon,
  .play-icon img {
    width: 4.8rem;
    height: 4.8rem;
  }

  .story-body {
    padding: 2.4rem;
    border-radius: 2.4rem;
    flex: 1;
    max-width: 100%;
  }
  .user-info {
    margin-bottom: 1.6rem;
  }

  .user-info .name {
    font-size: 1.7rem;
  }

  .user-info .meta {
    font-size: var(--body-small-mo, 1.6rem);
    margin-left: 0.8rem;
  }

  .story-title {
    font-size: var(--title-h4-mo, 1.8rem);
    margin-bottom: 1.6rem;
  }

  .story-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
  }

  .tag {
    padding: 0.4rem 1.2rem;
    font-size: 1.3rem;
  }
}

/* 테블렛 */
@media (min-width: 768px) and (max-width: 1199px) {
  /* 썸네일 영역 */
  .story-media {
    flex: 0 0 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 3.2rem;
    overflow: hidden;
  }
  .story-item {
    justify-content: center;
  }
  .story-thumb {
    border-radius: 3.2rem;
  }
}
