@charset "utf-8";

body.main{
	overflow-x:hidden !important;
}
#fullpage .section.first{
    height: 100%;
    min-height: 720px;
    position:relative;
    background-image: url(../images/main/main_bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullpage .section.first .main_section{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10%;
    max-width: 80%;
}

#fullpage .section .section_info{
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

#fullpage .section .section_info h2{
    font-family: 'GmarketSansBold';
    color: #ffffff;
    font-size: 2.5em;
}

#fullpage .section .section_info p{
    font-family: "Noto Sans KR";
    color: #ffffff;
    font-weight: 100;
    font-size: 1.5em;
    letter-spacing: -1px;
}

#fullpage .section .section_info .pcap_sns{
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    padding: 5px 10px;
    margin-top: 30px;
    border-radius: 50px;
    border: 1px solid #ffffff;
    max-width: 550px;
}

#fullpage .section .section_info .pcap_sns ul{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

#fullpage .section .section_info .pcap_sns ul li:first-child{
    font-size: 20px;
}

#fullpage .section .section_info .pcap_sns ul li:not(:first-child){
    margin-top: 5px;
}

.section.first .section_slider{
    width: 100%;
    height: 100%;
    max-width: 710px;
    max-height: 410px;
    position: relative;
}

.section.first .bx-wrapper, .section.first .bx-viewport{
    width: 100%;
    height: 100% !important;
    -webkit-box-shadow: none;
    box-shadow: none;
    background: none;
}
.section.first .slider{
    width: 100%;
    height: 100%;
    position: relative;
}
#fullpage .section.first .slider li{
    width: 100%;
    height: 100%;
    background-size: cover !important;
    border-radius: 10px;
}

#fullpage .section.first .slider li img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.section.first .slider .visualTxt {
    position: absolute;
    top: 300px;
    right: 10%;
    width: 485px;
    height: 369px;
    padding: 70px 50px;
    background: url('../images/main/visualTextBox.png')no-repeat;
}
.section.first .slider .visualTxt h3{
    font-family: 'GmarketSansLight';
    font-size: 30px;
    line-height: 38px;
    color: #fff;
}
.section.first .slider .visualTxt h3 strong{
    font-family: 'GmarketSansBold';
}
.section.first .slider .visualTxt p{
    font-size: 16px;
    color: #fff;
    margin-top: 30px;
}

.custom-controls {
    position: absolute;
    top: -30px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: #ffffff;
}

.custom-controls p {
    margin: 0 10px;
}

.custom-controls .current-page{
    font-weight: 600;
}

.custom-controls a {
    text-indent: -9999px;
    margin: 0 5px;
    display: block;
    width: 15px;
    height: 15px;
}

.custom-controls a.custom-prev{
    background: url(../images/main/icon_prev.png) no-repeat center;
    background-size: contain;
}

.custom-controls a.custom-pause{
    background: url(../images/main/icon_stop.png) no-repeat center;
    background-size: contain;
}

.custom-controls a.custom-play{
    background: url(../images/main/icon_play.png) no-repeat center;
    background-size: contain;
}


.custom-controls a.custom-next{
    background: url(../images/main/icon_next.png) no-repeat center;
    background-size: contain;
}


 .section.first #down_btn {
 	width:85px;
 	height:85px;
    position: absolute;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
}
 
 @media screen and (max-width: 1608px) {
     #fullpage .section .section_info h2{
         font-size: 2em;
     }
     #fullpage .section .section_info p{
         font-size: 1.2em;
     }

     #fullpage .section .section_info .pcap_sns ul li:first-child{
         font-size: 18px;
     }

     #fullpage .section .section_info .pcap_sns ul li img{
         width: 45px;
     }

 }

@media screen and (max-width: 1440px){
    #fullpage .section .section_info{
        gap: 0;
    }
}

@media screen and (max-width: 1260px){
    #fullpage .section.first .main_section{
        max-width: 90%;
    }
}

@media screen and (max-width: 1100px){
    #fullpage .section.first .main_section{
        display: grid;
        grid-template-rows: 1fr 1fr;
        grid-template-columns: 1fr;
    }

    .section.first .section_slider{
        max-width: 410px;
        max-height: 310px;
    }
}

@media screen and (max-width: 460px){
    #fullpage .section.first .main_section{
        max-width: 100%;
    }

    #fullpage .section .section_info{
        display: initial;
        text-align: center;
    }
    #fullpage .section .section_info h2{
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    #fullpage .section .section_info p{
        font-size: 1em;
        margin-bottom: 20px;
    }

    #fullpage .section .section_info .pcap_sns{
        max-width: 100%;
        margin: 0 10px;
    }

    #fullpage .section .section_info .pcap_sns ul li:first-child{
        font-size: 15px;
    }

    #fullpage .section .section_info .pcap_sns ul li img{
        width: 35px;
    }
}

@media screen and (max-width: 410px){
    #fullpage .section.first .main_section{
        display: initial;
    }
    .section.first .section_slider{
        padding-top: 60px;
    }

    .custom-controls{
        top: 0;
        margin-top: 30px;
    }
}

@media screen and (max-width: 370px){
    #fullpage .section .section_info h2{
        font-size: 1.5em;
    }
}



/* 뉴스레터 */
.newsLetter{
    width: 1100px;
    height: 128px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.newsLetter .letter{
    width: 100%;
    height: 100%;
    margin: 0 auto;
}
.newsLetter .letterTxt{
    float: left;
    width: 70%;
    height: 100%;
}
.newsLetterIcon{
    width: 68px;
    height: 100%;
    background: url('../images/main/newsLetterIcon.png')no-repeat center;
    float: left;
    margin-right: 25px;
}
.newsLetter h4{
    font-size: 20px;
    font-family: 'notokr-medium';
    color: #fff;
    padding-top: 40px;
    float: left;
}
.newsLetter .letterTxt > p{
    float: left;
    font-size: 14px;
    font-family: 'notokr-light';
    color: #fff;
}
.newsLetter .letter ul{
    float:right;
    padding-top: 40px;
} 
.newsLetter .letter ul li{
    float: left;
    position: relative;
} 
.newsLetter .letter ul li:last-child{
    border-left: 1px solid #777677;
    padding-right:0;
} 
.newsLetter .letter ul li a{
    padding: 0 25px;
	width:100%;
	height:100%;
    display:inline-block;
} 
.newsLetter .letter ul li a h5{
    color: #fff;
    font-family: 'notokr-medium';
    font-weight:500;
    font-size:16px;
} 
.newsLetter .letter ul li a p{
    font-size: 12px;
    color: #c2c2c2;
    font-family: 'notokr-medium';
} 
.newsLetter .letter ul li a p span{
    text-transform: uppercase;
    padding: 0 10px;
    background: url('../images/main/newsLetterGo.png')no-repeat right center;
} 

#fullpage .section.second .newsGo::before{
    width: 75px;
    height: 1px;
    background: #000;
    position: absolute;
    top: -5px;
    display: inline-block;
    content: '';
}
#fullpage .section.second .news .owl-nav{
    display: block;
}
.section.second .news .owl-nav .owl-prev{
    position: absolute;
    bottom: -46px;
    left: 420px;
}
.section.second .news .owl-nav .owl-next{
    position: absolute;
    bottom: -46px;
    right: 420px;
}
#fullpage .section.second .news .owl-dots{
    display: block;
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
}
.section.second .news .owl-dots .owl-dot{
    width: 9px;
    height: 9px;
    float:left;
    background: #fff;
    margin: 0 7px;
    border-radius: 50%;
}
.section.second .news .owl-dots .owl-dot.active{
    background: none;
    border: 1px solid #fff;
}
.section.second .newsMore{
    display: none;
    font-size: 0;
    text-indent: -999px;
}
.section.second .newsMore a{
    display: block;
    width: 49px;
    height: 50px;
    background: url('../images/main/newsMore.png')no-repeat center;
}

/* section third _ 비디오 */
.section.third {
	position:relative;
	display:table;
	table-layout:fixed;
	width:100%;
	height:100%;
	overflow:hidden;
}
.section.third .video_box{
	position:relative;
	text-align:center;
	vertical-align:middle;
	width:100%;
	height:100%;
	z-index:998;
}
.section.third video#mainVideo {
	margin:0 auto;
	min-width: 100%;
	min-height: auto;
    background-color: black;
    background-position: center center;
    object-fit: cover;
    position:absolute;
	right:0;
	left:0;
	bottom:0;
	top:0;
	width:100%;
	height:100%;
	z-index:-100;
	background-size:100% 100%;
	overflow:hidden;
}



@media screen and (max-width:1280px){

    .section.first .slider .visualTxt{
        top: 30%;
        right: 2%;
    }
    .section.first .bx-controls{
	    top:33%;
	}
	.section.first .bx-wrapper .bx-pager{
		width:auto !important;
	    right: 30%;
	}

    .newsLetter .letter{
        width: 100%;
    }
    
    
	    
}

@media screen and (max-width:1200px){
	.section.first .bx-wrapper .bx-pager {
	    right: 32%;
	}
	
	
	#fullpage .section.second .newsWrap {
   		 width: 80%;
	}
	#fullpage .section.second .news {
	    width: 100%;
	}
	#fullpage .section.second .news ul{
		width:100%;
	}
	.section.second .news .owl-nav .owl-prev {
	    left: 310px;
	}
	.section.second .news .owl-nav .owl-next {
	    right: 310px;
	}
	.newsLetter{
		width:98%;
	}
	.newsLetter .letterTxt{
		width:65%;
	}
}

@media screen and (max-width:1100px){
	.section.first .bx-wrapper .bx-pager {
   		right: 34%;
	}
    .section.first #down_btn{
  	 	display:none;
    }
	
	#fullpage .section.second .newsWrap {
   		 width: 90%;
	}
	.newsLetterIcon {
	    display: none;
	}
}

@media screen and (max-width:1024px){
	.section.first .bx-wrapper .bx-pager {
   		right: 36%;
	}
	
	 /* section third _ 비디오 */
	.section.third {
		height:auto !important;
	}
	.section.third .video_box{
		height:600px;
	}
	.section.third video#mainVideo {
		width:100%;
		height:600px;
	}
}

@media screen and (max-width:930px){
	.section.first .slider .visualTxt{
		right:1%;
	    width: 450px;
	    height: 330px;
	    padding: 60px 30px;
	    background-size: 100% 100%;
	}
		
	
	/* .section.second_위원회소식  */
	#fullpage .section.second .newsWrap {
	    width: 80%;
	}
	.newsLetter {
	    width: 100%;
	    text-align:center;
	}
	.section.second .news .owl-nav .owl-prev {
	    left: 180px;
	}
	.section.second .news .owl-nav .owl-next {
	    right: 180px;
	}
	.newsLetter .letterTxt{
		position: absolute;
		left:0;
	    top: 0;
	    display: inline-block;
	    height: auto;
	    width:100%;
	    float:none;
	}
	.newsLetter h4{
		padding:0;
		float:none;
	}
	.newsLetter .letterTxt > p{
		float:none;
	}
	.newsLetter .letter ul {
	    float: none;
	    padding-top: 65px;
	    height: auto;
	    display: inline-block;
	}
}

@media screen and (max-width:830px){
	/* section1 */
       #fullpage .section.first {
        height: 722px !important;
    }
    #fullpage .section.first .slider li{
    	background-position:center top -130px !important;
    	background-size: cover;
    }
    .section.first .slider .slide01{
    	background:url('../images/main/mainVisual01_m.jpg')no-repeat !important;
    }
    .section.first .slider .visualTxt{
        top: auto;
	    right: 50%;
	    bottom: 0;
	    width: 95%;
	    height:350px;
	    background-size: 100% 100%;
	    transform: translateX(50%);
	    padding: 70px 60px;
    }
    
    .section.first .slider .visualTxt h3{
    	letter-spacing:-1px;
    }
    .section.first .bx-controls {
	    top: auto;
	    bottom: 5%;
	}
	.section.first .bx-wrapper .bx-pager {
	    left: 80px;
	}
	
	#fullpage .section.second .newsWrap {
	    width: 90%;
	}
}

@media screen and (max-width:750px){
	/* section.first */
	/*#fullpage .section.first {*/
	/*    background: #f5f5f5;*/
	/*}*/

	#fullpage .section.first .slider li {
	    background-position: center top -70px !important;
	}
	
	/* section.section */
	#fullpage .section.second{
		height:auto !important;
		padding-top: 80px;
        background: #f5f5f5;
	}
	.section.second .newsTit h3{
    	color:#000;
    	display: inline-block;
    	margin: 0 16px 0 50px;
	}
    .section.second .newsTit p{
  		color:#000;
  		display: inline-block;
    }
    .section.second .newsTit p span.disB{
        display: block !important;
    }
    #fullpage .section.second .news{
        margin-top: 45px;
    }
    /*#fullpage .section.second .news li{*/
    /*	border:1px solid #c8c8c8;*/
    /*}*/
    #fullpage .section.second .newsWrap{
        width: 100%;
        padding-left: 50px;
        margin-top: 20px;
    }
    #fullpage .section.second .fp-tableCell{
        display: block;
    }
    #fullpage .section.second .news .owl-nav{
        display: none;
    }
    #fullpage .section.second .news .owl-dots{
        left: 0;
        transform: translateX(0);
    }
    .section.second .news .owl-dots .owl-dot {
	    background: #d1d1d1;
	}
	.section.second .news .owl-dots .owl-dot.active {
	    border: 1px solid #000;
	}
   .newsLetter{
   	  width: 100%;
      background: #e3e2df;
      position: relative;
      padding: 72px 53px;
      height: 500px;
      display: inline-block;
    }
  .newsLetterIcon{
      width: 87px;
      height: 87px;
      background:url('../images/main/newsLetterIcon_m.png')no-repeat;
      float: left;
      margin-right: 17px;
    }
  
   .newsLetter .letterTxt{
       width: 100%;
       height: auto;
       float: none;
       top:auto;
       bottom:70px;
    }
    .newsLetter h4 {
	    font-size:22px;
	    color:#5b554d;
	}
    .newsLetter h4 span{
	    display:block;
	}
    .newsLetter .letterTxt > p{
        display: none;
    }
    .newsLetter .letter ul{
        float: none;
        width: 100%;
        background: #fafafa;
        border: 1px solid #dcdcdc;
        padding: 0;
    }
    .newsLetter .letter ul li{
    	width:100%;
        height: 137px;
        line-height: 137px;
        text-align: center;
    }
    .newsLetter .letter ul li:first-child{
        margin-bottom:1px;
        background:#6c6a68;
    }
    .newsLetter .letter ul li:last-child{
	    border-left: 0;
        background:#605e5b;
    }
    .newsLetter .letter ul li a{
        padding: 0 54px 0 128px;
    }
    .newsLetter .letter ul li:first-child a{
        background:url('../images/main/newsLetterulIcon01.png')no-repeat left 54px center;
    }
    .newsLetter .letter ul li:last-child a{
        background:url('../images/main/newsLetterulIcon02.png')no-repeat left 54px center;
    }
    .newsLetter .letter ul li a h5{
        font-size: 28px;
        float:left;
    }
    .newsLetter .letter ul li a p{
        font-size: 20px;
        color: #f9de9e;
        float:right;
    } 
    .newsLetter .letter ul li a p span{
        text-transform: uppercase;
        padding: 0 20px 0 15px;
        background: url('../images/main/newsLetterGo_m.png')no-repeat right center;
    } 
    .section.second .newsMore{
        display: block;
        position: absolute;
        top: 75px;
        right: 20px;
    }
    .section.third .video_box, .section.third video#mainVideo {
		height:300px !important;
	}
}

@media screen and (max-width:680px){
	.newsLetter .letter ul li a {
	    padding: 0 30px 0 100px;
	}
	.newsLetter .letter ul li:first-child a {
	    background-position: left 30px center;
	}
	.newsLetter .letter ul li:last-child a {
	    background-position: left 30px center;
	}
}

@media screen and (max-width:600px){
	.newsLetter {
	    padding: 72px 20px;
	}
	.newsLetter .letter ul li a h5 {
	    font-size: 26px;
	}
	.newsLetter .letter ul li a p span {
	    padding: 0 20px 0 0px;
	}
}

@media screen and (max-width:530px){
	#fullpage .section.first .slider li {
	    background-position: center top -100px !important;
	}
	.section.first .slider .visualTxt{
		padding:60px 40px;
		height:320px
	}
	.section.first .slider .visualTxt h3 {
	    font-size: 25px;
	    line-height: 34px;
	}
	.section.first .bx-wrapper .bx-pager {
	    left: 50px;
	}
	
	
	/* section.second */
	.newsLetter .letter ul li a {
	    padding: 0 30px 0 85px;
	}
	.newsLetter .letter ul li:first-child a, .newsLetter .letter ul li:last-child a {
	    background-size: 9%;
	}
	.newsLetter .letter ul li a p {
	    font-size: 18px;
	}
}

@media screen and (max-width:480px){
	#fullpage .section.first {
	    height: 660px !important;
	    min-height:auto;
	}
	.section.first .slider .visualTxt{
		height:300px
	}
	
	/* section.second */
	.newsLetter h4 {
	    font-size: 18px;
	}
	.newsLetter .letter ul li a {
	    padding: 0 20px 0 60px;
	}
	.newsLetter .letter ul li:first-child a, .newsLetter .letter ul li:last-child a {
	    background-position: left 20px center;
	    background-size: 7%;
	}
	.newsLetter .letter ul li a h5 {
	    font-size: 20px;
	}
	.newsLetter .letter ul li a p span {
	    padding: 0 15px 0 0px;
	}
	.section.second .newsMore {
	    right: 0;
	}
	
    .section.third .video_box, .section.third video#mainVideo {
		height:230px !important;
	}
}

@media screen and (max-width:430px){
	.section.first .slider .visualTxt{
		padding:50px 30px;
	}
	.section.first .slider .visualTxt h3 {
	    font-size: 24px;
	}
	.section.first .bx-wrapper .bx-pager {
	    left: 40px;
	}
	
		
	/* section.second */
	.section.second .newsTit h4 {
	    margin: 0 10px 0 40px;
	}
	#fullpage .section.second .newsWrap {
	    padding-left: 40px;
	}
	.newsLetter h3 {
	    font-size: 20px;
	    line-height: 26px;
	}
	.newsLetter .letter ul li a {
	    padding: 0 20px 0 55px;
	}
	.newsLetter .letter ul li a h54 {
	    font-size: 20px;
	}
	.newsLetter .letter ul li a p {
	    font-size: 14px;
	}
}

@media screen and (max-width:380px){
	/* section.first */
	#fullpage .section.first {
	    height: 610px !important;
	}
	.section.first .slider .visualTxt h3 {
	    font-size: 22px;
	}
	.section.first .slider .visualTxt p {
	    font-size: 15px;
	}
	
	/* section.second */
	.section.second .newsTit h3 {
		font-size: 38px;
	    margin: 0 10px 0 30px;
	}
	#fullpage .section.second .newsWrap {
	    padding-left: 30px;
	}
}

@media screen and (max-width:360px){
	/* section.second */
	.newsLetter .letter ul li a {
	    padding: 0 10px 0 50px;
	}
}

/* 유튜브 api */
.youtube_content {
    padding: 100px 0;
    /*max-width: 1200px;*/
    margin: 0 auto;
    background: transparent;
    height: 100vh;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.youtube_header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.youtube_header h2 {
    font-family: 'GmarketSansBold';
    font-size: 42px;
    text-align: center;
    color: #000000;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    display: block;
}



.youtube_header h2 .more_btn img {
    vertical-align: middle;
}

.youtube_header .media_icon {
    display: block;
    margin-top: 5px;
}

.youtube_header .media_icon span {
    font-family: 'GmarketSansLight';
    color: #666;
    font-size: 16px;
}

.media_icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.youtube_slider {
    width: 100%;
    margin: 0 auto;
    max-width: 1300px;
    position: relative;
    padding: 0 60px;
    height: auto;
    max-height: 70vh;
    display: flex;
    justify-content: center;
}

.slider_container {
    width: 1200px;
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.1);
}

.youtube_slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    left: 0;
    pointer-events: none;
    opacity: 0;
}

.custom-youtube-nav {
    /*margin: 0 100px;*/
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

.video_item {
    cursor: pointer;
    height: auto;
    max-height: 60vh;
    padding: 4px;
}

.carousel-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.carousel-header .media-text {
    color: #666;
}

.youtube_slider .owl-dots {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    position: absolute;
    bottom: -80px;
}

.youtube_slider .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.youtube_slider .owl-dot span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.youtube_slider .owl-dot.active span {
    background: #333;
    transform: scale(1.2);
}

.thumbnail-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.youtube_content .board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.video {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.video:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px -10px rgba(0, 0, 0, 0.12);
}

.video.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 960px;
    height: 90vh;
    z-index: 10000;
    cursor: default;
    opacity: 0;
    animation: modalFadeIn 0.3s ease forwards;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: white;
}

.video.expanded::-webkit-scrollbar {
    display: none;
}

.video.expanded .modal-content {
    background: #f8f9fa;
    padding: 20px;
    margin-top: 20px;
    border-radius: 16px;
    flex: 1;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.video.closing {
    animation: modalFadeOut 0.3s ease forwards;
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.thumbnail-wrapper {
    position: relative;
    /* padding-bottom: 56.25%; */
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.video.expanded .thumbnail-wrapper {
    padding-bottom: 56.25%;
}

.video img {
    width: 100%;
    /* height: 100%; */
    /* position: absolute; */
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.video.expanded img {
    opacity: 0;
}

.video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.video.expanded iframe {
    display: block;
}

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 3px 4px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.3px;
}

.video_info {
    padding: 15px;
}

.video_info h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video_info .description {
    display: none;
    margin-top: 15px;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-line;
}

.video.expanded .video_info .description {
    display: block;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    white-space: pre-line;
}

.close-btn {
    display: none;
    position: fixed;
    top: 2px;
    right: 1px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 10001;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.video.expanded .close-btn {
    display: flex;
}

.board_search form {
    display: flex;
    gap: 10px;
}

.search_all select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.search_title input {
    flex-grow: 1;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/*.custom-controls {*/
/*    position: absolute;*/
/*    left: 0;*/
/*    bottom: 30px;*/
/*    width: 100%;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    gap: 10px;*/
/*}*/

/*.custom-prev,*/
/*.custom-next {*/
/*    position: absolute;*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    cursor: pointer;*/
/*    z-index: 10;*/
/*}*/

.custom-prev {
    left: 20px;  /* 왼쪽 여백 조정 */
}

.custom-next {
    right: 20px;  /* 오른쪽 여백 조정 */
}

.custom-controls img {
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}


/*.current-page,*/
/*.total-pages {*/
/*    color: #fff;*/
/*    font-size: 14px;*/
/*}*/

.custom-play span,
.custom-pause span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}



@media screen and (max-width: 768px) {
    .board {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
        padding: 16px;
    }

    .video_info {
        padding: 16px;
    }

    .board_search form {
        flex-direction: column;
    }
}

@media screen and (min-width: 850px) {
    .youtube_content .board:has(*:nth-child(1):nth-last-child(-n+4)) {
        grid-template-columns: repeat(auto-fit, 250px);
        justify-content: center;
    }
}

@media screen and (max-width: 750px) {
    .youtube_header h2 {
        color: #000;
        display: inline-block;
        margin: 0 16px 0 50px;
    }

    .youtube_header .media_icon span {
        color: #000;
        display: inline-block;
    }
}


@media screen and (max-width: 768px) {
    .video_item {
        max-height: 100vh;
    }

    .thumbnail-wrapper {
        padding-bottom: 65%;
        height: 0;
        position: relative;
    }

    .thumbnail-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .youtube_content {
        padding: 500px 0;
        min-height: 400px;
    }

    .youtube_slider {
        max-height: none;
        padding: 0 30px;
    }

    .slider_container {
        padding: 15px;
        width: 100%;
    }

    .video_info {
        padding: 20px 15px;
    }

    .more_btn {
        display: block;
        width: 30px;
        margin: 0 auto;
    }

    .youtube_header h2{
        display: block;
        margin: 0 auto;

    }
}

@media screen and (max-width: 480px) {
    .youtube_content {
        padding: 300px 0 300px 0;
    }

    .thumbnail-wrapper {
        padding-bottom: 70%;
    }
}

@media screen and (max-width: 380px) {
    .youtube_header h2 {
        font-size: 38px;
        margin: 0 10px;
    }
}