/* GT Video Carousel — Frontend Styles */

.gt-vc-carousel {
    --vc-blue:   #00b2e3;
    --vc-orange: #ff9e18;
    --vc-text:   #54565a;
    --vc-dark:   #1b1b1d;
    --vc-bg:     #f4f4f4;
    --vc-radius: 4px;
    --vc-shadow: 0 2px 8px rgba( 0, 0, 0, .1 );
    --vc-shadow-hover: 0 6px 20px rgba( 0, 0, 0, .15 );

    position: relative;
    overflow: hidden;
    padding: 0 50px;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

/* -------------------------------------------------------------------------
   Track
   ------------------------------------------------------------------------- */

.gt-vc-track-wrap {
    overflow: hidden;
}

.gt-vc-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

/* -------------------------------------------------------------------------
   Card
   ------------------------------------------------------------------------- */

.gt-vc-card {
    box-sizing: border-box;
    padding: 0 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.gt-vc-card:first-child { padding-left: 0; }
.gt-vc-card:last-child  { padding-right: 0; }

.gt-vc-card-inner {
    background: #fff;
    border-radius: var( --vc-radius );
    box-shadow: var( --vc-shadow );
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

/* Wrap the inner content so hover applies cleanly */
.gt-vc-card:hover .gt-vc-card-inner,
.gt-vc-card:focus .gt-vc-card-inner {
    transform: translateY( -3px );
    box-shadow: var( --vc-shadow-hover );
}

/* We're not using .gt-vc-card-inner as a wrapper in the JS,
   so apply shadow/hover directly on .gt-vc-card > div structure */
.gt-vc-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #111;
    border-radius: var( --vc-radius ) var( --vc-radius ) 0 0;
}

.gt-vc-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.gt-vc-card:hover .gt-vc-thumb {
    transform: scale( 1.04 );
    opacity: 0.85;
}

/* Play icon overlay */
.gt-vc-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gt-vc-play-icon svg {
    width: 56px;
    height: 56px;
    filter: drop-shadow( 0 2px 6px rgba( 0, 0, 0, .4 ) );
}

.gt-vc-card:hover .gt-vc-play-icon {
    opacity: 1;
}

/* Card body */
.gt-vc-card-body {
    padding: 12px 14px 16px;
    background: #fff;
    border-radius: 0 0 var( --vc-radius ) var( --vc-radius );
    box-shadow: var( --vc-shadow );
    transition: box-shadow 0.2s ease;
}

.gt-vc-card:hover .gt-vc-card-body {
    box-shadow: var( --vc-shadow-hover );
}

.gt-vc-card-description {
    margin: 6px 0 0;
    font-size: 12px;
    color: var( --vc-text );
    line-height: 1.5;
}

.gt-vc-card-read-more {
    color: var( --vc-blue );
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.gt-vc-card-read-more:hover {
    text-decoration: underline;
}

.gt-vc-card-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var( --vc-dark );
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   Prev / Next buttons
   ------------------------------------------------------------------------- */

.gt-vc-btn {
    position: absolute;
    top: 50%;
    transform: translateY( -50% );
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var( --vc-blue );
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease;
    z-index: 2;
    padding: 0;
    /* Offset to be above the card, not on top of thumbnail text */
    margin-top: -20px; /* roughly half card thumb height */
}

.gt-vc-prev { left: 0; }
.gt-vc-next { right: 0; }

.gt-vc-btn:hover:not( :disabled ) {
    background: var( --vc-orange );
}

.gt-vc-btn:disabled {
    background: #ccc;
    opacity: 0.4;
    cursor: default;
}

/* -------------------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------------------- */

.gt-vc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gt-vc-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba( 0, 0, 0, .85 );
}

/* Outer row: prev | modal | next */
.gt-vc-lb-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 92%;
    max-width: 980px;
}

/* Modal box */
.gt-vc-lb-modal {
    flex: 1;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba( 0, 0, 0, .7 );
    min-width: 0;
}

/* Modal header: title left, close right */
.gt-vc-lb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #111;
}

.gt-vc-lb-title {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* Close button — inside modal header */
.gt-vc-lb-close {
    flex-shrink: 0;
    background: rgba( 255, 255, 255, .1 );
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}

.gt-vc-lb-close:hover {
    background: rgba( 255, 255, 255, .25 );
}

/* 16:9 player */
.gt-vc-lb-player-wrap {
    width: 100%;
    position: relative;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.gt-vc-lb-player-wrap iframe,
.gt-vc-lb-player-wrap #gt-vc-yt-player {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Description below player */
.gt-vc-lb-description {
    padding: 14px 16px;
    background: #1a1a1a;
    border-top: 1px solid rgba( 255, 255, 255, .08 );
}

.gt-vc-lb-desc-text {
    margin: 0;
    color: rgba( 255, 255, 255, .75 );
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

.gt-vc-lb-desc-expanded .gt-vc-lb-desc-text {
    /* full text shown — no clamp */
}

.gt-vc-lb-read-more {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 6px 0 0;
    color: #00b2e3 !important;
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: inline;
    text-decoration: none;
    transition: text-decoration 0.15s;
}

.gt-vc-lb-read-more:hover {
    color: #00b2e3 !important;
    text-decoration: underline;
}

/* Prev / Next — flanking the modal box */
.gt-vc-lb-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var( --vc-blue );
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease;
    padding: 0;
}

.gt-vc-lb-nav:hover:not( :disabled ) {
    background: var( --vc-orange );
}

.gt-vc-lb-nav:disabled {
    background: #444;
    opacity: 0.35;
    cursor: default;
}

/* Prevent body scroll while lightbox is open */
body.gt-vc-lb-open {
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media ( max-width: 680px ) {
    .gt-vc-carousel {
        padding: 0 36px;
    }

    .gt-vc-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .gt-vc-lb-nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .gt-vc-lb-title {
        font-size: 13px;
    }
}

@media ( max-width: 480px ) {
    .gt-vc-lb-nav {
        display: none;
    }

    .gt-vc-lb-content {
        width: 98%;
    }
}
