/*** Variables ***/

:root {
    --bgColor: #FBFAFA;
    --margin-top: 25px;
    --margin-sides: 30px;

    --first-jump: 1050px;
    --second-jump: 450px;
}

/*** General ***/

/*@font-face {
    font-family: 'Helixa';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Helixa-Regular.eot');
    src: local('Helixa Regular');
    url('../fonts/Helixa-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
/*url('../fonts/Helixa-Regular.woff2') format('woff2'), /* Super Modern Browsers */
/*  url('../fonts/Helixa-Regular.woff') format('woff'), /* Modern Browsers */
/*  url('../fonts/Helixa-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
/*  url('../fonts/Helixa-Regular.svg#Helixa') format('svg'), /* Legacy iOS */
/*  url('../fonts/Helixa-Regular.otf') format('opentype');
}*/

@font-face {
  font-family: 'Helixa';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Helixa-Regular.ttf');
}

@font-face {
  font-family: 'Helixa';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/Helixa-Bold.ttf');
}

@font-face {
  font-family: 'Times Now';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/TimesNow-Light.ttf');
}

/*@font-face {
  font-family: 'Helixa';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/Helixa-Bold.eot');
  src: local('Helixa Bold');
  url('../fonts/Helixa-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
/*  url('../fonts/Helixa-Bold.woff2') format('woff2'), /* Super Modern Browsers */
/*  url('../fonts/Helixa-Bold.woff') format('woff'), /* Modern Browsers */
/*  url('../fonts/Helixa-Bold.ttf') format('truetype'), /* Safari, Android, iOS */
/*  url('../fonts/Helixa-Bold.svg#Helixa') format('svg'), /* Legacy iOS */
/*  url('../fonts/Helixa-Bold.otf') format('opentype');
}*/

html, body {
  background-color: var(--bgColor);
  color: #000;
  font-size: 14px;
  padding: 0;
  margin: 0;
  font-family: 'Helixa', sans-serif;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/*** Header ***/

h1 {
    font-size: 14px;
    font-weight: normal;
    margin: var(--margin-top) var(--margin-sides);
}

h1 img {
    max-height: 20px;
}

#header-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    height: 8%;
    min-height: 65px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--bgColor);
}

#header-title {
    text-align: left;
    letter-spacing: .7pt;
}

.header-links {
    text-align: right;
    font-weight: bold;
    padding: 25px 0;
    width: 20em;
}

.header-links span, .header-links a, .header-links ul {
    margin: 0 30px;
    cursor: pointer;
}

.banner-text {
    position: absolute;
    bottom: 5vh;
    height: 13vw;
    width: 100%;
    font-size: 12vw;
    text-align: center;
    font-weight: bold;
}

.banner-text2 {
    position: relative;
    padding-bottom: 5vh;
    padding-top: 10vh;
    height: 20vw;
    width: 100%;
    font-size: 12vw;
    text-align: center;
    font-weight: bold;
    clear: both;
}

#projects {
    width: 5.5em;
    margin-left: 10vw;
}

#projects span {
    white-space: pre;
}

#projects-child {
    text-align: center;
    margin-left: -8.8em;
    /*text-align: right;*/
    margin-top: 0.3em;
    width: 27em;
}

.numero #projects-child {
    margin-left: -5.4em;
}

#projects-child ul {
    list-style-type: none;
    line-height: 1.5em;
    padding: 0;
}

@media (max-width: 700px) {
    .header-links span, .header-links a, #projects-child ul {
        margin: 0 15px;
        font-size: .8em;
    }

    #projects {
        margin-left: 10vw;
    }

    #projects-child {
        margin-left: -6.9em;
        /*font-size: .8em;*/
        width: 20em;
        /*width: auto;*/
    }

    .numero #projects-child {
        margin-left: -4.5em;
    }

    h1 {
        margin: 25px 20px;
    }

    h1 img {
        max-height: 16px;
    }

    .banner-text2 {
        padding-bottom: 5vh;
    }
}

@media (max-width: 525px) {

    .numero {
        margin-left: 0 !important;
    }

}

@media (max-width: 400px) {
    .header-links span, .header-links a, #projects-child ul {
        margin: 0 10px;
        font-size: .6em;
    }

    #projects-child {
        /*font-size: .6em;*/
        margin-left: -5.2em;
        width: 17em;
    }

    .numero #projects-child {
        margin-left: -4.2em;
    }

    #projects {
        margin-left: 5vw;
    }

    .numero {
        margin-left: 0;
    }

    h1 {
        margin: 27.5px 15px;
    }

    h1 img {
        max-height: 12px;
    }
}

@media (max-width: 300px) {

    #projects {
        margin-left: 0;
    }
}

/*** Slideshow View ***/

#preview-footer {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    position: fixed;
    bottom: var(--margin-top);
    left: var(--margin-sides);
    right: var(--margin-sides);
    z-index: 20;
}

#item-counter {
    width: 50%;
    text-align: left;
}

#footer-links {
    width: 50%;
    text-align: right;
}

#footer-links span {
    margin: 0 10px;
    cursor: pointer;
}

#preview-image-list {
    top: 15%;
    bottom: 20%;
    right: 10%;
    left: 10%;
    width: auto;
    position: fixed;
    height: auto !important;
}

@media (max-width: 1050px){
    #preview-image-list {
        top: 20%;
        bottom: 20%;
        right: 5%;
        left: 5%;
    }
}

.preview-image-container {
    height: 100%;
    width: 90%;
    right: 5%;
    left: 5%;
    position: absolute;
    display: flex;
    justify-content: center;
}

.preview-image-container img, .preview-image-container video {
    /*left: 0;
    top: 0;*/
    width: auto;
    height: 100%;
    max-width: 100%;
    /*max-height: calc(.615 * 60vw - 1vw);*/
    max-height: 100%;
    bottom: 0;
    display: block;
    margin: auto auto;
    object-fit: contain;
}

.preview-image-container video {
    z-index: 100;
}

#left-frame, #right-frame, #previous-image, #next-image {
    height: 80%;
    top: 10%;
    bottom: 10%;
}

#left-frame {
    position: fixed;
    width: 10%;
    left: 0;
    background-color: var(--bgColor);
}

#right-frame {
    position: fixed;
    width: 10%;
    right: 0;
    background-color: var(--bgColor);
}

#previous-image {
    position: fixed;
    width: 40%;
    left: 0;
    cursor: pointer;
}

#next-image {
    position: fixed;
    width: 40%;
    right: 0;
    cursor: pointer;
}

#previous-image img {
    height: 2em;
    position: absolute;
    top: 50%;
    left: 10%;
}

#next-image img {
    height: 2em;
    position: absolute;
    top: 50%;
    right: 10%;
}

#preview-text {
    font-family: 'Times Now', serif;
    font-weight: 300;
    position: absolute;
    bottom: 4%;
    text-align: center;
    width: 100%;
    font-size: 12px;
}

@media (max-width: 1050px){
    #left-frame {
        width: 5%;
    }

    #right-frame {
        width: 5%;
    }

    #previous-image {
        height: 90%;
        top: 5%;
        bottom: 5%;
    }

    #next-image {
        height: 90%;
        top: 5%;
        bottom: 5%;
    }

    #previous-image img {
        left: 5%;
    }

    #next-image img {
        right: 5%;
    }
}

@media (max-width: 700px){

    #previous-image img {
        left: 0%;
    }

    #next-image img {
        right: 0%;
    }
}

/*** Gallery View ***/

#gallery-wrapper {
    position: absolute;
    /*height: 0;
    width: 100%;
    left: 0;
    top: 100%;
    bottom: 0;*/
    height: 100%;
    width: 100%;
    left: 0;
    bottom: 0;
    margin: 0;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    z-index: 50;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: center;
}

#gallery-wrapper::-webkit-scrollbar {
    display: none;
}

#gallery-flex {
    width: 100%;
    /* height: fit-content; */
    position: relative;
    gap: 2vw .6vw;
    padding: 2vw;
    padding-bottom: 20vh;
    margin: min(8%, 65px) 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    background-color: var(--bgColor);
}

.gallery-image-container {
    margin: 0 20px 3vw;
    text-align: center;
}

.gallery-image-container img {
    max-width: 100%;
    height: 100%;
    max-height: 200px; /* adjust as necessary */
    object-fit: contain;
    cursor: pointer;
}

#gallery-placeholder {
    height: 100%;
    width: 100%;
    background: transparent;
}

@media (max-width: 700px){
    #gallery-flex {
        justify-content: space-around;
        gap: 4vw 0.3vw;
    }

    #gallery-wrapper {
        margin: max(8%, 65px) 0 0;
    }

    .gallery-image-container img {
        /*width: 90vw;*/
        max-height: 80px;
    }

    .gallery-image-container {
        margin: 0 10px 3vw;
    }
}

/*** About View ***/

#info-wrapper {
    position: absolute;
    background-color: var(--bgColor);
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    z-index: 50;
    margin: min(8%, 65px) 0;
}

@media (max-width: 700px) {
    #info-wrapper {
        margin: max(8%, 65px) 0;
    }
}

#info-wrapper::-webkit-scrollbar {
    display: none;
}

#info-wrapper p {
    font-size: 16px;
    line-height: 1.5em;
    font-family: 'Times Now', serif;
    font-weight: 300;
}

.about-text {
    margin: 5vh 10vw 0 14vw;
    width: 37vw;
    float: left;
}

.contact-text {
    margin-top: 5vh;
    float: left;
}

.contact-text-info {
    font-family: 'Helixa', sans-serif !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
}

.contact-text-info a {
    text-decoration: underline;
}

@media (max-width: 700px){

    .about-text {
        margin: 10vh 4vw;
        width: 92vw;
        float: none;
    }

    .contact-text {
        margin: 10vh 4vw;
        width: 92vw;
        float: none;
    }

    .banner-text2 {
    }
}