body{
  font-family: sans-serif;
}

.location-description img {
    max-width: 100%;
    height: auto;
}

ul.gallery {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  column-gap: 1rem;
  row-gap: 1rem;
}

ul.gallery li {
  height: 22vh;
  flex-grow: 1;
  position: relative;
  transition: transform .4s;
}

ul.gallery li:hover {
  transform: scale(0.98); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

ul.gallery li:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3rem;
  background: rgb(255,255,255);
  background: linear-gradient(rgb(0 0 0 / 40%) 0%, rgb(0 0 0 / 33%) 50%, rgb(254 254 254 / 0%) 100%);
  border-radius: 0.7rem;
}


ul.gallery li .location {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  color: #fff;
  align-items: center;
  white-space: nowrap;
  font-size: 1.5rem;
  width: 100%;
  height: 3rem;
}
ul.gallery li .location-content {
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

ul.gallery li .like-it {
    position: absolute;
    bottom: 0rem;
    right: 0.5rem;
    width: 1.7rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
ul.gallery li .like-it span {
    margin-left: 0.2rem;
    color: #fff;
}

/*
ul.gallery li:last-child {
  flex-grow: 10;
}
ul.gallery li:last-child::before {
  content: none;
}
*/

ul.gallery .main-img {
  max-height: 100%;
  min-width: 100%;
  object-fit: cover;
  vertical-align: bottom;
  border-radius: 1vmin;
  border-radius: 0.7rem;
}

ul.gallery .main-page-photo-h2 {
  font-size: 24px;
  font-weight: 700;
  
}
ul.gallery .main-page-photo-text {
  color: #595959;
}



@media (max-aspect-ratio: 1/1) {
  ul.gallery li {
    height: 30vh;
  }
}


@media (max-width: 480px) {
  .h1, h1 {
    font-size: 23px !important;
  }
}
@media (max-height: 480px) {
  ul.gallery li {
    height: 80vh;
  }
}


@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
  ul.gallery {
    flex-direction: row;
  }

  ul.gallery li {
    height: auto;
    width: 100%;
  }
  ul.gallery img {
    width: 100%;
    max-height: 75vh;
    min-width: 0;
  }
}