

/* Start:/bitrix/templates/verstka/components/bitrix/news.list/galery_page/style.css?17702726818039*/
.gallery-page {
    padding: 0px;
}

.gallery-title {
    font-size: 32px;
    color: #020202;
    margin-bottom: 35px;
    padding-bottom: 20px;
    text-transform: uppercase;
}

.gallery-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 25px;
}

.category-btn {
    padding: 12px 15px 8px 15px;
    border: 1px solid lightblue;
    background: white;
    color: #282222;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.category-btn:hover {
    border-color: #4299e1;
    color: #4299e1;
}

.category-btn.active {
    background: #5866EF;
    color: white;
    border-color: #5866EF;
}

.gallery-select-wrapper {
    position: relative;
    display: inline-block;
    display: none;
}

.gallery-select {
    appearance: none; /* Убираем стандартную стрелку в большинстве браузеров */
    -webkit-appearance: none; /* Для Safari и Chrome */
    -moz-appearance: none; /* Для Firefox */
    padding-right: 40px; /* Добавляем место для кастомной стрелки */
    cursor: pointer;
    /* Дополнительные стили для селекта */
    width: 100%;
    background-color: white;
    font-size: 16px;
    padding: 15px 13px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
}
/* Убираем стрелку в IE */
.gallery-select::-ms-expand {
    display: none;
}

.custom-select-arrow {
    position: absolute;
    right: 15px; /* 15px от правого края как требуется */
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Чтобы клики проходили сквозь иконку к селекту */
    z-index: 1;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
}

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

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

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .image-caption {
    transform: translateY(0);
}

.image-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.image-desc {
    font-size: 13px;
    opacity: 0.9;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.modal-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    opacity: 0.8;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-info {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-counter {
    font-size: 14px;
    opacity: 0.8;
}

.load-more {
    display: block;
    margin: 40px auto 0;
    padding: 12px 35px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.load-more:hover {
    background: #3182ce;
}

.load-more:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

@media (max-width: 1280px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .gallery-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .gallery-categories {
        gap: 8px;
        padding: 0 10px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .gallery-grid {
        gap: 12px;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }
}

@media (max-width: 640px) {
    .gallery-categories {
        display: none;
    }

    .gallery-select-wrapper {
        display: block;
    }
	.gallery-grid {
		margin-top: 25px;
	}
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        margin-top: 25px;
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }

    .gallery-title {
        font-size: 24px;
    }

    .gallery-select {
        font-size: 12px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-item {
    animation: fadeIn 0.5s ease forwards;
}



.gallery-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Затемнение фона */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.loader-text {
    position: absolute;
    top: calc(50% + 50px);
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gallery-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержка анимации для элементов */
.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.2s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.3s; }
.gallery-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-item:nth-child(8) { animation-delay: 0.4s; }
.gallery-item:nth-child(9) { animation-delay: 0.45s; }
.gallery-item:nth-child(10) { animation-delay: 0.5s; }
/* End */
/* /bitrix/templates/verstka/components/bitrix/news.list/galery_page/style.css?17702726818039 */
