.gallery-slider {
  width: 100%;
  display: block !important;
  clear: both;
  margin: 20px 0;
  border-radius: 20px;
}

.gallery-slider .swiper-slide {
  display: flex !important;
  justify-content: center;
  align-items: center;
  height: 500px;
  cursor: pointer;
  overflow: hidden;
  /*border-radius: 20px;*/ /* Ensures all slides retain uniform rounded corners */
}

.gallery-slider-link {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.gallery-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Forces both landscape and portrait images to fill the 500px frame */
  object-position: center;
  display: block;
  /*border-radius: 20px;*/
}

.swiper-button-prev,
.swiper-button-next {
  transition: var(--ast-btn-transition, all 0.2s linear);
  width: 2em;
  height: 2em;
  background: var(--ast-global-color-2);
  border-radius: 100%;
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5em;
  box-sizing: content-box;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: var(--ast-global-color-0);
}

button.pswp__button {
  background: none !important;
}

@media screen and (max-width: 1024px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  .gallery-slider .swiper-slide {
    height: 350px; /* Optional: Scale down container height for tablet/mobile viewports */
  }
}
