.photo-albums .album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.album {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.album:hover {
    transform: scale(0.98);
}

.album .thumbnail {
    aspect-ratio: 3/2;
    background-size: cover;
    background-position: center;
    border-radius: 10px 10px 0 0;
    width: 100%;
}

.album-title {
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}


.photo-albums {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.photo-albums .album {
    flex: 1 1 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: .5s;
    padding: 10px;
}

.album:hover {
    scale: .95;
}

.album .thumbnail {
    width: 100%;
    background-position: top;
    background-repeat: no-repeat;
    background-size: auto 100%; /* Zorgt ervoor dat de afbeelding niet wordt vergroot, maar wel volledig zichtbaar is */
    border-radius: 10px;
    aspect-ratio: 3 / 2;
}

/* single page */

.thumbnail-container{
    width: 120px;
    max-height: 100%;
}

.thumbnail-container button {
    background-color: var(--primary-color);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    color: white;
    border: none;
    outline: none;
    margin: 20px 0;
}

.thumbnail-gallery {
    padding: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.thumbnail-gallery img {
    width: 100%;
    cursor: pointer;
    padding: 2px;
}

.gallery-main-container{
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-controls{
    width: 70%;
    height: 70px !important;
}

.gallery-controls button {
    background-color: var(--primary-color);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    color: white;
    border: none;
    outline: none;
}

.selected-photo-view {
    width: 100%;
    position: relative;
}

.selected-photo-view img {
    height: 100%;
    max-width: min(600px, 100%);
    transition: .5s ease;
    cursor: zoom-in;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.selected-photo-view img:hover {
    scale: 1.5;
    transform: translate(-25%, -25%);
}

.thumbnail-container img.selected {
    border: 5px solid var(--primary-color);
}

.album-main-container{
    height: 500px;
}

.thumbnail-img {
    width: 80px;
    height: auto;
    object-fit: cover;
    transition: transform 0.2s ease-in-out;
}

@media (max-width: 768px) {
    .thumbnail-img {
        width: 30vw; /* 3 thumbnails per rij */
        max-width: 100%;
    }
}


@media (max-width: 768px) {
    .album-main-container{
        flex-direction: column;
    }

    .thumbnail-container {
        width: 100%;
        height: 70px;

        flex-direction: row !important;
    }

    .thumbnail-gallery {
        flex-direction:  row !important;
        padding: 0 !important;
    }

    .thumbnail-gallery img {
        height: 100%;
        width: auto !important;
    }

    .selected-photo-view img:hover {
        scale: 1 !important;
        transform: translate(0%, 0%) !important;
    }
}

.selected-photo-view {
    max-height: 70vh;
    position: relative;
    overflow: hidden;
}

.selected-photo-view img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    pointer-events: none; /* voorkomt zoom/hover */
}

.gallery-controls {
    z-index: 10;
    position: relative;
}
