/**
* Block Name: gallery
*/

section.gallery .gallery_wrapper {
  margin-top: 150px;
  z-index: 3;
  position: relative;
}
section.gallery .grid {
  opacity: 0;
}
section.gallery .grid.in {
  opacity: 1;
}
section.gallery .stamp {
  position: absolute;
}
section.gallery .stamp1 {
  right: 0;
  top: 30px;
  width: calc(33% - 20px);
  height: 30px;
}
section.gallery .stamp2 {
  left: 0;
  top: 30px;
  width: calc(33% - 20px);
  height: 30px;
}

section.gallery .grid_sizer,
section.gallery .grid_item {
  width: calc(33% - 20px);
}

section.gallery .gutter_sizer {
  width: 30px;
}

section.gallery .grid_item {
  margin-bottom: 30px;
}
section.gallery .grid_item img.bg_static_cover {
  margin-bottom: 0;
}

section.gallery .grid_item a.fancybox {
  display: block;
  position: relative;
}

section.gallery .grid_item a.fancybox div.hover_container {
  background: rgba(95, 186, 148, 0.66);
  opacity: 0;
  -webkit-transition: opacity 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: opacity 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 15px;
  color: var(--white);
}

section.gallery .grid_item a.fancybox:hover div.hover_container {
  opacity: 1;
}

@media (max-width: 767px) {
  section.gallery .stamp {
    display: none;
  }
  section.gallery .grid_item {
    width: 100%;
  }
  section.gallery .gutter_sizer {
    width: 0px;
  }
}

.pswp__container {
  -webkit-transition: -webkit-transform 0.35s ease-in-out;
  transition: -webkit-transform 0.35s ease-in-out;
  transition: transform 0.35s ease-in-out;
  transition: transform 0.35s ease-in-out, -webkit-transform 0.35s ease-in-out;
  position: absolute !important;
  inset: 0 !important;
}


/* PhotoSwipe v5 override to undo v4 absolute positioning */
.pswp__scroll-wrap {
    position: fixed !important;
    inset: 0 !important;
  }
  
  /* keep bg fixed/fullscreen as well */
  .pswp__bg {
    position: fixed !important;
    inset: 0 !important;
  }

  .pswp__img{ 
    height: auto !important;
    padding: 100px;
  }