/* =============================================
   AVASA - GALLERY SECTION
   ============================================= */

.gallery-section {
    background-color: var(--avasa-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 12px;
}

/* Masonry-style layout */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(4) {
    grid-column: span 2;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    min-height: 200px;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.8);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-family: var(--avasa-font-primary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: lightboxFadeIn 0.3s ease forwards;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--avasa-radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-title {
    display: block;
    text-align: center;
    color: var(--avasa-white);
    font-family: var(--avasa-font-secondary);
    font-size: var(--avasa-font-lg);
    margin-top: var(--avasa-space-lg);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--avasa-white);
    cursor: pointer;
    transition: all var(--avasa-transition-base);
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--avasa-gold);
    transform: rotate(90deg);
}