/* =============================================================
   TEAM GLAM — 2x2 Video Grid Hero Widget CSS
   ============================================================= */

.tg-2x2-hero-wrap {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* ── DESKTOP & TABLET VIEW (>767px) ────────────────────────── */
.tg-2x2-desktop-wrap {
    position: relative;
    width: 100%;
    min-height: 80vh;
    height: 85vh;
    overflow: hidden;
    background-color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-2x2-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    z-index: 1;
}

.tg-2x2-quadrant {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #161616;
}

.tg-2x2-video-el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

.tg-2x2-poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

.tg-2x2-tint-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
}

.tg-2x2-content-layer {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 60px) 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.tg-2x2-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
}

/* ── Typography (Desktop & Shared) ─────────────────────────── */
.tg-2x2-eyebrow {
    font-family: var(--tg-font-body, 'brandon-grotesque', sans-serif);
    font-size: clamp(11px, 1.1vw, 13px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
}

.tg-2x2-headline {
    font-family: var(--tg-font-heading, 'beaufort-pro', Georgia, serif);
    font-size: clamp(38px, 6.2vw, 76px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin: 0 0 18px 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.tg-2x2-subtitle,
.tg-2x2-subtitle p {
    font-family: var(--tg-font-body, 'brandon-grotesque', sans-serif);
    font-size: clamp(15px, 1.4vw, 19px);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 28px 0;
    max-width: 600px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* ── Buttons ──────────────────────────────────────────────── */
.tg-2x2-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.tg-2x2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--tg-font-body, 'brandon-grotesque', sans-serif) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 14px 34px;
    line-height: 1 !important;
    border-radius: 0;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.tg-2x2-btn:hover {
    transform: translateY(-1px);
}

.tg-2x2-btn-primary {
    background-color: #000000;
    color: #ffffff !important;
    border: 1px solid #000000;
}

.tg-2x2-btn-primary:hover {
    background-color: #ffffff;
    color: #000000 !important;
    border-color: #ffffff;
}

.tg-2x2-btn-secondary {
    background-color: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.tg-2x2-btn-secondary:hover {
    background-color: #ffffff;
    color: #000000 !important;
    border-color: #ffffff;
}

/* ── MOBILE STACKED VIEW (Hidden on Desktop) ──────────────── */
.tg-2x2-mobile-stack {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 44px 0 54px 0;
    box-sizing: border-box;
}

.tg-2x2-mobile-content {
    width: 100%;
    padding: 0 24px 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.tg-2x2-mobile-content .tg-2x2-eyebrow {
    color: #888888;
    margin-bottom: 10px;
}

.tg-2x2-mobile-content .tg-2x2-headline {
    color: #111111;
    font-size: clamp(28px, 8vw, 42px);
    text-shadow: none;
    margin-bottom: 14px;
}

.tg-2x2-mobile-content .tg-2x2-subtitle,
.tg-2x2-mobile-content .tg-2x2-subtitle p {
    color: #444444;
    font-size: 15.5px;
    text-shadow: none;
    margin-bottom: 22px;
}

.tg-2x2-mobile-content .tg-2x2-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
}

.tg-2x2-mobile-content .tg-2x2-btn {
    width: 100%;
    max-width: 300px;
}

/* ── Mobile Swiper Carousel ───────────────────────────────── */
.tg-2x2-mobile-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 6px 0 34px 0;
}

.tg-2x2-mobile-slider .swiper-slide {
    width: 82%;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tg-2x2-mobile-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: #111111;
    overflow: hidden;
}

.tg-2x2-mobile-card video,
.tg-2x2-mobile-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.tg-2x2-swiper-pagination {
    position: absolute;
    bottom: 4px !important;
    left: 0;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.tg-2x2-swiper-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background-color: #111111;
    opacity: 0.25;
    border-radius: 50%;
    margin: 0 !important;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tg-2x2-swiper-pagination .swiper-pagination-bullet-active {
    opacity: 0.9;
    transform: scale(1.3);
}

/* ── Responsive Visibility Switching ──────────────────────── */
@media (max-width: 767px) {
    .tg-2x2-desktop-wrap {
        display: none !important;
    }

    .tg-2x2-mobile-stack {
        display: flex !important;
    }
}
