/* ================================================
   TEAM GLAM — Dual Video Showcase Widget
   Target Image 2 Design Specifications
   ================================================ */

.tg-dv-wrap {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    position: relative;
    overflow: visible;
    background-color: #ffffff; /* Section background */
    min-height: 820px;
}

/* ── Content Column (Left Side ~45%) ────────────── */
.tg-dv-content {
    flex: 0 0 45%;
    max-width: 45%;
    background-color: #f5f5f5; /* Light grey block filling left column */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 60px;
    box-sizing: border-box;
}

.tg-dv-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 440px;
}

.tg-dv-eyebrow {
    display: block;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888888;
    margin-bottom: 16px;
}

.tg-dv-heading {
    font-family: 'beaufort-pro', serif;
    font-size: clamp(52px, 6vw, 92px);
    font-weight: 400;
    line-height: 1.05;
    color: #000000;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

body .tg-dv-subtitle,
.tg-dv-subtitle {
    font-family: 'brandon-grotesque', sans-serif;
    font-size: var(--tg-body-font-size, 18px) !important;
    line-height: 1.6;
    color: #444444;
    margin: 0 0 36px;
}

.tg-dv-btn-wrap {
    display: block;
    width: 100%;
    text-align: center;
}

.tg-dv-btn {
    display: inline-block;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background-color: #111111;
    padding: 14px 38px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.tg-dv-btn:hover {
    background-color: #333333;
    color: #ffffff;
}

/* Right Column: Staggered Video Stack (~55%) ──── */
.tg-dv-videos.tg-dv-desktop-stack {
    flex: 0 0 55%;
    max-width: 55%;
    position: relative;
    min-height: 840px;
    box-sizing: border-box;
}

/* Base Video Tile */
.tg-dv-tile {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background-color: #000000;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* Tile 1 (Left Tile / Front Overlay): Overlayed on left, sitting in front */
.tg-dv-desktop-stack .tg-dv-tile--back {
    position: absolute;
    top: 90px;
    left: 8%;
    width: 44%;
    height: 570px;
    aspect-ratio: 9 / 16;
    z-index: 2;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

/* Tile 2 (Right Tile / Big Back): Displayed big & tall in the back on the right */
.tg-dv-desktop-stack .tg-dv-tile--front {
    position: absolute;
    top: 40px;
    right: 5%;
    width: 50%;
    height: 740px;
    aspect-ratio: 9 / 16;
    z-index: 1;
}

.tg-dv-iframe,
.tg-dv-video,
.tg-dv-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
    pointer-events: auto;
}

.tg-dv-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e5e5;
    color: #666666;
    font-family: sans-serif;
    font-size: 13px;
}

/* ── Custom White Triangle Play Overlay Icon ────── */
.tg-dv-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: transparent;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: pointer;
}

.tg-dv-tile.is-playing .tg-dv-play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tg-dv-play-icon {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
    transition: transform 0.25s ease;
    display: block;
}

.tg-dv-tile:hover .tg-dv-play-icon {
    transform: scale(1.15);
}

/* Hide Mobile Slider on Desktop */
.tg-dv-mobile-slider {
    display: none;
}

/* ── Tablet Responsive (768px - 1023px) ─────────── */
@media (max-width: 1023px) {
    .tg-dv-wrap {
        flex-direction: column;
        min-height: auto;
        padding-bottom: 40px;
    }

    .tg-dv-content {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding: 60px 30px 40px;
    }

    .tg-dv-videos.tg-dv-desktop-stack {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        min-height: 600px;
        padding: 20px;
    }

    .tg-dv-desktop-stack .tg-dv-tile--back {
        left: 10%;
        width: 44%;
        height: 480px;
        top: 60px;
        z-index: 2;
    }

    .tg-dv-desktop-stack .tg-dv-tile--front {
        right: 8%;
        width: 48%;
        height: 560px;
        top: 20px;
        z-index: 1;
    }

    .tg-dv-heading {
        font-size: 60px;
    }
}

/* ── Mobile Responsive (≤767px) ─────────────────── */
@media (max-width: 767px) {
    /* Hide desktop stack on mobile */
    .tg-dv-desktop-stack {
        display: none !important;
    }

    /* Show mobile Swiper carousel */
    .tg-dv-mobile-slider {
        display: block !important;
        width: 100%;
        padding: 0 24px 60px;
        box-sizing: border-box;
        position: relative;
    }

    .tg-dv-mobile-slider .tg-dv-tile {
        position: relative;
        width: 100%;
        aspect-ratio: 9 / 16;
        height: auto;
        top: auto;
        left: auto;
        bottom: auto;
        right: auto;
    }

    .tg-dv-content {
        padding: 48px 24px 32px;
    }

    .tg-dv-heading {
        font-size: 44px;
    }

    .tg-dv-pagination {
        bottom: 20px !important;
        text-align: center;
    }

    .tg-dv-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: #111111;
        opacity: 0.3;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .tg-dv-pagination .swiper-pagination-bullet-active {
        opacity: 1;
        transform: scale(1.25);
    }
}
