


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
    /* font-family: 'Eczar', serif; */
    /*font-family: 'Crimson Text', serif;*/
    /*font-family: 'Vollkorn', serif;*/
    
    font-family: plume, serif;
    font-weight: 400;
    font-style: normal;

    color: #fff;
    font-size: 20px;
    background: #222 url(/img/bg-grunge-2.jpg);
    padding-bottom: 10em;

    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    -o-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}

h1, h2, h3, h4 {

    font-weight: 700;
    font-style: normal;
}

h1 {
    font-size: 40px;
    margin: 0 0 0.25em 0;
    /*border-bottom: 2px solid #555;*/
}

h2 {
    font-size: 40px;
    /*border-bottom: 1px solid #333;*/
    margin: 0 0 0.25em 0;
}

h3 {
    font-size: 27px;
    margin: 0 0 0.25em 0;
}

h4 {
    font-size: 18px;
    margin-bottom: 0.25em;
}

p {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 1em 0;
}

em {
    font-style: italic;
}


a {
    color: inherit;
    /*text-decoration: none;*/
    /*border-bottom: 1px solid rgba(255,255,255,0.2);*/
    transition: all 0.4s;
}

a:hover {
    animation: textfade 3s linear infinite alternate;
}

figure {
    position: relative;
    margin: 0;
}

.port-thumb-wrapper figcaption {
    color: white;
    margin: 0;
    padding: 0;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    margin-left: 0;
    position: absolute;
    bottom: -30px;
    z-index: 20;
    transition: all 0.4s;
    opacity: 0;
}

.port-thumb-wrapper figcaption.dark {
    color: #222;
}

.port-thumb-wrapper:hover figcaption {
    bottom: 0px;
    opacity: 1;
}

.logo-wrapper {
    /*outline: 1px dotted yellow;*/
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.logo {
display: block;
max-width: 250px;
width: 150px;
height: auto;
/*margin: 0 auto;*/
/*margin-top: 50px;*/
/*position: relative;*/
/*left: 5%;*/

}

@media only screen and (min-width: 768px) {
    .logo {
        /*max-width: 350px;*/
        width: 200px;
    }
}


#eye, #eye-2 {
    animation: blink 5s linear infinite alternate;
}

@keyframes blink {
  0% {
    height: 0;
    fill: #7ce8ff;
  }
  15% {
    fill: #7cffa1;
  }
  30% {
    fill: #adff7c;
  }
  45% {
    fill: #fffd7c;
  }
  60% {
    fill: #ff9b7c;
  }
  75% {
    fill: #ff7ca7;
  }
  100% {
    height: 100%;
    fill: #c67cff;
  }
}

@keyframes textfade {
  0% {
    color: #fff;
  }
  15% {
    color: #7cffa1;
  }
  30% {
    color: #adff7c;
  }
  45% {
    color: #fffd7c;
  }
  60% {
    color: #ff9b7c;
  }
  75% {
    color: #ff7ca7;
  }
  100% {
    color: #c67cff;
  }
}

@keyframes reveal-moon {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


.intro-photo {
    width: 30%;
    max-width: 100px;
    float: left;
    margin: 10px 20px 10px 0;
    -moz-clip-path: circle(50% at 50% 50%);
    -webkit-clip-path: circle(50.0% at 50% 50%);
    clip-path: circle(50.0% at 50% 50%);
    shape-outside: circle(50%);
}

.welcome p {
    font-size: 22px;
    /*font-style: italic;*/
}

.text-content {
    display: flex;
    flex-direction: column;
}

.text-content div {
    width: 100%;
}

@media only screen and (min-width: 768px) {
    .text-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .text-content div {
        width: 30%;
    }
}


#intro, #about, #portfolio, #contact {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    clear: both;
}

#intro {
    margin-top: 40px;
    margin-bottom: 60px;
}

#about {
    min-height: 200px;
    margin-bottom: 60px;
    /*background-color: #ccc;*/
}

#portfolio {
    min-height: 400px;
    margin-bottom: 60px;
    /*background-color: #333;*/
}

#contact {
    margin-top: 60px;
    min-height: 200px;
}

@media screen and (max-width: 480px) {
    #port-wrapper[data-columns]::before {
        content: '2 .column.size-1of2';
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    #port-wrapper[data-columns]::before {
        content: '2 .column.size-1of2';
    }
}

@media screen and (min-width: 769px) {
    #port-wrapper[data-columns]::before {
    content: '4 .column.size-1of4';
    }
}


.column { float: left; }
.size-1of1 { width: 100%; }
.size-1of2 { width: 50%; }
.size-1of3 { width: 33.33333%; }
.size-1of4 { width: 25%; }



.port-thumb-wrapper {
    padding: 10px;
    /*width: 33.333%;*/
    /*break-inside: avoid;*/
    /*-webkit-column-break-inside: avoid;*/
    transition: all 0.2s;
}

@media only screen and (min-width: 768px) {
    .port-thumb-wrapper {
        width: auto;
    }
}

.port-thumb {
    box-shadow: 0 10px 6px -6px rgba(0,0,0,1);
    width: 100%;
    transition: all 0.2s;
}

.port-thumb-wrapper:hover .port-thumb {
    filter: brightness(130%);
    transform: scale(1.1);
    z-index: 10;
    position: relative;
    box-shadow: 0 40px 40px 0 rgba(0,0,0,.5);
}

footer {
    margin-top: 4em;
    /*outline: 1px dotted red;*/
}

footer p {
    border-top: 1px solid #444;
    width: 50%;
    max-width: 330px;
    margin: 0 auto;
    padding-top: 1em;
    text-align: center;
    font-size: 12px;
    color: #555;
}

/* ==========================================================================
   IMAGE VIEW
   ========================================================================== */


#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10,10,10,0.95);
    z-index: 100;
    /*background: rgba(0,0,0,0.95) url(/img/spin.svg) no-repeat 50% 20%;*/
}

#loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 101;
}

#close-btn {
    /*box-shadow: 0 0 2px rgba(0,0,0,0.2);*/
    position: absolute;
    top: 0;
    right: 0;
    z-index: 102;
    cursor: pointer;
    transition: all 0.8s;
    width: 82px;
    height: 82px;
    float: right;
    padding: 30px;
    /*background-color: rgb(10,10,10);*/
}

#close-btn .cls-1, #next-btn .cls-1, #prev-btn .cls-1 {
    fill: #fff;
    transition: all 0.8s;
}

#close-btn:hover .cls-1, #next-btn:hover .cls-1, #prev-btn:hover .cls-1 {
    fill: #992020;
}

#close-btn:hover {
    transform: rotate(90deg) scale(0.8);
    border-radius: 50%;
}





#next-btn, #prev-btn {
    top: 20%;
    width: 82px;
    height: auto;
    cursor: pointer;
    transition: all 0.8s;
    float: right;
    padding: 30px;
    /*outline: 1px dotted yellow;*/

}

#next-btn {
    position: absolute;
    right: 0;
    z-index: 103;
}

#next-btn:hover {
    transform: scale(1.2);
}


#prev-btn {
    position: absolute;
    left: 0;
    z-index: 104;
}

#prev-btn:hover {
    transform: scale(1.2);
}

/* big */
@media only screen and (min-width: 768px) {
    #next-btn, #prev-btn {
        top: 50%;
        width: 62px;
        height: auto;
        cursor: pointer;
        transition: all 0.8s;
        float: right;
        padding: 20px;
        /*outline: 1px dotted red;*/
        background-color: rgb(10,10,10);
    }

    #close-btn {
        background-color: rgb(10,10,10);
    }
}


.port-main-image {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 85vh;
}

#ie-min-content-fix {
    display: -ms-grid;
    -ms-grid-columns: min-content;
}

#center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#overlay figure {

    width: -moz-min-content;
    width: -webkit-min-content;
    width: min-content;

    height: 100%;
    /*margin: 0 auto;*/
    /*
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    */
}

.port-title {
    margin-top: 1em;
    font-size: 18px;
    align-self: flex-start;
    font-weight: 700;
}

.port-desc {
    max-width: 800px;
    align-self: flex-start;
}

.blur-me {
    -webkit-filter: blur(2px);
    filter: blur(2px);
    transition: all 0.5s;
    transition-delay: 1s;
}


/* ==========================================================================
   SINGLE IMAGE VIEW
   ========================================================================== */
.single-image #overlay {
    display: block;
    background-color: rgba(10,10,10,0.5);
}

.single-image #prev-btn {
    position: static;
    float: none;
    margin-right: 5px;
    width: 18px;
    height: 18px;
    /*outline: 1px dotted red;*/
    padding: 0;
}

.single-image .back-to-gallery:hover #prev-btn{
    transform: translateX(-5px);
}
.single-image .back-to-gallery:hover #prev-btn .cls-1{
    fill: #992020;
}

.single-image .back-to-gallery {
    /*outline: 1px dotted yellow;*/
    background-color: rgba(0,0,0,0.4);
    padding: 5px 10px;
    display: inline-block;
    position: absolute;
    left: 1%;
    top: 1%;
    text-transform: uppercase;
    z-index: 500;
}

.single-image .back-to-gallery a {
    border: 0;
    font-size: 13px;
}


/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

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

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

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

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

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

textarea {
    resize: vertical;
}

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






/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

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

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

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

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

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        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) ")";
    }

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

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

    thead {
        display: table-header-group;
    }

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

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

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

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