/* Custom Video Modal Styles */
.custom-video-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.custom-video-modal.show {
    display: flex;
}

.custom-video-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background-color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

.custom-video-modal-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.custom-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.custom-video-modal-close:hover {
    color: #ff0000;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .custom-video-modal-content {
        width: 95%;
    }
}

.custom-video-trigger {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    text-align: center;
    overflow: hidden;
    line-height: 45px;
    z-index: 2;
    transition: all 900ms ease;
    -webkit-transform: scale(0, 1);
    transform: scale(0, 1);
    -webkit-transform-origin: right center;
    transform-origin: right center;
    background-position: center center;
}

.video-block-four .inner-box:hover .custom-video-trigger {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    -webkit-transform-origin: left center;
    transform-origin: left center;
}

.custom-video-trigger:before {
    position: absolute;
    content: '';
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    opacity: 0.70;
    background-color: var(--main-color-two);
}

.custom-video-trigger span {
    position: absolute;
    width: 70px;
    height: 70px;
    left: 50%;
    top: 50%;
    z-index: 10;
    color: var(--white-color);
    font-weight: 400;
    font-size: var(--font-20);
    text-align: center;
    padding-left: 4px;
    display: inline-block;
    margin-top: -35px;
    margin-left: -35px;
    line-height: 70px;
    border-radius: 50%;
    transition: all 900ms ease;
    background: var(--main-color-red);
    background: linear-gradient(to right, var(--main-color-red) 0%, var(--main-color-seven) 100%);
}

.custom-video-trigger .ripple,
.custom-video-trigger .ripple:before,
.custom-video-trigger .ripple:after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .6);
    animation: ripple 3s infinite;
}

.custom-video-trigger .ripple:before {
    animation-delay: .9s;
    content: "";
    position: absolute;
}

.custom-video-trigger .ripple:after {
    animation-delay: .6s;
    content: "";
    position: absolute;
}