.swiper {
  width: 100%;
  height: 670px;
  margin-bottom: 40px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  max-height: 300px;
  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.swiper-slide a {
    height: 100%;
    width: 100%;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* ===== Стили для Модалки ===== */
.overlay {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 20;
    transition: .3s all;
  }
  .modal {
    opacity: 0;
    visibility: hidden;
    width: 100%;
    max-width: 90%;
    border-radius: 10px;
    height: 80%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30; /* Должен быть выше чем у подложки*/
    box-shadow: 0 3px 10px -.5px rgba(0, 0, 0, .2); 
    text-align: center;
    padding: 20px 25px;
    background-color: #fff;
    transition: 0.3s all;
    box-sizing: border-box;
    font-family: var(--montserrat-regular);
    font-size: 20px;
  }
  .modal svg {
    width: 25px;
    position: fixed;
    top: -35px;
    right: -35px;
    cursor: pointer;
    fill: #f00;
  }
  .modal img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
  }
  .modal.active,
  .overlay.active{
    opacity: 1;
    visibility: visible;
  }
  .wrap-btn-modal {
    display: flex;
    justify-content: center;
    margin: 20px 0 10px;
  }
  .wrap-btn-modal .btn_with_bg {
    background-color: var(--color-blue);
    font-size: 20px;
    font-family: var(--montserrat-regular);
    color: #fff;
    width: 70px;
    height: 25px;
    margin-right: 20px;
  }
  .wrap-btn-modal .btn_with_bg:last-child {
    margin-right: 0;
  }
  .modal.cart {
    height: 130px;
    width: 230px;
    padding: 20px;
  }
  .modal.cart h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .modal.cart p {
    font-size: 16px;
  }
  @media (max-width: 791px) {
    .modal svg {
      right: 0px;
  }
  }