/* ===== 한국파일 메인 페이지 ===== */

/* 히어로: 로아앤코와 같은 틀(전체 화면, 문구는 왼쪽 아래, 투명 헤더가 위에 겹침)이고 영상 대신 가족 사진을 쓴다.
   (.hero-video 의 크기·문구 위치·글자 크기는 css/style.css 를 그대로 따른다) */
.hero-video.hero-atlas .hero-atlas-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #111 url('/img/hero-koreapile.jpg?v=6') no-repeat 50% 42% / cover;
}
.hero-video.hero-atlas .hero-content h1 { font-weight: 700; line-height: 1.12; letter-spacing: -.5px; font-size: 52px; }
.hero-video.hero-atlas .hero-content p { max-width: 640px; }

@media (max-width: 640px) {
  .hero-video.hero-atlas .hero-atlas-bg { background-position: 34% 50%; }
  .hero-video.hero-atlas .hero-content h1 { font-size: 34px; }
  /* 모바일: 문구 묶음을 더 왼쪽 아래로 (아래쪽 스크롤 화살표와는 겹치지 않게) */
  .hero-video.hero-atlas .hero-content { padding-left: 18px; padding-right: 18px; padding-bottom: 64px; }
}

/* 히어로 영상(있을 때): 사진 위에 꽉 차게 깔린다. 영상 주소가 비어 있으면 source 에 src 가 없어 표시되지 않는다. */
.hero-video.hero-atlas video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video.hero-atlas .hero-video-mobile { display: none; }
@media (max-width: 640px) {
  .hero-video.hero-atlas .hero-video-pc { display: none; }
  .hero-video.hero-atlas .hero-video-mobile { display: block; }
}
.hero-video.hero-atlas video { object-position: 50% 42%; }
@media (max-width: 640px) { .hero-video.hero-atlas video { object-position: 34% 50%; } }

/* 히어로 유튜브 배경 영상: 사진 위에서 재생이 시작되면(.on) 부드럽게 나타난다 */
.hero-video.hero-atlas .hero-yt { position: absolute; inset: 0; overflow: hidden; z-index: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; background: #00263E; }
.hero-video.hero-atlas .hero-yt.on { opacity: 1; }
.hero-video.hero-atlas .hero-yt iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.hero-video.hero-atlas .hero-yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,20,34,.45) 0%, rgba(0,20,34,.25) 40%, rgba(0,20,34,.6) 100%); }
