.video-gallery-page {
    padding-bottom: 40px;
}

.video-gallery-card {
    background: #f0edec;
    height: 100%;
    overflow: hidden;
    border: 0;
}

.video-gallery-card__media {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.video-gallery-card__media:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.video-gallery-card.is-short .video-gallery-card__media {
    aspect-ratio: 9 / 16;
    max-height: 420px;
}

.video-gallery-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.video-gallery-card__media:hover img {
    transform: scale(1.03);
}

.video-gallery-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    color: #666;
    font-size: 2rem;
}

.video-gallery-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease;
}

.video-gallery-card__media:hover .video-gallery-card__play {
    background: rgba(0, 0, 0, 0.4);
}

.video-gallery-card__play i {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(205, 37, 133, 0.92);
}

.video-gallery-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
}

.video-gallery-card__body {
    padding: 16px 18px 20px;
}

.video-gallery-card__body h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.video-gallery-card__body p {
    margin-bottom: 0;
    color: #666;
}

.video-gallery-modal .modal-content {
    border: 0;
    overflow: hidden;
}

.video-gallery-modal .modal-header {
    position: relative;
    border-bottom: 1px solid #eee;
    padding: 14px 56px 14px 18px;
}

.video-gallery-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    padding-right: 12px;
}

.video-gallery-modal .video-gallery-modal__close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eceae7;
    opacity: 1;
    background-image: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #222;
    z-index: 5;
}

.video-gallery-modal .video-gallery-modal__close i {
    font-size: 18px;
    line-height: 1;
}

.video-gallery-modal .video-gallery-modal__close:hover,
.video-gallery-modal .video-gallery-modal__close:focus {
    background: #cd2585;
    color: #fff;
    opacity: 1;
    box-shadow: none;
}

.video-gallery-modal__frame {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
}

.video-gallery-modal__frame.is-landscape {
    aspect-ratio: 16 / 9;
    min-height: 200px;
}

.video-gallery-modal__frame.is-portrait {
    aspect-ratio: 9 / 16;
    width: 100%;
    max-width: 420px;
    min-height: 320px;
    margin: 0 auto;
}

.video-gallery-modal__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-gallery-modal .modal-body {
    background: #000;
}

.video-reels-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .video-gallery-breadcrumb,
    .video-page-banner,
    .video-gallery-page .gallery-page-intro {
        display: none;
    }

    .video-gallery-page {
        padding: 0;
    }

    .video-gallery-page.section_padding {
        padding: 0;
    }

    .video-gallery-grid-wrap {
        display: none;
    }

    .video-reels-mobile {
        display: block;
        height: 100dvh;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        background: #000;
        overscroll-behavior-y: contain;
    }

    .video-reel-item {
        position: relative;
        height: 100dvh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overflow: hidden;
        background: #000;
    }

    .video-reel-item__media {
        position: absolute;
        inset: 0;
    }

    .video-reel-item__poster,
    .video-reel-item__placeholder {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
        transition: opacity 0.25s ease;
    }

    .video-reel-item.is-active .video-reel-item__poster,
    .video-reel-item.is-active .video-reel-item__placeholder {
        opacity: 0;
        pointer-events: none;
    }

    .video-reel-item__player {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        z-index: 2;
        opacity: 0;
        pointer-events: none;
    }

    .video-reel-item.is-active .video-reel-item__player {
        opacity: 1;
        pointer-events: auto;
    }

    .video-reel-item.is-short .video-reel-item__poster,
    .video-reel-item.is-short .video-reel-item__player {
        object-fit: contain;
        background: #000;
    }

    .video-reel-item.is-normal .video-reel-item__player {
        object-fit: cover;
    }

    .video-reel-item__placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 2rem;
        background: #111;
    }

    .video-reel-item__overlay {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 3;
        padding: 72px 18px 28px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
        color: #fff;
        pointer-events: none;
    }

    .video-reel-item__overlay h2 {
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 6px;
    }

    .video-reel-item__overlay p {
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.9rem;
    }

    .video-gallery-modal .modal-header {
        background: #fff;
        padding: 12px 52px 12px 16px;
    }

    .video-gallery-modal .video-gallery-modal__close {
        right: 12px;
        width: 34px;
        height: 34px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    }

    .video-gallery-modal .modal-dialog {
        max-width: 100%;
        margin: 0;
        min-height: 100dvh;
    }

    .video-gallery-modal .modal-content {
        min-height: auto;
        border-radius: 0;
    }

    .video-gallery-modal__frame.is-portrait {
        max-height: calc(100dvh - 72px);
        min-height: 280px;
    }

    .video-gallery-modal__frame.is-landscape {
        min-height: 220px;
    }
}

@media (min-width: 768px) {
    .video-gallery-modal .modal-dialog.modal-short {
        max-width: 460px;
    }

    .video-gallery-modal__frame.is-portrait {
        max-height: 80vh;
    }
}
