/* Custom Banner Reel Section */
.custom-banner-reel-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.custom-reel-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.custom-reel-card {
    position: relative;
    display: block;
    width: 100%;
    /* height: 100vh; */
    height: auto overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.custom-reel-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.custom-autoplay-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.custom-vimeo-bg-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

.custom-reel-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    pointer-events: none;
}

.custom-reel-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
}

.custom-reel-title {
    color: #fff;
    font-size: 3rem;
    font-family: 'Tanker', sans-serif;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.custom-float-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px;
    padding-right: 20px;
    /* extra padding on right for text */
    gap: 10px;
    z-index: 2;
    transition: transform 0.3s ease;
    border-radius: 500px;
    border: 1.5px solid #fff;
    background: rgba(0, 0, 0, 0.4);
    /* optional translucent bg if needed */
}

.custom-reel-card:hover .custom-float-btn {
    transform: translate(-50%, -50%) scale(1.05);
}

.custom-btn-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e62227;
    /* their primary red */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.custom-btn-circle::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

.custom-btn-text {
    color: #fff;
    font-size: 16px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Sleek Fullscreen Video Popup */
.custom-video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.custom-video-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Showreel Lightbox Modal matching Main Website 1:1 */
#viewShowreel {
    width: 90%;
    max-width: 1100px;
    margin: 30px auto;
    position: relative;
    box-sizing: border-box;
}

#viewShowreel.mfp-hide {
    display: none !important;
}

#viewShowreel .container,
#viewShowreel .custom-popup-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
}

#viewShowreel .reel-popup-video {
    position: relative;
    background: #121313 !important;
    border-radius: 16px !important;
    padding: 30px 34px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

#viewShowreel .reel-popup-hdn-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
}

#viewShowreel .reel-popup-hdn {
    color: #ffffff;
    font-family: 'Tanker', sans-serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}

#viewShowreel .reel-popup-close,
#viewShowreel .showreel-custom-close {
    position: static !important;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 100%;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    z-index: 10;
}

#viewShowreel .reel-popup-close:hover,
#viewShowreel .showreel-custom-close:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

#viewShowreel .custom-popup-video-body,
#viewShowreel .reel-popup-video-body {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    transform: translateZ(0);
}

#viewShowreel .reel-popup-video iframe,
#viewShowreel .custom-popup-video-body iframe,
#viewShowreel .reel-popup-video-body iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
    background: #000;
}

#viewShowreel .showreel-spinner-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 2;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

#viewShowreel .showreel-spinner-wrap.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#viewShowreel .showreel-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #e62227;
    border-radius: 50%;
    animation: showreelSpin 0.8s linear infinite;
}

@keyframes showreelSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.mfp-bg {
    z-index: 999999 !important;
    background: #000 !important;
    opacity: 0.85 !important;
}

.mfp-wrap {
    z-index: 999999 !important;
}

@media (max-width: 1024px) {
    #viewShowreel .reel-popup-video {
        padding: 24px 20px !important;
        border-radius: 14px !important;
    }

    #viewShowreel .reel-popup-hdn {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    #viewShowreel {
        width: 95%;
    }

    #viewShowreel .reel-popup-video {
        padding: 18px 14px !important;
        border-radius: 12px !important;
    }

    #viewShowreel .reel-popup-hdn-box {
        margin-bottom: 16px;
        gap: 16px;
    }

    #viewShowreel .reel-popup-hdn {
        font-size: 22px;
    }

    #viewShowreel .reel-popup-close,
    #viewShowreel .showreel-custom-close {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    #viewShowreel .showreel-custom-close svg,
    #viewShowreel .reel-popup-close svg {
        width: 36px;
        height: 36px;
    }

    .custom-reel-card {
        height: auto;
    }

    .custom-reel-content {
        bottom: 20px;
        left: 20px;
    }

    .custom-reel-title {
        font-size: 2rem;
    }
}