@charset "UTF-8";
.dress-details {
  padding: 40px;
  padding-top: 150px;
}
@media (max-width: 1000px) {
  .dress-details {
    padding: 20px;
    padding-top: 150px;
  }
}
@media (max-width: 800px) {
  .dress-details {
    padding-top: 130px;
  }
}
.dress-details h3 {
  font-size: 40px;
}
@media (max-width: 1100px) {
  .dress-details h3 {
    font-size: 30px;
  }
}
.dress-details p {
  font-size: 18px;
  margin: 10px 0;
}
.dress-details .opt_price {
  width: 250px;
  font-size: 14px;
}
@media (max-width: 850px) {
  .dress-details .opt_price {
    width: 220px;
    padding: 20px 10px;
  }
}
@media (max-width: 600px) {
  .dress-details .opt_price {
    margin: 0 auto;
    width: 70%;
  }
}

.gallery {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  position: relative;
  width: 1005;
}
@media (max-width: 768px) {
  .gallery {
    flex-direction: column;
    align-items: center;
  }
}
.gallery .image-container {
  position: relative;
  height: 100%;
  max-height: 885px;
  overflow: hidden;
}
@media (max-width: 1100px) {
  .gallery .image-container {
    max-width: 550px;
  }
}
@media (max-width: 950px) {
  .gallery .image-container {
    max-width: 500px;
  }
}
@media (max-width: 630px) {
  .gallery .image-container {
    max-width: 100%;
    height: auto;
  }
  .gallery .image-container .thumbnails {
    height: 150px;
  }
  .gallery .image-container .thumbnails img {
    width: 70px; height: 103px;
  }
}
.gallery .image-container #main-image, .gallery .image-container #main-video {
  max-width: 590px;
  height: 885px;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery .image-container #main-video {
  min-width: 590px;
}
@media (max-width: 1200px) {
  .gallery .image-container #main-image, .gallery .image-container #main-video {
    width: 530px;
  }
  .gallery .image-container #main-video {
  min-width: 530px;
}
}
@media (max-width: 1150px) {
  .gallery .image-container {max-height: 650px;}
  .gallery .image-container #main-image, .gallery .image-container #main-video {
    width: 440px;
  }
  .gallery .image-container #main-video {
  min-width: 440px;}
}
@media (max-width: 950px) {
  .gallery .image-container {max-height: 450px;}
  .gallery .image-container #main-image, .gallery .image-container #main-video {
    width: 300px; height: 450px; min-width: 300px;
  }
}
.gallery .image-container:hover #main-image {
  transform: scale(2);
  cursor: crosshair;
}

.thumbnails {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
  max-height: 885px; /* Ограничиваем высоту для трёх миниатюр */
  overflow-y: auto; /* Добавляем вертикальный скролл, если миниатюр больше */
  overflow-x: hidden;
}
@media (max-width: 1150px) {
  .thumbnails {
    max-height: 650px; /* Убираем ограничение по высоте для маленьких экранов */
    overflow-x: auto; /* Горизонтальный скролл для мобильных устройств */
  }
}
@media (max-width: 768px) {
  .thumbnails {
    flex-direction: row;
    margin: 10px 0;
    max-width: 350px;
    overflow-y: hidden;
    overflow-x: auto; /* Горизонтальный скролл для мобильных устройств */
  }
  .gallery .image-container #main-image, .gallery .image-container #main-video {
    width: 350px;
  }
}
.thumbnails img {
  object-fit: cover;
  width: 137px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}
.thumbnails video {
  object-fit: cover;
  width: 137px;
  height: 212px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}
@media (max-width: 1100px) {
  .thumbnails {overflow-x: hidden;}
  .thumbnails img {width: 100px; height: 149px;}
  .thumbnails video {width: 100px; height: 150px;}
}
@media (max-width: 950px) {
  .thumbnails {max-height: 450px; overflow-x: hidden;}
  .thumbnails img, .thumbnails video {
    width: 100px;
  }
}
@media (max-width: 900px) {
  .thumbnails img, .thumbnails video {
    width: 70px;
    height: 100px;
  }
}
.thumbnails img.active, .thumbnails video.active {
  border-color: #5f4c62;
}

.columns_info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
}
@media (max-width: 1100px) {
  .columns_info {
    gap: 50px;
  }
}
@media (max-width: 1000px) {
  .columns_info {
    gap: 30px;
  }
}
@media (max-width: 700px) {
  .columns_info {
    grid-template-columns: none;
  }
}

.link_back {
  text-decoration: none;
  color: #5f4c62;
  font-size: 20px;
}
@media (max-width: 800px) {
  .link_back {
    font-size: 16px;
  }
}/*# sourceMappingURL=dress._info.css.map */

@media (min-width: 350px) and (max-width: 400px){
  .gallery .image-container #main-image, .gallery .image-container #main-video {
    width: 300px;
  }
  .thumbnails {
      max-width: 300px;
      overflow-y: hidden;
      overflow-x: auto;
    }
}

@media (min-width: 400px) and (max-width: 768px){
  .gallery .image-container #main-image, .gallery .image-container #main-video {
    width: 360px;
  }
  .thumbnails {
      max-width: 360px;
      overflow-y: hidden;
      overflow-x: auto;
    }
}