/**
 * Photo Viewer Styles
 * 
 * Popup viewer for displaying photos in full size
 */

.photo-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photo-viewer.is-open {
    opacity: 1;
    visibility: visible;
}

.photo-viewer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.photo-viewer__container {
    position: relative;
    width: 90%;
    max-width: 90%;
    height: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(122, 166, 255, 0.4);
    border-radius: 12px;
    box-shadow: 
        0 0 0 1px rgba(122, 166, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 0 40px rgba(122, 166, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.photo-viewer__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.photo-viewer__close:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.photo-viewer__close:active {
    transform: scale(0.95);
}

.photo-viewer__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.photo-viewer__nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.photo-viewer__nav:active {
    transform: translateY(-50%) scale(0.95);
}

.photo-viewer__nav--prev {
    left: 20px;
}

.photo-viewer__nav--next {
    right: 20px;
}

.photo-viewer__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.photo-viewer__nav:disabled:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%);
}

.photo-viewer__image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    cursor: pointer;
}

.photo-viewer__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* Responsive */
@media (max-width: 767px) {
    .photo-viewer__container {
        width: 95%;
        max-width: 95%;
        height: 85%;
        max-height: 85%;
        padding: 30px 15px;
        border-width: 1.5px;
        border-radius: 8px;
    }
    
    .photo-viewer__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .photo-viewer__nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .photo-viewer__nav--prev {
        left: 10px;
    }
    
    .photo-viewer__nav--next {
        right: 10px;
    }
}

