﻿:root {
    --ui-bg: rgba(17, 24, 39, 0.65); /* #111827 ~ slate-900 with alpha */
    --ui-fg: #ffffff;
    --dot: #d1d5db;
    --dot-active: #ffffff;
    --btn-bg: rgba(0,0,0,0.55);
    --btn-fg: #ffffff;
    --btn-bg-hover: rgba(0,0,0,0.75);
    color-scheme: dark light;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    font: 14px/23px "Cantarell", sans-serif;
    color: #ffffff;
    /* background: #000;*/ /* makes image edges look clean on load */
    /*font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji","Segoe UI Emoji";*/
}

/* Full viewport; use modern dynamic viewport units with fallback */
.carousel {
    position: relative;
    width: 100vw;
    height: 100svh; /* modern mobile browsers */
    min-height: 100vh; /* fallback */
    overflow: hidden;
    background: #000;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    user-select: none;
}

.carousel-track {
    display: flex;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 400ms ease;
    will-change: transform; /* hint GPU accel */
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        transition: none;
    }
}

.slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
    background: #111;
}

    .slide img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover; /* crop different sizes nicely */
        background: #111; /* placeholder bg while decoding */
    }

    /* Optional caption overlay */
    .slide figcaption {
        position: absolute;
        left: 1rem;
        bottom: 1rem;
        padding: .5rem .75rem;
        border-radius: .5rem;
        background: var(--ui-bg);
        color: var(--ui-fg);
        font-size: 0.95rem;
        line-height: 1.2;
        max-width: min(90vw, 50ch);
        backdrop-filter: blur(4px);
    }

h1 {
    color: #efecec;
    text-transform: uppercase;
    font-size: 36px;
    line-height: 25px;
    font-weight: 400;
    margin-top: 10px;
}


.numbered {
    list-style-type:decimal; /* changes bullets to numbers */
    padding-left: 5rem;
}

.numbered ul{
    list-style-type: lower-alpha; /* changes bullets to numbers */
    padding-left: 5rem;
}


/*body h1 {
    font-size: 18px;
    line-height: 23px;
}*/
/* Persistent overlay that stays on top of all slides */
.overlay {
    position: absolute;
    inset: 0; /* cover full carousel */
    display: flex;
    align-items: center; /* center vertically; change to 'flex-end' for bottom */
    z-index: 2; /* above slides, below controls if you want */
    pointer-events: none; /* allow clicks through except for inner focusables */
}

.overlay-inner {
    pointer-events: auto; /* allow interaction with overlay content */
    margin: 0 auto;
    width: min(1100px, 92vw);
    padding: clamp(12px, 2.5vw, 32px);
    /* layout: text left, leave right side clean */
    display: grid;
    gap: 1rem;
}

/*.overlay h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
    text-wrap: balance;
    text-shadow: 0 2px 16px rgba(0,0,0,.45);
}*/

.overlay p {
    margin: 0;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    max-width: 60ch;
    color: #f3f4f6;
    text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

.overlay .cta-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .05rem;
}

.overlay .btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: none;
    border-radius: .75rem;
    cursor: pointer;
    padding: .7rem 1rem;
    background: #f6681f;
    color: var(--btn-fg);
    text-decoration: none;
    font-weight: 600;
    transition: background-color .2s ease;
}

    .overlay .btn:hover {
        background: var(--btn-bg-hover);
    }

    .overlay .btn.secondary {
        background: rgba(255,255,255,.08);
        color: #fff;
    }

    .overlay .btn-primary {
        background: rgba(221, 114, 52, 0.08);
        color: #fff;
    }


/* Controls (Prev/Next) */
.controls {
    position: absolute;
    inset: auto 0 2.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    pointer-events: none; /* allow gaps not to block clicks */
}

    .controls button {
        pointer-events: auto;
        border: none;
        background: var(--btn-bg);
        color: var(--btn-fg);
        padding: .6rem .9rem;
        border-radius: .75rem;
        cursor: pointer;
        font-size: 1rem;
        line-height: 1;
    }

        .controls button:hover {
            background: var(--btn-bg-hover);
        }

        .controls button:disabled {
            opacity: .5;
            cursor: not-allowed;
        }

/* Dots / Pagination */
.dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .75rem;
    display: flex;
    gap: .5rem;
    justify-content: center;
    align-items: center;
}

    .dots button {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: none;
        background: var(--dot);
        cursor: pointer;
        padding: 0;
    }

        .dots button[aria-selected="true"] {
            background: var(--dot-active);
            outline: 2px solid rgba(255,255,255,.35);
            outline-offset: 2px;
        }

        .dots button:focus-visible {
            outline: 2px solid #fff;
            outline-offset: 2px;
        }

/* A subtle gradient at bottom to increase contrast for controls on bright images */
.bottom-fade {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6rem;
    background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0));
    pointer-events: none;
}

/* Visually hidden utility for screen reader only content */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    clip-path: inset(50%);
    border: 0;
    padding: 0;
    margin: -1px;
}
