.full-gallery-section {
    min-height: 100vh;
    padding-top: 80px;
    background-color: var(--darker);
}

.gallery-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brass);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    gap: 15px;
    color: var(--light);
}

.full-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.97);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 95%;
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-image {
    max-width: 100%;
    max-height: 85vh; /* Увеличили с 70vh до 85vh */
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border: 2px solid var(--copper);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--brass);
    font-size: 45px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
    background: rgba(26, 24, 23, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--copper);
}

.close:hover,
.close:focus {
    color: var(--light);
    background: var(--copper);
    transform: scale(1.1);
}

/* Навигационные кнопки */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 24, 23, 0.9);
    color: var(--brass);
    border: 2px solid var(--copper);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.nav-btn:hover {
    background: var(--copper);
    color: var(--darker);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 20px rgba(184, 115, 51, 0.6);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* Информация в модальном окне */
.modal-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    background: rgba(26, 24, 23, 0.9);
    padding: 1.5rem;
    border-top: 2px solid var(--copper);
    backdrop-filter: blur(10px);
}

.modal-caption h3 {
    color: var(--brass);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.file-name {
    font-size: 1rem;
    color: var(--accent);
    font-family: monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Улучшенная адаптивность */
@media (max-width: 1200px) {
    .modal-content {
        width: 98%;
        height: 97vh;
    }
    
    .modal-image {
        max-height: 80vh;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        padding: 0;
    }
    
    .modal-image {
        max-height: 75vh;
        max-width: 95%;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 35px;
        width: 40px;
        height: 40px;
    }
    
    .modal-info {
        padding: 1rem;
    }
    
    .modal-caption h3 {
        font-size: 1.4rem;
    }
    
    .file-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .modal-image {
        max-height: 70vh;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-caption h3 {
        font-size: 1.2rem;
    }
    
    .file-name {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }
}