@import url("sub.css");


/* 리스트 */
.speaker-video .list {
	flex-direction: row;
    flex-wrap: wrap;
    border-top: 1px solid #1D224F;
    padding-top: 80px;
}
.speaker-video .list li {
    width: 356px;
    margin-right: 45px;
    margin-bottom: 50px;
}
.speaker-video .list li:nth-child(4n) {
	margin-right: 0;
}
.speaker-video .list li a {
	font-size: 20px;
	font-family: 'Cafe24Ohsquareair', sans-serif;
	letter-spacing: -1px;
}
.speaker-video .list li a img {
	width: 100%;
}
.speaker-video .list li a p {
	margin-top: 10px;
	line-height: 1.5;
	white-space: nowrap; 
	overflow: hidden; 
	text-overflow: ellipsis; 
	white-space: normal; 
	word-wrap: break-word; 
	display: -webkit-box; 
	-webkit-line-clamp: 2; 
	-webkit-box-orient: vertical;
}


.YouTubePopUp-Wrap{
    position:fixed;
    width:100%;
    height:100%;
    background-color:#000;
    background-color:rgba(0,0,0,0.8);
    top:0;
    left:0;
    z-index:9999999999999;
}

.YouTubePopUp-animation{
    opacity: 0;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: YouTubePopUp;
    animation-name: YouTubePopUp;
}

@-webkit-keyframes YouTubePopUp {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes YouTubePopUp {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

body.logged-in .YouTubePopUp-Wrap{ /* For WordPress */
    top:32px;
    z-index:99998;
}

.YouTubePopUp-Content{
    max-width:680px;
    display:block;
    margin:0 auto;
    height:100%;
    position:relative;
}

.YouTubePopUp-Content iframe{
    max-width:100% !important;
    width:100% !important;
    display:block !important;
    height:480px !important;
    border:none !important;
    position:absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
}

.YouTubePopUp-Hide{
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: YouTubePopUpHide;
    animation-name: YouTubePopUpHide;
}

@-webkit-keyframes YouTubePopUpHide {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes YouTubePopUpHide {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.YouTubePopUp-Close{
    position:absolute;
    top:0;
    cursor:pointer;
    bottom:528px;
    right:0px;
    margin:auto 0;
    width:24px;
    height:24px;
    background:url(../images/ico-close-white.png) no-repeat;
    background-size:24px 24px;
    -webkit-background-size:24px 24px;
    -moz-background-size:24px 24px;
    -o-background-size:24px 24px;
}

.YouTubePopUp-Close:hover{
    opacity:0.5;
}





@media screen and (max-width: 1600px){
	.speaker-video .list li {
		width: 23.111%;
	    margin-right: 2.5%;
	}
	.speaker-video .list li a {
		font-size: 17px;
	}
}
@media screen and (max-width: 1024px){
	.speaker-video .list li {
		margin-bottom: 30px;
		width: 31.5%;
	}
	.speaker-video .list li:nth-child(4n) {
		margin-right: 3%;
	}
	.speaker-video .list li:nth-child(3n) {
		margin-right: 0;
	}
	.speaker-video .list li a {
	    font-size: 15px;
	}
	.speaker-video .list li a .title {
		margin-top: 10px;
	}
}
@media screen and (max-width: 768px){
	.speaker-video .list {
		padding-top: 60px;
	}
	.speaker-video .list li {
		width: 48.5%;
    	margin-right: 3%;
	}
	.speaker-video .list li:nth-child(3n) {
		margin-right: 3%;
	}
	.speaker-video .list li:nth-child(2n) {
		margin-right: 0;
	}

	.YouTubePopUp-Content{
        max-width:90%;
    }
    .YouTubePopUp-Content iframe{
        height:425px !important;
    }

    .YouTubePopUp-Close{
        bottom: 480px;
    }
}
@media all and (max-width: 480px){
    .YouTubePopUp-Content iframe{
        height: 335px !important;
    }

    .YouTubePopUp-Close{
        bottom:400px;
    }
}
