.mx_photo_album {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    padding: 20px 0;
}

.mx_photo_album_subalbum,
.mx_photo_album_image {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
        border: solid #fff 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mx_photo_album_subalbum::before,
.mx_photo_album_image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #0164a7, #9cdeef);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    
}
.mx_photo_album_subalbum::before,
.mx_photo_album_image::before {
    transform: scale(1.05);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mx_photo_album_subalbum:hover::before,
.mx_photo_album_image:hover::before {
    opacity: 0.6;
    transform: scale(1);
}

.mx_photo_album_subalbum::after,
.mx_photo_album_image::after {
    content: '\f002';
    font-family: 'Line Awesome Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 56px;
    color: #fff;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 11;
}

.mx_photo_album_subalbum:hover,
.mx_photo_album_image:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.mx_photo_album_subalbum:hover::before,
.mx_photo_album_image:hover::before {
   
}

.mx_photo_album_subalbum:hover::after,
.mx_photo_album_image:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.mx_photo_album_subalbum:active,
.mx_photo_album_image:active {
    transform: translateY(-4px);
}

.mx_photo_album_subalbum a,
.mx_photo_album_image a {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

.mx_photo_album_subalbum img,
.mx_photo_album_image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mx_photo_album_subalbum:hover img,
.mx_photo_album_image:hover img {
    transform: scale(1.05);
}

.mx_photo_album_subalbum span,
.mx_photo_album_image span {
    display: block;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #fff;
    position: relative;
}

/* Tablet: 3 kolommen */
@media screen and (max-width: 1200px) {
    .mx_photo_album {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .mx_photo_album_subalbum img,
    .mx_photo_album_image img {
        height: 220px;
    }
    
    .mx_photo_album_subalbum span,
    .mx_photo_album_image span {
        font-size: 16px;
        padding: 14px 16px;
    }
}

/* Tablet klein: 2 kolommen */
@media screen and (max-width: 768px) {
    .mx_photo_album {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .mx_photo_album_subalbum img,
    .mx_photo_album_image img {
        height: 200px;
    }
}

/* Mobiel: 2 kolommen (smaller gap) */
@media screen and (max-width: 640px) {
    .mx_photo_album {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px 0;
    }
    
    .mx_photo_album_subalbum,
    .mx_photo_album_image {
        border-radius: 12px;
    }
    
    .mx_photo_album_subalbum img,
    .mx_photo_album_image img {
        height: 160px;
    }
    
    .mx_photo_album_subalbum span,
    .mx_photo_album_image span {
        font-size: 14px;
        padding: 12px;
    }
    
    .mx_photo_album_subalbum:hover,
    .mx_photo_album_image:hover {
        transform: translateY(-4px);
    }
}

/* Extra klein mobiel: behoud 2 kolommen */
@media screen and (max-width: 480px) {
    .mx_photo_album {
        gap: 10px;
    }
    
    .mx_photo_album_subalbum img,
    .mx_photo_album_image img {
        height: 140px;
    }
}