/* ~~~~~~~~~~~~~~~~~~~~~~~~ Environment ~~~~~~~~~~~~~~~~~~~~~~~~ */

html{
  font-size: 125%;
}

body{
  line-height: 1;
  font-size: 50%;
  overflow-y: scroll !important;
  padding-right: 0 !important;
}

*{
  font-family: verdana, arial, sans-serif;
  color: #333;
}

/* Geometric */
@font-face {
  font-family: "Geometric Light";
  src:url("../fonts/geometric_231_light_bt-webfont.ttf");
  src:url("../fonts/geometric_231_light_bt-webfont.ttf?#iefix") format("embedded-opentype"),
}
@font-face {
  font-family: "Geometric";
  src:url("../fonts/Geometric_231_BT.ttf");
  src:url("../fonts/Geometric_231_BT.ttf?#iefix") format("embedded-opentype"),
}
@font-face {
  font-family: "Geometric Bold";
  src:url("../fonts/Geometric_231_Bold_BT.ttf");
  src:url("../fonts/Geometric_231_Bold_BT.ttf?#iefix") format("embedded-opentype"),
}


a{
  color: #262788;
}
a:active, a:hover{
  text-decoration: underline;
  cursor: pointer;
}

body, body>.loader{
  background: url('../img/style/bg_gradient.jpg') repeat-y center 0 #F6F5F3;
  background-size: 100% auto;
}

#main, nav, body>.loader:before{
  background: url('../img/style/bg_mask.jpg') no-repeat center 0 fixed;
  background-size: 100% auto;
}

.loader, .loader:before{
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 100;
  content: " ";
}
.loader:after {
  background: url("../img/style/loading.gif");
  position: absolute;
  top: calc( 50% - 8px );
  left: calc( 50% - 64px );
  content: " ";
  width: 128px;
  height: 15px;
  z-index: 101;
}

.unhide{
  display: block !important;
}
.visible{
  visibility: visible !important;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~ container ~~~~~~~~~~~~~~~~~~~~~~~~ */

#main>.container{
  padding-top: 75px;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~ nav ~~~~~~~~~~~~~~~~~~~~~~~~ */

@media screen and (max-width: 768px) {
  nav{background-color: #F6F5F3;}
  body #secondary-nav {
    top: 3px;
    right: 3px;
  }
}
  
nav{
  padding:inherit;
  z-index: 1060 !important;
  border: 0px !important;
}
nav .container {
  position: relative;
  height: 75px;
}
nav .logo {
  background: url('../img/style/logo.png') no-repeat;
  background-size: contain;
  width: 185px;
  height: 55px;
  margin: 10px 0;
  display: block;
}
@media screen and (max-width: 480px) {
  nav .logo {width: 130px;}
  #primary-nav ul {left: 160px !important;}
}
#primary-nav ul{
  position: absolute;
  bottom: 8px;
  left: 215px;
  list-style: none;
  padding: 0px;
}
#primary-nav li {
  display: inline-block;
  margin-right: 10px;
}
#primary-nav li a {
  font-size: 1.5em;
  font-family: Geometric, verdana, arial, sans-serif;
  letter-spacing: 2px;
  color: #aaa;
  text-shadow: 0 0 4px #ccc;
}
#primary-nav li a:hover, #primary-nav li a:active {
  color: #262788;
  text-shadow: none;
  text-decoration: none;
}
#primary-nav li a.selected{
  color: #333;
  text-shadow: none;
  text-decoration: none;
  cursor: default;
  font-family: Geometric Bold, verdana, arial, sans-serif;
  letter-spacing: 1.75px
}
#secondary-nav{
  position: absolute;
  top: 15px;
  right: 15px;
}
#secondary-nav .workSafeToggle {
  margin: 0;
  color: #999;
  cursor: pointer;
}
#secondary-nav .workSafeToggle .slider {
  width: 50px;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  background: #999;
  position: relative;
}
.nsfw #secondary-nav .workSafeToggle .slider:after {
  right: calc(50% + 1px);
  transition: .25s;
}
#secondary-nav .workSafeToggle .slider:after {
  content: '';
  position: absolute;
  right: -1px;
  transition: .25s;
  height: 16px;
  border-radius: 6px;
  border: 5px solid #ddd;
  width: 50%;
  background: linear-gradient(90deg, #ddd 4px, transparent 1%) center, linear-gradient(#ddd 4px, transparent 1%) center, #999;
  background-size: 5px 5px;
  text-align: center;
}
#secondary-nav .workSafeToggle .slider span {
  display: inline-block;
  width: 50%;
  text-align: center;
  line-height: 18px;
  color: #ddd;
}
@media screen and (orientation: landscape) and (max-width: 768px) {
  /* todo: adjust menu size for rotated screens */
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~ gallery ~~~~~~~~~~~~~~~~~~~~~~~~ */

.modal-backdrop{opacity: 0 !important;}
#myModal{padding:0 !important; overflow: hidden;}
.gallery-photo{
  position: fixed;
  height: calc( 100% - 100px);
  top: 25px;
}
.gallery-photo .blur, .gallery-photo .sharp {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.gallery-photo .loader{
  opacity: 0;
}
.gallery-photo .sharp{
  overflow:hidden;
  z-index: 100;
}
.gallery-photo .blur{
  z-index: 1000
}
@media(min-width: 769px){
  .current .loader:before{
    left: 50px;
    right: 50px;
  }
}
@media(min-width: 769px){
  .blur img{
    filter: blur(3px);
  }
}
.blur img, .sharp img{
  width:100%;
}
.gallery-photo .blur .loader{
  height: 15px;
  width: 128px;
  position: absolute;
  top: calc( 50% - 8px );
  left: calc( 50% - 64px );
}
.gallery-photo.previous{
  z-index: 1;
  right: calc( 100% - 50px );
}
.gallery-photo.previous .nav-button:after{
  right: 0;
}
.gallery-photo.previous:hover .nav-button:after{
  background-position: 0 -69px;
}
.gallery-photo.next{
  z-index: 1;
  left: calc( 100% - 50px );
}
.gallery-photo.next .nav-button:after{
  background-position: -54px 0;
}
.gallery-photo.next:hover .nav-button:after{
  background-position: -54px -69px;
}
.nav-button{
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  z-index: 2000;
}
.nav-button:after{
  content:'';
  width: 54px;
  height: 69px;
  background: url('/img/style/prev_next.png') no-repeat;
  position: absolute;
  top: 50%;
  margin-top: -35px;
}
@media(max-width: 768px){
  #myModal .nav-button, #myModal #foot{
    display: none !important;
  }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~ gallery footer ~~~~~~~~~~~~~~~~~~~~~~~~ */

#foot{
  position: absolute;
  width: 100%;
  bottom: -60px;
  padding: 10px 0;
  height: 60px;
  border-top: 1px solid #777;
  background: #F6F5F3;
  z-index: 1000;
}
#foot #thumbs{
  width: 768px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
#foot #thumbs:before{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  content: '';
  background: url('../img/style/fade_left.png') repeat-y;
  z-index: 9;
}
#foot #thumbs:after{
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  content: '';
  background: url('../img/style/fade_right.png') repeat-y;
  z-index: 9;
}
#foot .thumb-list{
  list-style: none;
  height: 42px;
  font-size: 0;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  display: inline-block;
  position: relative;
}
#foot .thumb-list li{
  border: 1px solid #999;
  display: inline-block;
  margin: 0 5px;
//  cursor: pointer;
  height: 40px;
  width: 40px;
  background-repeat: no-repeat;
  background-position: 0 -40px;
}
#foot .thumb-list li.selected{
  border: none;
  background-position: 0 -80px;
  margin: 1px 5px;
  cursor: default;
}
#foot .thumb-list li:hover {
//  background-position: 0 -40px;
}
#foot .thumb-list li a {
  height: 40px;
  width: 40px;
  display: block;
  cursor: default;
}
#foot .thumb-list li.selected a {
  background-image: url(/img/style/marquee40.gif);
}

.workSafe a.grid-item.nsfw {
  cursor: not-allowed;
}
.workSafe a.grid-item.nsfw:before {
  content: 'NSFW';
  top: 2px;
  font-size: 2.2em;
  color: #bbb;
  text-shadow: 1px 1px 1px rgba(60,60,60,0.7);
  padding-top: 40px;
  background-color: rgba(220,220,220,0.5);
  z-index: 1;
}
.workSafe a.grid-item.nsfw:after {
  content: 'Disable Work-Safe Mode to view.';
  font-size: 1.8em;
  color: #666;
  text-shadow: 1px 1px 1px rgba(100,100,100,0.6);
  padding: 10px;
  z-index: 2;
}
.workSafe a.grid-item.nsfw:before, .workSafe a.grid-item.nsfw:after{
  opacity: 0;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  font-family: Geometric, verdana, arial, sans-serif;
  -webkit-transition: opacity 0.25s ease-in-out;
  -moz-transition: opacity 0.25s ease-in-out;
  -ms-transition: opacity 0.25s ease-in-out;
  -o-transition: opacity 0.25s ease-in-out;
  transition: opacity 0.25s ease-in-out;
}
.workSafe a.grid-item.nsfw:hover:before, .workSafe a.grid-item.nsfw:hover:after{
  opacity: 1;
  -webkit-transition: opacity 0.25s ease-in-out;
  -moz-transition: opacity 0.25s ease-in-out;
  -ms-transition: opacity 0.25s ease-in-out;
  -o-transition: opacity 0.25s ease-in-out;
  transition: opacity 0.25s ease-in-out;
}
.workSafe a.grid-item.nsfw img {
  filter: blur(2px);
  opacity: 0.33;
  transition: 0.25s;
}
/* ~~~~~~~~~~~~~~~~~~~~~~~~ isotope default styling ~~~~~~~~~~~~~~~~~~~~~~~~ */


/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

.grid-item {
  margin-bottom: 30px;
  padding-top: 2px;
  display: block;
}

.grid-item img {
  width: 100%;
  opacity: 1;
  transition: 0.25s;
}

