/* ── GLASS CONTAINER ── */
.glass-section-gallery {
    max-width: 1400px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 20px;
    background: rgba(15,15,15,0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* ── FILTER BUTTONS ── */
.filter-container-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}
.filter-btn-gallery {
    background: transparent;
    border: 1px solid #c5a059;
    color: #fff;
    padding: 9px 22px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.25s, color 0.25s;
}
.filter-btn-gallery.active,
.filter-btn-gallery:hover {
    background: #c5a059;
    color: #000;
}

/* ── MASONRY GRID ── */
.gallery-grid-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;        /* lets each cell hug its image height */
}
@media (max-width: 992px) { .gallery-grid-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .gallery-grid-gallery { grid-template-columns: 1fr; } }

/* ── EACH ITEM ── */
.gallery-item-gallery {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Shimmer while loading */
.gallery-item-gallery.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    z-index: 10;
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* Gold border on hover */
/* Sun glare on hover */
.gallery-item-gallery::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 220, 100, 0.38) 0%,
        rgba(197, 160, 89, 0.18) 30%,
        rgba(197, 160, 89, 0.06) 55%,
        transparent 70%
    );
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.45s ease, transform 0.45s ease;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
}
.gallery-item-gallery:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* ── IMAGE — full height, never crop ── */
.gallery-item-gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #111;
    transition: transform 0.6s cubic-bezier(.25,1,.5,1), filter 0.5s ease;
}

/* Blur placeholder */
.blur-img {
    filter: blur(16px);
    opacity: 0.75;
    transition: filter 0.5s ease, opacity 0.5s ease;
}
.blur-img.loaded {
    filter: blur(0);
    opacity: 1;
}

/* ── HOVER ── */
.gallery-item-gallery:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.55); }
.gallery-item-gallery:hover img { transform: scale(1.06); filter: brightness(1.05); }

/* ── OVERLAY ── */
.gallery-overlay-gallery {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 3;
}
.gallery-item-gallery:hover .gallery-overlay-gallery { opacity: 1; transform: translateY(0); }
.gallery-overlay-gallery span { color: #D4AF37; font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; }
.gallery-overlay-gallery i { color: #fff; font-size: 17px; opacity: 0.85; }















/* ── LIGHTBOX ── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    flex-direction: column;
    gap: 16px;
}
.lightbox.active { display: flex; }
.lightbox-close {
    position: absolute;
    top: 22px; right: 28px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
#lightbox-img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
#lightbox-caption { color: rgba(255,255,255,0.6); font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase; text-align: center; }

/* ── MOBILE ── */
@media (max-width: 768px) {
    .gallery-item-gallery:hover { transform: none; box-shadow: none; }
    .gallery-item-gallery:hover img { transform: none; filter: none; }
    .gallery-overlay-gallery { display: none; }
    .gallery-grid-gallery { column-gap: 10px; }
    .gallery-item-gallery { margin-bottom: 10px; }
}