

/* Start:/local/templates/custom_template/components/bitrix/news.list/gallery/style.css?17822459321832*/
.gallery_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
    margin-top: 30px;
}

.gallery_item {
    display: flex;
    flex-direction: column;
}

.gallery_img_wrap {
    width: 100%;
    aspect-ratio: 1.5; /* Horizontal ratio as in image */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery_item:hover .gallery_img {
    transform: scale(1.05);
}

.gallery_name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #1A1A1A;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery_pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* Bitrix Pager styling to match the circles in image */
.gallery_pagination .modern-page-navigation {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gallery_pagination .modern-page-navigation a,
.gallery_pagination .modern-page-navigation span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    color: #786C59;
    transition: background-color 0.2s, color 0.2s;
}

.gallery_pagination .modern-page-navigation span.modern-page-current {
    background-color: #FF5A1E; /* Orange as in image */
    color: #FFF;
}

.gallery_pagination .modern-page-navigation a:hover {
    background-color: #F5F5F3;
}

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

@media (max-width: 575px) {
    .gallery_list {
        grid-template-columns: 1fr;
    }
}

/* End */
/* /local/templates/custom_template/components/bitrix/news.list/gallery/style.css?17822459321832 */
