hr {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
}

.root_catalog_title, .root_gallery_title {
    display: flex;
    justify-content: space-between;
    width: 1342px;
    margin-inline: auto;
    align-items: center;
    font-weight: bold;
    font-size: 25px;
    margin-bottom: 5px;
    margin-top:58px
}

.root_gallery_title {
    position: relative;
    justify-content: flex-end;
    margin-bottom: 65px;
    margin-top: 120px;
}

.root_gallery_title p.caption.left_shift.desktop {
    display: block;
    margin: 0;
    position: absolute;
    left: calc(-50vw + 671px + 70px);
    white-space: nowrap;
}

.root_gallery_title p.caption.left_shift.mobile {
    display: none;
}

.show_all_link {
    display: inline-flex;
    padding-top: 25px;
    gap: 5px;
}

.show_all_link svg {
    display: inline-block;
    vertical-align: middle;
}

.root_catalog, .root_gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /*justify-content: space-between;*/
    margin-bottom: 100px;
}

.root_gallery {
    /*margin-left: 111px;
    margin-right: 111px;*/
}

.root_catalog {
    width: 1342px;
    margin-inline: auto;
    margin-bottom: 95px;
}

.root_catalog_item, .root_gallery_item {
    position: relative;
    flex: 0 0 23%;
    /*margin: 10px;*/
}

.root_catalog_item {
    flex: 0 0 calc((100% - 60px) / 4);
    margin-bottom: 20px;
}

.root_catalog_image {
    margin-bottom: 20px;
}

.root_catalog_image img, .root_gallery_image img {
    /*transform: scale(1);
    transition: all 1s ease;*/
    transition: opacity 1s ease;
    width: 100%;       /* Картинка занимает всю ширину карточки */
    /* height: 200px;     /* Жесткая высота для всех картинок */
    aspect-ratio: 4 / 3;
    object-fit: cover; /* Масштабирует картинку, чтобы она заполнила область (лишнее обрежется) */
    display: block;    /* Убирает лишний отступ снизу */
}

.root_catalog_image img:hover, .root_gallery_image img:hover {
    opacity: 0.5;
    /*transform: scale(1.0);*/
    position: relative;
    z-index: 1;
}

.root_catalog_name {
    margin-bottom: 5px;
}

.root_catalog_name a {
    font-size: 25px;
    font-weight: 700;
}

.root_catalog_price_data {

}

.root_catalog_price_data {
    font-size: 25px;
    font-weight: 400;
}

.root_catalog_price_discount {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 1;
    background-color: #001EE0;
    /*padding: 5px;*/
    /*width: max-content;*/
    width: 75px;
    height: 45px;
    border-radius: 10px;
    /*font-weight: 400px;*/
    text-align: center;
    line-height: 45px;
}

.root_catalog_price_without_discount {
    opacity: 0.5;
}

.camera_shots_gallery {
    margin-left: 111px;
    margin-right: 111px;
    /*margin-bottom: 15px;*/
    overflow: hidden; /* Прячем картинки, которые уходят за край */
    position: relative;
}

/* Обертка для слайдов — оставляем дефолтной для Swiper */
.camera_shots_gallery .swiper-wrapper {
    display: flex !important;
}

/* Элемент слайдера — задаем ему жесткую ширину, чтобы Swiper мог его двигать */
.camera_shots_gallery .camera_shots_item {
    width: 551px !important; /* Ширина одной карточки в ленте */
    flex-shrink: 0 !important; /* Запрещаем картинкам сжиматься */
    aspect-ratio: 4 / 3;
    position: relative;
}

/* Картинка внутри слайда */
.camera_shots_gallery .camera_shots_item img {
    transition: opacity 0.5s ease;
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.camera_shots_gallery .camera_shots_item img:hover {
    opacity: 0.5;
}

.camera_shots_gallery .swiper-button-next,
.camera_shots_gallery .swiper-button-prev {
    opacity: 0;
    transition: opacity 0.5s;
    /*color: #001EE0;
    width: 40px;
    height: 40px;
    border-radius: 50%;*/
}

.camera_shots_gallery:hover .swiper-button-next,
.camera_shots_gallery:hover .swiper-button-prev {
    opacity: 1;
}

/*.swiper-button-next::after,
.swiper-button-prev::after,
 swiper-button-prev::before,
.swiper-button-next::before {
    display: none !important;
    content: "" !important;
    background: none !important;
}*/

.swiper-navigation-icon {
    display: none !important;
}

.swiper-button-prev {
    margin-left: 20px !important;
    background-image: url('/static/main/images/arrow_prev_swiper.svg');
    background-repeat: no-repeat;
    background-size: contain;

}

.swiper-button-next {
    margin-right: 20px !important;
    background-image: url('/static/main/images/arrow_next_swiper.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

@media (max-width: 768px) {
    .root_catalog_title {
        margin-top: 0;
        margin-left: 18px;
        width: auto;
    }

    .caption {
        font-size: 22px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .show_all_link {
        display: none;
    }

    .root_catalog {
        width: auto;
        gap: 0px;
        justify-content: space-between;
        margin-bottom: 8px;
        margin-left: 18px;
        margin-right: 18px;
    }

    .root_catalog_item {
        flex: 0 0 calc((100% - 6px) / 2);
    }

    .root_catalog_image {
        margin-bottom: 2px;
    }

    .root_catalog_image img {
        border-radius: 5px;
    }

    .root_catalog_name {
        margin-bottom: 0px;
    }

    .root_catalog_name a {
        font-size: 10px;
    }

    .root_catalog_price_data {
        font-size: 10px;
    }

    .root_catalog_price_discount {
        border-radius: 5px;
        top: -8px;
        right: 0px;
        width: 35px;
        height: 25px;
        line-height: 25px;
    }

    .root_gallery_title {
        margin-top: 0px;
        margin-left: 18px;
        margin-bottom: 8px;
        width: auto;
    }

    .root_gallery_title p.caption.left_shift.desktop {
        display: none;
    }

    .root_gallery_title p.caption.left_shift.mobile {
        display: block;
        left: 0;
        position: static;
        white-space: wrap;
    }

    .root_gallery {
        margin-bottom: 15px;
        gap: 6px;
    }

    .camera_shots_gallery .camera_shots_item {
        width: 250px !important;
        margin-right: 6px !important;

    }

}