/* Стили галереи фотографий академии */

/* Основная секция галереи */
.academy-gallery-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 2rem;
}

.gallery-section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
}

.gallery-header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.gallery-header-text h3 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.gallery-header-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Сетка галереи - ОСНОВНОЕ ПРАВИЛО для десктопа */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Элементы галереи */
.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 16/10;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.gallery-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image-container img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay-content h4 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.gallery-overlay-content p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.gallery-zoom-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.gallery-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gallery-zoom-btn:hover svg path {
    fill: #fff;
}

/* АДАПТИВНОСТЬ */

/* Для больших планшетов и маленьких десктопов */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-item {
        aspect-ratio: 16/11;
    }
}

/* Для планшетов */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-item {
        aspect-ratio: 16/10;
    }
    
    .gallery-section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 2rem 1rem;
    }
    
    .gallery-header-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .gallery-header-text h3 {
        font-size: 1.7rem;
    }
    
    .gallery-header-text p {
        font-size: 1rem;
    }
}

/* Для больших мобильных */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item {
        aspect-ratio: 1/1;
    }
    
    .gallery-section-header {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .gallery-header-text h3 {
        font-size: 1.5rem;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
    
    .gallery-overlay-content h4 {
        font-size: 1.1rem;
    }
    
    .gallery-overlay-content p {
        font-size: 0.9rem;
    }
    
    .gallery-zoom-btn {
        width: 40px;
        height: 40px;
    }
}

/* Для маленьких мобильных */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .gallery-item {
        aspect-ratio: 16/12;
        max-height: 250px;
    }
    
    .gallery-section-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .gallery-header-icon {
        width: 40px;
        height: 40px;
    }
    
    .gallery-header-text h3 {
        font-size: 1.3rem;
    }
    
    .gallery-header-text p {
        font-size: 0.9rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .gallery-grid {
        gap: 0.6rem;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
    }
} 