/* Swiper.js CDN for mobile gallery slider */
@import url('https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css');

@media (max-width: 767px) {
  .villagio-hero-gallery__grid {
    display: none;
  }
  .villagio-hero-gallery__swiper {
    display: block;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    margin-left: calc(-1 * (100vw - 100%) / 2);
    margin-right: calc(-1 * (100vw - 100%) / 2);
  }
  .villagio-hero-gallery__swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vw;
    min-height: 220px;
    max-height: 70vw;
    background: #000;
    padding: 0;
  }
  .villagio-hero-gallery__slide-btn {
    padding: 0;;
  }
  .villagio-hero-gallery__swiper .villagio-hero-gallery__image {
    width: 100vw;
    height: 60vw;
    min-height: 220px;
    max-height: 70vw;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin: 0;
    padding: 0;
  }
  .villagio-hero-gallery__counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 1rem;
    z-index: 10;
  }
  .villagio-hero-gallery__view-all {
    display: none;
  }

  .villagio-gallery-modal__content {
    align-items: center;
  }
  .villagio-gallery-modal__nav {
    top: auto;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
  }

  .villagio-gallery-modal__nav--prev {
    transform: translateX(-28px);
  }
  .villagio-gallery-modal__nav--next {
    transform: translateX(10px) !important;
  }
  .villagio-gallery-modal__counter {
    background-color: #0000008c;
    padding-top: 60px;
  }
}

@media (min-width: 768px) {
  .villagio-hero-gallery__swiper {
    display: none;
  }
}
