*,
*::before,
*::after {
    box-sizing: border-box;
}

body1 {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    min-width: 550px;
}

.slider__container {
    position: relative;
    margin-left: 200px;
}

.slider {
    max-width: 310px;
    flex: 0 0 310px;
    margin-left: unset;
    margin-right: unset;
}

/* дополнительные стили для этого примера */
.slider__items {
    counter-reset: slide;
}

.slider__item {
    counter-increment: slide;
    display: flex;
    background-color: #eee;
}

.slider__item::before {
    content: counter(slide);
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-style: italic;
    font-size: 32px;
    font-weight: bold;
}

.slider img {
    max-width: 100%;
    height: auto;
}

.slider__thumbnails {
    position: absolute;
    display: flex;
    flex-flow: column wrap;
    align-content: center;
    width: 150px;
    left: -175px;
    top: 0;
    height: 100%;
}

.slider__thumbnails-item {
    line-height: 0;
    max-width: 52px;
    margin: 0 10px 10px 0;
    opacity: .5;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.15s opacity ease-in-out;
}

.slider__thumbnails-item.active {
    opacity: 1;
}

.slider__thumbnails-item:hover {
    opacity: 1;
}

.slider__thumbnails-item>img {
    display: inline-block;
    width: 100%;
    height: auto;
}

.slider__indicators {
    display: none;
}

.image-open {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px 40px 12px 12px;
    position: absolute;
    padding: 10px 16px 6px;
    left: 8px;
    bottom: 8px;
    cursor: pointer;
    transition: background-color .15s ease-in-out;
    line-height: 1;
}

.image-open:hover {
    background: rgba(255, 255, 255, 0.5);
}

.image-open::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: transparent no-repeat center center;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z'/%3E%3C/svg%3E");
}

body1 {
    overflow: hidden;
}

.slider-overflow__container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
}

.slider-overflow__container_show {
    display: flex;
}

.slider-overflow {
    margin-left: auto;
    margin-right: auto;
}

.slider-overflow .slider__wrapper {
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}

.slider-overflow .slider__items {
    height: 100%;
}

.slider-overflow img {
    max-height: 100%;
    width: auto;
}

.btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    padding: 1.25rem 1rem;
    box-sizing: content-box;
    width: 2em;
    height: 2em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/2em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
}

.btn-close:hover {
    color: #000;
    opacity: 0.75;
}

.btn-close:focus {
    outline: 0;
    box-shadow: none;
    opacity: 0.75;
}
