/* Video Modal */

.fancybox-slide {
    backface-visibility: hidden;
    height: 100%;
    left: 0;
    outline: none;
    overflow: auto;
    padding: 44px;
    position: absolute;
    text-align: center;
    top: 0;
    transition-property: transform,opacity,-webkit-transform;
    white-space: normal;
    width: 100%;
}

.fancybox-slide::before {
    content: '';
    display: inline-block;
    height: 100%;
    margin-right: -.25em;
    vertical-align: middle;
    width: 0;
}

.fancybox-content {
    margin: 0;
    overflow: visible;
    padding: 0;
    background: #000;
    display: inline-block;
    max-width: 100%;
    position: relative;
    text-align: left;
    vertical-align: middle;
}

.fancybox-iframe {
    vertical-align: top;
    background: transparent;
    border: 0;
    height: 100%;
    margin: 0;
    overflow: hidden;
    padding: 0;
    width: 100%;
    z-index: 1055;
}

.video-modal * {
    box-sizing: border-box;
}

.video-modal {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    overflow: auto;
    z-index: 1035;
}

/* Img Modal */

.img-modal {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1035;
}

.img-modal img {
    z-index: 1036;
}

/* Form Modal */

.form-box {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1035;
}

.form-container {
    position: relative;
    padding: 3rem;
    border-radius: 5px;
    box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
    background: url(../img/headerBg.webp) center center repeat;
    z-index: 1036;
}

/* Additional */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1034;
}

.close-modal-img, .close-modal-video, .close-modal-form {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1045;
}

.close-modal:hover {
    opacity: 0.8;
}

.no-scroll {
    overflow: hidden;
}