.galleries-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
  row-gap: 1rem;
  margin: 1rem 0;
  position: relative;
}

@media only screen and (min-width: 700px) {
  .galleries-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (min-width: 1200px) {
  .galleries-container {
    grid-template-columns: repeat(5, 1fr);
  }
}

.gallery-item {
  aspect-ratio: 3 / 2;
  border-radius: 0.5rem;
  max-width: 100%;
}

.gallery-item:hover {
  color: #ffffff;
}

.gallery-image {
  height: 99%;
  background-size: cover;
  position: relative;
  border-radius: 0.25rem;
  border: 2px solid rgba(0, 0, 0, 0.9);
}

.gallery-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 0.25rem 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-right-radius: 0.25rem;
}

@media only screen and (min-width: 700px) {
  .gallery-title {
    bottom: auto;
    left: 0em;
    top: 0em;
    width: 40%;
    height: 100%;
    padding: 0.75rem 0.5rem 0.25rem;
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom-right-radius: 0;
  }
}
