.devos-gallery {
    background: var(--devos-groen-diep);
    color: var(--devos-beige);
    padding: 8rem 0 5rem;
}

@media (min-width: 768px) {
    .devos-gallery {
        padding: 11rem 0 7rem;
    }
}

.devos-gallery__header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .devos-gallery__header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.devos-gallery__heading {
    max-width: 36rem;
}

.devos-gallery .devos-eyebrow {
    color: var(--devos-oranje);
}

.devos-gallery .devos-section-title {
    margin-top: 1.75rem;
    color: var(--devos-beige);
}

.devos-gallery__counter {
    max-width: 24rem;
    color: color-mix(in oklab, var(--devos-beige) 70%, transparent);
}

.devos-gallery__images-edit {
    position: relative;
}

.devos-gallery__stage {
    margin-top: 3.5rem;
    position: relative;
    z-index: 1;
}

.devos-gallery__main {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    overflow: hidden;
}

.devos-gallery__main-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
    .devos-gallery__main-img {
        aspect-ratio: 16 / 9;
    }
}

.devos-gallery__main:hover .devos-gallery__main-img {
    transform: scale(1.02);
}

.devos-gallery__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.devos-gallery__thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.devos-gallery__thumb {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 6rem;
    height: 4rem;
    padding: 0;
    border: 1px solid color-mix(in oklab, var(--devos-beige) 15%, transparent);
    background: none;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 768px) {
    .devos-gallery__thumb {
        width: 8rem;
        height: 5rem;
    }
}

.devos-gallery__thumb.is-active {
    border-color: var(--devos-oranje);
    opacity: 1;
}

.devos-gallery__thumb:hover {
    opacity: 0.9;
}

.devos-gallery__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.devos-gallery__thumb:hover .devos-gallery__thumb-img {
    transform: scale(1.02);
}

.devos-gallery__arrows {
    display: none;
    flex-shrink: 0;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .devos-gallery__arrows {
        display: flex;
    }
}

.devos-gallery__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid color-mix(in oklab, var(--devos-beige) 25%, transparent);
    background: transparent;
    color: var(--devos-beige);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.devos-gallery__arrow:hover {
    background: var(--devos-beige);
    color: var(--devos-groen);
}

.devos-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in oklab, var(--devos-groen-nacht) 92%, transparent);
    padding: 2rem;
}

.devos-gallery-lightbox__img {
    max-width: min(90vw, 1200px);
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.devos-gallery-lightbox__close,
.devos-gallery-lightbox__prev,
.devos-gallery-lightbox__next {
    position: absolute;
    border: none;
    background: transparent;
    color: var(--devos-beige);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
}

.devos-gallery-lightbox__close { top: 1rem; right: 1.5rem; font-size: 2.5rem; }
.devos-gallery-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.devos-gallery-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

.devos-gallery-lightbox__counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: var(--devos-beige);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}
