.videobox {
    width: 100%;
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    max-width: 312px;
    @media only screen and (max-width: 768px) {
        max-width: 215px;
    }
    @media only screen and (max-width: 480px) {
        max-width: 165px;
    }
}

.videoVolume {
    display: none;
}

@media only screen and (min-width: 768px) {
    .videoVolume {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        bottom: 24px;
        left: 24px;
        gap: 8px;
        z-index: 2;
        opacity: 0;
        transition: opacity 0.2s;
    }
}

@media (pointer:none), (pointer:coarse) {
    .videoVolume {
        display: none;
    }
}

.videobox:hover .playBtn, .videobox:hover .videoVolume {
    opacity: 1;
}

.videoVolume .slider {
    writing-mode: vertical-lr;
    direction: rtl;
    accent-color: #ffffff;
    width: 5px;
}

.videobox video {
    object-fit: cover;
    position: absolute;
    width: auto;
    height: 100%;
    min-height: 100%;
    min-width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.videobox .playBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    width: 7.5rem;
    height: 7.5rem;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.videobox .playBtn .pauseIcon {
    display: none;
}

.videobox .playBtn.isPlaying .playIcon {
    display: none;
}

.videobox .playBtn.isPlaying .pauseIcon {
    display: block;
}

.readyVideo {
    height: calc(100dvh - 214px);
    min-height: 30rem;
    max-height: 48rem;
    aspect-ratio: 0.5625;
    position: relative;
    [dir='rtl'] & {
        @media only screen and (min-width: 768px) {
            order: 2;
        }
    }
}

.videobox .maximizeBtn {
    box-sizing: content-box;
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    width: 32px;
    height: 32px;
    z-index: 2;
    transition: opacity 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

@media only screen and (max-width: 768px) {
    .videobox .maximizeBtn {
        right: 12px;
        bottom: 12px;
        width: 18px;
        height: 18px;
    }
}

.videobox .maximizeBtn svg {
    width: 100%;
    height: 100%;
}

@media only screen and (min-width: 768px) {
    .readyVideo {
        width: 100%;
        height: 555px;
    }
}

@media only screen and (max-width: 1024px) {
    .readyVideo {
        height: initial;
        min-height: initial;
        max-height: 30rem;
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .readyVideo {
        width: 72%;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 768px) {
    .readyVideo .playBtn {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        transform: translate(0, 0);
        display: flex;
        align-items: center;
        justify-content: center;
        width: initial;
        height: initial;
    }
    .readyVideo .playBtn svg {
        width: 2rem;
        height: 2rem;
    }
    .readyVideo .playBtn.isPlaying svg {
        opacity: 0;
    }
}

.isMaximized {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: #000;
    padding: 0;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    max-height: initial;
    max-width: initial;
    aspect-ratio: initial;
}
.isMaximized video {
    object-fit: initial;
    position: initial;
    top: initial;
    left: initial;
    transform: none;
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: initial;
    min-height: initial;
    margin: auto;
}


.volumeThumb {
    position: absolute;
    cursor: pointer!important;
    background-color: white;
    border-radius: 50%;
    z-index: 99999;
    height: 20px;
    width: 20px;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;

    transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,bottom 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms
}

.volumeThumb:hover, .volumeThumb:focus-visible {
    box-shadow: 0 0 0 8px rgba(25, 118, 210, 0.16);
}

.volumeThumb:active {
    box-shadow: 0 0 0 14px rgba(25, 118, 210, 0.16);
}

.volumeSlider:hover, .volumeSlider:focus-visible {
    .volumeThumb {
        box-shadow: 0 0 0 8px rgba(25, 118, 210, 0.16);
    }
}
.volumeSlider:active {
    .volumeThumb {
        box-shadow: 0 0 0 14px rgba(25, 118, 210, 0.16);
    }
}

.volumeTrack {
    position: absolute;
    height: 50%;
    width: 4px;
    border-radius: 50px;
    background-color: white;
    top: 100%;
    left: 10px;
    transform: rotate(180deg);
    transform-origin: top;
}

.volumeFill {
    background-color: rgba(255, 255, 255, 0.38);
    height: 50%;
    width: 4px;
    left: 10px;
    position: absolute;
    border-radius: 50px;
    top: 0;
    z-index: 10;
}

.volumeSlider {
    position: absolute;
    height: 100px;
    width: 24px;
    top: calc(-50% - 100px);
    cursor: pointer!important;
}
