/* (C) 2014 photoKandy Studios LLC */
body, html {
  background-color: #333;
  color: #333;
  font-size: 25px;
  line-height: 1.3em;
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
      -ms-box-sizing: border-box;
       -o-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-text-rendering: optimizeLegibility;
     -moz-text-rendering: optimizeLegibility;
      -ms-text-rendering: optimizeLegibility;
       -o-text-rendering: optimizeLegibility;
          text-rendering: optimizeLegibility;
  letter-spacing: 1px;
  word-spacing: 2px;
}
* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
      -ms-box-sizing: border-box;
       -o-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  -moz-font-smooth: auto;
  font-smooth: auto;
}

/* main navigation */
/*******************/

#mainNav {
  font-size: 25px;
  line-height: 36px;
  width: 250px;
  position: fixed;
  top: 25px;
  left:0;
  text-align: right;
  z-index: 9;
}
#mainNav a {
  display: block;
  color: #CCC;
  text-decoration: none;
  position: relative;
  padding-right: 50px;
  border-bottom: 1px solid transparent;
  border-top: 1px solid transparent;
}
#mainNav a.selected {
  background-color: #622;
  color: #F0F0F0;
  margin: 0 -25px;
  padding: 0 75px;
  border-bottom: 1px solid #311;
  border-top: 1px solid #311;
}
#mainNav a.selected:before {
  content: " ";
  background-color: #622;
  width: 25px;
  height: 25px;
  -webkit-transform: rotate(45deg);
     -moz-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
       -o-transform: rotate(45deg);
          transform: rotate(45deg);
  z-index:9;
  position: absolute;
  display: block;
  left: 287px;
  top: 5px;
  border-right: 1px solid #311;
  border-top: 1px solid #311;
}
#mainNav a:hover {
  background-color: #622;
  color: white;
  border-bottom: 1px solid #311;
  border-top: 1px solid #311;
}

/* site container */
/******************/
#container {
  min-height: 100%;
  -webkit-transform: translate3d(0, 0, 0);
     -moz-transform: translate3d(0, 0, 0);
      -ms-transform: translate3d(0, 0, 0);
       -o-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);

}

/* header */
/**********/

#container > header {
  color: #CCC;
  margin-left: 250px;
  margin-right: 50px;
  top: 0;
  font-size: 14px;
  line-height: 44px;
  z-index: 1;
  text-align: center;
  background-color: #622;
  border-bottom: 1px solid #311;
  -webkit-text-shadow: 0 0 3px black;
     -moz-text-shadow: 0 0 3px black;
      -ms-text-shadow: 0 0 3px black;
       -o-text-shadow: 0 0 3px black;
          text-shadow: 0 0 3px black;
}
#container > header h1 {
  color: #CCC;
}
#container > header h1 a {
  color: #FFF;
  text-decoration: none;
}

/* footer */
/**********/

#container > footer {
  background-color: #333;
  border-top: 25px solid #666;
  margin-left: 250px;
  margin-right: 50px;
  min-height: 25px;
  padding: 25px 25px 25px 50px;
  text-align: left;
  color: #888;
  letter-spacing: -1px;
  display: -webkit-flex;
  display:    -moz-flex;
  display:     -ms-flex;
  display:      -o-flex;
  display:         flex;
  -webkit-flex-flow: row wrap;
     -moz-flex-flow: row wrap;
      -ms-flex-flow: row wrap;
       -o-flex-flow: row wrap;
          flex-flow: row wrap;
  -webkit-text-shadow: 0 1px 0 black;
     -moz-text-shadow: 0 1px 0 black;
      -ms-text-shadow: 0 1px 0 black;
       -o-text-shadow: 0 1px 0 black;
          text-shadow: 0 1px 0 black;
}
footer a, footer a:link, footer a:visited {
  color: #AAA;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
  color: #CCC;
}
footer div {
  margin: -25px 12px 25px 12px;
  font-size: 75%;
  line-height: 1.3em;
  min-width: 150px;
  letter-spacing: 0;
}
footer div h1 {
  color: #888;
  border-bottom: 1px solid #888;
  letter-spacing: 1px;
  line-height: 1em;
  margin-top: 25px;
  margin-bottom: 12px;
  font-size: 115%;
}
footer div.narrow {
  -webkit-flex: 1;
     -moz-flex: 1;
      -ms-flex: 1;
       -o-flex: 1;
          flex: 1;
  -webkit-flex-basis: 150px;
     -moz-flex-basis: 150px;
      -ms-flex-basis: 150px;
       -o-flex-basis: 150px;
          flex-basis: 150px;
  flex-basis: 150px;
}
footer div.wide {
  -webkit-flex: 2;
     -moz-flex: 2;
      -ms-flex: 2;
       -o-flex: 2;
          flex: 2;
  -webkit-flex-basis: 300px;
     -moz-flex-basis: 300px;
      -ms-flex-basis: 300px;
       -o-flex-basis: 300px;
          flex-basis: 300px;
}
footer div li.fa {
  display: block !important;
  line-height: 1.3em;
}
footer div li.fa:before {
  display: inline-block;
  width: 40px;
  text-align: center;
}

/* content settings */
/********************/
#main
{
  background-color: #F0F0F0;
  border: 25px solid #666;
  border-top: 0;
  border-bottom: 0;
  margin-left: 250px;
  margin-right: 50px;
  padding: 0 50px 50px 50px;
  letter-spacing: 0;
  word-spacing: 0;
}
#main > article > header
{
  height: 450px;
  background-color: #622;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 -50px 25px -50px;
  position: relative;
  padding:25px;
  border-bottom: 2px solid #666;
  overflow: hidden;
}
#main > article > header.slide-top-align { background-position: center top; }
#main > article > header.slide-bottom-align { background-position: center bottom; }
#main > article > header.slide-left-align { background-position: left center; }
#main > article > header.slide-right-align { background-position: right center; }
#main > article > header div.slide
{
  height: 100%;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0;
  -webkit-transition: opacity 1s ease-in-out;
     -moz-transition: opacity 1s ease-in-out;
      -ms-transition: opacity 1s ease-in-out;
       -o-transition: opacity 1s ease-in-out;
          transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}
#main > article > header.slide-top-align div.slide { background-position: center top; }
#main > article > header.slide-bottom-align div.slide { background-position: center bottom; }
#main > article > header.slide-left-align div.slide { background-position: left center; }
#main > article > header.slide-right-align div.slide { background-position: right center; }
#main > article > header .carousel-container {
  overflow-x: auto;
  width: 100%; height: 100%;
  position: absolute;
  top: 0; left: 0;
  font-size: 0;
}
#main > article > header .carousel-container .carousel {
  height: 100%;
  white-space: nowrap;
  font-size: 0;
}
#main > article > header .carousel-container .carousel img {
  height: 100%;
  display: inline-block;
  border-right: 25px solid transparent;
}
#main > article > header .carousel-container .carousel img:last-child {
  border-right: 0;
}
#main > article > header .text-group {
  z-index:1;
  background-color: rgba(0,0,0,0.125);
  margin: -1em;
  padding: 1em;
  border-top: 1px solid rgba(255,255,255,0.25);
  position: absolute;
  bottom: 1em;
  right: 1em;
  width: 100%;
}
#main > article > header h1
{
  color: white;
  font-size: 300%;
  line-height: 1em;
  text-align: right;
  -webkit-text-shadow: 0 0 6px rgba(0,0,0,0.75);
     -moz-text-shadow: 0 0 6px rgba(0,0,0,0.75);
      -ms-text-shadow: 0 0 6px rgba(0,0,0,0.75);
       -o-text-shadow: 0 0 6px rgba(0,0,0,0.75);
          text-shadow: 0 0 6px rgba(0,0,0,0.75);
  z-index:1;
  margin: 0;
}
#main > article > header div.caption
{
  color: white;
  font-size: 75%;
  line-height: 1em;
  margin-top: 1em;
  text-align: right;
  -webkit-text-shadow: 0 0 3px rgba(0,0,0,0.75);
     -moz-text-shadow: 0 0 3px rgba(0,0,0,0.75);
      -ms-text-shadow: 0 0 3px rgba(0,0,0,0.75);
       -o-text-shadow: 0 0 3px rgba(0,0,0,0.75);
          text-shadow: 0 0 3px rgba(0,0,0,0.75);
  z-index: 1;
}

#main > article .button-group {
  text-align: right;
  z-index: 1;
  line-height: 3em;
  margin: -0.5em 0;
}
#main > article .button-group .button {
  z-index: 1;
  background-color: rgba(68, 204, 68,0.75);
  border-radius: 1em;
  margin-left: 1em;
  border: 1px solid rgba(34,102, 34,0.5);
  color: #FFF;
  font-size: 75%;
  -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.5);
     -moz-box-shadow: 0 3px 3px rgba(0,0,0,0.5);
      -ms-box-shadow: 0 3px 3px rgba(0,0,0,0.5);
       -o-box-shadow: 0 3px 3px rgba(0,0,0,0.5);
          box-shadow: 0 3px 3px rgba(0,0,0,0.5);
  display: inline-block;
  transition: background-color 0.3s ease-in-out;
  line-height: 2em;
}
#main > article .button-group .button:hover {
  background-color: rgba(68, 204, 68, 1);
}
#main > article .button-group .button a {
  color: #FFF !important;
  padding: 0 1em;
  line-height: 2em;
}
#main > article .button-group .button a.fa:before {
  width: 1.5em;
  display: inline-block;
  text-align: left;
}
#main > article p
{
  margin: 25px 0;
}

#main > article p img
{
  width: calc( 100% + 100px );
  background-color: #F8F8F8;
  border: 1px solid #999;
  display: block;
  margin: 0 -50px 0 -50px;
  border-left: 0;
  border-right: 0;
}
#main > article p img.no-fill {
  width: auto;
  border: 1px solid #999;
  margin: 0 auto;
  max-width: 100%;
  padding: 1em;
}
#main > article p img.limit-height {
  max-height: 450px;
}
#main > article p img.limit-width {
  max-width: 50%;
}
#main > article p img.limit-width-300 {
  max-width: 350px;
}
#main > article p img.left {
  float: left;
  margin-right: 1em;
  margin-bottom: 1em;
}
#main > article p img.right {
  float: right;
  margin-left: 1em;
  margin-bottom: 1em;
}
#main > article a
{
  color: #C44;
  text-decoration: none;
}
#main > article a:hover
{
  color: #C44;
  text-decoration: underline;
}
#main > article a:visited
{
  color: #622
}
#main > article h1, #main > article h2, #main > article h3,
#main > article h4, #main > article h5, #main > article h6
{
  font-weight: bold;
  margin: 25px 0;
  line-height: 1em;
}
#main > article h4, #main > article h5, #main > article h6
{
  clear: both;
}
#main > article h1 { font-size: 167%; color: #933; }
#main > article h2 { font-size: 150%; }
#main > article h3 { font-size: 133%; }
#main > article h4 { font-size: 116.5%; }
#main > article h5 { font-size: 100%; }
#main > article h6 { font-size: 75%; }

#main > article strong { font-weight: bold; }
#main > article em { font-style: italic; }

#main > article blockquote
{
  background-color: white;
  border: 1px solid #999;
  padding: 25px;
  border-left: 25px solid #622;
  margin: 25px 0;
  -webkit-box-shadow: 0 3px 3px 0 rgba(0,0,0,0.25);
     -moz-box-shadow: 0 3px 3px 0 rgba(0,0,0,0.25);
      -ms-box-shadow: 0 3px 3px 0 rgba(0,0,0,0.25);
       -o-box-shadow: 0 3px 3px 0 rgba(0,0,0,0.25);
          box-shadow: 0 3px 3px 0 rgba(0,0,0,0.25);
}
#main > article blockquote p {
  margin: 0 0;
}
#main > article ul {
  list-style: disc;
  margin-left: 2em;
}

#main > article ul.fa-ul {
  list-style: none;
}

#main > article p code,
#main > article li code
{
  background-color: white;
  border: 1px solid #999;
  padding: 0 0.25em;
  font-size: 75%;
  color: #666;
  letter-spacing: 0;
  word-spacing: 0;
}

#disqus_thread {
  margin-top: 50px;
}

#main > article .card-collection {
  text-align: center;
  background-color: white;
  border: 1px solid #999;
  border-left: 0;
  border-right: 0;
  margin: 0 -50px 25px -50px;
  padding: 25px;

}

#main > article > header + .card-collection {
  margin-top: -26px;
}

#main > article .card {
  border: 1px solid #999;
  display: inline-block;
  vertical-align: top;
  background-color: white;
  margin: 0.5em;
  font-size: 75%;
  line-height: 1.3em;
  padding: 1em;
}

#main > article .card-collection .card {
  border: 0;
  background-color: transparent;
  padding: 0;
  min-width: 173px;
  width: 100%;
  max-width: 300px;
  max-width: calc( ( 100% - 87.5px ) / 3 );
}

#main > article .card-collection.four-wide .card {
  min-width: 137px;
  max-width: calc( ( 100% - 90px ) / 4 );
}

#main > article .card h1 {
  margin: 0;
  text-align: right;
  text-transform: uppercase;
  font-size: 133%;
  line-height: 1em;
  font-weight: normal;
  height: 2em;
}

#main > article .card img {
  width: 100%;
  margin-bottom: 1em;
}

#main > article .card p {
  text-align: left;
  margin: 0;
}
#main > article .card.right,
#main > article .card.left {
  width: 225px;
  margin-bottom: 1em;
}
#main > article .card.right {
  float: right;
  margin-left: 1em;
}

#main > article .card.left {
  float: left;
  margin-right: 1em;
}

figure {
  background-color: white;
  padding: 25px;
  border: 1px solid #CCC;
  margin: 25px;
  text-align: center;
}
figure img {
  border: 1px solid #CCC;
}
figcaption {
  text-align: center;
  color: #666;
  font-size: 75%;
}

figure.inline {
  display: inline-block;
  margin-top: 0;
}
figure.right {
  float: right;
  margin-right: 0;
}
figure.left {
  float: left;
  margin-left: 0;
}

div.highlight {
  font-size: 75%;
  border: 1px solid #CCC;
  padding: 1em;
  letter-spacing: 0;
  word-spacing: 0;
  line-height: 1.3em;
}

p.meta
{
  text-align: right;
  font-size: 66%;
  color: #666;
}

#toggle {
  display: none;
}
.pagination {
  background-color: white;
  padding: 0.5em;
  border: 1px solid #999;
  text-align: center;
  font-size: 75%;
}

/* font settings */
/*****************/

footer div li.fa:before {
  font-family: FontAwesome;
}
/* sans-serif */
figcaption,
#main > article .card-collection, #main > article .card,
#main > article h1, #main > article h2, #main > article h3,
#main > article h4, #main > article h5, #main > article h6,
#main > article > header div.caption,
#container > footer,
#mainNav,
footer div li,
.pagination
{
  font-family: "ff-tisa-sans-web-pro",sans-serif !important;
}
.pagination .previous { float: left; }
.pagination .next { float: right; }
.pagination span.previous,
.pagination span.next { opacity: 0.5; }

/* serif */
body, html
{
  font-family: "ff-tisa-web-pro",serif;
}

/* alternative title */
p.meta,
#container > header,
footer div h1
{
  font-family: "mono45-headline",sans-serif;
}

/* source code */
code
{
  font-family: "fira-mono",sans-serif;
}

/* light box */
/*************/
.lb-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  opacity: 0;
  text-align: center;
  background-color: rgba(0,0,0,0.66);
  z-index: 999;
  -webkit-transition: opacity 0.3s ease-in-out;
     -moz-transition: opacity 0.3s ease-in-out;
      -ms-transition: opacity 0.3s ease-in-out;
       -o-transition: opacity 0.3s ease-in-out;
          transition: opacity 0.3s ease-in-out;
}

.lb-backdrop img {
  border: 25px solid transparent;
  max-height: 75%;
  max-height: calc( 100% - 50px );
  max-width: 100%;
  max-width: calc( 100% - 50px );
  display: inline-block;
  margin-top: 25px;
  background-color: rgba(255,255,255,0.9);
}


/* media queries */
/*****************/

/* resize the font-size slowly, based on the width */
@media (max-width: 1382px) { html, body { font-size: 24px; } #main > article > header { height: 431px; } }
@media (max-width: 1324px) { html, body { font-size: 23px; } #main > article > header { height: 414px; } }
@media (max-width: 1267px) { html, body { font-size: 22px; } #main > article > header { height: 396px; } }
@media (max-width: 1209px) { html, body { font-size: 22px; } #main > article > header { height: 378px; } }
@media (max-width: 1152px) { html, body { font-size: 21px; } #main > article > header { height: 360px; } }
@media (max-width: 1094px) { html, body { font-size: 20px; } #main > article > header { height: 342px; } }
@media (max-width: 1036px) { html, body { font-size: 19px; } #main > article > header { height: 324px; } }
@media (max-width:  979px) { html, body { font-size: 18px; } #main > article > header { height: 306px; } }
@media (max-width:  921px) { html, body { font-size: 19px; } #main > article > header { height: 324px; } }
@media (max-width:  864px) { html, body { font-size: 18px; } #main > article > header { height: 306px; } }
@media (max-width:  806px) { html, body { font-size: 17px; } #main > article > header { height: 288px; } }

/* screens smaller than 921, but larger than 720 */
@media (max-width: 921px) {
  #toggle {
    display: block;
    position: fixed;
    color: #CCC;
    width: 50px;
    height: 50px;
    top: 0;
    left: 0;
    padding-left: 14px;
    font-size: 25px;
    line-height: 44px;
    text-align: center;
    z-index: 99;
    -webkit-text-shadow: 0 0 3px black;
       -moz-text-shadow: 0 0 3px black;
        -ms-text-shadow: 0 0 3px black;
         -o-text-shadow: 0 0 3px black;
            text-shadow: 0 0 3px black;
  }
  #main,
  #container > header,
  #container > footer {
    margin-left: 50px;
  }
  #container > footer {
    padding: 25px 25px 25px 50px;
  }
  #container {
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
       -moz-transition:    -moz-transform 0.3s ease-in-out;
        -ms-transition:     -ms-transform 0.3s ease-in-out;
         -o-transition:      -o-transform 0.3s ease-in-out;
            transition:         transform 0.3s ease-in-out;
  }
  #mainNav {
    -webkit-transition: -webkit-transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
       -moz-transition:    -moz-transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        -ms-transition:     -ms-transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
         -o-transition:      -o-transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
            transition:         transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    -webkit-transform: translate3d(-250px, 0, 0);
       -moz-transform: translate3d(-250px, 0, 0);
        -ms-transform: translate3d(-250px, 0, 0);
         -o-transform: translate3d(-250px, 0, 0);
            transform: translate3d(-250px, 0, 0);
    -webkit-opacity: 0;
       -moz-opacity: 0;
        -ms-opacity: 0;
         -o-opacity: 0;
            opacity: 0;
  }
  #container.navVisible {
    -webkit-transform: translate3d(200px, 0, 0);
       -moz-transform: translate3d(200px, 0, 0);
        -ms-transform: translate3d(200px, 0, 0);
         -o-transform: translate3d(200px, 0, 0);
            transform: translate3d(200px, 0, 0);
  }
  #mainNav.navVisible {
    -webkit-transform: translate3d(0, 0, 0);
       -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
         -o-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
    -webkit-opacity: 1;
       -moz-opacity: 1;
        -ms-opacity: 1;
         -o-opacity: 1;
            opacity: 1;
  }
}
/* screens smaller than 720 */
@media (max-width: 720px) {
  #toggle {
    color: white;
  }
  #main,
  #container > header,
  #container > footer {
    margin: 0;
    border-top: 0; border-left: 0; border-right: 0;
  }
  #container.navVisible {
    -webkit-transform: translate3d(250px, 0, 0);
       -moz-transform: translate3d(250px, 0, 0);
        -ms-transform: translate3d(250px, 0, 0);
         -o-transform: translate3d(250px, 0, 0);
            transform: translate3d(250px, 0, 0);
  }
}
/* really narrow: cut down the right margin a bit */
@media (max-width: 640px) {
  #container > header {
    margin: 0;
  }
  #main,
  #container > footer {
    margin: 0;
    border: 0;
    padding: 0 25px 50px 50px;
  }
  #container > footer {
    padding: 25px 25px 25px 50px;
  }
  #container.navVisible {
    -webkit-transform: translate3d(250px, 0, 0);
       -moz-transform: translate3d(250px, 0, 0);
        -ms-transform: translate3d(250px, 0, 0);
         -o-transform: translate3d(250px, 0, 0);
            transform: translate3d(250px, 0, 0);
  }
  #main > article > header {
    margin-right: -25px;
  }
  #main > article .card-collection {
    margin: 0 -25px 25px -50px;
  }
  #main > article p img {
    width: calc( 100% + 75px  );
    margin: 0 -25px 0 -50px;
  }
}

/* adjust figure layout in narrow widths */
@media (max-width: 704px) {
  figure.inline {
    display: block;
    margin: 0;
  }
  figure.left, figure.right { float: none; }
  #main > article p img.right,
  #main > article p img.left,
  #main > article .card.right,
  #main > article .card.left {
    margin: 0 25px 1em 0;
    width: auto; max-width: 100%;
    float: none;
  }
}

@media (max-width: 400px) {
  #main > article .card {
    width: 100%;
    max-width: 100%;
    display: block;
  }
  #main > article .card h1 {
    text-align: left;
  }
  #main > article .card-collection .card {
    width: 100%;
    max-width: 100%;
    padding-left: 25px;
  }

  #main > article .card-collection.four-wide .card {
    width: 100%;
    max-width: 100%;
    padding-left: 25px;
  }
.lb-backdrop img {
  border: 0;
 }
}
