/* Grille */
.astrachild-flp-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1600px !important;
    width: 100%;
    padding: 40px;
    justify-self: center;

}

.astrachild-flp-album-actions {
    text-align: center;
    margin-top: 20px;
	margin-bottom:100px;
}

.astrachild-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.astrachild-flp-album-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.astrachild-flp-album-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    filter: blur(20px);
    transition: filter 0.5s ease;
}

.astrachild-flp-album-img.loaded {
    filter: blur(0);
    /* devient net quand chargé */
}

.astrachild-flp-album-lightbox {
    display: none; 
	position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.85);
  
    cursor: zoom-out;
}


.astrachild-flp-album-lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px #000;
}

.astrachild-flp-album-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

.astrachild-flp-album-empty {
    font-size: 1rem;
    color: #777;
    margin: 20px 0;
}

@media (max-width: 782px) {

    .astrachild-flp-album-grid {
        padding: 0;
        padding-top: 40px;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 650px) {

    .astrachild-flp-album-grid {

        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}