<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*
Based on: https://www.sitepoint.com/using-modern-css-to-build-a-responsive-image-grid/
*/

#gallery {
  width: 80%;
  margin: 30px auto;
  font-family: sans-serif;
}

#gallery h3 {
  text-align: center;
  font-size: 1.65em;
  margin: 0 0 30px;
}

#gallery div {
  font-size: 0;
}

#gallery a {
  font-size: 16px;
  overflow: hidden;
  display: inline-block;
  margin-bottom: 8px;
  width: calc(50% - 4px);
  margin-right: 8px;
}

#gallery a:nth-of-type(2n) {
  margin-right: 0;
}

@media screen and (min-width: 50em) {
  #gallery a {
    width: calc(25% - 6px);
  }
  
  #gallery a:nth-of-type(2n) {
    margin-right: 8px;
  }
  
 #gallery  a:nth-of-type(4n) {
    margin-right: 0;
  }
}

#gallery a:hover img {
  transform: scale(1.15);
}

#gallery div figure {
  margin: 0;
}

#gallery img {
  border: none;
  max-width: 100%;
  height: auto;
  display: block;
  background: #ccc;
  transition: transform .2s ease-in-out;
}

</pre></body></html>