html,
body,
#container {
  height: 100%;
}

body {
  -webkit-transition: background-color linear 4s;
  font-family: "Overpass", sans-serif;
  font-weight: 300;
  font-size: 16px;
}

body::-webkit-scrollbar {
  width: 12px;
  background-color: #f5f5f5;
}

body::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #f5f5f5;
}

body::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #555;
}

h1,
h2,
h3 {
  font-weight: 300;
  color: #222;
}

#container {
  -webkit-transition: background-color 2s linear;
  background-color: rgba(0, 0, 0, 0);
}

#loading {
  color: white;
  position: absolute;
  font-size: 16px;
  left: 50%;
  top: 40%;
  width: 200px;
  margin-left: -100px;
  -webkit-transition: opacity 2s linear;
}

.loaded #loading {
  opacity: 0;
}

.section-header {
  text-align: center;
  margin: 60px auto 20px auto;
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  color: #222;
}

.section-header-underline {
  border-top: 3px solid #222;
  width: 3rem;
  margin: 0 auto;
  margin-bottom: 30px;
}

.scrollbar {
  height: 300px;
  width: 30px;
  background: #f5f5f5;
  overflow-y: scroll;
  margin: 25px;
}

.force-overflow {
  min-height: 450px;
}

#warning {
  display: none;
}

.no-csstransforms3d #warning {
  background: red;
  color: white;
  position: absolute;
  padding: 10px;
  display: block;
  top: 0;
  right: 0;
  left: 0;
  text-align: center;
}

#warning a {
  color: white;
}

#main {
  width: 1060px;
  margin: 0 auto;
  -webkit-perspective: 700px;
  -webkit-perspective-origin-x: 390px;
  height: 1000px;
  position: relative;
}

.init #main {
  -webkit-transition: all 1s ease-in-out;
}

.mfp-zoom-in {
  /* start state */
  /* animate in */
  /* animate out */
}

.mfp-zoom-in .mfp-with-anim {
  opacity: 0;
  transition: all 0.2s ease-in-out;
  transform: scale(0.8);
}

.mfp-zoom-in.mfp-bg {
  opacity: 0;
  transition: all 0.3s ease-out;
}

.mfp-zoom-in.mfp-ready .mfp-with-anim {
  opacity: 1;
  transform: scale(1);
}

.mfp-zoom-in.mfp-ready.mfp-bg {
  opacity: 0.8;
}

.mfp-zoom-in.mfp-removing .mfp-with-anim {
  transform: scale(0.8);
  opacity: 0;
}

.mfp-zoom-in.mfp-removing.mfp-bg {
  opacity: 0;
}

/*********************************************** 
 * Gallery: Core style
 */
#gallery {
  display: none;
}

#gallery {
  list-style: none;
  margin-left: 0;
  display: block;
  height: 100%;
  -webkit-transition: all 0.5s ease-out;
  -webkit-transform: rotate3d(0, 0, 0);
  -webkit-transform-style: preserve-3d;
  -webkit-perspective: 500px;
}

#gallery > li {
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-transform-style: preserve-3d;
  float: left;
  margin: 40px 0 0 40px;
  width: 300px;
  height: 200px;
}

.init #main #gallery > li {
  -webkit-transition: all 1s ease-in-out;
}

#gallery > li > div {
  position: relative;
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  /*      -webkit-transform: translateZ(1px);*/
  /*      -webkit-transform: rotateZ(0deg);*/
}

/** Wrappers for intro **/
#gallery > li > div > section {
  /*          -webkit-transform-style: preserve-3d;*/
  -webkit-transition: all 0.4s ease-out;
  -webkit-transform: translateZ(100px);
  opacity: 0;
}

#gallery > li > div > section.entered {
  opacity: 1;
  -webkit-transform: translateZ(1px);
}

#gallery > li img {
  width: 100%;
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#gallery > li .back,
#gallery > li .title {
  display: block;
  text-align: center;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0);
  -webkit-transition: background-color 0.3s ease-out;
}

#gallery > li .title {
  -webkit-transition: all 1s linear;
  -webkit-transform: translateZ(0px);
}

#gallery > li .title h3 {
  padding-right: 25px;
  white-space: nowrap;
  line-height: 40px;
  display: inline-block;
  position: relative;
  top: 75px;
  height: 40px;
  opacity: 0;
  left: 20px;
  margin-top: -15px;
  color: #ffe400;
  -webkit-transition: all 0.3s ease-out;
  -webkit-transition-delay: 0s;
}

#gallery > li .title h3 .after {
  position: absolute;
  width: 0;
  top: 0;
  opacity: 0;
  bottom: 0;
  display: block;
  background: url("../img/arrow.png") no-repeat 100% 50%;
  height: 30px;
  -webkit-transition: all 0.3s ease-out;
  -webkit-transition-delay: 0s;
  -webkit-transform: scale(1.03);
}

#gallery > li video {
  -webkit-transition: all 0.3s ease-out;
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
}

#gallery > li .play {
  z-index: 999;
  width: 100px !important;
  height: 100px !important;
  top: 50% !important;
  left: 50% !important;
  margin-top: -50px;
  margin-left: -50px;
  background: rgba(0, 0, 0, 0.8) url("../img/video-controls.png") no-repeat 50% 0;
  position: absolute;
  -webkit-transition: all 0.5s ease-out;
  cursor: pointer;
  -webkit-transform: scale(0.6) translateZ(0px);
  opacity: 0;
  border: 5px solid white;
  border-radius: 999px;
}

/*********************************************** 
 * Gallery: Grid
 */
.grid #main #gallery {
  -webkit-transform: rotate3d(1, 0, 1, -10deg);
  margin-top: 20px;
}

.grid #main #gallery > li {
  -webkit-transform: translate3d(0, 0, 0) !important;
  -webkit-perspective: 600;
}

.loaded.grid #main #gallery > li {
  cursor: pointer;
}

.grid #main #gallery > li:hover {
  position: relative;
  z-index: 100;
}

.grid #main #gallery li:hover > div {
  -webkit-transform: scale(1.1);
}

.grid #main #gallery > li:hover .back {
  background-color: rgba(0, 0, 0, 0.8);
}

.grid #main #gallery > li:hover .title h3 {
  opacity: 1;
  left: 0;
  -webkit-transition-delay: 0.3s;
}

.grid #main #gallery > li:hover .title h3 .after {
  width: 100%;
  opacity: 1;
  -webkit-transition-delay: 0.3s;
}

/*********************************************** 
 * Gallery: Stack
 */
/*********************************************** 
 * Footer
 */
#footer {
  padding: 20px 0;
  bottom: 0;
  text-align: center;
  left: 0;
  right: 0;
}

.pagination-container {
  margin: 100px auto;
  text-align: center;
}

.pagination {
  position: relative;
}

.pagination a {
  position: relative;
  display: inline-block;
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 8px 16px 10px;
}

.pagination a:before {
  z-index: -1;
  position: absolute;
  height: 100%;
  width: 100%;
  content: "";
  top: 0;
  left: 0;
  background-color: #2c3e50;
  border-radius: 24px;
  transform: scale(0);
  transition: all 0.2s;
}

.pagination a:hover,
.pagination a .pagination-active {
  color: #fff;
}

.pagination a:hover:before,
.pagination a .pagination-active:before {
  transform: scale(1);
}

.pagination .pagination-active {
  color: #fff;
}

.pagination .pagination-active:before {
  transform: scale(1);
}

.pagination-newer {
  margin-right: 50px;
}

.pagination-older {
  margin-left: 50px;
}
