/* TNG Fullscreen Slider — Frontend Styles */

/* ── Container ── */
.tngs {
    position: relative;
    width: 100%;
    /* height set by inline responsive style from shortcode */
    overflow: hidden;
    background: #000;
    z-index: 1;
}

/* ── Dark overlay ── */
.tngs-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── Dot pattern overlay (from Evenings template curtains.png) ── */
.tngs-dots {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: url('curtains.png') repeat top left;
    opacity: 1;
}

/* ── Slides wrapper ── */
.tngs-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ── Individual slide ── */
.tngs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity var(--tngs-speed, 1500ms) ease-in-out;
}
.tngs-slide.tngs-active {
    opacity: 1;
    z-index: 2;
}

/* ── Slide background image ── */
.tngs-slide-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}
/* <img>-based slide image (LCP-friendly, srcset-aware)
   !important needed to beat Astra's global `img { height: auto; max-width: 100% }` */
.tngs-slide-bg .tngs-slide-img,
img.tngs-slide-img {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    /* focal point comes from inline --tngs-pos-* vars; do not re-add object-position here */
    display: block !important;
    user-select: none;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Ken Burns zoom animation ── */
@keyframes tngsKenBurns1 {
    0%   { transform: scale(1)    translate(0, 0); }
    100% { transform: scale(1.12) translate(-1%, -0.5%); }
}
@keyframes tngsKenBurns2 {
    0%   { transform: scale(1)    translate(0, 0); }
    100% { transform: scale(1.10) translate(0.5%, -1%); }
}
@keyframes tngsKenBurns3 {
    0%   { transform: scale(1.08) translate(-0.5%, 0.5%); }
    100% { transform: scale(1)    translate(0, 0); }
}

.tngs-slide-bg.tngs-kb {
    animation-duration: var(--tngs-interval, 6000ms);
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
.tngs-kb.tngs-kb-1 { animation-name: tngsKenBurns1; }
.tngs-kb.tngs-kb-2 { animation-name: tngsKenBurns2; }
.tngs-kb.tngs-kb-3 { animation-name: tngsKenBurns3; }

/* ── Text overlay ── */
.tngs-text-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    padding: 80px 60px;
    z-index: 2;
    pointer-events: none;
}

.tngs-text {
    max-width: 700px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease .3s, transform .8s ease .3s;
}
.tngs-slide.tngs-active .tngs-text {
    opacity: 1;
    transform: translateY(0);
}

.tngs-title {
    font-family: 'EB Garamond', Georgia, serif !important;
    font-size: clamp(32px, 5.5vw, 72px) !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    letter-spacing: -0.01em !important;
    text-shadow: 0 2px 20px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4) !important;
    background: none !important;
    border: none !important;
}

.tngs-subtitle {
    font-family: 'Roboto', Helvetica, Arial, sans-serif !important;
    font-size: clamp(14px, 1.8vw, 20px) !important;
    font-weight: 300 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: .3px !important;
    text-shadow: 0 1px 10px rgba(0,0,0,.5) !important;
    background: none !important;
    border: none !important;
}

/* ── Progress bar ── */
.tngs-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,.15);
    z-index: 12;
}
.tngs-progress-bar {
    height: 100%;
    width: 0;
    background: rgba(255,255,255,.7);
    transition: none;
}
.tngs-progress-bar.tngs-animating {
    transition: width linear;
}

/* ── Controls ── */
.tngs-controls {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 12;
}
.tngs-ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    color: rgba(255,255,255,.8);
    cursor: pointer;
    transition: all .25s ease;
    outline: none;
    padding: 0;
}
.tngs-ctrl:hover {
    background: rgba(0,0,0,.5);
    border-color: rgba(255,255,255,.35);
    color: #fff;
    transform: scale(1.06);
}

/* ── Slide counter ── */
.tngs-counter {
    position: absolute;
    bottom: 36px;
    right: 48px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    color: rgba(255,255,255,.5);
    z-index: 12;
    user-select: none;
}
.tngs-current {
    color: rgba(255,255,255,.9);
    font-weight: 500;
}
.tngs-sep {
    margin: 0 4px;
    opacity: .4;
}

/* ── Preloader ── */
.tngs-preloader {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .6s ease;
}
.tngs-preloader.tngs-loaded {
    opacity: 0;
    pointer-events: none;
}
.tngs-preloader-ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,.1);
    border-top-color: rgba(255,255,255,.7);
    border-radius: 50%;
    animation: tngsPin 0.8s linear infinite;
}
@keyframes tngsPin {
    to { transform: rotate(360deg); }
}

/* ── Mobile adjustments ── */
@media (max-width: 768px) {
    .tngs-text-wrap {
        padding: 60px 28px;
    }
    .tngs-title {
        font-size: clamp(26px, 7vw, 44px);
    }
    .tngs-subtitle {
        font-size: clamp(13px, 3.5vw, 17px);
    }
    .tngs-controls {
        bottom: 20px;
    }
    .tngs-ctrl {
        width: 36px;
        height: 36px;
    }
    .tngs-counter {
        bottom: 24px;
        right: 24px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tngs-text-wrap {
        padding: 48px 20px;
    }
}

/* @project TNG Fullscreen Slider | @vendor oD | @ref scopecove.com | v1.0.0 */
