.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-1);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-card img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-2);
}

.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: opacity 0.18s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 92%;
    max-height: 82%;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.lightbox .close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
