body { font-family: system-ui, sans-serif; }
.card { box-shadow: 0 10px 30px rgba(0,123,255,0.2); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.gallery-item {
    grid-column: span 6;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    text-align: left;
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transform: scale(1);
    transition: transform 240ms ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
    opacity: 0;
    transition: opacity 240ms ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: min(1100px, 92vw);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 28px;
    line-height: 38px;
    cursor: pointer;
}

.lightbox-caption {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    padding: 0 24px;
}

@media (max-width: 992px) {
    .gallery-item { grid-column: span 12; }
}