/* ========================================
   Fullscreen Gallery Styles
   ======================================== */
.fs-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fs-gallery-overlay.active {
    display: flex;
}

.fs-gallery-image {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

.fs-gallery-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

.fs-gallery-btn {
    background: #9b4dca;
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
    font-family: inherit;
}

.fs-gallery-btn:hover {
    opacity: 0.85;
}

.fs-gallery-btn.active {
    background: #28a745;
}

.fs-gallery-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-gallery-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fs-gallery-counter {
    color: #fff;
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
}

.fs-gallery-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1.2rem;
}

.fs-gallery-timer select {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1.2rem;
}

.fs-gallery-timer select option {
    background: #333;
    color: #fff;
}

.fs-gallery-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #9b4dca;
    transition: width 0.1s linear;
}

/* Touch hint */
.fs-gallery-hint {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Navigation arrows (side) */
.fs-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    width: 5rem;
    height: 8rem;
    cursor: pointer;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.fs-gallery-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fs-gallery-nav.prev {
    left: 1rem;
    border-radius: 4px;
}

.fs-gallery-nav.next {
    right: 1rem;
    border-radius: 4px;
}

/* Fullscreen trigger button */
.fs-gallery-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .fs-gallery-controls {
        bottom: 1rem;
        gap: 0.5rem;
        padding: 0.8rem;
    }

    .fs-gallery-btn {
        padding: 0.8rem 1rem;
        font-size: 1.2rem;
    }

    .fs-gallery-nav {
        width: 4rem;
        height: 6rem;
        font-size: 2rem;
    }

    .fs-gallery-image {
        max-height: 60vh;
    }
}
