/* =========================================================
   DURU FILM MODAL
========================================================= */

html.duru-film-is-open,
body.duru-film-is-open {
    overflow: hidden;
}


/* =========================================================
   MODAL
========================================================= */

.duru-film-modal {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        clamp(18px, 3vw, 48px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .5s ease,
        visibility .5s ease;
}


.duru-film-modal[hidden] {
    display: none;
}


.duru-film-modal.is-open {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   BACKDROP
========================================================= */

.duru-film-modal__backdrop {
    position: absolute;
    inset: 0;

    border: 0;

    padding: 0;

    background:
        rgba(20, 12, 15, .93);

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    cursor: pointer;
}


/* =========================================================
   LIGHT EFFECTS
========================================================= */

.duru-film-modal::before,
.duru-film-modal::after {
    content: "";

    position: absolute;

    width:
        min(500px, 50vw);

    height:
        min(500px, 50vw);

    border-radius: 50%;

    pointer-events: none;

    filter:
        blur(40px);

    opacity: .18;
}


.duru-film-modal::before {
    top: -210px;
    right: -130px;

    background:
        #c9687d;
}


.duru-film-modal::after {
    bottom: -260px;
    left: -160px;

    background:
        #d7b277;
}


/* =========================================================
   DIALOG
========================================================= */

.duru-film-modal__dialog {
    position: relative;

    z-index: 2;

    width:
        min(1380px, 94vw);

    transform:
        translateY(25px)
        scale(.965);

    opacity: 0;

    transition:
        transform .65s cubic-bezier(.2,.75,.3,1),
        opacity .5s ease;
}


.duru-film-modal.is-open
.duru-film-modal__dialog {
    transform:
        translateY(0)
        scale(1);

    opacity: 1;
}


/* =========================================================
   TOP
========================================================= */

.duru-film-modal__top {
    margin-bottom: 13px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color:
        rgba(255,255,255,.62);

    font-size: 7px;

    letter-spacing: .3em;

    text-transform: uppercase;
}


.duru-film-modal__top span:last-child {
    color:
        rgba(255,255,255,.32);
}


/* =========================================================
   VIDEO FRAME
========================================================= */

.duru-film-modal__frame {
    position: relative;

    width: 100%;

    aspect-ratio:
        16 / 9;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.12);

    border-radius:
        clamp(15px, 2vw, 28px);

    background:
        #000000;

    box-shadow:
        0 45px 120px
        rgba(0,0,0,.5);
}


.duru-film-modal__video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    background:
        #000000;
}


/* =========================================================
   CLOSE
========================================================= */

.duru-film-modal__close {
    position: absolute;

    top: 20px;
    right: 20px;

    z-index: 5;

    width: 46px;
    height: 46px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255,255,255,.24);

    border-radius: 50%;

    background:
        rgba(25,15,19,.48);

    color:
        #ffffff;

    font-size: 20px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease;
}


.duru-film-modal__close:hover {
    transform:
        rotate(90deg);

    background:
        rgba(201,104,125,.85);

    border-color:
        rgba(255,255,255,.5);
}


/* =========================================================
   BOTTOM CAPTION
========================================================= */

.duru-film-modal__bottom {
    margin-top: 14px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;

    color:
        rgba(255,255,255,.4);

    font-size: 7px;

    letter-spacing: .22em;

    text-transform: uppercase;
}


.duru-film-modal__bottom strong {
    color:
        rgba(255,255,255,.78);

    font-weight: 400;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .duru-film-modal {
        padding: 14px;
    }


    .duru-film-modal__dialog {
        width: 100%;
    }


    .duru-film-modal__frame {
        aspect-ratio:
            9 / 14;

        max-height:
            82vh;
    }


    .duru-film-modal__video {
        object-fit: contain;
    }


    .duru-film-modal__close {
        top: 12px;
        right: 12px;

        width: 42px;
        height: 42px;
    }


    .duru-film-modal__top {
        font-size: 6px;
    }


    .duru-film-modal__bottom {
        display: block;

        line-height: 1.8;
    }


    .duru-film-modal__bottom span {
        display: block;

        margin-top: 5px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .duru-film-modal,
    .duru-film-modal__dialog,
    .duru-film-modal__close {
        transition: none;
    }

}