:root {
  --block-padding: 20px;
  --container-width: 1450px;
  --small-container-width: calc(1170px + var(--block-padding) * 2 );
}
@media (min-width: 768px) {
  :root {
    --block-padding: clamp(60px, 6.6667px + 6.9444vw, 140px);
  }
}

section.gallery-block .container {
  display: block;
}
section.gallery-block .container .acf-innerblocks-container {
  max-width: calc(960px + var(--block-padding) * 2);
}
section.gallery-block .filter-container {
  padding-bottom: 0;
}
section.gallery-block .filter-container .filter {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  margin-top: 5rem;
}
section.gallery-block .filter-container .filter p {
  width: fit-content;
  margin: 0;
  padding: 10px;
  opacity: 0.6;
  cursor: pointer;
  font-size: var(--wp--preset--font-size--normal);
}
section.gallery-block .filter-container .filter p.active {
  opacity: 1;
}
section.gallery-block .grid.loading {
  min-height: 200px;
}
section.gallery-block .gallery-container {
  padding-top: 0;
}
section.gallery-block .gallery-container .column .swiper-slide {
  height: auto;
}
section.gallery-block .gallery-container .column .swiper-slide:not(:first-of-type) {
  margin-top: var(--grid-gap);
}
section.gallery-block div.lightbox {
  --button-size: 50px;
  height: 90%;
  left: 5%;
  position: fixed;
  top: 5%;
  width: 90%;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
}
section.gallery-block div.lightbox.active {
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 1;
  z-index: 100;
  pointer-events: initial;
  transition: all 0.3s ease;
}
section.gallery-block div.lightbox .lightbox-container {
  max-height: 80vh;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 auto;
  padding-block: 0;
}
section.gallery-block div.lightbox .lightbox-container .close {
  position: absolute;
  right: 20px;
  top: -65px;
  z-index: 2;
  display: flex;
  padding: 4px 12px;
  cursor: pointer;
  height: var(--button-size);
  width: var(--button-size);
}
@media (min-width: 768px) {
  section.gallery-block div.lightbox .lightbox-container .close {
    right: 0;
    top: -25px;
  }
}
section.gallery-block div.lightbox .lightbox-container .close > span {
  height: 3px;
  width: 25px;
  background: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
section.gallery-block div.lightbox .lightbox-container .close > span:last-of-type {
  transform: translate(-50%, -50%) rotate(-45deg);
}
section.gallery-block div.lightbox .lightbox-container .swiper .swiper-wrapper .swiper-slide {
  cursor: grab;
}
section.gallery-block div.lightbox .lightbox-container .swiper .swiper-wrapper .swiper-slide img {
  max-height: 80vh;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
section.gallery-block div.lightbox .lightbox-container .lightbox-swiper-next, section.gallery-block div.lightbox .lightbox-container .lightbox-swiper-prev {
  top: 50%;
  position: absolute;
  z-index: 1;
  width: var(--button-size);
  height: var(--button-size);
  transform: translate(0, -50%);
  cursor: pointer;
}
@media (max-width: 767px) {
  section.gallery-block div.lightbox .lightbox-container .lightbox-swiper-next, section.gallery-block div.lightbox .lightbox-container .lightbox-swiper-prev {
    display: none;
  }
}
section.gallery-block div.lightbox .lightbox-container .lightbox-swiper-next svg, section.gallery-block div.lightbox .lightbox-container .lightbox-swiper-prev svg {
  height: 25px;
  width: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  color: white;
  transform: translate(-50%, -50%);
}
section.gallery-block div.lightbox .lightbox-container .lightbox-swiper-next.swiper-button-disabled svg, section.gallery-block div.lightbox .lightbox-container .lightbox-swiper-prev.swiper-button-disabled svg {
  color: rgba(255, 255, 255, 0.5);
}
section.gallery-block div.lightbox .lightbox-container .lightbox-swiper-prev {
  left: 0;
}
section.gallery-block div.lightbox .lightbox-container .lightbox-swiper-prev svg {
  transform: translate(-50%, -50%) rotate(180deg);
}
section.gallery-block div.lightbox .lightbox-container .lightbox-swiper-next {
  right: 0;
}
section.gallery-block i.placeholder {
  position: relative;
  display: inline-block;
  height: 1em;
  vertical-align: middle;
  overflow: hidden;
}
section.gallery-block i.placeholder::before {
  content: "";
  background: linear-gradient(90deg, transparent 0%, #000 50%, transparent 100%);
  opacity: 0.3;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transform: translate3d(-100%, 0, 0);
  animation: placeholder 2s infinite ease-in-out;
}
section.gallery-block i.placeholder.image {
  display: block;
  padding-bottom: 100%;
  background: rgba(50, 50, 50, 0.1);
}
@keyframes placeholder {
  0% {
    transform: translate3d(-100%, 0, 0);
  }
  100% {
    transform: translate3d(100%, 0, 0);
  }
}

section.content-block.has-white-background-color + section.gallery-block.has-white-background-color > .filter-container {
  padding-top: 0;
}