/*-------------------------
event_gallery
--------------------------*/
.wp-block.event_gallery {
  padding-bottom: 64px;
}
.wp-block.event_gallery .inner-box {
  padding: 32px 24px;
  background: #EDF4F5;
}
@media only screen and (min-width: 768px) {
  .wp-block.event_gallery .inner-box {
    padding: 62px 80px;
  }
}
.wp-block.event_gallery .gallery_wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media only screen and (min-width: 768px) {
  .wp-block.event_gallery .gallery_wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 1024px) {
  .wp-block.event_gallery .gallery_wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media only screen and (min-width: 1200px) {
  .wp-block.event_gallery .gallery_wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}
.wp-block.event_gallery .gallery_wrapper .gallery_item {
  aspect-ratio: 276/220;
  overflow: hidden;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  border: none;
  transition: all 0.3s ease;
}
.wp-block.event_gallery .gallery_wrapper .gallery_item:hover, .wp-block.event_gallery .gallery_wrapper .gallery_item:focus-visible {
  outline: 2px solid #4e8d9a;
  outline-offset: 2px;
}
.wp-block.event_gallery .gallery_wrapper .gallery_item picture,
.wp-block.event_gallery .gallery_wrapper .gallery_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.wp-block.event_gallery .event-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}
.wp-block.event_gallery .event-gallery-lightbox[hidden] {
  display: none;
}
.wp-block.event_gallery .event-gallery-lightbox button {
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
}
.wp-block.event_gallery .event-gallery-lightbox .event-gallery-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 40px;
  width: 48px;
  height: 48px;
}
.wp-block.event_gallery .event-gallery-lightbox .event-gallery-lightbox-prev,
.wp-block.event_gallery .event-gallery-lightbox .event-gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
  width: 56px;
  height: 56px;
  background: url("../../assets/images/lightbox-chevron.svg") no-repeat center center;
  background-size: 29px 29px;
}
.wp-block.event_gallery .event-gallery-lightbox .event-gallery-lightbox-prev:disabled,
.wp-block.event_gallery .event-gallery-lightbox .event-gallery-lightbox-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.wp-block.event_gallery .event-gallery-lightbox .event-gallery-lightbox-prev {
  left: 16px;
  transform: rotate(-270deg) translateX(-50%);
}
.wp-block.event_gallery .event-gallery-lightbox .event-gallery-lightbox-next {
  right: 16px;
  transform: rotate(-90deg) translateX(50%);
}
.wp-block.event_gallery .event-gallery-lightbox .event-gallery-lightbox-figure {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.wp-block.event_gallery .event-gallery-lightbox .event-gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.wp-block.event_gallery .event-gallery-lightbox .event-gallery-lightbox-caption {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}
.wp-block.event_gallery .event-gallery-lightbox .event-gallery-lightbox-caption[hidden] {
  display: none;
}

body.event-gallery-lightbox-open {
  overflow: hidden;
}