/* ── GSAP Image Carousel Styles ─────────────────────────────── */

:root {
    --tfsgc-bg: #0f0f12;
    --tfsgc-card-width: 14rem;
    --tfsgc-card-height: 18rem;
}

.tfsgc-carousel {
    width: 100%;
    min-height: 80vh;
    position: relative;
    background: var(--tfsgc-bg);
    overflow: hidden;
    padding: 0;
}

.tfsgc-carousel .tfsgc-gallery {
    width: 100%;
    height: 100vh;
    position: relative;
}

.tfsgc-cards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--tfsgc-card-width);
    height: var(--tfsgc-card-height);
    list-style: none;
    padding: 0;
    margin: 0;
}

.tfsgc-card {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--tfsgc-card-width);
    height: var(--tfsgc-card-height);
    border-radius: 0.75rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
}

.tfsgc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tfsgc-card-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(8, 12, 14, 0.75);
    color: #fafafa;
    padding: 6px 12px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
}

.tfsgc-actions {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.tfsgc-actions button {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #f3f3f3;
    background: rgba(20, 20, 22, 0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 12px;
    padding: 12px 30px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.tfsgc-actions button:hover {
    background: #f3f3f3;
    color: #0f0f12;
}

.tfsgc-drag-proxy {
    visibility: hidden;
    position: absolute;
}

.tfsgc-empty {
    padding: 40px;
    color: #fff;
    background: #16171a;
    text-align: center;
}

/* Themify Builder Preview Mode override */
.tfsgc-builder-preview .tfsgc-gallery {
    height: auto !important;
    min-height: 400px;
}
.tfsgc-builder-preview .tfsgc-cards {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    justify-content: center !important;
    padding: 2rem 0 !important;
}
.tfsgc-builder-preview .tfsgc-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    display: inline-block !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}
.tfsgc-builder-preview .tfsgc-actions {
    display: none !important;
}
