/* ========================================================
   HOTEL MINI CITY – GALLERY.CSS
   ======================================================== */

/* ── Hero header ── */
.gal-hero {
    background: linear-gradient(135deg, #3e2a1c 0%, #2a1a0e 100%);
    padding: clamp(56px, 9vw, 100px) clamp(20px, 5vw, 60px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201,160,122,0.18) 0%, transparent 65%);
    pointer-events: none;
}

.gal-hero-content { position: relative; z-index: 1; }

.gal-eyebrow {
    font-family: 'CaviarDreams', serif;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #c9a07a;
    margin: 0 0 12px;
}

.gal-title {
    font-family: 'CaviarDreams', serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    -webkit-text-stroke: 0.5px #fff;
    margin: 0 0 16px;
    line-height: 1.1;
}

.gal-sub {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
    letter-spacing: 0.3px;
    padding: 0 20px;
}
@media(max-width:1000px) {
    .gal-sub {
        text-align: start
    }
}

/* ── Masonry grid ── */
.gal-grid {
    columns: 4;
    column-gap: 10px;
    padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 52px);
    max-width: 1600px;
    margin: 0 auto;
}

.gal-item {
    display: block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 10px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.gal-item img {
    width: 100%;
    display: block;
    border-radius: 6px;
    transition: transform 0.45s ease, filter 0.35s ease;
}

.gal-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: background 0.35s, opacity 0.35s;
    border-radius: 6px;
}

.gal-item-overlay img {
    width: clamp(60px, 8vw, 100px);
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: transform 0.3s ease;
}

.gal-item:hover img.gal-thumb {
    transform: scale(1.05);
    filter: brightness(0.65);
}

.gal-item:hover .gal-item-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.28);
}

.gal-item:hover .gal-item-overlay img {
    transform: scale(1.08);
}

/* ── Empty state ── */
.gal-empty {
    text-align: center;
    padding: 80px 20px;
    color: #997a61;
    font-family: 'CaviarDreams', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── Lightbox ── */
.gal-lb {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 11000;
    align-items: center;
    justify-content: center;
}

.gal-lb.open { display: flex; }

.gal-lb-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 60px rgba(0,0,0,0.7);
    animation: galLbIn 0.25s ease;
}

@keyframes galLbIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

.gal-lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    z-index: 1;
}
.gal-lb-close:hover { opacity: 0.7; }

.gal-lb-prev,
.gal-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    outline: none;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    z-index: 1;
}
.gal-lb-prev:hover,
.gal-lb-next:hover { opacity: 0.7; }
.gal-lb-prev { left: 20px; }
.gal-lb-next { right: 20px; }

@media (max-width: 1024px) {
    .gal-lb-prev,
    .gal-lb-next { display: none; }
}

.gal-lb-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-family: 'CaviarDreams', serif;
    font-size: 13px;
    letter-spacing: 3px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .gal-grid { columns: 3; }
}

@media (max-width: 700px) {
    .gal-grid { columns: 2; 
                padding: 10px 10px 100px 10px;
    }
}

@media (max-width: 420px) {
    .gal-grid { columns: 2; column-gap: 6px; }
    .gal-item { margin-bottom: 6px; }
    .gal-lb-prev { left: 8px; }
    .gal-lb-next { right: 8px; }
}
