@import url('https://fonts.googleapis.com/css2?family=Schoolbell&display=swap');

@charset "UTF-8";
*, *:before, *:after {
  box-sizing: border-box;
}

/* h1 img controls the height of the little unicorn gid as it is created as a nested element
 <h1> <img> Little Unicorn Gif </img> </h1>  */

h1 img {
  /* width: 50px; */
  height: 10vh;
  vertical-align: middle;
}


html {
  font-size: 16px;
}

svg {
  width: 100vw;
  height: 100vh;
}


.floating-container{
  position: absolute;
  /* background: yellow; */
  top: 10%;
  left: 10%;
  right: 10%;
  width: 80%;
  bottom: 10%;
  overflow: auto;
}

body {
  overflow: hidden;
  font-family: 'Schoolbell';
  position: relative;
  font-size: 100%;
  background: #ac8758;
  background: -webkit-linear-gradient(to right, #FFD194, #D1913C);
  background: linear-gradient(to right, #FFD194, #D1913C);
}

.gallery-container {
  /* padding: 0.9375rem 0; */
  padding: 0.375rem 0;

}

.gallery-container h1 {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  z-index: 15;
  /* ==== */
  margin: 2rem 0;
  padding: 0;
  text-align: center;
  color: ivory;
  /* text-transform: uppercase; */
  font-size: 4.5vw;
  font-weight: lighter;
  text-shadow: 1px 1px 2px beige;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 20em) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (min-width: 34em) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 60em) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery-grid img {
  width: 100%;
  border: 5px solid #fff;
}

.gallery-grid div {
  position: relative;
  cursor: pointer;
}
.gallery-grid div:before, .gallery-grid div:after {
  transition: 0.3s opacity ease;
  opacity: 0;
}
.gallery-grid div:after {
  content: "↔";
  font-size: 80px;
  position: absolute;
  transform: translate3d(-50%, -50%, 0) rotate(-45deg);
  color: #fff;
  left: 50%;
  top: 50%;
  display: block;
}
.gallery-grid div:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 4px;
  left: 0;
  right: 0;
  background: rgba(34, 34, 34, 0.5);
  display: block;
}
.gallery-grid div:hover:before, .gallery-grid div:hover:after {
  opacity: 1;
  transition: 0.3s opacity ease;
}

.modal {
  position: fixed;
  z-index: 999;
  width: 50%;
  max-width: 800px;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
}
@media (min-width: 20em) {
  .modal {
    width: 95%;
  }
}
@media (min-width: 34em) {
  .modal {
    width: 80%;
  }
}
@media (min-width: 60em) {
  .modal {
    width: 60%;
  }
}
.modal img {
  width: 100%;
  border: 5px solid #fff;
}

.modal-overlay {
  position: fixed;
  z-index: 1;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
}

.modal-body a {
  position: absolute;
  display: inline;
  color: #222;
  text-decoration: none;
  line-height: 36px;
  font-size: 30px;
  font-weight: lighter;
  background: #fff;
  border-radius: 5px;
  height: 40px;
  width: 40px;
  text-align: center;
}

.modal-body .modal-close {
  right: 0;
  top: 0;
  border-radius: 0 0 0 5px;
}

.modal-body .modal-next,
.modal-body .modal-prev {
  right: 0;
  top: calc(50% - 25px);
  border-radius: 5px 0 0 5px;
  height: 50px;
  line-height: 40px;
  font-size: 60px;
}

.modal-body .modal-prev {
  left: 0;
  right: auto;
  border-radius: 0 5px 5px 0;
}

.modal-body {
  position: relative;
}