/* ===== GALLERY HERO ===== */
.gallery-hero {
    padding: 10rem 2rem 3rem;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05) 0%, rgba(0, 128, 255, 0.05) 100%);
    text-align: center;
}

.gallery-hero-content h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.gallery-subtitle {
    font-size: 1.3rem;
    color: var(--gray-medium);
}

/* ===== GALLERY MOSAIC ===== */
.mono-gallery {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.mono-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 340px;
    gap: 1.5rem;
    padding: 0 2rem;
}

.artwork-block {
    animation: fadeInUp 0.6s ease;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.artwork-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Images carrées occupent 1x1 */
.artwork-block.square {
    grid-row: span 1;
    grid-column: span 1;
}

/* Images rectangulaires verticales occupent 1x2 */
.artwork-block.tall {
    grid-row: span 2;
    grid-column: span 1;
}

.artwork-block img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px 15px 0 0;
}

/* Images carrées : taille fixe 280x280px */
.artwork-block.square img {
    height: 280px;
}

/* Images rectangulaires : hauteur flexible */
.artwork-block.tall img {
    height: 620px;
}

/* Image centrée avec contain pour l'écusson */
.artwork-block img.contain-img {
    object-fit: contain;
    padding: 1rem;
}

.artwork-block h3 {
    font-size: 1rem;
    color: var(--primary-color);
    padding: 0.8rem 0.5rem;
    text-align: center;
    background: var(--white);
    flex-shrink: 0;
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

/* ===== GALLERY FOOTER INFO ===== */
.gallery-footer-info {
    padding: 5rem 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

.gallery-footer-info .info-container {
    max-width: 900px;
    margin: 0 auto;
}

.gallery-footer-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.gallery-footer-info p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .gallery-hero-content h1 {
        font-size: 2.5rem;
    }

    .mono-gallery-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .artwork-block h3 {
        font-size: 1.2rem;
        padding: 1rem;
    }
}