/*
Theme Name: TWIMC
Theme URL: https://www.twimc.info
Author: Julia Marquardt
Author URL: https://www.juliamarquardt.de/
*/



img,
embed,
object,
video {
    max-width: 100%;
    /*-to prevent overflow from its container-*/
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body.no-scroll {
    overflow: hidden;
}

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

::selection {
    background: black;
    color: white;
}


/*FONT*/

/* space-grotesk-300 - latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/space-grotesk-v13-latin-300.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/space-grotesk-v13-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/space-grotesk-v13-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/space-grotesk-v13-latin-300.woff') format('woff'), /* Modern Browsers */
       url('../fonts/space-grotesk-v13-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/space-grotesk-v13-latin-300.svg#SpaceGrotesk') format('svg'); /* Legacy iOS */
}
/* space-grotesk-600 - latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/space-grotesk-v13-latin-600.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/space-grotesk-v13-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/space-grotesk-v13-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/space-grotesk-v13-latin-600.woff') format('woff'), /* Modern Browsers */
       url('../fonts/space-grotesk-v13-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/space-grotesk-v13-latin-600.svg#SpaceGrotesk') format('svg'); /* Legacy iOS */
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: black;
    line-height: 1.4;
    letter-spacing: 0.4px;
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: black;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: black;
    line-height: 1.4;
    letter-spacing: 0.4px;
}

h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: black;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: black;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.visited {
    text-decoration: underline;
    cursor: default;
}

/*NAV*/

header {
    top: 0;
    padding-left: 20px;
    position: fixed;
    background-color: white;
}

nav {
    padding-top: 20px;
    padding-bottom: 15px;
}

li {
    list-style: none;
    display: inline-block;
    padding-right: 10px;
}

footer {
    margin-left: 20px;
    margin-bottom: 20px;
}

.project-container {
    margin-top: 7rem;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.photo-container {
    margin-top: 7.4rem;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.text-container {
    width: 80%;
    height: auto;
}

/*IMG*/

img {
    width: 100%;
    height: auto;
}


figure {
    display: inline-block;
    vertical-align: top;
    padding-right: 20px;
    padding-bottom: 20px;
}

.index {
    width: auto;
    height: 200px;
}

.index-shuffle {
    width: auto;
    height: 220px;
    height: 200px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.icon {
    width: 18px;
    height: auto;
    vertical-align: sub;
}


/*-MODAL IMAGE-*/

/* Style the Image Used to Trigger the Modal */
.zoom {
    cursor: zoom-in;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 20px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: hidden;
    /* Enable scroll if needed */
    background-color: rgb(255, 255, 255);
    /* Fallback color */
    background-color: rgba(255, 255, 255, 1.0);
    /* Opacity */
}

/* Modal Content (Image) */
.modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 100vh;
    width: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* The Close Button */
span.close {
    display: block;
    height: 100%;
    width: 100%;
    z-index: 10;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: zoom-out;
}

@media only screen and (max-width: 1056px) {

    .modal-content {
        position: absolute;
        left: 50%;
        top: 50%;
        height: 100vh;
        width: auto;
        transform: translate(-50%, -50%);
        z-index: -1;
    }

    .project-container {
        margin-top: 8.5rem;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 20px;
    }

    .photo-container {
        margin-top: 8.5rem;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 20px;
    }

}

@media only screen and (max-width: 1024px) {

    .modal-content {
        position: absolute;
        left: 50%;
        top: 50%;
        height: 100vh;
        width: auto;
        transform: translate(-50%, -50%);
        z-index: -1;
    }

}

/*
@media only screen and (max-width: 860px) {

    .project-container {
        margin-top: 10rem;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 20px;
    }

    .photo-container {
        margin-top: 10rem;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 20px;
    }

    .text-container {
        width: 100%;
        height: auto;
    }

}
*/

@media only screen and (max-width: 762px) {

    .project-container {
        margin-top: 10rem;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 20px;
    }

    .photo-container {
        margin-top: 10rem;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 20px;
    }

}

@media only screen and (max-width: 640px) {

    .project-container {
        margin-top: 16rem;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 20px;
    }

    .photo-container {
        margin-top: 16rem;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 20px;
    }

    .text-container {
        width: 100%;
        height: auto;
    }

    /*IMG*/

    figure {
        display: inline-block;
        vertical-align: top;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .index {
        width: 100%;
        height: auto;
    }

    .index-shuffle {
        width: 100%;
        height: auto;
        padding-right: 0;
        padding-bottom: 20px;
    }


    /*-MODAL IMAGE-*/

    /* Style the Image Used to Trigger the Modal */
    .zoom {
        cursor: zoom-in;
        pointer-events: none;
    }

}
