/* Страница галерея */
.section_gallery .container {
    width: 100%;
}

.gallery_list .gallery__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 150px;
    grid-auto-flow: dense;
    gap: 5px;
}
.gallery_list .picture-item {
    overflow: hidden;
    position: relative;
}
.gallery_list .picture-item:hover > .picture-item__image {
    transition: transform 0.5s ease;
    transform: scale(1.1);
}

.gallery_list .picture-item:hover::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.gallery_list .picture-item .picture-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picture-item_horizontal {
    grid-column: span 2;
}

.picture-item_vertical {
    grid-row: span 2;
}

/* Изменение вида LightGallery */
.lg-next, .lg-prev {
    color: #999;
    padding: 16px 20px;
}

.lg-next:hover:not(.disabled),
.lg-prev:hover:not(.disabled) {
    color: #154889;
}

.lg-toolbar .lg-icon {
    color: #999;
    font-size: 25px;
}

.lg-toolbar .lg-icon:hover {
    color: #154889;
}

.lg-counter {
    color: #999;
    font-size: 20px;
}

.lg-sub-html {
    color: #999;
}