/*@media screen and (min-width: 1710px) {
  .container {
    width: 1370px;
  }
}
.container {
  padding-top: 10px;
  margin-top: 15px;
  background: #ffffff;
  clear: both;
  z-index: 888;
  margin: auto;
}*/
.g-galery {
  margin: 0;
  padding: 0;
  list-style: none;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding-top: 30px; /*70px x 70px*/
  padding-bottom: 30px;
  border-top: 3px solid #E5E5E5;
}
.g-galery * {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.g-galery figure {
  width: 320px; /*420px x 420px*/
  height: 320px;
  overflow: hidden; 
  -webkit-border-radius: 10px; 
          border-radius: 10px;
  position: relative;
  margin: 0;
}
.g-galery figure.none {
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(../images/zaglushka.jpg);
  -webkit-background-size: contain;
          background-size: contain;
}
.g-galery figure a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.g-galery figure a.video:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(../images/play-button.png);
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}
.g-galery figure img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  width: 100%;
  height: 100%;
}
.g-galery .t1 {
  display: block;
  text-align: center;
  line-height: 0.9;
  font-size: 32px; /*45px*/
  font-weight: 500;
  color: #6c6868;
  padding-bottom: 12px;
  border-bottom: 3px solid #e5e5e5;
}
.g-galery .t2 {
    display: block;
    font-size: 24px;/*30px*/
    font-weight: 400;
    color: #6c6868;
    margin-top: 15px;
    margin-bottom: 15px;
}
.g-galery_3 {
  min-width: 430px;
}
@media screen and (max-width: 1709px) {
  .g-galery figure {
    width: 280px; /*380px x 380px*/
	height: 260px;
  }
  .g-galery_3 {
	width: 350px;/*nothing was here*/
    min-width: 264px;
  }
  .g-galery .t2 {
		margin-bottom: 22px;/*margin-bottom: 51px;*/
	}
	.g-galery .t2:last-child {
		margin-bottom: 0;
	}
}
@media screen and (max-width: 1280px) {
  .g-galery {
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
  }
  .g-galery figure {
    width: 424px;
  }
  .g-galery_3 {
    width: 100%;
    margin-top: 15px;
  }
}
.g-galery li {
    padding: 10px;
}
@media screen and (max-width: 992px) {
  .g-galery {
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
  }
  .g-galery figure {
    display: block;
    width: 100%;
    height: 250px;
  }
  .g-galery li {
    width: 45%;
  }
  .g-galery_3 {
    width: 100% !important;
    margin-top: 15px;
    min-width: 0;
  }
  .g-galery .t2 {
    margin-bottom: 10px;
  }
}
@media screen and (max-width: 480px) {
  .g-galery figure {
    display: block;
    width: 100%;
    height: 250px;
  }
  .g-galery li {
    width: 100%;
    margin-bottom: 25px;
  }
}
@media screen and (max-width: 1200px) {
  .fancybox-slide {
    padding: 44px 0;
  }
  .fancybox-slide--video .fancybox-content {
    max-height: none;
    margin: 0;
  }
  .fancybox-slide--image .fancybox-content {
    left: 10px;
  }
}
/*modal start*/
.modal-open {
  overflow: hidden;
}
.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
}
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -10;
}
.modal-dialog {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.modal-wrap {
  padding: 15px 0;
  margin: auto;
}
.modal-content {
  padding: 30px 15px;
  margin: auto;
  position: relative;
  background-color: #fff;
  color: #5d5d5d;
  -webkit-border-radius: 10px;
          border-radius: 10px;
  max-width: 90%;
}
.modal .close {
  position: absolute;
  top: 15px;
  right: 10px;
  padding: 2px 5px;
  font-size: 32px;
  font-weight: 100;
  line-height: 0;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
#mod-img .modal-img img {
  display: block;
  width: 100%;
}
#mod-video .modal-video {
  position: relative;
  width: 100%;
}
#mod-video .modal-video iframe {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
}
.fade {
  opacity: 0;
  -webkit-transition: opacity .15s linear;
  -o-transition: opacity .15s linear;
  transition: opacity .15s linear;
}
.fade.in {
  opacity: 1;
  z-index: 9999999999999999;
}
@media screen and (max-width: 480px) {
  .modal-dialog {
    padding: 15px;
  }
  .modal-content {
    width: 100%;
    max-width: none;
  }
}

