/* Стили для полноэкранного просмотра */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fullscreen-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.fullscreen-image-container {
    position: relative;
    width: 90%;
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    color: #333;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10000;
    padding: 0;
    line-height: 1;
}

.fullscreen-close:hover {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    transform: scale(1.1);
}

.fullscreen-controls {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 9999;
    pointer-events: none;
}

.fullscreen-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    color: #333;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    z-index: 10000;
    pointer-events: auto;
}

.fullscreen-nav-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    transform: scale(1.1);
}

.fullscreen-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.1);
    color: #999;
    transform: scale(1);
}

/* Стили для миниатюр в полноэкранном режиме */
.fullscreen-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    max-width: 90%;
    padding: 10px 0;
}

.fullscreen-thumbnail {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0.7;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.fullscreen-thumbnail.active {
    opacity: 1;
    border-color: #0078d4;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

.fullscreen-thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.fullscreen-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .fullscreen-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .fullscreen-controls {
        padding: 0 15px;
    }
    
    .fullscreen-close {
        top: 10px;
        right: 10px;
    }
    
    .fullscreen-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .fullscreen-thumbnails {
        gap: 8px;
    }
}