

/* Start:/local/components/main/gallery/templates/.default/style.css?17646723105849*/
/* Основные стили галереи */
.photo-gallery-container {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Карточка фотографии */
.photo-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #e9ecef;
    position: relative;
}

.photo-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.1) !important;
    border-color: #0d6efd;
}

.photo-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.photo-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 8px;
}

.photo-card:hover .photo-thumbnail {
    transform: scale(1.1);
}

.photo-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.photo-card:hover .photo-hover-overlay {
    opacity: 1;
}

.view-button {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.photo-card:hover .view-button {
    transform: translateY(0);
}

.photo-info {
    padding: 10px 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.photo-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Модальное окно */
.modal-dialog.modal-xl {
    max-width: 90vw;
    max-height: 90vh;
}

.modal-image-container {
    max-width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-photo {
    max-height: 60vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.photo-meta {
    max-width: 800px;
    padding: 0 20px;
}

#modalPhotoDescription {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    font-style: italic;
}

#modalPhotoAuthor {
    font-size: 1rem;
    font-weight: 500;
}

.modal-content {
    border-radius: 15px;
    overflow: hidden;
    min-height: 80vh;
}

/* Адаптивная сетка для 5 колонок */
@media (max-width: 576px) {
    .row-cols-2 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .photo-thumbnail-wrapper {
        aspect-ratio: 1/1;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .row-cols-sm-3 > .col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .photo-thumbnail {
        height: 180px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .row-cols-md-4 > .col {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .photo-thumbnail {
        height: 200px;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .row-cols-lg-5 > .col {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    .photo-thumbnail {
        height: 180px;
    }
}

@media (min-width: 1201px) {
    .row-cols-lg-5 > .col {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    .photo-thumbnail {
        height: 200px;
    }
}

/* Модальное окно - адаптивность */
@media (max-width: 1200px) {
    .modal-dialog.modal-xl {
        max-width: 95vw;
    }
}

@media (max-width: 768px) {
    .modal-dialog.modal-xl {
        max-width: 98vw;
        margin: 0.5rem;
    }
    
    .modal-photo {
        max-height: 50vh;
    }
    
    .modal-content {
        min-height: 70vh;
    }
}

@media (max-width: 576px) {
    .row-cols-2 > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .modal-photo {
        max-height: 45vh;
    }
    
    .photo-card {
        padding: 10px;
    }
    
    .photo-thumbnail {
        height: 220px;
    }
}

/* Плавная анимация загрузки */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.col {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Создаем задержку для каждой карточки */
.col:nth-child(1) { animation-delay: 0.1s; }
.col:nth-child(2) { animation-delay: 0.2s; }
.col:nth-child(3) { animation-delay: 0.3s; }
.col:nth-child(4) { animation-delay: 0.4s; }
.col:nth-child(5) { animation-delay: 0.5s; }
.col:nth-child(6) { animation-delay: 0.6s; }
.col:nth-child(7) { animation-delay: 0.7s; }
.col:nth-child(8) { animation-delay: 0.8s; }
.col:nth-child(9) { animation-delay: 0.9s; }
.col:nth-child(10) { animation-delay: 1.0s; }
/* Продолжайте по необходимости */

/* Стили для пустой галереи */
.alert-info {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.2);
    color: #0d6efd;
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}
/* End */
/* /local/components/main/gallery/templates/.default/style.css?17646723105849 */
