@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Roboto:wght@100&display=swap');

:root {
  --shadow: rgba(0,0,0,.2);
}

*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  color:#373737;
  background: hsl(0, 0%, 100%);
  font-size: 18px;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#wrapper {
  max-width: 800px;
  margin: 5rem auto 2rem auto
}

header {
  font-family: 'Great Vibes', cursive;
  font-size: 40px;
  text-align: center;
  display: block;
  padding-bottom: 2rem;
}

header > div.subtext {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
}

div.body {
  font-family: 'Roboto', sans-serif;
  font-size: 40px;
}

.container > .gallery > #lightgallery > li > a {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
}

.container > .gallery > #lightgallery > li > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 2px 16px var(--shadow);
}

.container > .gallery > #lightgallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-auto-flow: dense;
}

.horizontal {
  grid-column: span 2;
}

.vertical {
  grid-row: span 2;
}

.big {
  grid-column: span 2;
  grid-row: span 2;
}

@media screen and (max-width:540px) {
  header {
    padding-bottom: 0rem;
  }

  #wrapper {
    padding: 20px 20px 20px 20px;
    margin: 0rem auto 0 auto
  }

  footer {
    font-size: smaller;
  }
}

@media screen and (max-width:800px) {
  #wrapper {
    padding: 20px 20px 20px 20px;
    margin: 0rem auto 0 auto
  }
}

@media screen and (max-width:960px) {
  #wrapper {
    padding: 20px 20px 20px 20px;
    margin: 0rem auto 0 auto
  }
}

.gallery > ul {
  margin-bottom: 0;
}

.gallery > ul > li {
  list-style: outside none none;
}

.gallery > ul > li a {
  border: 3px solid #FFF;
  border-radius: 3px;
  display: block;
  overflow: hidden;
  position: relative;
  float: left;
}

.gallery > ul > li a > img {
  -webkit-transition: -webkit-transform 0.15s ease 0s;
  -moz-transition: -moz-transform 0.15s ease 0s;
  -o-transition: -o-transform 0.15s ease 0s;
  transition: transform 0.15s ease 0s;
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
  height: 100%;
  width: 100%;
}

.gallery > ul > li a:hover > img {
  -webkit-transform: scale3d(1.1, 1.1, 1.1);
  transform: scale3d(1.1, 1.1, 1.1);
}

.gallery > ul > li a:hover .gallery-poster > img {
  opacity: 1;
}

.gallery > ul > li a .gallery-poster {
  background-color: rgba(0, 0, 0, 0.1);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  -webkit-transition: background-color 0.15s ease 0s;
  -o-transition: background-color 0.15s ease 0s;
  transition: background-color 0.15s ease 0s;
}

.gallery > ul > li a .gallery-poster > img {
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  opacity: 0;
  position: absolute;
  top: 50%;
  -webkit-transition: opacity 0.3s ease 0s;
  -o-transition: opacity 0.3s ease 0s;
  transition: opacity 0.3s ease 0s;
}

.gallery > ul > li a:hover .gallery-poster {
  background-color: rgba(0, 0, 0, 0.5);
}

.gallery .justified-gallery > a > img {
  -webkit-transition: -webkit-transform 0.15s ease 0s;
  -moz-transition: -moz-transform 0.15s ease 0s;
  -o-transition: -o-transform 0.15s ease 0s;
  transition: transform 0.15s ease 0s;
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
  height: 100%;
  width: 100%;
}

.gallery .justified-gallery > a:hover > img {
  -webkit-transform: scale3d(1.1, 1.1, 1.1);
  transform: scale3d(1.1, 1.1, 1.1);
}

.gallery .justified-gallery > a:hover .gallery-poster > img {
  opacity: 1;
}

.gallery .justified-gallery > a .gallery-poster {
  background-color: rgba(0, 0, 0, 0.1);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  -webkit-transition: background-color 0.15s ease 0s;
  -o-transition: background-color 0.15s ease 0s;
  transition: background-color 0.15s ease 0s;
}

.gallery .justified-gallery > a .gallery-poster > img {
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  opacity: 0;
  position: absolute;
  top: 50%;
  -webkit-transition: opacity 0.3s ease 0s;
  -o-transition: opacity 0.3s ease 0s;
  transition: opacity 0.3s ease 0s;
}

.gallery .justified-gallery > a:hover .gallery-poster {
  background-color: rgba(0, 0, 0, 0.5);
}

.gallery .video .gallery-poster img {
  height: 48px;
  margin-left: -24px;
  margin-top: -24px;
  opacity: 0.8;
  width: 48px;
}

footer {
  text-align: center;
  padding: 1rem;
}

footer > a {
  color:hsl(0, 0%, 0%);
  text-decoration: none;
}

/* UserAgent override */
ul { padding-inline-start: 0px; } 

/* LightGallery loading gif override */
.lg-outer .lg-item {
  background: url("../images/loading.gif") no-repeat scroll center center transparent !important;
}