/**
 * VIA OPERA - Gallery Page Styles
 * Styles spécifiques à la page galerie
 */

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-section {
    background-color: var(--color-white);
    padding: var(--spacing-xs);
}

.gallery-title {
    font-family: var(--font-heading-primary);
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-black);
    margin-top: 20vh;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.02em;
}

.gallery-title-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    margin: 0 auto var(--spacing-xxl);
}

.gallery-grid {
    column-count: 2;
    margin: 0 auto;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 2vh;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-black);
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Overlay doré au hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Caption (caché) */
.gallery-caption {
    display: none;
}

.gallery-empty {
    text-align: center;
    font-family: var(--font-body-primary);
    font-size: 1.2rem;
    color: var(--color-grey);
    padding: var(--spacing-xl);
}

/* ============================================
   TABLETTE (≥ 768px)
   ============================================ */

@media (min-width: 768px) {
    .gallery-section {
        padding: var(--spacing-xxxl) var(--spacing-lg);
    }

    .gallery-title {
        font-size: 3rem;
        margin-top: 0;
    }

    .gallery-grid {
        column-count: 2;
    }
}

/* ============================================
   DESKTOP (≥ 1050px)
   ============================================ */

@media (min-width: 1050px) {
    .gallery-section {
        padding: var(--spacing-xxxl) var(--spacing-xxl);
    }

    .gallery-grid {
        column-count: 3;
    }
}

/* ============================================
   TRÈS GRAND ÉCRAN (≥ 1400px)
   ============================================ */

@media (min-width: 1400px) {
    .gallery-grid {
        column-count: 4;
    }
}

