#gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#gallery-viewer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#gallery-viewer-title {
    color: #fff;
    font-size: 1.5rem;
    /* font-weight: 600; */
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

#gallery-viewer img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.gallery-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 20px;
}

#gallery-nav-left { left: 20px; }
#gallery-nav-right { right: 20px; }

.gallery-nav-btn:hover {
    color: #ccc;
}

#gallery-thumbs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(0,0,0,0.8);
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    z-index: 9999;
}

#gallery-thumbs img {
    height: 60px;
    width: auto;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

#gallery-thumbs img.active-thumb {
    opacity: 1;
    transform: scale(1.05);
    border: 2px solid white;
}
