@charset "utf-8";

.youtubeWidget {
    width: 100%;
}

ul.youtubeWidgetList {
    width: 100%;
}

li.youtubeWidgetListItem {
    display: inline-block;
    position: relative;
    width: 100%;
    white-space: normal;
    overflow: hidden;
}

li.youtubeWidgetListItem img {
    width: 100%;
    border-radius: 10px 10px 0 0;
    /* border-radius: 40px; */
}

li.youtubeWidgetListItem p {
    padding-top: 25px;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

li.youtubeWidgetListItem p>a {
    font-size: 20px;
    color: #232323;
    line-height: 1em;
    font-weight: bold;
    font-family: 'SUIT', sans-serif;
}

li.youtubeWidgetListItem>a {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

li.youtubeWidgetListItem>a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-fit: contain; */
    background-color: #888;
}

li.youtubeWidgetListItem p.youtubeWidgetListItemDate {
    display: none;
}

p.youtubeWidgetListItemTitle a {
    color: #333;
}

p.youtubeWidgetListItemDescription {
    max-height: 2em;
    overflow: hidden;
    color: #888;
}

p.youtubeWidgetListItemDate {
    color: #FFF;
}

p.youtubeWidgetListItemPopup {}

p.youtubeWidgetListItemPopup>a {
    display: block;
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 1em;
    height: 1em;
    padding: 10px;
    border-radius: 2em;
    background-color: #888;
    color: #FFF;
}

p.youtubeWidgetListItemPopup>a>i {
    vertical-align: 1em;
}

.youtubeWidgetListItemDescription {
    display: none;
}

.home_album_wrap .xe-widget-wrapper {
    width: 49%;
} 

@media (max-width:991px) {
    .home_album_wrap .xe-widget-wrapper {
        width: 100%;
        margin-bottom: 30px;
    } 
    .youtubeWidget {
        width: 100%
    }

    ul.youtubeWidgetList {
        display: block;
    }

    li.youtubeWidgetListItem {
        width: 100%;
        margin-bottom: 30px;
    }

    li.youtubeWidgetListItem img {
        border-radius: 20px;
    }

    p.youtubeWidgetListItemTitle a {
        font-size: 14px;
    }

    li.youtubeWidgetListItem p {
        padding-top: 12px;
    }

    li.youtubeWidgetListItem p>a {
        font-size: 16px;
        font-weight: 500;
        line-height: 20px;
    }

    li.youtubeWidgetListItem>a {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width:767px) {
    ul.youtubeWidgetList {
        flex-direction: column;
    }

    li.youtubeWidgetListItem {
        margin: 0 0 30px;
    }

    li.youtubeWidgetListItem:last-child {
        margin: 0;
    }

    li.youtubeWidgetListItem>a {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width:480px) {
    li.youtubeWidgetListItem>a {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width:361px) {

    li.youtubeWidgetListItem>a {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

/* woori 모듈과 동일: 썸네일 클릭 시 전체화면 팝업 */
.youtubeWidgetPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtubeWidgetPopupClose {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}

.youtubeWidgetPopupContainer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.youtubeWidgetPopupVideo {
    max-width: 1000px;
    width: 100%;
    height: 80vh;
    max-height: 600px;
}

@media (max-width: 768px) {
    .youtubeWidgetPopupVideo {
        width: 90%;
        height: 40vh;
    }
}