/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 18px;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/*
@font-face {
    font-family: 'dejavu-sans';
    src: url('/webfonts/dejavu-sans/DejaVuSans-webfont.eot');
    src: url('/webfonts/dejavu-sans/DejaVuSans-webfont.eot?#iefix') format('embedded-opentype'),
         url('/webfonts/dejavu-sans/DejaVuSans-webfont.woff') format('woff'),
         url('/webfonts/dejavu-sans/DejaVuSans-webfont.ttf') format('truetype'),
         url('/webfonts/dejavu-sans/DejaVuSans-webfont.svg#dejavu_sansbook') format('svg');
    font-weight: normal;
    font-style: normal;
}
*/

@font-face {
    font-family: 'caviar';
    src: url('/webfonts/caviar/CaviarDreams-webfont.eot');
    src: url('/webfonts/caviar/CaviarDreams-webfont.eot?#iefix') format('embedded-opentype'),
         url('/webfonts/caviar/CaviarDreams-webfont.woff') format('woff'),
         url('/webfonts/caviar/CaviarDreams-webfont.ttf') format('truetype'),
         url('/webfonts/caviar/CaviarDreams-webfont.svg#caviar_dreamsregular') format('svg');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'dustismo';
    src: url('/webfonts/dustismo/dustismo-webfont.eot');
    src: url('/webfonts/dustismo/dustismo-webfont.eot?#iefix') format('embedded-opentype'),
         url('/webfonts/dustismo/dustismo-webfont.woff') format('woff'),
         url('/webfonts/dustismo/dustismo-webfont.ttf') format('truetype'),
         url('/webfonts/dustismo/dustismo-webfont.svg#dustismoregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'roboto-light';
    src: url('/webfonts/roboto-light/Roboto-Light-webfont.eot');
    src: url('/webfonts/roboto-light/Roboto-Light-webfont.eot?#iefix') format('embedded-opentype'),
         url('/webfonts/roboto-light/Roboto-Light-webfont.woff') format('woff'),
         url('/webfonts/roboto-light/Roboto-Light-webfont.ttf') format('truetype'),
         url('/webfonts/roboto-light/Roboto-Light-webfont.svg#robotolight') format('svg');
    font-weight: normal;
    font-style: normal;
}

*, *:before, *:after {
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

/* fix for scroll bars on webkit & Mac OS X Lion */ 
::-webkit-scrollbar {
    background-color: #363636;
    width: 0.75em;
}

::-webkit-scrollbar-thumb {
    background-color:  #D9D9D9;
}

html,
button,
input,
select,
textarea {
    color: #D9D9D9;
    font-family: 'caviar', Arial, sans-serif;
    font-size: 1.2em;
}

html, .breadcrumb, body {
    background: #161616 url('/img/bg_161616_noisy.png') repeat;
}

/* If I serve image sizes based on viewport size (via zp_picturefill?) then min-width here should be that of the picture width + margins/padding */
body {
    min-width: 600px; // check that its not smaller than .section-logo which holds .logo-sub
    margin: auto;
}

a {
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
}

a:link {
    color: #FFCC00;
    font-weight: bold;
}

a:visited {
    color: #FFCC00;
    font-weight: bold;
}

a:hover, a.focus {
    color: #FFE699;
    font-weight: bold;
}

a:active {
    color: #FFFFFF;
    font-weight: bold;
}

#admin, #admin_data {
    position: absolute;
    padding: 0.5em;
    margin: 0;
    color: #d9d9d9;
    right: 0px;
    top: 0px;
    background-color: #161616;
    border: solid 1px #565656;
    width: 10em;
}

#admin h3, #admin a, #admin_data a {
    text-align: center;
    margin: 0;
    text-decoration: none;
    color: #d9d9d9;
}

#admin_data {
    top: 2.5em;
}

.center-h-1of2 {
    float: right;
    right: 50%;
    position: relative;
}

.center-h-2of2 {
    float: right;
    right: -50%;
    position: relative;
}

/*.center-v-logo {
    position: absolute;
    height: 15em;
    width: 100%;
}

.center-v-logo-offset {
    width: 100%;
    bottom: 0px;
    position: absolute;
}

.center-v-logo-therest {
    top: 23em;
    position: absolute;
}*/

/*.row1, .row2, .row3 {
    position: absolute;
    width: 100%;
}

.row1 {
    height: 33.3%;
    top: 0;
}

.row2 {
    height: 33.3%;
    top: 33.3%;
}

.row3 {
    height: 33.3%;
    top: 66.6%;
}*/

section {
    padding: 1em 0;
}

section header {
    border-bottom: 1px dotted #363636;
    padding: 0.5em;
    text-align: center;
    font-size: 1.3em;
}

.index-recent-photos {
    width: 40em;
    margin: auto;
}

.index-recent-photos ul {
    margin: 0.3em;
    padding: 0;
}

.index-recent-photos li {
    float: left;
    list-style-type: none;
    padding: 0.5em;
}

.index-gallery-albums {
    width: 40em;
    margin: auto;
    text-align: center;
}

.index-gallery-albums ul {
    list-style-type: none;
    padding: 0;
}
.index-gallery-albums ul li a {
    font-size: 1.3em;
}

.clients-published-container {
    width: 40em;
    margin: auto;
    clear: left;
}

.clients-published-container > section {
    padding: 0;
    margin: 0;
}

.clients, .published {
    text-align: center;
    float: left;
    width: 48%;
}

.published {
    float: right;
}

.clients ul, .published ul {
    list-style-type: none;
    padding: 0;
}

.contact {
    width: 40em;
    margin: auto;
    text-align: center;
}

.image-container {
    padding: 1em;
}

.image-box {
    margin: 0 0 2em 0;
    border: 1px solid #363636;
    -webkit-border-radius: 20px 20px 20px 20px;
    -moz-border-radius: 20px 20px 20px 20px;
    border-radius: 20px 20px 20px 20px;
    background-color: #101010;
    position: relative;
    max-width: 1200px;
}

.image-anchor {
    position: relative;
    top: -3.5em;
    display: block;
}

.image-large {
/*    width: 100%;*/
    text-align: center;
    position: relative;
}

.image-large img {
    width: auto;
    height: auto;
    max-width: 98%;
    max-height: 80%;
    border-radius: 20px 20px 20px 20px;
    border: 1px solid #363636;
    margin: 0.5em;
}

.image-large a {
    outline: 0;
}

.image-title {
    padding: 0 0.5em 0.5em 0.5em;
    font-size: 1.3em;
    text-align: center;
}

.jump a {
    position: absolute;
    height: 100%;
    width: 30%;
    font-size: 5rem;
    padding-top: 2rem;
    opacity: 0;
    transition: opacity 1s ;
}

.jump a:hover {
    transition: opacity 0.2s ;
    opacity: 0.5;
}

.jump.prev a {
    left: 0;
}

.jump.next a {
    right: 0;
}

div.pagelist {
    padding: 1em;
    text-align: center;
    border-bottom: 1px dashed #565656;
}

div.pagelist-bottom > div.pagelist {
    padding: 1em;
    text-align: center;
    border-top: 1px dashed #565656;
}

.pagelist ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.pagelist li {
    display: inline;
    padding: 0.5em;
}

.image-meta {
    margin: 0;
    padding: 1em;
    background-color: #161616;
    -webkit-border-radius: 0px 0px 20px 20px;
    -moz-border-radius: 0px 0px 20px 20px;
    border-radius: 0px 0px 20px 20px;
}

.image-description {
    width: 100%;
    min-width: 15em;
    word-wrap: break-word;
    text-align: justify;
    position: relative;
}

.image-tags {
    width: 25%;
    float: right;
    min-width: 10em;
    border-left: 1px dotted #565656;
    padding: 0 1em 0 1em;
    margin: 0 0 1em 1em;
    text-align: center;
}

.taglist {
    text-align: justify;
    overflow: auto;
    overflow-x: hidden;
    max-height: 8.4em; /* line-height (1.4) * number of lines (6) */
    list-style-type: none;
    padding: 0 1em 0 0;
    margin: 0;
}

.taglist li {
    display: inline;
}

.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index:1000; 
}

.breadcrumb {
    border-bottom: 1px dashed #565656;
    padding: 1em;
    font-size: 1.3em;
    line-height: 1em;
}

.pano-container1 * .breadcrumb {
    font-size: 1em;
}

.bigger {
    font-size: 1.3em;
    line-height: 1em;
}

.breadcrumb-intro {
    color: #666666;
    padding-right: 0.5em;
}

.nowr {
    white-space:nowrap;
}

.wwrap {
    word-wrap: break-word;
}

footer {
    bottom: 0px;
    position: absolute;
    padding: 0 1em;
}

.section-logo {
    height: 9em;
    width: 50em;
    text-align: center;
    margin: auto;
    margin-top: 4em;
}

.logo-ring {
    -webkit-border-radius: 5em;
    -moz-border-radius: 5em;
    border-radius: 5em;
    border: 1em solid #FFCC00;
    width: 39em;
    height: 5em;
    margin: 2em auto;
}

.logo-sub {
    margin-top: -3em;
    -webkit-transform: rotate(-7deg);
    -moz-transform: rotate(-7deg);
    -o-transform: rotate(-7deg);
    -ms-transform: rotate(-7deg);
    background-color: #161616;
    color: #ff4343;
    font-family: 'caviar', Arial, sans-serif;
    font-size: 1.7em;
    letter-spacing: 0.18em;
    white-space: nowrap;
    font-variant: small-caps;
    text-align: center;
    font-weight: bold;
    text-shadow:
     0.07em  0em 0.05em #161616,
    -0.07em  0em 0.05em #161616,
     0       0.07em 0.05em #161616,
     0      -0.07em 0.05em #161616,
     0.07em  0.07em 0.05em #161616,
    -0.07em  0.07em 0.05em #161616,
     0.07em -0.07em 0.05em #161616,
    -0.07em -0.07em 0.05em #161616;
}

.logo {
    margin-top: -1.5em;
    font-family: 'dustismo', Arial, sans-serif;
    -webkit-transform: rotate(-7deg);
    -moz-transform: rotate(-7deg);
    -o-transform: rotate(-7deg);
    -ms-transform: rotate(-7deg);
    font-size: 5em;
    color: #ffcc00;
    text-align: center;
    text-shadow:
     0.04em  0em 0.03em #161616,
    -0.04em  0em 0.03em #161616,
     0       0.04em 0.03em #161616,
     0      -0.04em 0.03em #161616,
     0.04em  0.04em 0.03em #161616,
    -0.04em  0.04em 0.03em #161616,
     0.04em -0.04em 0.03em #161616,
    -0.04em -0.04em 0.03em #161616;
}

.container-max {
    width: 100%;
    height: 100%;
    position: relative;
}

.table {
    display: table;
    table-layout: auto;
    width: 100%;
    height: 100%;
}

.thg {
    display: table-header-group;
    width: 100%;
}

.tr { /* should be .trow */
    display: table-row;
}

.tcol {
    display: table-column;
}

.tc {
    display: table-cell;
    top: 0px;
    right: 0px;
    position: relative;
}

.panobox {
    width: 100%;
}

.pano {
    background-color: #101010;
    /*width: 70%;*/
    position: relative;
    -webkit-box-flex: 4;
    -webkit-flex: 4;
        -ms-flex: 4;
            flex: 4;
}
 
#container {
    /*width: 100%;
    height: 99.9%;*/
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #262626;
}

#container > span {
    padding: 1em;
    text-align: center;
    position: relative;
    display: block;
}

.pano-desc {
    padding: 1em;
    overflow-y: auto;
    max-height: 90%;
    font-size: 1em;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

.pano-tags {
    height: 15%;
    width: 100%;
    word-wrap: break-word;
    padding: 1em;
}

.pano-container1 {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    height: 100vh;
}

.pano-container2 {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
        -ms-flex: 1;
            flex: 1;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    height: 100%;
}

/* If portrait, put desc below pano */
@media (max-width: 979px), (orientation: portrait) {
    .pano-container2 {
        -webkit-flex-direction: column;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    .pano-desc {
        -webkit-box-flex: 0.8;
        -webkit-flex: 0.8;
            -ms-flex: 0.8;
                flex: 0.8;
    }
}

.album-albumcontainer {
    padding-top: 1em;
}

.album-desc {
    padding: 1em;
    text-align: justify;
    border-bottom: 1px dashed #565656;
}

.album-box {
    border: 1px solid #262626;
    width: 400px;
    float: left;
    overflow: hidden;
    /*margin: 0 1em 1em;*/
    margin: 1em;
    clear: right;
    -webkit-border-radius: 0px 0px 20px 20px;
    -moz-border-radius: 0px 0px 20px 20px;
    border-radius: 0px 0px 20px 20px;
    position: relative;
}

.album-box * img {
    width: 100%;
    height: auto;
}

.thumb-count {
    font-size: 1rem;
}

.smartthumb {
    overflow: hidden;
    width: 100%;
    height: 400px;
}

.smartthumb a img { /* fix album-pano.php to use smartthumbs then remove this */
    width: auto;
    height: 100%;
}

.album-box p {
    margin-top: 0;
    padding: 1em 1em 0 1em;
    text-align: justify;
}

.album-thumb-title {
    font-size: 1.3em;
    display: block;
    text-align: center;
    padding: 0.7em 1em 0.7em 1em;
}

.album-thumb-title a {
    font-weight: normal;
    text-decoration: none;
}

.album-thumb-date {
}

.album-thumb-desc { /* album-pano.php could also use <p> instead of this */
    padding: 0em 1em 0.7em 1em;
    text-align: justify;
}

@media screen {
/*    .breadcrumb-intro:before {content: "1 "}*/
    .breadcrumb > * { font-size: 1.5em;  }
    .album-box { width: 96%; }
    /* if the above two lines fail, return to this   .album-box { width: 92%; }*/
    .album-thumb-title { font-size: 1.6em; }
}

/* This should get HD smartphones to show a single column of album thumbs, scaled to width, height to ratio
    Works on android chrome */
@media screen and (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5) {
/*    .breadcrumb-intro:before {content: "2 "}*/
    .breadcrumb > * { font-size: 2em;  }
    .album-albumcontainer { font-size: 0.8em; }
    .album-desc { font-size: 0.8em; }
/*    section header { border-bottom-color: #666666; }
    .image-box { border-color: #666666; } 
    .image-large img { border-color: #666666; }
    .image-tags { border-color: #969696; }
    .breadcrumb { border-color: #969696; }
    .album-desc { border-bottom-color: #969696; }
    .album-box { border-color: #363636; }*/
}

/* HD smartphones like Sony Xperia have max-device-pixel-ratio: 3 so this excludes them. */ 
@media screen and (min-width: 908px) and (orientation: landscape) and (max-width: 1340px) and (-webkit-max-device-pixel-ratio: 1.1), (max-device-pixel-ratio: 1.1) {
/*    .breadcrumb-intro:before {content: "3 "}*/
    .album-box { width: auto; min-width: 340px; max-width: 45%; }
    .album-box:nth-child(2n+1) { clear: left; } /* 3, 5, 7, etc */
}

@media screen and (min-width: 1341px) and (max-width: 1773px) {
/*    .breadcrumb-intro:before {content: "4 "}*/
    .album-box { width: auto; min-width: 340px; max-width: 30%; }
    .album-box:nth-child(4n) { clear: left; } /* 4, 8, 12, etc */
}

@media screen and (min-width: 1774px) {
/*    .breadcrumb-intro:before {content: "5 "}*/
    .album-box { width: auto; min-width: 340px; max-width: 22%; }
    .album-box:nth-child(4n+1) { clear: left; }
}
/*
@media only screen and (max-width: 60em) {
    .breadcrumb-intro:before {content: "6 "}
    .section-logo { font-size: 0.7em; }
/*    .pano-desc { font-size: 1em; }
    .breadcrumb { font-size: 0.8em; }*/
}*/

@media screen and (orientation:landscape) and (max-width: 1340px) {
/*    .breadcrumb-intro:before {content: "7 "}*/
    .album-box { width: auto; min-width: 340px; max-width: 46%; }
    .album-box:nth-child(2n+1) { clear: left; } /* 3, 5, 7, etc */
}

/* ========================================================================== */

.loader {
    position: relative;
    width: 100%;
    height: 1em; 
}
.loading {
  width: 30px;
  height: 30px;
  position: absolute;
  background-color: #ccc;
  border-radius: 50%;
  top: 0px;
  left: 0px;
}
.loading:nth-child(1) {
  background-color: #FF5460;
  -webkit-animation: move 2s infinite cubic-bezier(.2,.64,.81,.23);
          animation: move 2s infinite cubic-bezier(.2,.64,.81,.23);
}
.loading:nth-child(2) {
  background-color: #FF9D84;
  -webkit-animation: move 2s 150ms infinite cubic-bezier(.2,.64,.81,.23);
          animation: move 2s 150ms infinite cubic-bezier(.2,.64,.81,.23);
}
.loading:nth-child(3) {
  background-color: #F0E797;
  -webkit-animation: move 2s 300ms infinite cubic-bezier(.2,.64,.81,.23);
          animation: move 2s 300ms infinite cubic-bezier(.2,.64,.81,.23);
}
.loading:nth-child(4) {
  background-color: #75B08A;
  -webkit-animation: move 2s 450ms infinite cubic-bezier(.2,.64,.81,.23);
          animation: move 2s 450ms infinite cubic-bezier(.2,.64,.81,.23);
}
@-webkit-keyframes move {
  from { left: 0%; }
  to { left:95%; }
}
@keyframes move {
  from { left: 0%; }
  to { left:95%; }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

}
    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }