.hunt-video-gallery {
    position: relative;
    overflow: hidden;
}

.hunt-video-gallery__wrapper {
    max-width: var(--vg-max-w);
    margin: 0 auto;
    padding: var(--vg-pt-d) 24px var(--vg-pb-d);
    text-align: var(--vg-header-align-d);
}

.hunt-video-gallery__heading {
    font-size: var(--vg-fs-h-d);
    color: var(--vg-heading-color);
    margin: 0;
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 400;
}

.hunt-video-gallery__copy {
    max-width: 900px;
    margin: 0 auto 10px;
    color: var(--vg-description-color);
    font-size: var(--vg-fs-p-d);
    line-height: 1.6;
    font-weight: 300;
}

/* ── Top Grid ────────────────────────────────────────────── */
.hunt-video-gallery__top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--vg-gap);
    margin-bottom: 30px;
}

.hunt-video-gallery__top-item {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.hunt-video-gallery__top-card {
    position: relative;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background-color: #eee;
    width: 100%;
    border: none;
    padding: 0;
}

.hunt-video-gallery__top-info {
    padding: 20px 0;
    text-align: left;
}

.hunt-video-gallery__top-title {
    color: var(--vg-top-title-color);
    font-size: var(--vg-fs-tt-d);
    margin: 0 0 8px;
    font-weight: 400;
}

.hunt-video-gallery__top-subtitle {
    color: var(--vg-top-subtitle-color);
    font-size: var(--vg-fs-ts-d);
    margin: 0;
    font-weight: 300;
}

/* ── Bottom Grid & Slider ────────────────────────────────── */
.hunt-video-gallery__viewport {
    width: 100%;
}

.hunt-video-gallery__track {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vg-gap, 20px);
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hunt-video-gallery__bottom-item {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.hunt-video-gallery__bottom-card {
    position: relative;
    width: 100%;
    aspect-ratio: var(--vg-bottom-aspect, 2 / 4);
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
}

.hunt-video-gallery__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.hunt-video-gallery__bottom-card:hover .hunt-video-gallery__media,
.hunt-video-gallery__top-card:hover .hunt-video-gallery__media {
    transform: scale(1.05);
}

.hunt-video-gallery__bottom-card::after,
.hunt-video-gallery__top-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--vg-overlay-color);
    opacity: var(--vg-overlay-opacity);
    z-index: 1;
}

.hunt-video-gallery__play-button,
.hunt-video-gallery__bottom-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--vg-play-button-bg, rgba(255, 255, 255, 0.9));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vg-play-button-color, #a68d56);
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hunt-video-gallery__play-button svg,
.hunt-video-gallery__bottom-play svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.hunt-video-gallery__bottom-info {
    margin-top: 15px;
    text-align: left;
}

.hunt-video-gallery__bottom-title {
    margin: 0;
    font-size: var(--vg-fs-bt-d, 15px);
    line-height: 1.4;
    color: var(--vg-bottom-title-color);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
}

/* ── Footer ──────────────────────────────────────────────── */
.hunt-video-gallery__footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.hunt-video-gallery__btn {
    display: inline-block;
    background: var(--vg-btn-bg);
    color: var(--vg-btn-color);
    border: 1px solid var(--vg-btn-bdr, var(--vg-btn-bg));
    padding: 16px 40px;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: unset;
}

.hunt-video-gallery__btn:hover {
    background: var(--vg-btn-h-bg);
    color: var(--vg-btn-h-color);
    border-color: var(--vg-btn-h-bdr, var(--vg-btn-h-bg));
    transform: translateY(-2px);
}

/* ── Modal Overlay ───────────────────────────────────────── */
.hunt-video-gallery__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hunt-video-gallery__overlay.is-open {
    display: flex;
}

.hunt-video-gallery__modal {
    width: min(1000px, 100%);
    aspect-ratio: 16 / 9;
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.hunt-video-gallery__close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.hunt-video-gallery__content {
    width: 100%;
    height: 100%;
}

.hunt-video-gallery__frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .hunt-video-gallery__wrapper {
        padding: var(--vg-pt-m) 20px var(--vg-pb-m);
        text-align: var(--vg-header-align-m);
    }

    .hunt-video-gallery__heading {
        font-size: var(--vg-fs-h-m);
    }

    .hunt-video-gallery__top-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hunt-video-gallery__viewport {
        overflow-x: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar for Firefox */
    }

    .hunt-video-gallery__viewport::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for Chrome/Safari */
    }

    .hunt-video-gallery__track {
        /* JS slider handles flex-wrap, width and gap at mobile */
    }

    .hunt-video-gallery__bottom-item {
        /* JS slider handles flex/width at mobile */
        padding: 0;
    }

    .hunt-video-gallery__play-button,
    .hunt-video-gallery__bottom-play {
        width: 50px;
        height: 50px;
    }

    .hunt-video-gallery__play-button svg,
    .hunt-video-gallery__bottom-play svg {
        width: 20px;
        height: 20px;
    }

    .hunt-video-gallery__top-title {
        font-size: var(--vg-fs-tt-m, 20px) !important;
    }

    .hunt-video-gallery__top-subtitle {
        font-size: var(--vg-fs-ts-m, 14px) !important;
    }

    .hunt-video-gallery__bottom-title {
        font-size: var(--vg-fs-bt-m, 14px) !important;
    }
}

/* ── Carousel Slider Controls ────────────────────────────── */
.hunt-video-gallery__controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 901px) {
    .hunt-video-gallery__controls.hide-d {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .hunt-video-gallery__controls.hide-m {
        display: none !important;
    }
}

.hunt-video-gallery__arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    opacity: 0.6 !important;
    transition: 0.3s !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    flex: 0 0 44px !important;
    box-sizing: border-box !important;
}

.hunt-video-gallery__arrow:hover {
    opacity: 1 !important;
}

.hunt-video-gallery__arrow svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    stroke: var(--vg-arrow, #888) !important;
    stroke-width: 2 !important;
    fill: none !important;
    fill-opacity: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

.hunt-video-gallery__arrow svg polyline,
.hunt-video-gallery__arrow svg path {
    fill: none !important;
    fill-opacity: 0 !important;
    stroke: var(--vg-arrow, #888) !important;
    stroke-width: 2 !important;
}

.hunt-video-gallery__dots {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.hunt-video-gallery__dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    max-width: 8px !important;
    max-height: 8px !important;
    border-radius: 50% !important;
    background: var(--vg-dot, #ddd) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex: 0 0 8px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
}

.hunt-video-gallery__dot.is-active {
    background: var(--vg-dot-a, #a68d56) !important;
    transform: scale(1.2) !important;
}

/* ── Inline Playback styling ─────────────────────────────── */
.hunt-video-gallery__top-card.is-playing-inline::after,
.hunt-video-gallery__bottom-card.is-playing-inline::after,
.is-playing-inline .hunt-video-gallery__media,
.is-playing-inline .hunt-video-gallery__play-button,
.is-playing-inline .hunt-video-gallery__bottom-play {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.hunt-video-gallery__inline-player {
    border-radius: inherit;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 10;
    background: #000;
}