.advanced-gallery h2.title {
  font-size: 1.5em;
  margin: 0.83em 0;
  line-height: 23px;
  text-decoration: underline;
  margin-top: 0;
  font-weight: normal;
}

.advanced-gallery .item {
  max-width: 277px;
  width: 100%;
  margin: 0 0 10px 0;
  background: #f9f9f9;
  border: 1px solid #dedede;
  outline: none;
  box-sizing: border-box;
}

.advanced-gallery .item .img-wrap {
  position: relative;
  width: 100%;
  height: 160px;
}

.advanced-gallery .img-wrap img {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 160px;
  display: block;
  border-radius: 0;
  box-shadow: 0 0 0 rgb(0 0 0 / 0%);
}

.advanced-gallery .img-wrap .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  display: none;
}

.advanced-gallery .img-wrap .image-overlay a {
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: center center no-repeat;
}

.advanced-gallery .item .title-wrap {
  position: relative;
  height: 42px;
  margin: 0;
  border-top: 1px solid #dedede;
  box-sizing: content-box;
}

.advanced-gallery .item .title-wrap h3 {
  position: relative;
  margin: 0;
  padding: 0 1% 0 1%;
  width: 90%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-weight: normal;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 22px;
  color: #222222;
}

.advanced-gallery .item:hover .image-overlay {
  display: block;
}


/* ==== */

.advanced-gallery .gallery_moad_wrap {
  position: fixed;
  width: 80%;
  top: 7%;
  left: 7%;
  margin: 0;
  padding-left: 40px;
  list-style: none;
  z-index: 999999;
  display: none;
  height: 90%;
}

.advanced-gallery .pop-element {
  position: relative;
  /*   display: none;  */
  width: 100%;
  padding: 40px 0 20px 0;
  min-height: 100%;
  position: relative;
  background: #FFFFFF;
}

.advanced-gallery .pop-element .pop-wrapper {
  position: relative;
  width: 98%;
  height: 98%;
  padding: 2% 0% 0% 2%;
  overflow-y: auto;
}

.advanced-gallery .pop-element .pop-mg {
  width: 55%;
  height: 100%;
  position: relative;
  float: left;
  margin-right: 2%;
  border-right: 1px solid #ccc;
  min-width: 200px;
  min-height: 100%;
}

.advanced-gallery .pop-element .pop-mg img {
  width: 100%;
  display: block;
  padding: 0;
}

.advanced-gallery .pop-element .right-block {
  width: 42.8%;
  height: 100%;
  position: relative;
  float: left;
}

.advanced-gallery .pop-element h3.pop-title {
  position: relative;
  display: block;
  margin: 0 0 10px 0;
  font-size: 18px;
  line-height: 22px;
  color: #222222;
  clear: both;
  font-weight: normal;
}

.advanced-gallery .pop-element .right-block>div {
  padding-top: 10px;
  padding-right: 4%;
  margin-bottom: 10px;
  background:center top repeat-x;
  clear: both;
  position: relative;
  text-align: justify;
  font-size: 14px;
  color: #222222;;
}

.advanced-gallery .content-popup {
  max-width: 100%;
  width: 100%;
}

.advanced-gallery .popup-overlay {
  position: fixed;
  top: 0;
  display: none;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
}

.advanced-gallery .gallery_moad_wrap.pop-act+.popup-overlay {
  display: block;
}

.advanced-gallery .gallery_moad_wrap.pop-act {
  display: block;
}

.advanced-gallery .popup-list a.close {
  position: relative;
  float: right;
  width: 40px;
  height: 40px;
  display: block;
  background: center center no-repeat;
  border-left: 1px solid #ccc;
  opacity: .65;
  transition: all 0.5s ease 0s;
}

.advanced-gallery .navigation {
  position: absolute;
  width: 100%;
  height: 40px;
  top: 0;
  left: 0;
  z-index: 2001;
}

.advanced-gallery .item {
  margin-right: 15px;
}

.advanced-gallery .gallery-content {
  position: relative;
  display: inline-block;
  width: 100%;
}

.advanced-gallery .gallery_wrapper {
  margin: 19.92px 0;
  font-size: 24px;
  line-height: 23px;
}

.advanced-gallery .popup-list a.close:hover {
  opacity: 1;
  cursor: pointer;
}

.advanced-gallery .left-change {
  width: 40px;
  height: 39px;
  font-size: 25px;
  display: inline-block !important;
  text-align: center;
  border: 1px solid #eee;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  position: absolute;
}

.advanced-gallery .right-change {
  position: relative;
  margin-left: -6px;
  width: 40px;
  height: 39px;
  font-size: 25px;
  display: inline-block !important;
  text-align: center;
  border: 1px solid #eee;
  border-bottom: none;
  border-top: none;
  position: absolute;
  top: 0;
  left: 44px;
}

.advanced-gallery .left-change a {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #777;
  text-decoration: none;
  width: 12px;
  height: 100%;
  display: inline-block;
  line-height: normal;
  top: 50%;
}

.advanced-gallery .right-change a {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #777;
  text-decoration: none;
  width: 12px;
  height: 100%;
  display: inline-block;
  line-height: normal;
  top: 50%;
}

.advanced-gallery .right-change:hover,.advanced-gallery .left-change:hover {
  background: #ddd;
  border-color: #ccc;
  color: #000;
  cursor: pointer;
}

.advanced-gallery .pop-element.active {
  display: table;
}

.advanced-gallery .gallery_moad_wrap .slick-slider {
  padding: 0;
  margin: 0;
  height: 100%;
  list-style: none;
}

.advanced-gallery .slick-track:after,.advanced-gallery .slick-track:before {
  display: none;
}

.advanced-gallery .slick-list{
  height: 100%;
}

.advanced-gallery .slick-track {
  display: flex;
  flex-wrap: wrap;
  height: 100%;
}
.advanced-gallery .slick-list {
  margin-right: -1px;
}




@media (min-width: 768px){
  .advanced-gallery .pop-element .pop-mg {
    padding-right: 10px;
  }
}


@media only screen and (max-width: 767px){
  .advanced-gallery .slick-track {
    height: auto;
  }
  .advanced-gallery .gallery_moad_wrap {
    top: 0%;
    width: 100%;
    height: auto;
    padding:0;
    left: 0;
    position: fixed;
  }
  .advanced-gallery .pop-element .pop-wrapper,
  .advanced-gallery .slick-list,
  .advanced-gallery .gallery_moad_wrap .slick-slider{
    height: auto;
  }
  .advanced-gallery .pop-element .pop-mg {
    width: 100%;
    float: none;
    clear: both;
    margin-right: 0;
    border-right: 0;
  }
  .advanced-gallery .pop-element .right-block {
    width: 100%;
    float: none;
    clear: both;
    margin-right: 0;
    border-right: 0;
  }
  .advanced-gallery .pop-element .pop-mg{
    height: auto;
  }
}

@media only screen and (max-device-width: 767px){
  .advanced-gallery .pop-element .pop-wrapper {
    height: 75%;
  }
  .advanced-gallery .pop-element {
    height: auto;
  }
}

