/**
 * @Date:   2019-07-11T14:40:06+03:00
 * @Last modified time: 2019-07-11T17:44:53+03:00
 */



body.ssa {
  position: fixed;
  top: 0;
  overflow: hidden;
}

body.ssa #swipebox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9009 !important;
  overflow-y: scroll;
  overflow-x: hidden;
}

body.ssa #swipebox-container {
  height: 88vh;
}

body.ssa #swipebox-close {
  right: 0;
}

body.ssa #swipebox-arrows {
  width: 100%;
}

body.ssa #swipebox-next,
body.ssa #swipebox-prev {
    margin-right: 120px;
    height: 72px;
    width: 72px;
    background: rgba(239, 30, 77, 1);
}

body.ssa #swipebox-next {
  margin-right: 12px;
}

body.ssa #swipebox-prev {
  margin-left: 12px;
}

body.ssa #swipebox-prev:after,
body.ssa #swipebox-next:after {
  font-size: 40px;
  line-height: 72px;
}

body.ssa #swipebox-prev:hover,
body.ssa #swipebox-next:hover {
  background: rgba(153, 153, 153, 0.6);
}

body.ssa .social_links {
  display: none;
}

body.ssa #swipebox-container #swipebox-slider .slide img {
  max-height: 77vh !important;
}

#single_gallery_rp {
  float: left;
  width: 100%;
  min-height: 100vh;
  position: relative;
  left: 0;
  bottom: 0;
  z-index: 9001;
  background: #f8f8ee;
  padding: 0 10px 20px 10px;
  color: #000;
}

#single_gallery_rp .posts {
  padding-top: 45px;
}

#load_gallery_posts {
  float: left;
  width: 100%;
  width: 100%;
  height: 1px;
  clear: left;
}

#single_gallery_rp .top {
  float: left;
  background: #f8f8ee;
  width: 100%;
  position: relative;
  z-index: 9;
  padding: 15px 0;
  text-align: center;
}

#single_gallery_rp.fixed .top {
  position: fixed;
  top: 0;
  left: 0;
  padding: 15px 10px;
  width: 100%;
}

#single_gallery_rp .ssa_back,
#single_gallery_rp .top > span {
  color: #000;
  font-size: 18px;
  text-transform: uppercase;
}

#single_gallery_rp .ssa_back {
  float: left;
  font-size: 13px;
  text-transform: uppercase;
  margin-top: 5px;
}

#single_gallery_rp.fixed .ssa_back {
  position: absolute;
  left: 10px;
}

.ssa #swipebox-slider .slide {
  padding-right: 0;
}

.ssa #swipebox-bottom-bar {
  width: 100%;
}

/* #single_gallery_rp.fixed {
  padding-top: 40px;
} */

.ssa .gallery_post:hover {
  background: #eee;
  border-radius: 6px;
}

.ssa .gallery_post h4 {
  display: block;
  margin: 5px;
  font-size: 16px;
  color: #010101;
  font-weight: 600;
  line-height: 125%;
}

.ssa .gallery_post img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

.ssa .gallery_post .date {
  display: inline-block;
  margin: 5px 0 0 5px;
  color: #000;
  text-shadow: none;
}

.ssa .gallery_post.gallery_ads {
  min-width: 300px;
  text-align: center;
}

.ssa .gallery_post.gallery_ads img {
  width: auto;
  display: inline-block;
}

.ssa .gallery_post.gallery_ads > div {
  display: inline-block;
}

.ssa .gallery_post.gallery_ads > h6 {
  display: block;
  margin-bottom: 10px;
  text-align: center;
  font-size: 15px;
}

.ssa .gallery_post .pr {
    position: absolute;
    top: -2px;
    left: 16px;
    z-index: 9;
    width: 36px;
    height: 41px;
    background: #ef1f4d;
    opacity: 0.8;
    color: #fff;
    text-align: center;
    line-height: 46px;
    font-size: 20px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.88);
}

.ssa .gallery_post:hover .pr {
  opacity: 1;
}

.ssa #swipebox-title {
  width: 100%;
}

.ssa #swipebox-bottom-bar {
  position: absolute;
  top: 50vh;
}

/* .single_gallery_sidebar {
  display: none;
} */

.grid-sizer {
  width: 10px;
}

.ssa .gallery_post {
  float: left;
  width: calc(16.66% - 4px);
  min-width: 300px;
  margin: 5px 0;
  padding: 8px;
}

.ssa .gallery_post.size_5 {
  width: calc(20% - 4px);
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,.3);
  background-color: white;
}

.ssa .gallery_post.size_4 {
  width: calc(25% - 4px);
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,.3);
  background-color: white;
}

.ssa .gallery_post.size_3 {
  width: calc(33.33% - 4px);
}

.ssa .gallery_post .video {
  float: left;
  width: 100%;
  position: relative;
}

.ssa .gallery_post .video:before {
  content: "";
  background: url("images/play_icon.png") no-repeat;
  background-size: auto;
  background-size: 100%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 99;
  margin: auto;
  display: block;
  width: 50px;
  height: 50px;
  opacity: 0.8;
}

.ssa .gallery_post .video:hover::before {
  opacity: 1;
}

/* grid - 420x370 */
.grid_1 img {
  max-height: 280px;
}
.grid_2 img {
  max-height: 380px;
}
.grid_3 img {
  max-height: 320px;
}
.grid_4 img {
  max-height: 230px;
}
.grid_5 img {
  max-height: 250px;
}
.grid_6 img {
  max-height: 300px;
}
.grid_7 img {
  max-height: 600px;
}
.grid_8 img {
  max-height: 250px;
}
.grid_9 img {
  max-height: 340px;
}
.grid_10 img {
  max-height: 300px;
}

#swipebox-slider .video_slide img {
  display: none;
}

#swipebox-slider .video_slide iframe {
  vertical-align: top;
}

.ssa #swipebox-slider .video_slide .gallery_share {
  display: none;
}

body.ssa.slide_animation .slide.current {
  background: none;
}

#box_loading_gallery {
  background: url('images/loader.gif') no-repeat center center #fff;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
}

/* 18.10.19 add thumbnail on arrow */
#swipebox-prev,
#swipebox-next {
  position: relative;
}

#swipebox-prev img,
#swipebox-prev iframe,
#swipebox-next img {
  position: absolute;
  bottom: -60px;
  width: 80px;
  opacity: 0.35;
  object-fit: cover;
  height: 52px;
  border-radius: 5px;
}

#swipebox-prev img,
#swipebox-prev iframe {
  left: 0;
}

#swipebox-prev iframe {
  pointer-events: none;
}

#swipebox-next img {
  right: 0;
}

/* @media only screen and (max-width: 1600px) {
  .ssa .gallery_post {
    width: calc(20% - 4px);
  }
}

@media only screen and (max-width: 1024px) {
  .ssa .gallery_post {
    width: calc(33.33% - 4px);
  }
} */

/* #single_gallery_rp {
  display: none;
} */
