

/* lightbox css */



.img-wrapper {
  position: relative;
}
.img-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

#overlay {
  background: rgba(0,0,0,0.7);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  // Removes blue highlight
  -webkit-user-select: none;
  -moz-user-select: none;    
  -ms-user-select: none; 
  user-select: none; 
}

#nextButton {
  color: #fff;
  font-size: 2em;
  transition: opacity 0.8s;
  &:hover {
    opacity: 0.7;
  }
  @media screen and (min-width:768px) {
    font-size: 3em;
  }
}

#prevButton {
  color: #fff;
  font-size: 2em;
  transition: opacity 0.8s;
  &:hover {
    opacity: 0.7;
  }
  @media screen and (min-width:768px) {
    font-size: 3em;
  }
}

#exitButton {
  color: #fff;
  font-size: 2em;
  transition: opacity 0.8s;
  position: absolute;
  top: 15px;
  right: 15px;
  &:hover {
    opacity: 0.7;
  }
  @media screen and (min-width:768px) {
    font-size: 3em;
  }
}

.two-col-content.cm-post-section {
  padding-bottom: 45px;
}

.cm-post-section .page-center {
  padding: 0;
}

.cm-post-section .cm-main-image {
  margin-bottom: 25px;
  position: relative;
}

.cm-post-section .view-gallery {
  border-radius: 0px;
  letter-spacing: 1px;
  font-size: 18px;
  background-color: #fdb71a;
  position: absolute;
  bottom: 0;
  right: 0;
  color: #fff;
  padding: 10px 50px 5.400px 35px;
  font-family: 'Bebas Neue', display;
}

.cm-post-section .view-gallery:after {
  color: #FFFFFF;
  line-height: inherit;
  font-size: inherit;
  opacity: 1;
  margin-left: .3em;
  left: auto;
  font-family: ETmodules;
  font-weight: 400;
  content: attr(data-icon);
  position: absolute;
}

.cm-post-section .cm-lightbox-wrapper {
  gap: 25px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-right: 25px;
  margin-right: -25px;
}

.cm-post-section .img-overlay {
  background-color: rgba(26, 26, 26, 0.33);
  border-color: rgba(26, 26, 26, 0.33);
  transition: all .3s;
}
.cm-post-section .cm-lightbox-wrapper i {
  color: #ffb81c;
  font-size: 32px;
}

.cm-post-section .cm-lightbox-wrapper .img-wrapper {
  max-height: 99px;
  height: 100%;
  position: relative;
}

.cm-post-section .cm-lightbox-wrapper .img-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}


.cm-post-section.two-col-content .content-col .description {
  margin-bottom: 0;
}

.cm-post-section.two-col-content .content-col .description {
  max-width: 545px;
}
.cm-post-section .cm-lightbox-wrapper i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.cm-post-section .cm-lightbox-wrapper a:hover i {
  opacity: 1;
}

.cm-post-section .cm-lightbox-wrapper .img-wrapper a:hover .img-overlay {
  opacity: 1;
}

@media (max-width:980px){
  .cm-post-section .cm-lightbox-wrapper .img-wrapper {
    max-height: 137px;
  }
}

@media (max-width:767px){
  .cm-post-section .cm-lightbox-wrapper .img-wrapper {
    max-height: 244px;
  }

  .two-col-content.cm-post-section {
    padding-bottom: 20px;
  }

  .cm-post-section .cm-lightbox-wrapper {
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
    padding-right: 15px;
    margin-right: -15px;
  }

  .cm-post-section.two-col-content .flex_row {
    padding-top: 0;
  }

  .cm-post-section .post-title hr:before {
    border-top-width: 5px;
  }

}
