/* =====================================
MEDIA VIEWER
===================================== */
.media-viewer{
    position:relative;
    overflow:hidden;
    cursor:pointer;
    background:#000;
    height:520px;
    border-radius:18px;
}

.media-viewer img{
    width:100%;
    display:block;
    transition:.35s;
    height:100%;
    object-fit:cover;
    border-radius:18px;
}

.media-viewer:hover img{
    transform:scale(1.03);
}

.media-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.45);
    opacity:0;
    transition:.3s;
}

.media-viewer:hover .media-overlay{
    opacity:1;
}

.media-overlay span{
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(12px);
    color:#fff;
    padding:14px 26px;
    border-radius:40px;
    font-size:17px;
    font-weight:600;
}

/* =====================================
MEDIA MODAL
===================================== */
.media-modal{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    background:rgba(0,0,0,.88);
    z-index:99999;
    animation:mediaFade .25s ease;
}

.media-close{
    position:absolute;
    top:24px;
    right:36px;
    color:#fff;
    font-size:48px;
    cursor:pointer;
    transition:.2s;
}

.media-close:hover{
    transform:rotate(90deg);
}

.media-content{
    max-width:92vw;
    max-height:82vh;
    display:flex;
    justify-content:center;
    align-items:center;
}

.media-image{
    max-width:100%;
    max-height:82vh;
    border-radius:14px;
    box-shadow:0 15px 60px rgba(0,0,0,.4);
}

.media-video{
    width:90vw;
    max-width:1100px;
    max-height:82vh;
    border-radius:14px;
}

.media-youtube{
    width:90vw;
    max-width:1100px;
    height:620px;
    border:none;
    border-radius:14px;
}

.media-actions{
    margin-top:25px;
}

.media-actions a{
    color:#fff;
    text-decoration:none;
    font-weight:600;
    font-size:17px;
    transition:.2s;
}

.media-actions a:hover{
    color:#ffd166;
}

@keyframes mediaFade{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}