
.image-grid { max-width: 100%; }

.image-grid__item, .image-grid__col-sizer { width: 31%; }

.image-grid__gutter-sizer { width: 3%; }

.image-grid__item { margin-bottom: 3%; float: left; }

.image-grid.are-images-unloaded .image-grid__item { opacity: 0; }

.image-grid__image { display: block; max-width: 100%; }


.loader-ellips {
  font-size: 20px;
  position: relative;
  width: 4em;
  height: 1em;
  margin: 10px auto;
}

.loader-ellips__dot {
  display: block;
  width: 1em;
  height: 1em;
  border-radius: 0.5em;
  background: #555;
  position: absolute;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}

.loader-ellips__dot:nth-child(1),
.loader-ellips__dot:nth-child(2) {
  left: 0;
}
.loader-ellips__dot:nth-child(3) { left: 1.5em; }
.loader-ellips__dot:nth-child(4) { left: 3em; }

@keyframes reveal {
  from { transform: scale(0.001); }
  to { transform: scale(1); }
}

@keyframes slide {
  to { transform: translateX(1.5em); }
}

.loader-ellips__dot:nth-child(1) {
  animation-name: reveal;
}

.loader-ellips__dot:nth-child(2),
.loader-ellips__dot:nth-child(3) {
  animation-name: slide;
}

/* stylelint-disable-next-line no-duplicate-selectors */
.loader-ellips__dot:nth-child(4) {
  animation-name: reveal;
  animation-direction: reverse;
}

/* loader-wheel
------------------------- */

.loader-wheel {
  font-size: 64px; /* change size here */
  position: relative;
  height: 1em;
  width: 1em;
  padding-left: 0.45em;
  overflow: hidden;
  margin: 0 auto;
  animation: loader-wheel-rotate 0.5s steps(12) infinite;
}

.loader-wheel i {
  display: block;
  position: absolute;
  height: 0.3em;
  width: 0.1em;
  border-radius: 0.05em;
  background: #333; /* change color here */
  opacity: 0.8;
  transform: rotate(-30deg);
  transform-origin: center 0.5em;
}

@keyframes loader-wheel-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* page-nav
------------------------- */

.page-nav {
  font-size: 0.85rem;
  line-height: 1.2;
}

.page-nav__list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0 10px 0 0;
}

.page-nav__item {
  margin: 0.2rem 0;
  overflow-wrap: break-word;
}

.page-nav__item--h3,
.page-nav__item--h4 {
  padding-left: 15px;
}

@media screen and (min-width: 960px) {
  .page-nav {
    position: absolute;
    left: 0;
    top: 0;
    width: 200px;
    height: 100%;
  }

  .page-nav__list {
    display: block;
    margin: 0;
    padding: 20px;
  }

  /* activate sticky */
  .page-nav::after {
    content: 'sticky';
    display: none;
  }

  .page-nav.is-sticky .page-nav__list {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    top: 0;
  }

  .page-nav__item a {
    display: block;
    padding: 2px 0;
    text-decoration: none;
  }
}

/* scroller
------------------------- */

.scroller {
  height: 400px;
  padding: 10px 10px 100px;
  overflow-y: scroll;
  border: 1px solid #DDD;
  border-radius: 5px;
}

/* ---- scroller-item ---- */

.scroller-item {
  height: 200px;
  margin-bottom: 10px;
  padding: 20px;
  background: #19F;
  border-radius: 5px;
  color: white;
  font-size: 3rem;
  line-height: 1;
}

.scroller-item--height2 { height: 250px; }
.scroller-item--height3 { height: 300px; }

.scroller-item--magenta { background: #C25; }
.scroller-item--red { background: #E21; }
.scroller-item--gold { background: #EA0; }
.scroller-item--green { background: #6C6; }

/* ---- prefill ---- */

.scroller--prefill { height: 500px; }

.scroller--prefill .scroller-item,
.scroller--prefill .scroller-item--height2,
.scroller--prefill .scroller-item--height3 { height: 80px; }

/* scroller-status
------------------------- */

.scroller-status {
  display: none;
  padding: 20px 0;
}

.scroller-status__message {
  text-align: center;
  color: #777;
}

/* site nav
------------------------- */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: #19F;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* bottom nav */
.main ~ .site-nav {
  position: relative;
  margin-top: 80px;
  z-index: 2; /* on top of page-nav */
}

.site-nav__item a {
  display: block;
  padding: 10px 20px;
  color: white;
}

.site-nav__item--homepage {
  font-weight: bold;
}

.site-nav__item a:hover {
  background: #C25;
  color: white;
}

.site-nav__item a:active {
  background: white;
  color: #8C8;
}

/* selected */
.page--style .site-nav__item--style a,
.page--options .site-nav__item--options a,
.page--api .site-nav__item--api a,
.page--events .site-nav__item--events a,
.page--extras .site-nav__item--extras a,
.page--license .site-nav__item--license a {
  background: #FFF;
  color: #19F;
}

/* size at which it can fit */
@media screen and (min-width: 768px) {
  .site-nav__item {
    width: auto;
    font-size: 1.2rem;
  }

  .site-nav__item a {
    padding: 20px 25px;
  }
}

/* site-scroll
------------------------- */

.site-scroll__button {
  margin: 60px auto;
  padding: 20px 40px;
}

.masonry-small .image-grid__item {
  margin-bottom: 10px;
}
