@charset "utf-8";
/* CSS Document */

    
    // BASIC

/*body{
  font-family: sans-serif;
}
*/

.galleryUL {
  display: flex;
  flex-wrap: wrap;
  margin: 2vmin;
}

.galleryLI {
  height: 40vh;
  flex-grow: 1;
  margin: 2vmin;
}

.galleryLI:last-child {
  // There's no science in using "10" here. In all my testing, this delivered the best results.
  flex-grow: 10;
}

.galleryLI img {
  max-height: 100%;
  min-width: 100%;
  object-fit: cover;
  vertical-align: bottom;
  border-radius: 1vmin;
}

// ADVANCED

// Portrait

@media (max-aspect-ratio: 1/1) {
.galleryLI {
    height: 30vh;
  }
}

// Short screens

@media (max-height: 480px) {
.galleryLI {
    height: 80vh;
  }
}

// Smaller screens in portrait

@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
.galleryUL {
    flex-direction: row;
  }

.galleryLI {
    height: auto;
    width: 100%;
  }
.galleryLI img {
    width: 100%;
    max-height: 75vh;
    min-width: 0;
  }
}
    
