/* =============================
   fnview.css   
   ============================= */

/* photo */
.photo-hero__link { 
    position: relative;
}
.photo-hero__title { 
    display: -webkit-box;
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 1.4rem;    
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;    
    word-break: keep-all;
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-inverted);
    overflow: hidden;
    
}
.photo-hero__list {
    display: grid;    
    grid-template-columns: 2fr 1fr;     
    grid-template-rows: repeat(2, 1fr); 
    gap: 8px;
    width: 100%;
}
.photo-hero__item--big {
    grid-row: span 2;
}

.photo-hero__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.photo-hero__link {
    display: block;
    width: 100%;
    height: 100%;    
}
.photo-hero__thumb {
    margin: 0;
    width: 100%;
    height: 100%;    
    aspect-ratio: 16 / 10; 
}
.photo-hero__thumb.dimm-bottom::before { 
    top: 40%;
}
.photo-hero__thumb img {    
    transition: transform 0.3s ease;
}

.photo-hero__link:hover img {
    transform: scale(1.05);
}

.photo-hero__item:first-child .photo-hero__title {             
    font-size: 2.8rem;
    bottom: 3.4rem;
    overflow: hidden;
}
.photo-article { 
    margin-top: 7rem;
}
.photo-article .article-list--horizontal { 
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3.6rem 2.4rem;
}
.photo-article .article-list__link::before { 
    content: '';
    display: block;
    position: absolute;    
    aspect-ratio: 16 / 10;
    width: 100%;    
    background: var(--svg-ico-photo-20) no-repeat right 10px bottom 10px;
    z-index: 9;
}
.photo-article .dimm-bottom::before { 
    top: 70%;
    bottom: -20px;
}

/* video */
.video-top { 
    display: grid;
    grid-template-columns: 722px 1fr;
    gap: 57px;
    margin-bottom: 7rem;
}
.page__main > section + section { 
    margin-top: 7rem;
}
.video-hero { 
    max-width: 722px;
}
.video-hero .article-list__title { 
    font-size: 2.8rem;
    font-weight: 700;
}
.video-week::before { 
    content: "";
    display: block;
    position: absolute;
    top: 0;    
    bottom: 0;
    left: -29px;
    width: 1px;
    height: auto;    
    background-color: var(--stroke-separator);
}
.video-week .article-list { 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
}

.article-list--video {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.6rem 2.4rem;
}


.video-top .article-list__thumb, 
.article-list--video .article-list__thumb { 
    aspect-ratio: 16 / 9;
}
.video-top .article-list__thumb img, 
.video-article .article-list__thumb img { 
    object-position: center;
    margin: -1px 0;
}

.video-article .article-list--shorts { 
    display: grid;
}

.video-channel .video-channel__wrap { 
    padding: 3.8rem 0;
    background-color: var(--background-darklight);
    border-radius: 15px;
}

.video-channel .article-list { 
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.6rem;
    margin: 0 3.6rem;
}

.video-channel .article-list__title {
    margin-top: 5px !important;
} 

.video-channel .article-list__thumb { 
    border-radius: 50%;
}

.video-channel .article-list__desc { 
    word-break: keep-all !important;
}
.video-channel .platform-list { 
    display: flex;
    gap: 1.8rem;
    position: absolute;
    top: 0;
    right: 0;    
}
.video-channel .platform-list__link { 
    display: flex;    
    gap: 3px;
    align-items: center;
    padding: 2rem 0;
    font-weight: 500;
}
.video-channel .platform-list__link::before { 
    content: "";
    display: block;    
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
}
.platform-list__link--youtube::before { background-image: var(--ico-sns-youtube-18); }
.platform-list__link--navertv::before { background-image: var(--ico-sns-navertv-18); }
.video-thumb__duration { 
    display: block;
    position: absolute;    
    right: 2%;
    bottom: 3%; 
    padding: 0 2px;        
    font-size: 12px;  
    color: var(--text-inverted);                
    background: rgba(0, 0, 0, 0.6) ;
    border-radius: 2px;
    z-index: 9;
}

@media (max-width: 1280px) { 
    /* video */
    .video-top {    
        grid-template-columns: 576px 1fr; 
    }
} 

@media (max-width: 1024px) {
    /* photo */
    .photo-article .article-list--horizontal { 
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    /* video */
    .video-top {    
        grid-template-columns: 440px 1fr; 
        gap: 40px;
    }
    .video-week::before { 
        left: -20px;
    }
    .video-hero .article-list__title { 
        font-size: 2.2rem;
    }     
    .video-week .article-list__title,
    .video-article .article-list__title { 
        font-size: 1.6rem;
        line-height: 1.26;
    }
    .video-week .article-list,
    .video-article .article-list--video { 
        gap: 16px 10px;
    }
}

@media (max-width: 768px) {
    /* photo */
    .page__main > section + section { 
        margin-top: 3.6rem;
    }
    .photo-article .article-list--horizontal { 
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 10px;
    }
    .photo-hero__item--big { grid-area: first; }
    .photo-hero__item--rt { grid-area: second; }
    .photo-hero__item--rb { grid-area: third; }
    .photo-hero__list { 
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
        grid-template-areas:
            "first first"
            "second third";
        gap: 3px;
    }
    .photo-hero__item:first-child .photo-hero__title { 
        font-size: 2.2rem;
        line-height: 1.36;
        bottom: 20px;
    }
    .photo-hero__title { 
        bottom: 10px;
        font-size: 1.6rem;
        line-height: 1.26;
    }
    .photo-article .article-list__link::before { 
        background: var(--svg-ico-photo-20) no-repeat right 8px bottom 8px / 16px 16px;
    }
    .photo-article .article-list__title { 
        font-size: 1.6rem;
        line-height: 1.36;
    }

    /* video */
    .video-top { 
        grid-template-columns: 1fr;
        row-gap: 3.6rem;
        margin-bottoM: 3.6rem;
    }
    .video-week .section-title { 
        padding-top: 1.4rem;
        border-top: 2px solid var(--stroke-primary);
    }
    .video-article .article-list--video { 
        grid-template-columns: repeat(2, 1fr);
    }
    .video-article:has(.article-list--shorts) { 
        margin: 3.6rem -20px 0;
        padding: 0 20px;
        overflow: hidden;
    }
    .video-article .article-list--shorts { 
        display: flex;
        gap: unset;
    }
    .shorts__slide .article-list__item { 
        width: 46%;
    }
    .video-channel .video-channel__wrap { 
        padding: 2rem 0;
    }
    .video-channel .platform-list__link { 
        padding: 1.6rem 0;
        font-size: 1.3rem;
    }
    .video-channel .article-list { 
        grid-template-columns: repeat(1, minmax(0, 1fr));
        row-gap: 2.4rem;
        margin: 0 1.8rem
    }
    .video-channel .article-list__thumb { 
        width: 70px;
        height: 70px;
    }
    .video-channel .article-list__title { 
        margin-top: 0 !important;
    }
    .video-channel .article-list__desc { 
        display: block !important;
        margin-top: 2px;
    }
    .video-channel__wrap .article-list__item:not(:first-child)::before {
        content: '';
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--stroke-separator);
    }
}




