/* Галерея товара: слайдер + превью (увеличенный, приподнят к заголовку) */
@media (min-width:992px){
  .goods-img-col{
    margin-top:-110px!important;
    padding-top:0!important;
    -webkit-box-align:start!important;-ms-flex-align:start!important;align-items:flex-start!important;
    -webkit-box-pack:end!important;-ms-flex-pack:end!important;justify-content:flex-end!important;
  }
  .title-breadcrumb .goods-title-block{
    max-width:52%!important;
  }
}
.goods-img-col{
  -webkit-box-align:start!important;-ms-flex-align:start!important;align-items:flex-start!important;
}
.goods-img{
  width:100%!important;
  max-width:100%!important;
  text-align:center!important;
}
.goods-gallery{
  width:100%;
  max-width:560px;
  margin-left:auto;
  margin-right:0;
}
.goods-gallery-main{
  position:relative;
  display:-webkit-box;display:-ms-flexbox;display:flex;
  -webkit-box-align:center;-ms-flex-align:center;align-items:center;
  gap:14px;
  padding:0 4px;
}
.goods-gallery-viewport{
  position:relative;
  -webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;
  overflow:hidden;
  min-width:0;
  min-height:0;
  display:-webkit-box;display:-ms-flexbox;display:flex;
  -webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;
  -webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;
}
.goods-gallery-track{
  position:relative;
  width:100%;
}
.goods-gallery-slide{
  display:none;
  width:100%;
  text-align:center;
}
.goods-gallery-slide.is-active{
  display:block;
}
.goods-gallery-slide img{
  width:100%;
  max-width:100%;
  max-height:520px;
  height:auto;
  display:inline-block;
  -o-object-fit:contain;object-fit:contain;
  background:transparent;
  vertical-align:top;
}
.goods-gallery-arrow{
  -webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;
  -ms-flex-item-align:center;align-self:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #d8deea;
  border-radius:50%;
  background:#fff;
  color:#1955c9;
  display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;
  -webkit-box-align:center;-ms-flex-align:center;align-items:center;
  -webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;
  cursor:pointer;
  z-index:2;
  -webkit-box-shadow:0 2px 8px rgba(0,0,0,.08);box-shadow:0 2px 8px rgba(0,0,0,.08);
  -webkit-transition:background .2s,color .2s,border-color .2s;transition:background .2s,color .2s,border-color .2s;
}
.goods-gallery-arrow svg{
  width:22px;
  height:22px;
}
.goods-gallery-arrow:hover,
.goods-gallery-arrow:focus{
  background:#1955c9;
  border-color:#1955c9;
  color:#fff;
  outline:none;
}
.goods-gallery-arrow:disabled{
  opacity:.35;
  cursor:default;
  pointer-events:none;
}
.goods-gallery-thumbs{
  display:-webkit-box;display:-ms-flexbox;display:flex;
  -ms-flex-wrap:wrap;flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
  -webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;
}
.goods-gallery-thumb{
  width:84px;
  height:84px;
  padding:6px;
  border:1px solid #d8deea;
  background:#fff;
  cursor:pointer;
  overflow:hidden;
  line-height:0;
  -webkit-transition:border-color .2s,box-shadow .2s;transition:border-color .2s,box-shadow .2s;
}
.goods-gallery-thumb img{
  width:100%;
  height:100%;
  -o-object-fit:contain;object-fit:contain;
  display:block;
}
.goods-gallery-thumb:hover,
.goods-gallery-thumb:focus{
  border-color:#1955c9;
  outline:none;
}
.goods-gallery-thumb.is-active{
  border-color:#1955c9;
  box-shadow:0 0 0 1px #1955c9;
}
.goods-gallery .goods-img-zoom{
  display:inline-block;
  max-width:100%;
  width:100%;
  vertical-align:top;
}
.goods-gallery .goods-img-zoom img{
  width:100%;
  max-height:520px;
  height:auto;
  -o-object-fit:contain;object-fit:contain;
  vertical-align:top;
}

/* одиночное фото тоже крупнее */
.goods-img > a.goods-img-zoom,
.goods-img > img{
  display:inline-block;
  width:100%;
  max-width:560px!important;
  vertical-align:top;
}
.goods-img > a.goods-img-zoom img,
.goods-img > img{
  width:100%;
  max-width:560px!important;
  max-height:520px;
  height:auto;
  -o-object-fit:contain;object-fit:contain;
  vertical-align:top;
}

@media (min-width:992px){
  .goods .row > .goods-img-col.col-lg-5{
    -webkit-box-flex:0;-ms-flex:0 0 48%;flex:0 0 48%;
    max-width:48%;
  }
  .goods .row > .goods-order-col.col-lg-7,
  .goods .row > .col-lg-7{
    -webkit-box-flex:0;-ms-flex:0 0 52%;flex:0 0 52%;
    max-width:52%;
  }
}

@media (max-width:1200px){
  .goods-gallery{max-width:480px;}
  .goods-gallery-slide img,
  .goods-gallery .goods-img-zoom img{
    max-height:440px;
  }
  .goods-img > a.goods-img-zoom img,
  .goods-img > img{
    max-width:480px!important;
    max-height:440px;
  }
}
@media (max-width:1200px) and (min-width:992px){
  .goods-img-col{margin-top:-90px!important;}
}
@media (max-width:992px){
  .goods-img-col{margin-top:0!important;}
  .goods-gallery{
    max-width:420px;
    margin-left:auto;
    margin-right:auto;
  }
  .goods-gallery-slide img,
  .goods-gallery .goods-img-zoom img{
    max-height:340px;
  }
  .goods-gallery-thumb{
    width:72px;
    height:72px;
  }
  .goods-gallery-main{gap:10px;}
  .goods-img > a.goods-img-zoom img,
  .goods-img > img{
    max-width:420px!important;
    max-height:340px;
  }
}
@media (max-width:567px){
  .goods-gallery{max-width:100%;}
  .goods-gallery-slide img,
  .goods-gallery .goods-img-zoom img{
    max-height:280px;
  }
  .goods-gallery-arrow{
    width:36px;
    height:36px;
  }
  .goods-gallery-arrow svg{
    width:18px;
    height:18px;
  }
  .goods-gallery-thumb{
    width:64px;
    height:64px;
  }
  .goods-gallery-main{
    gap:6px;
    padding:0;
  }
}
