/* ─── Gallery Page Styles ───────────────────────────────── */

.hero-short {
    height: 60vh;
    min-height: 420px;
}

.gallery-section {
    padding: 80px 0 100px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

/* CSS Columns masonry */
.gallery-masonry {
    column-count: 4;
    column-gap: 14px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
}

.masonry-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 13, 11, 0);
    transition: background 0.35s ease;
    pointer-events: none;
}

.masonry-item:hover::after {
    background: rgba(14, 13, 11, 0.25);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: brightness(0.88) contrast(1.05);
}

.masonry-item:hover img {
    transform: scale(1.04);
    filter: brightness(1) contrast(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.93);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.lightbox.open {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid var(--border);
    color: var(--white);
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: background var(--transition), color var(--transition);
    z-index: 9001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold);
    color: #0e0d0b;
}

.lightbox-close {
    top: 20px;
    right: 24px;
    font-size: 1.6rem;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-masonry {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        column-count: 1;
    }
}