/* ===== Gallery Modal Styles Only ===== */
.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 15000;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.gallery-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.img-counter {
    font-size: 0.9rem;
    color: #aaa;
    display: block;
    margin-top: 4px;
}

.gallery-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s;
    font-size: 1.5rem;
}

.gallery-close:hover {
    background: rgba(255,255,255,0.1);
}

.gallery-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.gallery-main-image {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-main-image img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

.gallery-caption {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.gallery-nav:hover {
    background: #d4a853;
    border-color: #d4a853;
}

.gallery-nav.prev { left: 30px; }
.gallery-nav.next { right: 30px; }

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
    background: rgba(0,0,0,0.8);
}

.gallery-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.gallery-thumbnails img.active,
.gallery-thumbnails img:hover {
    opacity: 1;
    border-color: #d4a853;
}

@media (max-width: 768px) {
    .gallery-nav.prev { left: 10px; }
    .gallery-nav.next { right: 10px; }
    .gallery-header { padding: 15px 20px; }
    .gallery-header h2 { font-size: 1.2rem; }
}