/* ====================================================
   CUSTOM CSS - Carlota del Pilar Pereyra Rey
   Estilos complementarios - Paleta Ciencia & Recursos Hídricos
   ==================================================== */

:root {
    --navy: #0f283d;
    --navy-light: #1a3c5a;
    --navy-dark: #081726;
    --teal: #0d9488;
    --teal-light: #14b8a6;
    --teal-soft: #f0fdfa;
    --ocean: #0284c7;
    --emerald: #10b981;
}

/* ---- GALLERY MASONRY LAYOUT ---- */
#gallery-container {
    column-count: 1;
    column-gap: 1.25rem;
}

@media (min-width: 640px) {
    #gallery-container {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    #gallery-container {
        column-count: 3;
    }
}

@media (min-width: 1280px) {
    #gallery-container {
        column-count: 4;
    }
}

/* Evitar que las tarjetas de galería se partan entre columnas */
#gallery-container > div {
    break-inside: avoid;
    margin-bottom: 1.25rem;
}

/* ---- LIGHTBOX CONTENT SIZING ---- */
#lightbox-content-container img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 0.75rem;
}

#lightbox-content-container iframe {
    border-radius: 0.75rem;
}

/* ---- GALLERY CARD COMPACT HEIGHTS ---- */
.gallery-card-media img {
    height: 13rem;
    object-fit: cover;
    width: 100%;
    display: block;
}

/* ---- PDF card styling ---- */
.gallery-card-pdf {
    background: linear-gradient(135deg, #ffffff, #f0fdfa);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card-pdf:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(15, 40, 61, 0.12);
}

/* ---- ANIMACIONES ---- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(13, 148, 136, 0.2); }
    50% { box-shadow: 0 0 30px rgba(13, 148, 136, 0.4); }
}

.animate-pulseGlow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-25px, 25px) scale(0.9); }
}

.animate-blob {
    animation: blob 8s infinite ease-in-out;
}
