body {
    background-color: #fff;
}

.gallery-page {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-back {
    display: inline-block;
    font-size: 20px;
    color: #111;
    text-decoration: none;
    margin-bottom: 30px;
    opacity: 0.35;
    transition: opacity 0.2s;
    letter-spacing: 0.05em;
}

.gallery-back:hover {
    opacity: 1;
}

.gallery-title {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #111;
    opacity: 1;
}

.gallery-grid {
    columns: 3;
    column-gap: 6px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 6px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.03);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.lightbox.active {
    display: flex;
}

.lightbox img,
.lightbox video {
    max-width: min(80vw, 900px);
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 32px;
    font-size: 28px;
    color: #111;
    opacity: 0.4;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-grid {
        columns: 2;
        column-gap: 4px;
    }

    .gallery-item {
        margin-bottom: 4px;
    }

    .lightbox img,
    .lightbox video {
        max-width: 95vw;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        columns: 2;
    }
}
