:root {
    --design-accent: #ffb300;
    --design-accent-soft: rgba(255, 179, 0, 0.18);
    --design-panel: #23252b;
    --design-line: #3a3d45;
}

.design-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.main-header h1 {
    color: var(--design-accent);
}

.site-nav a[aria-current="page"] {
    border-bottom-color: var(--design-accent);
}

.photo-strip {
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--design-line);
    border-bottom: 1px solid var(--design-line);
    padding: 1rem 0;
}

.photo-strip__track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: strip-scroll 60s linear infinite;
}

@keyframes strip-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.photo-strip__track img {
    height: 240px;
    width: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid var(--design-line);
    object-fit: cover;
}

.photo-strip:hover .photo-strip__track {
    animation-play-state: paused;
}

.photo-band {
    height: 220px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    border: 1px solid var(--design-line);
}

.photo-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.design-series {
    background: var(--design-panel);
    border: 1px solid var(--design-line);
    border-radius: 10px;
    padding: 1.5rem;
}

.design-series h2 {
    font-family: 'VT323', monospace;
    color: var(--design-accent);
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.series-caption {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: #b8bdc6;
    margin-bottom: 1.25rem;
}

.carousel__stage {
    position: relative;
    background: #16171b;
    border: 1px solid var(--design-line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    height: min(70vh, 560px);
    overflow: hidden;
}

.carousel__stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid var(--design-line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}

.carousel__btn:hover {
    background: var(--design-accent-soft);
    color: var(--design-accent);
}

.carousel__btn--prev {
    left: 0.75rem;
}

.carousel__btn--next {
    right: 0.75rem;
}

.carousel__meta {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: #9aa0a6;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    z-index: 2;
}

.carousel__thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.25rem;
}

.carousel__thumbs button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.carousel__thumbs button img {
    width: 84px;
    height: 56px;
    object-fit: cover;
    display: block;
}

.carousel__thumbs button[aria-current="true"] {
    opacity: 1;
    border-color: var(--design-accent);
}

.design-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.design-lightbox[data-open="true"] {
    display: flex;
}

.design-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid var(--design-line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}

.lightbox__close:hover {
    background: var(--design-accent-soft);
    color: var(--design-accent);
}

.lightbox__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid var(--design-line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}

.lightbox__btn:hover {
    background: var(--design-accent-soft);
    color: var(--design-accent);
}

.lightbox__btn--prev {
    left: 0.75rem;
}

.lightbox__btn--next {
    right: 0.75rem;
}

.lightbox__counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #9aa0a6;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    padding: 0.2rem 0.75rem;
    z-index: 2;
}

body.lightbox-open {
    overflow: hidden;
}

.site-nav a:focus-visible,
.carousel__btn:focus-visible,
.carousel__thumbs button:focus-visible,
.carousel__stage img:focus-visible,
.lightbox__close:focus-visible,
.lightbox__btn:focus-visible {
    outline: 2px solid var(--design-accent);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .photo-strip__track img {
        height: 150px;
    }

    .photo-band {
        height: 140px;
    }

    .carousel__stage {
        min-height: 240px;
        height: 55vh;
    }

    .carousel__thumbs button img {
        width: 64px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .photo-strip__track {
        animation: none;
    }

    .photo-strip {
        overflow-x: auto;
    }
}
