.gallery-img-alr {
    display: grid;
    gap: 16px;
}

/* ===== LAYOUT 1 ===== */
.gallery-img-alr.layout-1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Imagen 1 ocupa toda la fila */
.gallery-img-alr.layout-1 .item-1 {
    grid-column: 1 / -1;
}

/* Imagen 2 y 3 */
.gallery-img-alr.layout-1 .item-2 {
    grid-column: 1 / 2;
}

.gallery-img-alr.layout-1 .item-3 {
    grid-column: 2 / 3;
}

/* Columna derecha */
.gallery-img-alr.layout-1 .gallery-column-right {
    grid-column: 3 / 4;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

/* Estilos base */
.gallery-img-alr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* ===== LAYOUT 2 ===== */
.gallery-img-alr.layout-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* 1,4,7,10... ancho completo */
.gallery-img-alr.layout-2 .gallery-item:nth-child(3n + 1) {
    grid-column: 1 / -1;
}



/* ===== LIGHTBOX ===== */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* Botones */
.gallery-lightbox button {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-close {
    top: 20px;
    right: 30px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Quitar estilos por defecto del button */
.gallery-item .gallery-lightbox-trigger {
    width: inherit;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
}
