/* ── Galería Masonry ARGOS ───────────────────────────────── */

.argos-gallery {
    /* Masonry trabaja con posicionamiento absoluto,
       necesitamos que el contenedor tenga posición relativa */
    position: relative;
}

/* El sizer define el ancho de cada columna */
.argos-gallery-sizer,
.argos-gallery-item {
    width: calc(100% / var(--argos-cols, 3));
    box-sizing: border-box;
}

/* Columnas responsivas mediante custom property */
.argos-gallery-cols-1 { --argos-cols: 1; }
.argos-gallery-cols-2 { --argos-cols: 2; }
.argos-gallery-cols-3 { --argos-cols: 3; }
.argos-gallery-cols-4 { --argos-cols: 4; }

@media (max-width: 1024px) {
    .argos-gallery-cols-3,
    .argos-gallery-cols-4 { --argos-cols: 2; }
}

@media (max-width: 767px) {
    .argos-gallery-cols-2,
    .argos-gallery-cols-3,
    .argos-gallery-cols-4 { --argos-cols: 1; }
}

/* Figura */
.argos-gallery-figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    display: block;
    line-height: 0; /* evita espacio extra bajo la imagen */
}

.argos-gallery-figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.argos-gallery-figure:hover img {
    transform: scale(1.03);
}

/* Leyenda superpuesta */
.argos-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    font-size: 0.85rem;
    line-height: 1.3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.argos-gallery-figure:hover .argos-gallery-caption {
    opacity: 1;
}

/* Enlace sin decoración */
.argos-gallery-item a {
    display: block;
    text-decoration: none;
}