/* =========================
   GALLERY
========================= */

.gallery-intro {
    max-width: 600px;
    margin-bottom: 60px;
}

/* GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ITEMS */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* LARGE FEATURE */
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* IMAGE */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 1s ease, filter 0.6s ease;
    filter: brightness(0.8);
}

/* HOVER */
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

/* OVERLAY */
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 0;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.95);
    transition: transform 0.5s ease;
}

.lightbox.active img {
    transform: scale(1);
}

/* Close */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}