/*-----------------------------------------------------------------*/
section.gallery {
  padding-top: 120px;
}

@media (max-width: 767px) {
  section.gallery {
    padding-left: 10px;
    padding-right: 10px;
  }
  .element-item {
      width:100%;
      margin-right: 0;
  }
  .element-item img{
      width:100%;
  }
}

section.gallery .col-md-12 .main-title h1 {
  font: 36px/36px PF-Monumenta-Pro-Regular, normal;
  /* text-transform: uppercase; */
  width: 70%;
}

@media (max-width: 767px) {
  section.gallery .col-md-12 .main-title h1 {
    font-size: 21px!important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  section.gallery .col-md-12 .main-title h1 {
    width: 100%;
    margin-bottom: 15px;
  }
}

section.gallery h2 {
  font: 24px/24px PF-Monumenta-Pro-Regular, normal;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  section.gallery h2 {
    font-size: 18px;
  }
}

section.gallery h3 {
  font: 20px/20px PF-Monumenta-Pro-Regular, normal;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  section.gallery h3 {
    font-size: 16px;
  }
}

section.gallery h6 {
  font: 22px/22px PF-Monumenta-Pro-Regular, normal;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  section.gallery h6 {
    font-size: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  section.gallery h6 {
    font-size: 16px;
  }
}

section.gallery p {
  font: 18px/26px "Open Sans", normal;
}

@media (max-width: 767px) {
  section.gallery p {
    font-size: 14px;
  }
}

section.gallery span {
  font: 16px/16px "Open Sans", normal;
}

@media (max-width: 767px) {
  section.gallery span {
    font-size: 14px;
  }
}

section.gallery a {
  font: 20px/26px "Open Sans", normal;
  color: #000;
}

@media (max-width: 767px) {
  section.gallery a {
    font-size: 16px;
  }
}

section.gallery a span.arrow {
  padding-left: 45px;
  background: url(../img/spritesheet.png) 9px 5px no-repeat;
  width: 30px;
  height: 19px;
  display: inline-block;
}

section.gallery a:hover {
  color: #980600;
}

section.gallery a:hover .arrow {
  color: #980600;
  background: url(../img/spritesheet.png) 9px -12px no-repeat;
}

section.gallery .main-title {
  padding-bottom: calc(4.7% - 36px);
  display: inline-block;
  width: 100%;
}

section.gallery .main-title h1 {
  float: left;
}

section.gallery .col-md-12 .main-title {
  width: 100%;
}

section.gallery .col-md-12 .main-title h1 {
  float: left;
  display: inline-block;
  width: auto;
}

@media (max-width: 767px) {
  section.gallery .col-md-12 .main-title h1 {
    float: none;
    display: block;
    width: 100%;
  }
}

section.gallery .col-md-12 .main-title .sort-b {
  float: right;
  display: inline-block;
}

@media (max-width: 767px) {
  section.gallery .col-md-12 .main-title .sort-b {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  section.gallery .col-md-12 .main-title .sort-b {
    display: block;
    width: 100%;
    float: left;
  }
}

section.gallery .col-md-12 .main-title .sort-b p {
  font: 16px/26px Open-Sans-Light, normal;
  display: inline-block;
}

@media (max-width: 767px) {
  section.gallery .col-md-12 .main-title .sort-b p {
    display: block;
  }
}

section.gallery .col-md-12 .main-title .sort-b .dropdown, section.gallery .col-md-12 .main-title .sort-b .dropup {
  display: inline-block;
}

section.gallery .col-md-12 .main-title .sort-b .dropdown p, section.gallery .col-md-12 .main-title .sort-b .dropup p {
  font: 16px/26px Open-Sans-Light, normal;
  color: #787886;
}

@media (max-width: 767px) {
  section.gallery .col-md-12 .main-title .sort-b .dropdown p, section.gallery .col-md-12 .main-title .sort-b .dropup p {
    display: inline-block;
  }
}

section.gallery .col-md-12 .main-title .sort-b .dropdown .btn, section.gallery .col-md-12 .main-title .sort-b .dropup .btn {
  background-color: transparent;
  border-radius: 0;
  color: #000;
  border: 1px solid #bd987e;
}

section.gallery .col-md-12 .main-title .sort-b .dropdown .dropdown-menu, section.gallery .col-md-12 .main-title .sort-b .dropup .dropdown-menu {
  padding: 0;
  margin: 0;
  border-radius: 0;
  right: 0 !important;
  border-color: #bd987e;
  left: auto;
}

section.gallery .col-md-12 .main-title .sort-b .dropdown-menu > li > a {
  padding-left: 10px;
  padding-right: 0;
}

section.gallery .col-md-12 ul {
  list-style: none;
  padding-left: 0;
}

@media (max-width: 767px) {
  section.grid-galery {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* section.grid-galery .grid:after {
  content: '';
  display: block;
  clear: both;
} */
section.grid-galery .col-md-4 {
  margin-bottom: 1rem;
}
section.grid-galery .hover-block {
  z-index: 5;
  left: 15px;
  right: 15px!important;
  top: 0;
  bottom: 0;
}

section.grid-galery .hover-block p {
  color: #fff;
  font: 23px/26px "Open Sans",normal;
  position: absolute;
  display: block;    
  padding: 15px!important;
  background: rgba(119, 117, 114, 0.5);
  z-index: 5;
  left: 15px;
  right: 15px;
  height:100%;
  opacity: 0;
}
section.grid-galery .img-responsive {
    min-height: 270px;
    max-height: 270px;
    width: 100%;
}

section.grid-galery .hover-block p:hover a {
    display: block;
    z-index: 7;
}
section.grid-galery .hover-content p {
  opacity: 1;
}
#container {
    max-width: 1600px;
}
.box {
    float: left;
    display:inline-block;
    margin-bottom:40px;
}
.box img {
    width: 100%;
}
.grid-sizer {
    width: 13%;
}

@media (max-width: 767px) {
  section.grid-galery .grid-sizer,
  section.grid-galery .grid-item {
    width: 100%;
  }
  .box{
      max-width: 100%!important;
  }
  section.gallery .col-md-12 .main-title .sort-b p {
    font: 16px/26px Open-Sans-Light, normal;
    display: inline-block;
}
}

section.gallery .col-md-12 .main-title form .btn:hover {
    color: #980600;
    border-color: #980600;
    background: transparent;
}

section.gallery .col-md-12 .main-title form .btn {
    border: 1px solid #d6c5b9;
    border-radius: 0;
}
section.gallery .col-md-12 .main-title .sort-b {
    float: right;
    display: inline-block;
    padding-top: 6px;
}
section.gallery .col-md-12 .main-title .sort-b p {
    font: 16px/26px Open-Sans-Light, normal;
    display: inline-block;
}
section.gallery .btn {
    height: 28px;
    padding-top: 2px;
    padding-bottom: 2px;
    margin-bottom: 4px;
}
.sort-b select {
    border-color: #bd987e;
    height: 28px;
}
@media (max-width: 767px) {
  section.gallery .col-md-12 .main-title .sort-b p {
    font: 14px/26px Open-Sans-Light, normal;
    display: inline-block;
}
.box:last-child{
    margin-bottom: 0;
}
section.paginator {
    padding-top: 0;
}
}
@media (max-width: 767px) {
  section.gallery,
  section.title-contact,
  section.about-u {
    padding-top: 15%!important;
  }
  section.grid-galery .img-responsive{
    max-height: none;
    min-height: 0;
  }
  section.grid-galery .hover-block p{
    opacity: 1;
  }
}

/*------------------------------*/

.demo-gallery a {
  outline: none !important;
}

#lightgallery .column {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
}
#lightgallery .column li {
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  #lightgallery .column li img:hover,
  #article-data img:hover,
  .content-1 img:hover {
    box-shadow: 0 0 5px rgba(125, 120, 112, 0.9);
    transition: 0.2s;
    cursor: zoom-in;
  }
  #lightgallery .column li img{
    transition: 0.1s;
  }
}

/*------------------------------*/

/* картинка на странице */
.minimized {
  width: 300px;
  cursor: pointer;
  border: 1px solid #FFF;
}
 
.minimized:hover {
  border: 1px solid yellow;
}
 
/* увеличенная картинка */
#magnify {
  display: none;
 
   /*position: absolute;*/
  position: fixed;
  /*width: 100%;*/
  /*height: auto;*/
  z-index: 9999;
}
 
#magnify img {
  /*width: 100%;*/
  max-width: 95vw;
  max-height: 95vh;
}
 
/* затемняющий фон */
#overlay {
  display: none;
 
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  z-index: 9990;
}
 
/* кнопка закрытия */
#close-popup {
  width: 24px;
  height: 24px;
 
  /*padding: 5px;*/
  background: #FFFFFF66;
  /*border: 1px solid #AFAFAF;*/
  border-radius: 2px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;


  text-align: center;
  vertical-align: middle;
}
 
#close-popup i {
  /*margin: 5px;*/
  /*width: 30px;*/
  /*height: 30px;*/
  padding: 5px;
  border-radius: 2px;
  /*background: url(https://codernote.ru/files/cross.png) no-repeat center center;*/
  /*background-size: 16px 16px;*/
  display: block;
}
 
#close-popup i:hover {
  background: #fff;
  transition: 0.2s;
}