html, body {
    max-width: 100%;
    overflow-x: hidden; /* 가로 스크롤 제거 */
    margin: 0;
    padding: 0;
    width: 100%;
}


/* 부모 컨테이너 설정 */
.main-visual {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.main-visual-out {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    /* 16:9 비율 유지 (모바일에서 너무 작으면 75% 등으로 조절 가능) */
    padding-bottom: 56.25%;
    background: #000; /* 영상 로딩 전 검정 배경 */
}

.video-container-out {
    position: relative;
    width: 100%;
    padding-top: 9%;
    padding-bottom: 30%;
    background: #000; /* 영상 로딩 전 검정 배경 */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    object-fit: cover;
}

/* 영상 위 오버레이 텍스트 스타일 */
.main-text-overlay {
    position: absolute;
    top: 67%;
    left: 0;
    width: 100%;
    height: 50%;

    /* 중앙 정렬 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* 영상이 밝을 경우를 대비한 가벼운 어둠 처리 (선택사항) */
    /*background: rgba(0, 0, 0, 0.3);*/

    /* 텍스트 색상: 요청하신 블랙&화이트 테마 자동 적용 */
    color: #ffffff;
    z-index: 10;
}

/* 영상 위 오버레이 텍스트 스타일 */
.main-text-overlay-out {
    position: absolute;
    /*top: 67%;*/
    left: 0;
    width: 100%;
    height: 50%;

    /* 중앙 정렬 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* 영상이 밝을 경우를 대비한 가벼운 어둠 처리 (선택사항) */
    /*background: rgba(0, 0, 0, 0.3);*/

    /* 텍스트 색상: 요청하신 블랙&화이트 테마 자동 적용 */
    color: #ffffff;
    z-index: 10;
}

.visual-text h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 가독성 확보 */
}

.visual-text p {
    font-size: 1.25rem;
    font-weight: 400;
}

.visual-text-out h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 가독성 확보 */
}

.visual-text-out p {
    font-size: 1.25rem;
    font-weight: 400;
}


/* 반응형 처리 (모바일/작은 화면) */
@media (max-width: 768px) {
    .section-inner{
        padding: 0 10px;
    }
    /*.visual-text h2 {*/
    /*    font-size: 1.5rem; !* 제목 크기 축소 *!*/
    /*}*/
    /*.visual-text p {*/
    /*    font-size: 0.9rem; !* 본문 크기 축소 *!*/
    /*}*/
    /*.visual-text {*/
    /*    bottom: 30px; !* 모바일에서는 고정 픽셀로 간격 조정 가능 *!*/
    /*}*/


    .visual-text h2 {
        font-size: 1.5rem;
    }

    .visual-text p {
        font-size: 0.7rem;
        padding: 0 20px;
    }
    .poster-item {
        width: 50%; /* 화면 너비의 절반인 2개씩 정렬 */
    }

    .typo-area dt {
        font-size: 14px; /* 모바일에서 제목 크기 최적화 */
        word-break: keep-all;
    }

    .typo-area dd {
        font-size: 12px;
    }
}
.main-visual-out {
    max-width: 100% !important;
    overflow: hidden; /* 영역 밖으로 나가는 요소 숨김 */
    box-sizing: border-box;
}


/* 모바일 화면 (일반적으로 768px 미만) */
@media screen and (max-width: 768px) {
    .main-visual-out {
        width: 100%;
        /* 이미지가 잘리지 않게 높이를 자동으로 조절하거나 비율에 맞춤 */
        height: auto; 
        aspect-ratio: 16 / 9; /* 이미지의 원본 비율에 맞게 설정 (예: 16:9) */
        
        background-size: contain; /* 이미지가 영역 안에 다 들어오도록 설정 */
        background-repeat: no-repeat;
        background-position: center;
    }
	.main-visual-out .main-title {
        font-size: 28px; /* 더 작게 조절 */
        word-break: keep-all; /* 단어 단위로 줄바꿈되어 가독성 향상 */
        padding: 0 20px; /* 양옆 여백을 주어 글자가 화면 끝에 붙지 않게 함 */
    }
    
    .main-visual-out .sub-text {
        font-size: 16px;
    }
	.visual-text-out h2 {
        /* 화면 너비에 맞춰 유동적으로 변하는 크기 (최소 28px ~ 최대 40px) */
        font-size: clamp(28px, 8vw, 20px); 
        white-space: normal; /* 모바일에서는 줄바꿈 허용 */
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .visual-text-out p {
        /* 모바일에서 읽기 편한 크기 */
        font-size: clamp(14px, 4vw, 9px); 
        margin-bottom: 5px;
        padding: 0 10px;
    }
	
}

@media screen and (max-width: 480px) {
    .main-visual-out {
        height: 300px; /* 모바일 화면에 적당한 높이로 강제 지정 */
        background-attachment: scroll; /* 모바일에서 fixed 배경은 깨질 수 있음 */
    }
	.main-text-overlay-out {
        /* 모바일 비디오 높이가 작을 경우 중앙 정렬 유지 */
        width: 95%; 
    }
	.visual-text-out h2 {
        /* 화면 너비에 맞춰 유동적으로 변하는 크기 (최소 28px ~ 최대 40px) */
        font-size: clamp(22px, 5vw, 30px);
        white-space: normal; /* 모바일에서는 줄바꿈 허용 */
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .visual-text-out p {
        /* 모바일에서 읽기 편한 크기 */
        font-size: clamp(15px, 3vw, 20px); 
        margin-bottom: 5px;
        padding: 0 10px;
    }
}