.galerias {
  display: grid;
  grid-template-columns: repeat(1, 1fr);

  gap: 1rem;
}

.galerias .galeria {
  position: relative;
  display: flex;
  flex-flow: column;

  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

.galerias .galeria .imagem {
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;

  width: 100%;
  height: 325px;

  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.galerias .galeria .descricao {
  display: flex;
  flex-flow: column wrap;
  flex: 1 0 auto;

  padding: 1rem;
}

.galerias .galeria .acoes {
  padding: 1rem;
}

/* FOTOS */
.fotos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  justify-content: center;
  align-items: center;

  width: auto;

  gap: 1rem;
  padding: 1rem;
}

.fotos img {
  max-width: 230px;
  width: 100%;
  flex: 1 1 auto;
}

.fotos .item {
  display: flex;
  justify-content: center;
  align-items: center;

  width: auto;
  height: 220px;
  flex: 1 1 auto;

  cursor: pointer;
}

/* SIDE GALLERY */
#side-gallery {

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
  min-height: 100%;

  padding: 1.5rem;

  background: white;

  z-index: 1030;
}

#side-gallery .gallery a img {
  width: 200px;
  max-height: 150px;
}

#side-gallery .header {
  display: block;
  width: 100%;
  min-height: 2rem;

  margin-bottom: 1rem;
}

#side-gallery .footer {
  display: block;
  width: 100%;
  min-height: 2rem;

  margin-top: 1rem;
}

#side-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 2px;
}

#side-gallery .gallery .item {
  height: 150px;
}

@media (min-width: 992px) {
  .galerias {
    grid-template-columns: repeat(3, 1fr);
  }

  .fotos {
    grid-template-columns: repeat(3, 1fr);
  }

  .fotos .item {
    height: 320px;
  }

  #side-gallery .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  #side-gallery .gallery .item {
    height: 250px;
  }

  #side-gallery .gallery a img {
    max-height: 250px;
  }
}

@media (min-width: 1400px) {
  .galerias {
    grid-template-columns: repeat(4, 1fr);
  }

  .fotos {
    grid-template-columns: repeat(4, 1fr);
  }
}
