section.gallery-fotography .x-container {
  gap: 54px;
}

.gallery-intro-photos {
  width: 100%;
  gap: 80px;
  display: flex;
}

.gallery-intro-photos img {
  width: calc((100% / 4) - 60px);
}

#mediaGallerySplide .splide__slide {
  width: auto;
}

#mediaGallerySplide .splide__slide img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* GALLERY TEMPLATE * LIGHTBOX */
.gallery-lightbox-trigger {
  cursor: pointer;
}

.gallery-lightbox-trigger img {
  display: block;
  width: 100%;
  object-fit: cover;
}

#galleryLightboxSliderModal .modal-dialog {
  max-width: 90vw;
}

#galleryLightboxSliderModal .modal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
}

#galleryLightboxSliderModal .modal-body {
  background: rgba(0, 0, 0, 0.92);
  border-radius: 12px;
  padding: 2rem;
}

.gallery-lightbox-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.gallery-lightbox-slide img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

#galleryLightboxSplide .splide__arrow {
  background: transparent;
  border: 0;
  width: 48px;
  height: 48px;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#galleryLightboxSplide .splide__arrow svg {
  display: block;
  width: 24px;
  height: 32px;
}

#galleryLightboxSplide .splide__arrow--prev svg {
  transform: rotate(180deg);
}

.gallery-item-single {
  overflow: hidden;
  border-radius: 12px; /* keep your rounded corners */
}

.gallery-item-single img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.4s ease;
}

.gallery-item-single:hover img {
  transform: scale(1.08);
}

/* LIGHTBOX */
div#galleryLightboxSliderModal {
  background-color: #1d1d1dc7;
}

div#galleryLightboxSliderModal .modal-body {
  background: transparent;
}

div#galleryLightboxSplide .splide__arrows {
  position: absolute;
  z-index: 9;
  top: 50%;
  bottom: 50%;
  margin: auto;
  height: fit-content;
  width: 100%;
}

div#galleryLightboxSplide .splide__arrows .splide__arrow--next,
div#galleryLightboxSplide .splide__arrows .splide__arrow--prev {
  position: absolute;
}

div#galleryLightboxSplide .splide__arrows .splide__arrow--next {
  right: 0;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .media-gallery-page-content {
  }
}

@media (max-width: 776px) {
  .media-gallery-page-content.standard-y-spacing {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  div#galleryLightboxSplide .splide__arrows {
    top: unset;
    bottom: 0;
  }
}
