/* Zen Mode & Gesture Controls Styling */

/* ==================== LIGHTBOX NAVIGATION ARROWS ==================== */

.lightbox-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.lightbox:hover .lightbox-nav-arrow {
    opacity: 1;
}

.lightbox-nav-prev {
    left: 2rem;
}

.lightbox-nav-next {
    right: 2rem;
}

.lightbox-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-arrow svg {
    width: 24px;
    height: 24px;
}

/* ==================== ZEN MODE ==================== */

.zen-mode-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.zen-mode-container.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.zen-mode-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
}

.zen-mode-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.8s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.zen-mode-caption {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 80%;
    opacity: 0;
    transition: opacity 0.3s ease 0.3s;
    pointer-events: none;
}

.zen-mode-container.active .zen-mode-caption {
    opacity: 1;
}

.zen-mode-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.zen-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.zen-btn svg {
    width: 24px;
    height: 24px;
}

.zen-close {
    background: rgba(212, 160, 23, 0.2);
    border-color: rgba(212, 160, 23, 0.4);
}

.zen-close:hover {
    background: rgba(212, 160, 23, 0.4);
}

/* Zen mode trigger in lightbox */
.zen-mode-trigger {
    position: relative;
}

.zen-mode-trigger::after {
    content: 'Zen Mode';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.zen-mode-trigger:hover::after {
    opacity: 1;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .lightbox-nav-arrow {
        width: 44px;
        height: 44px;
    }

    .lightbox-nav-prev {
        left: 1rem;
    }

    .lightbox-nav-next {
        right: 1rem;
    }

    .zen-mode-image-wrapper {
        padding: 1rem;
    }

    .zen-mode-caption {
        bottom: 6rem;
        font-size: 1.2rem;
        max-width: 90%;
    }

    .zen-mode-controls {
        bottom: 1.5rem;
        gap: 0.75rem;
    }

    .zen-btn {
        width: 44px;
        height: 44px;
    }

    .zen-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) {
    .lightbox-nav-arrow {
        opacity: 0.7;
    }
}