/* CAROUSEL WRAPPER */

.photo-carousel-wrapper {
    position: relative;
    margin: 2rem 0;
}

/* CAROUSEL */

.photo-carousel {
    position: relative; 
    display: flex;
    gap: 1rem;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;

    padding-bottom: 0.5rem;
}

.photo-carousel::-webkit-scrollbar {
    display: none;
}

.photo-carousel img {
    flex: 0 0 auto;

    width: 75%;
    max-width: 320px;
    height: 35%;
    max-height: 426px;

    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;

    scroll-snap-align: start;
}

/* PIJLTJES (IMG)*/

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;
    border-radius: 50%;

    background: var(--lichtoranje);
    border: 3px solid var(--donkeroranje);

    display: none;                 
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 10;

    padding: 0;
    outline: none;
    touch-action: manipulation;
}

.carousel-btn img {
    width: 75%;
    height: auto;
    display: block;
    pointer-events: none; 
}

.carousel-btn.prev img {
    margin-left: -3px;
}

.carousel-btn.next img {
    margin-right: -3px;
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

/* mobile */
@media (max-width: 900px){
    .photo-carousel img {
        max-height: 350px;
    }
}

/* Alleen zichtbaar op desktop */
@media (min-width: 1024px) {
    .carousel-btn {
        display: flex;
    }
}

/* TELLER */

.carousel-counter {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    text-align: right;
}

/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.85);
    display: none;

    justify-content: center;
    align-items: center;

    z-index: 9999;
    padding: 2rem;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}
