/* ===== Gallery Grid ===== */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.4s ease;
}

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

.gallery-caption {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 6px;
    color: #555;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: 0.3s;
}

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

/* ===== Modal Image ===== */
.gallery-modal-img {
    max-width: 100%;
    max-height: 80vh;
}

/* ===== Frames ===== */
.framed {
    padding: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.frame-rooms { background: #fff; }
.frame-lobby { background: #1a1a1a; padding: 10px; }
.frame-dining { background: #fdf7ec; border: 2px solid #c9a14a; }
.frame-exterior { background: #fff; }

/* ===== Caption ===== */
.polaroid-caption {
    background: #fff;
    padding: 8px 12px;
    font-style: italic;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ===== Modal Arrows ===== */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 8px 12px;
    cursor: pointer;
}

.gallery-nav.prev { left: -45px; }
.gallery-nav.next { right: -45px; }

@media (max-width: 768px) {
    .gallery-nav.prev { left: 5px; }
    .gallery-nav.next { right: 5px; }
}

/* ===== Filters ===== */
.filter-btn.active {
    background: #c9a14a;
    border-color: #c9a14a;
    color: #fff;
}

/* ===== Exhibition Mode ===== */
.exhibition-mode .gallery-nav,
.exhibition-mode .btn-close,
.exhibition-mode #fullscreenToggle,
.exhibition-mode #exhibitToggle {
    opacity: 0;
    pointer-events: none;
}
