.asyncGallery {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  z-index: 1000;
  visibility: hidden;
  background-color: var(--color-white);
  transition: opacity 200ms, visibility 200ms;
}

.asyncGallery.is-visible {
  opacity: 1;
  visibility: visible;
  overflow: auto;
}

.asyncGallery__Item {
  position: absolute;
  /*top: 50%;
  left: 50%;*/
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
/*  transform: translate(-50%, -50%);*/
  transition: opacity 200ms, visibility 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 1.4rem;
}

.asyncGallery__Item.is-visible {
  opacity: 1;
  visibility: visible;
  overflow: auto;
}
.asyncGallery__ItemImage{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  max-width: 1680px;
  flex-direction: column;
  background-color: var(--color-sand-peach);
}


  
}
.asyncGallery__ItemImage img {
  max-height: 80vh;
  width: auto;
  display: block;
  
}
.asyncGallery__ItemImage img.small {
  /* max-height: 80vh; */
  /* width: auto; */
  display: block;
  width: 70%;  
  margin-top: 1rem;
}

.asyncGallery__ItemImage .lightbox-elements {
  float: left;
  width: 70%;
  padding: 2rem 0;
  color: var(--color-black);
  display: none;
}
.asyncGallery__ItemImage .lightbox-elements.show {

  display: block;
}


.asyncGallery__ItemImage h3{
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
  
.asyncGallery__ItemImage h4{
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1rem;
}
.asyncGallery__ItemImage p{
  
}

.asyncGallery__ItemDescription,
.asyncGallery__Loader {
  color: var(--color-black);
}

.asyncGallery__Loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  color: var(--color-black);
  z-index: 100;
}

.asyncGallery__Loader.is-visible {
  display: block;
}

.asyncGallery button {
  background-color: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  font-size: 0;
  cursor: pointer;
}

.asyncGallery__Close {
  position: absolute;
  top: 2rem;
  right: 2.2rem;
  width: 30px;
  height: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  font-size: 24px; /* Regola la dimensione a piacere */
  color: var(--color-text); /* Cambia colore a piacere */
  background: none; /* Rimuove l'immagine di sfondo */
  cursor: pointer;
}

.asyncGallery__Close::before {
  content: "\f067"; /* Icona "times" di Font Awesome */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 2.4rem;
  transform: rotate(45deg); /* Ruota di 45 gradi */
  display: inline-block; /* Necessario per applicare la trasformazione */
}


.asyncGallery__Counter {
  position: absolute;
  font-size: 20px;
  font-weight: bold;
  color: var(--color-black);
  right: 40px;
  bottom: 40px;
}

.asyncGallery__Dots {
  position: absolute;
  left: 50%;
  bottom: 40px;
  display: flex;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  list-style-type: none;
  z-index: 1000;
}

.asyncGallery__Dots button {
  padding: 0;
  width: 10px;
  height: 10px;
  background-color: var(--color-black);
  border: 0;
  outline: 0;
  border-radius: 50%;
}

.asyncGallery__Dots li {
  opacity: 0.2;
  transition: opacity 200ms;
}

.asyncGallery__Dots li + li {
  margin-left: 10px;
}

.asyncGallery__Dots li.is-active {
  opacity: 1;
}

.asyncGallery__Next,
.asyncGallery__Prev {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  z-index: 1000;
  transition: transform 200ms, opacity 200ms;
  transform: translateY(-50%);
}

.asyncGallery__Next:disabled,
.asyncGallery__Prev:disabled {
  opacity: 0.2;
  cursor: default;
}

.asyncGallery__Next:before,
.asyncGallery__Prev:before {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 129 129' xmlns:xlink='http://www.w3.org/1999/xlink' enable-background='new 0 0 129 129'%3E%3Cg%3E%3Cpath d='m40.4,121.3c-0.8,0.8-1.8,1.2-2.9,1.2s-2.1-0.4-2.9-1.2c-1.6-1.6-1.6-4.2 0-5.8l51-51-51-51c-1.6-1.6-1.6-4.2 0-5.8 1.6-1.6 4.2-1.6 5.8,0l53.9,53.9c1.6,1.6 1.6,4.2 0,5.8l-53.9,53.9z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A");
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  background-size: 30px 30px;
}

.asyncGallery__Next {
  right: 40px;
}

.asyncGallery__Next:hover {
  transform: translateX(2px) translateY(-50%);
}

.asyncGallery__Next:before {
  transform: translate3d(-50%, -50%, 0);
}

.asyncGallery__Prev {
  left: 40px;
}

.asyncGallery__Prev:hover {
  transform: translateX(-2px) translateY(-50%);
}

.asyncGallery__Prev:before {
  transform: translate3d(-50%, -50%, 0) scale(-1);
}



.gallery div {
  cursor: pointer;
}

.gallery div img {
  transition: var(--transition-01);
}

.gallery div img:hover {
  opacity: 0.8;
}


@media screen and (min-width: 80em){

  .asyncGallery__Item {
    height: 100%;
  }
  .asyncGallery__ItemImage{
    padding: 8rem;
    flex-direction: row;
  }

  .asyncGallery__ItemImage .lightbox-elements {
    width: 70%;
  }
  .asyncGallery__ItemImage img.small {
    margin-top: 0;
    padding: 2rem;
    width: 40%;  
  }
}