@import "style.css";


a {
    text-decoration: underline;
    color: #444;
}

/* Header */

body {
    overflow-x: hidden;
}

body > header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: white;
    padding: 1.5rem 0;
}

body > header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
}

body > header ul li.logo {
    padding-left: 1.8rem;
    padding-right: 1.8rem;
}

body > header ul li.logo span {
    font-weight: bold;
    font-size: 1.3rem;
    display: block;
    text-align: center;
    line-height: 1.1;
    font-family: 'DM Serif Display', serif;
}

body > header ul li.logo span.bottom {
    opacity: 0.5;
}

body.landing-page > header ul li a {
    color: black;
}

/* Landing page */

body.landing-page {
    padding-top: 6.5rem;
    color: white;
    background-color: #f3f3f3;
    background-image: url(/static/img/noise.gif);
}

body.landing-page a {
    text-decoration: none;
    color: #f0f0f0;
}

body.landing-page main {
    position: relative;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100vh;
}

body.landing-page main .container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 10vh;
    text-align: center;
}

/* Landing carousel */

body.landing-page main section.landing-carousel li {
    filter: grayscale(1) contrast(0.5) brightness(1.5);
    transition: filter 1s;
}

body.landing-page main section.landing-carousel li.is-active {
    filter: grayscale(0);
}

/* Landing about */

body.landing-page main section.landing-about {
    color: black;
    padding: 8rem 15%;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 3rem;
}

body.landing-page main section.landing-about div {
    flex: 1;
}

body.landing-page main section.landing-about div:nth-child(2) {
    flex: 2;
}

body.landing-page main section.landing-about h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    text-align: right;
}

body.landing-page main section.landing-about p,
body.landing-page main section.landing-about blockquote {
    font-size: 1.3rem;
    line-height: 1.4;
}

body.landing-page main section.landing-about blockquote {
    font-style: italic;
    margin-bottom: 1.8rem;
    padding-left: 2rem;
    position: relative;
}

body.landing-page main section.landing-about blockquote::before {
    content: "“";
    position: absolute;
    left: -1rem;
    font-family: 'DM Serif Display', serif;
    font-size: 4rem;
    color: #888;
    line-height: 1.3rem;
    top: 0;
}

body.landing-page main section.landing-about blockquote footer {
    opacity: 0.5;
    text-align: right;
}

/* Landing portfolio */

body.landing-page section.landing-portfolio {
    padding: 0 15%;
    display: flex;
    justify-content: space-evenly;
    align-items: start;
    gap: 0.8rem;
    margin-bottom: 4rem;
}

body.landing-page section.landing-portfolio div {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

body.landing-page section.landing-portfolio div div {
    background-size: cover;
    background-position: 50% 50%;
    flex: 1;
    min-height: 36rem;
}

body.landing-page section.landing-portfolio div div.odd {
    min-height: 34rem;
}

/* Landing page reviews */

body.landing-page section.reviews {
    background-color: white;
    padding: 6rem 15%;
    color: black;
}

body.landing-page section.reviews h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

body.landing-page section.reviews ul li {
    line-height: 1.4;
}

body.landing-page section.reviews ul li blockquote {
    font-size: 1.2rem;
}

body.landing-page section.reviews ul li blockquote footer {
    text-align: right;
    opacity: 0.5;
}

body.landing-page section.reviews ul li blockquote::before {
    display: block;
    background-image: url(/static/img/icons/grade.svg);
    background-size: 1.5rem;
    background-repeat: repeat;
    content: "";
    width: 7.5rem;
    height: 1.5rem;
    margin: 0 auto 0.5rem auto;
    filter: brightness(0) saturate(100%) invert(92%) sepia(18%) saturate(7063%) hue-rotate(353deg) brightness(100%) contrast(93%);
}

/* Landing page contact */

body.landing-page section.landing-contact {
    padding: 8rem 15%;
}

/* Contact forms (landing and on a separate page) */

.contact-form > h2 {
    color: black;
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form .inner {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    color: black;
}

.contact-form .inner > div {
    flex: 1;
}

.contact-form label {
    margin-bottom: 0.8rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    background-color: white;
    padding: 0.4rem 0.7rem;
    font-size: 1rem;
    width: calc(100% - 1.4rem);
    border: 0px none transparent;
    outline: none!important;
    box-sizing: content-box;
}

.contact-form .help-text {
    font-size: 1.2rem;
    line-height: 1.4;
    text-align: right;
}

/* Contact page */

section.contact-section {
    padding-top: 2rem;
    width: 80%;
    margin: 0 auto;
}

/* About me page */

section.about-me {
    color: black;
    padding-top: 2rem;
    margin: 0 auto;
    width: 80%;
    line-height: 1.5;
    font-size: 1.15rem;
}

section.about-me h2 {
    font-size: 2.5rem;
    font-family: 'DM Serif Display', serif;
    margin-bottom: 2rem;
}

section.about-me .about-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 5rem;
    margin-bottom: 5rem;
}

section.about-me .about-row .video {
    flex: 2;
}

section.about-me .about-row .video video {
    width: 100%;
    height: 100%;
    object-position: 50% 0;
    filter: brightness(0.93) contrast(1.2);
    border-radius: 100%;
    object-fit: cover;
}

section.about-me .about-row .text {
    flex: 5;
}

section.about-me img {
    width: 100%;
    height: auto;
    margin-top: 3rem;
}


/* Landing footer */

body.landing-page > footer {
    padding: 2rem 0;
    color: #888;
    text-align: center;
    font-weight: 300;
}

body.landing-page > footer a {
    color: #666;
}


/* Portfolio (page) */

body.portfolio section.portfolio {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    width: 80%;
    padding-top: 1.2rem;
}

body.portfolio section.portfolio .album {
    width: 24rem;
    height: 24rem;
    background-size: cover;
    background-position: 50% 50%;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    transition-delay: 0.1s;
}

body.portfolio section.portfolio .album h2 {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
    color: white;
    text-shadow: 0.2rem 0.2rem 1.7rem black, -0.2rem -0.2rem 3rem black;
    font-size: 2rem;
    line-height: 1.7;
    font-family: 'DM Serif Display', serif;
    font-weight: 200;
    margin-bottom: 0;
    z-index: 1;
    cursor: pointer;
    transition: 0.4s;
}

body.portfolio section.portfolio .album:hover h2 {
    opacity: 0;
}

body.portfolio section.portfolio .album .hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(60, 60, 60, 0.4);
    transition: opacity 0.3s;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(0.5rem);
    opacity: 0;
    transition: 0.5s;
    transition-delay: 0.1s;
}

body.portfolio section.portfolio .album .hover h3 {
    font-size: 1.2rem;
}

body.portfolio section.portfolio .album .hover p {
    width: calc(100% - 2rem);
    padding: 1rem;
    text-align: center;
}

body.portfolio section.portfolio .album:hover .hover {
    opacity: 1;
}

body.portfolio section.portfolio-album {
    margin: 2% auto;
    width: 80%;
    color: black;
}

body.portfolio section.portfolio-album h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

body.portfolio section.portfolio-album p.album-description {
    font-size: 1.2rem;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 2rem;
}


/* Albums */

body.album section.album {
    width: 80%;
    margin: 0 auto;
    color: black;
    padding-top: 2rem;
}

body.album section.album h2.album-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
}

body.album section.album .album-location {
    margin-top: -0.5rem;
    color: #666;
}

body.album section.album .album-location span {
    display: inline-block;
    padding-left: 0.5rem;
}

body.album section.album .album-location span:not(:last-child) {
    padding-right: 0.5rem;
}

body.album section.album .album-location span:first-child {
    padding-left: 0;
}

body.album section.album .photos-container {
    margin-top: 2rem;
}

body.album #downloadAll {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    font-size: 1.2rem;
    color: white;
    padding: 1rem 1.6rem;
    border: 2px solid white;
    z-index: 100;
}

body.album #downloadAll img {
    display: inline-block;
    vertical-align: middle;
    filter: invert();
}

body.album #photoPreview .photo-preview-image {
    top: 50%;
    height: calc(100vh - 6rem);
}


/* Mobile styles */

header button.menu-toggle {
    display: none;
}

header .mobile-logo {
    display: none;
}

@media all and (max-width: 1365px){

    body.landing-page {
        padding-top: 5rem;
    }

    /* Mobile navigation */


    body.landing-page a.mobile-logo {
        display: inline-block;
        position: relative;
        top: 0.3rem;
        left: 2rem;
        color: black;
        font-weight: bold;
        font-size: 1.1rem;
        vertical-align: middle;
    }

    body.landing-page a.mobile-logo span:nth-child(2) {
        color: #888;
    }

    body > header {
        padding: 1rem 0;
    }

    body > header button.menu-toggle {
        display: block;
        width: 2rem;
        height: 2rem;
        position: relative;
        border: 0px none transparent;
        background-color: transparent;
        left: -1.5rem;
        float: right;
    }

    body > header button.menu-toggle span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 0.3rem;
        background-color: black;
        transition: 0.15s;
        border-radius: 0.1rem;
    }

    body > header button.menu-toggle span:nth-child(1) {top: 0.2rem;}
    body > header button.menu-toggle span:nth-child(2) {top: 0.85rem;}
    body > header button.menu-toggle span:nth-child(3) {top: 1.5rem;}

    body > header button.menu-toggle.active span:nth-child(1) {
        top: 0.8rem;
        transform: rotate(45deg);
    }

    body > header button.menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    body > header button.menu-toggle.active span:nth-child(3) {
        top: 0.8rem;
        transform: rotate(-45deg);
    }

    body > header nav li.logo {
        display: none;
    }

    body > header nav {
        display: none;
        position: fixed;
        top: 5rem;
        background-color: white;
        width: 100%;
    }

    body > header nav ul {
        flex-direction: column;
        width: 100%;
        display: block;
    }

    body > header nav ul li {
        width: 100%;
    }

    body > header nav ul li a {
        display: block;
        padding: 1.5rem 2rem;
    }

    /* About section */
        
    body.landing-page main section.landing-about p,
    body.landing-page main section.landing-about blockquote {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    body.landing-page main section.landing-about blockquote footer {
        margin-top: 0.5rem;
    }

    body.landing-page main section.landing-about h2 {
        font-size: 2.2rem;
        text-align: left;
    }

    body.landing-page main section.landing-about {
        flex-direction: column;
        gap: 2rem;
        padding: 4rem 1.5rem 4rem 1.5rem;
    }

    /* Album */

    body.album #downloadAll {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        font-size: 1rem;
        color: white;
        padding: 0.6rem 0.9rem;
        border: 1px solid white;
    }

    /* Landing portfolio */

    body.landing-page section.landing-portfolio {
        display: block;
        padding: 0 1.5rem;
    }

    body.landing-page section.landing-portfolio div {
        margin-bottom: 1rem;
    }

    body.landing-page section.landing-portfolio div div {
        min-height: 30rem;
    }

    body.landing-page section.landing-portfolio div div.odd {
        min-height: 30rem;
    }

    /* Reviews */

    body.landing-page section.reviews {
        padding: 4rem 1.5rem;
    }

    body.landing-page section.reviews h2 {
        font-size: 2rem;
    }

    body.landing-page section.reviews ul li blockquote {
        font-size: 1.1rem;
    }

    /* Contact form */

    body.landing-page section.landing-contact {
        padding: 5rem 1.5rem;
    }

    .contact-form > h2 {
        font-size: 2rem;
    }

    .contact-form .inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-form .help-text {
        text-align: left;
    }

    /* About me page */

    section.about-me {
        width: auto;
        margin: 0 1.5rem;
    }

    section.about-me .about-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    section.about-me .about-row .video video {
        border-radius: 0;
    }

    section.about-me .about-row {
        margin-bottom: 3rem;
    }

    /* Portfolio pages */

    body.portfolio section.portfolio-album {
        margin: 0 1rem;
        padding-top: 1rem;
        width: auto;
    }

    body.portfolio section.portfolio-album p.album-description {
        font-size: 1.1rem;
        text-align: left;
    }

    body.portfolio section.portfolio-album .album-photos {
        width: auto;
        margin: 0 -1rem 2rem -1rem;
    }

    body.portfolio section.portfolio-album .album-photos img {
        width: 100%;
        height: auto;
    }

}