:root {
    --color-heading: #598ca1;
    --color-body-bg: #F2F2F2;
    --color-body-text: #848181;
    --color-black: #000;
    --color-white: #fff;
    --color-controls-text: #333;
    --color-border: rgba(0, 0, 0, 0.15);
    --color-dot: rgba(0, 0, 0, 0.25);
    --color-dot-hover: rgba(0, 0, 0, 0.5);
    --color-btn-hover-bg: rgba(0, 0, 0, 0.08);

    --stuart: #a5a5a5;
    --colon: #598ca1;
    --pease: #848181;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    display: block;
}

header {
    padding: 20px;
    display: flex;
    
    line-height: 1.5;
    img {
        width: 214px;
        height: 68px;
    }
    
}

body {
    background-color: var(--color-body-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--color-body-text);
}


.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.carousel-container.fullscreen {
    max-width: none;
    height: 100vh;
    background: var(--color-black);
    display: flex;
    flex-direction: column;
}

.carousel-viewport {
    position: relative;
    overflow: hidden;
    height: 800px;
}

.carousel-container.fullscreen .carousel-viewport {
    flex: 1;
    width: 100%;
}

.carousel-strip {
    display: flex;
    height: 100%;
    transition: transform 500ms ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-black);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--color-heading);
    transition: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
    flex-wrap: wrap;
    max-width: 1024px;
    margin: 0 auto;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--color-dot);
    transition: all 300ms;
}

.carousel-dot:hover {
    background: var(--color-dot-hover);
}

.carousel-dot.active {
    background: var(--color-black);
    width: 32px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    max-width: 1024px;
    margin: 0 auto;
}

.carousel-controls button {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-controls-text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms, color 200ms;
    font-size: 20px;
    line-height: 1;
}

.carousel-controls button:hover {
    background: var(--color-btn-hover-bg);
    color: var(--color-black);
}

.interval-control {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-controls-text);
    font-size: 14px;
    margin-left: 8px;
}

.interval-control input {
    width: 48px;
    padding: 4px 6px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    background: var(--color-white);
}

.carousel-controls .fullscreen-btn {
    margin-left: 8px;
}

.carousel-controls svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#thumb-nails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 16px 0;
    max-width: 1024px;
    margin: 0 auto;
}

.thumb-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 200ms, border-color 200ms;
}

.thumb-img:hover {
    opacity: 1;
    border-color: var(--color-heading);
}

.hidden {
    display: none;
}