/* ═══════════════════════════════════════════════════════════════
   Akwaba Gallery — Frontend CSS v1.1
   CSS minimo: il layout è gestito con stili inline dallo shortcode
   per evitare conflitti con il tema. Qui solo animazioni e lightbox.
═══════════════════════════════════════════════════════════════ */

/* ── Placeholder colore mentre l'immagine non è ancora caricata ── */
img.ag-lazy-img {
    background: #e8e2d9;
    /* mantiene lo spazio con aspect-ratio (impostato inline) */
}

/* ── Animazione entrata ──────────────────────────────────────── */
.akwaba-masonry-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    /* transition-delay impostato via JS */
}

.akwaba-masonry-item.ag-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hover leggero sulle immagini ────────────────────────────── */
.akwaba-masonry-item img {
    transition: transform 0.3s ease;
}

.akwaba-masonry-item:hover img {
    transform: scale(1.03);
}

/* ── Responsive colonne ──────────────────────────────────────── */
@media (max-width: 600px) {
    .akwaba-gallery-wrap {
        column-count: 2 !important;
    }
}

@media (max-width: 380px) {
    .akwaba-gallery-wrap {
        column-count: 1 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX (solo se lightbox="yes")
═══════════════════════════════════════════════════════════════ */
.akwaba-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(8, 6, 4, 0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(6px);
}

.akwaba-lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}

.akwaba-lb-content {
    max-width: min(90vw, 1200px);
    max-height: 90vh;
}

.akwaba-lb-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.akwaba-lb-close,
.akwaba-lb-prev,
.akwaba-lb-next {
    position: fixed;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
}

.akwaba-lb-close:hover,
.akwaba-lb-prev:hover,
.akwaba-lb-next:hover {
    background: rgba(255,255,255,0.25);
}

.akwaba-lb-close {
    top: 1rem; right: 1rem;
    width: 42px; height: 42px;
    border-radius: 50%;
    font-size: 1.4rem;
}

.akwaba-lb-prev, .akwaba-lb-next {
    top: 50%; transform: translateY(-50%);
    width: 46px; height: 60px;
    font-size: 1.2rem;
}

.akwaba-lb-prev { left: 0.75rem; border-radius: 0 6px 6px 0; }
.akwaba-lb-next { right: 0.75rem; border-radius: 6px 0 0 6px; }
