.video-block {
    position: relative;
    width: 100%;
    line-height: 0;
}

.video-bg-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.video-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px !important;
    color: #1f271b !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 16px;
    z-index: 10;
    background: #f8f6f2 !important;
    padding: 12px 42px !important;
    border-radius: 4px;
    line-height: 1;
}

.button-text {
    white-space: nowrap;
}

.full-screen-video{
    padding-top: 25px !important;
    padding-bottom: 144px !important;
}

/* Video Popup Modal */
.video-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-popup-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.video-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.video-popup-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 2;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-popup-modal.is-open .video-popup-content {
    transform: scale(1);
}

.video-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.video-popup-close:hover {
    transform: rotate(90deg);
}

.video-popup-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-popup-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 920px) {
    .full-screen-video{ 
        padding-bottom: 96px !important;
    }
}

@media screen and (max-width: 768px) {
    .full-screen-video{ 
        padding-bottom: 72px !important;
    }
}

@media screen and (max-width: 480px) {
    .video-button {
        top: 50%;
        left: 50%;
        bottom: auto;
        right: auto;
        transform: translate(-50%, -50%);
        width: max-content;
    }

    .full-screen-video{ 
        padding-bottom: 54px !important;
    }
}