.dyle-parcelle-gallery {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, .12);
}

.dyle-parcelle-gallery__grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(140px, 180px)) !important;
  justify-content: start;
  gap: 14px;
  width: 100%;
}

.dyle-parcelle-gallery__thumb {
  display: block !important;
  width: 180px !important;
  height: 125px !important;
  max-width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 2px;
  background: #f2f2f2;
  cursor: zoom-in;
  box-shadow: none;
}

.dyle-parcelle-gallery__thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transition: transform .35s ease;
}

.dyle-parcelle-gallery__thumb:hover img,
.dyle-parcelle-gallery__thumb:focus-visible img {
  transform: scale(1.04);
}

.dyle-gallery-lightbox[hidden] {
  display: none !important;
}

.dyle-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 5rem;
  background: rgba(0, 0, 0, .93);
}

.dyle-gallery-lightbox__figure {
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.dyle-gallery-lightbox__image {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: min(92vw, 1600px) !important;
  max-height: 88vh !important;
  object-fit: contain !important;
}

.dyle-gallery-lightbox__close,
.dyle-gallery-lightbox__nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.dyle-gallery-lightbox__close {
  top: 1rem;
  right: 1.25rem;
  font-size: 2.75rem;
}

.dyle-gallery-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  padding: .5rem 1rem;
  font-size: 4rem;
}

.dyle-gallery-lightbox__nav--prev { left: .5rem; }
.dyle-gallery-lightbox__nav--next { right: .5rem; }

body.dyle-gallery-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .dyle-parcelle-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .dyle-parcelle-gallery__thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
  }

  .dyle-gallery-lightbox {
    padding: 3.5rem 2.5rem;
  }

  .dyle-gallery-lightbox__nav {
    font-size: 3rem;
    padding: .5rem;
  }
}
