﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=Playfair+Display:ital@0;1&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --accent: #e8d5b0;
    --dark: #111;
    --light: #f5f2ec;
    --radius: 0px;
    --delay: 2000;
}

.slider-container {
    width: 100%;
    max-width: 600px;
    display:table;
    margin-left:auto;
    margin-right:auto;
}

/* ── Viewport ── */
.slider-viewport {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    background: #000;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

    .slider-viewport:active {
        cursor: grabbing;
    }

/* ── Track ── */
.slider-track {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

    .slider-track.no-transition {
        transition: none;
    }

/* ── Slides ── */
.slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

    .slide img,
    .slide video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        pointer-events: none;
    }

/* ── Caption overlay ── */
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
    pointer-events: none;
}

.caption-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(232,213,176,.4);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.caption-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-style: italic;
    color: #fff;
    line-height: 1.3;
}

/* ── Video badge ── */
.video-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,.55);
    color: var(--accent);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(232,213,176,.3);
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

    .video-badge::before {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        border-left: 7px solid var(--accent);
    }

/* ── Prev / Next buttons ── */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: all;
}

    .arrow:hover {
        background: rgba(255,255,255,.22);
        transform: translateY(-50%) scale(1.08);
    }

    .arrow:active {
        transform: translateY(-50%) scale(0.96);
    }

.arrow-prev {
    left: 14px;
}

.arrow-next {
    right: 14px;
}

.arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Progress bar ── */
.progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,.15);
    z-index: 8;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
}

/* ── Bottom controls ── */
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 0 4px;
}

.counter {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    letter-spacing: .05em;
    min-width: 40px;
}

    .counter span {
        color: rgba(255,255,255,.85);
        font-weight: 500;
    }

.dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    border: none;
    cursor: pointer;
    transition: background .25s, transform .25s;
    padding: 0;
}

    .dot.active {
        background: var(--accent);
        transform: scale(1.4);
    }

    .dot:hover:not(.active) {
        background: rgba(255,255,255,.5);
    }

.play-btn {
    background: none;
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.6);
    font-size: 11px;
    letter-spacing: .08em;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s, border-color .2s;
    font-family: 'DM Sans', sans-serif;
}

    .play-btn:hover {
        color: var(--accent);
        border-color: rgba(232,213,176,.4);
    }

    .play-btn .icon {
        width: 10px;
        height: 10px;
        position: relative;
    }

        .play-btn .icon.playing::before,
        .play-btn .icon.playing::after {
            content: '';
            position: absolute;
            top: 0;
            width: 3px;
            height: 10px;
            background: currentColor;
            border-radius: 1px;
        }

        .play-btn .icon.playing::before {
            left: 0;
        }

        .play-btn .icon.playing::after {
            right: 0;
        }

        .play-btn .icon.paused::before {
            content: '';
            position: absolute;
            top: 0;
            left: 1px;
            width: 0;
            height: 0;
            border-top: 5px solid transparent;
            border-bottom: 5px solid transparent;
            border-left: 9px solid currentColor;
        }

/* ── Responsive ── */
@media (max-width: 480px) {
    .arrow {
        width: 36px;
        height: 36px;
    }

    .caption {
        padding: 2rem 1rem 1rem;
    }

    body {
        padding: 1rem .5rem;
    }
}
