.showcase-section {
    padding: clamp(4rem, 7vw, 6.5rem) clamp(1.25rem, 5vw, 4rem);
}

.showcase-layout {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.showcase-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
}

.showcase-viewport {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(79, 195, 247, 0.55);
    border-left: 4px solid var(--color-accent);
    border-radius: 4px;
    background: #080910;
    box-shadow: var(--shadow-medium);
}

.showcase-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 500ms ease;
    will-change: transform;
}

.showcase-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
}

.showcase-slide picture,
.showcase-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.showcase-slide img {
    object-fit: contain;
    background: #080910;
}

.showcase-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(8, 9, 16, 0.78);
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.showcase-navigation {
    display: contents;
}

.showcase-control:hover,
.showcase-control:focus-visible {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: #080910;
}

.showcase-control-prev {
    left: 1rem;
}

.showcase-control-next {
    right: 1rem;
}

.showcase-zoom {
    position: absolute;
    right: 1rem;
    bottom: 2.25rem;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(8, 9, 16, 0.82);
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.showcase-zoom:hover,
.showcase-zoom:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #080910;
}

.showcase-dots {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1rem;
}

.showcase-dot {
    width: 2rem;
    height: 0.25rem;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background-color 180ms ease;
}

.showcase-dot:hover,
.showcase-dot:focus-visible,
.showcase-dot.is-active {
    background: var(--color-accent);
}

.showcase-lightbox {
    width: min(96vw, 1500px);
    max-width: none;
    height: min(92vh, 1000px);
    max-height: none;
    padding: 3.5rem 1rem 1rem;
    border: 1px solid rgba(79, 195, 247, 0.55);
    border-radius: 4px;
    color: #ffffff;
    background: #080910;
}

.showcase-lightbox::backdrop {
    background: rgba(5, 6, 10, 0.92);
    backdrop-filter: blur(5px);
}

.showcase-lightbox img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.showcase-lightbox-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.showcase-lightbox-close:hover,
.showcase-lightbox-close:focus-visible {
    color: var(--color-primary);
}

@media (max-width: 599px) {
    .showcase-section {
        padding-inline: 0.55rem;
    }

    .showcase-carousel {
        display: flex;
        flex-direction: column;
    }

    .showcase-navigation {
        display: flex;
        justify-content: center;
        gap: 4.25rem;
        margin-bottom: 0.65rem;
        order: -1;
    }

    .showcase-control {
        position: static;
        width: 2rem;
        height: 2rem;
        transform: none;
        font-size: 0.85rem;
        background: rgba(8, 9, 16, 0.88);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(4px);
    }

    .showcase-zoom {
        right: 0.5rem;
        bottom: 1.9rem;
        width: 2.35rem;
        height: 2.35rem;
    }
}

@media (max-width: 380px) {
    .showcase-section {
        padding-inline: 0.3rem;
    }

    .showcase-control {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.75rem;
    }

    .showcase-zoom {
        right: 0.4rem;
        bottom: 0.4rem;
        width: 1.85rem;
        height: 1.85rem;
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-track,
    .showcase-control,
    .showcase-dot,
    .showcase-zoom {
        transition: none;
    }
}

/* Copyright RZU Informatique */
