.background {
    /*    background-image: url(../img/Bewegung_Bostedt_Homepage.jpg);*/
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

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

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

.container {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/*
.text-container {
    position: absolute;
    width: 100%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
*/

/* open-sans-300 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/open-sans-v34-latin-300.eot');
    /* IE9 Compat Modes */
    src: url('../fonts/open-sans-v34-latin-300.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('../fonts/open-sans-v34-latin-300.woff2') format('woff2'),
        /* Super Modern Browsers */
        url('../fonts/open-sans-v34-latin-300.woff') format('woff'),
        /* Modern Browsers */
        url('../fonts/open-sans-v34-latin-300.ttf') format('truetype'),
        /* Safari, Android, iOS */
        url('../fonts/open-sans-v34-latin-300.svg#OpenSans') format('svg');
    /* Legacy iOS */
}

/* open-sans-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v34-latin-regular.eot');
    /* IE9 Compat Modes */
    src: url('../fonts/open-sans-v34-latin-regular.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('../fonts/open-sans-v34-latin-regular.woff2') format('woff2'),
        /* Super Modern Browsers */
        url('../fonts/open-sans-v34-latin-regular.woff') format('woff'),
        /* Modern Browsers */
        url('../fonts/open-sans-v34-latin-regular.ttf') format('truetype'),
        /* Safari, Android, iOS */
        url('../fonts/open-sans-v34-latin-regular.svg#OpenSans') format('svg');
    /* Legacy iOS */
}


.text-container {
    position: relative;
    width: 66.666666666%;
    height: auto;
    margin-top: 6rem;
    margin-left: 25px;
    margin-bottom: 20px;
}

header {
    top: 20px;
    left: 25px;
    position: fixed;
    z-index: 4;
}

nav {
    top: 20px;
    right: 25px;
    position: fixed;
}

footer {
    position: relative;
    margin-bottom: 20px;
    text-align: right;
    margin-right: 25px;
}

.footer-index {
    position: fixed;
    bottom: 0;
    right: 0;
}

.footer-personal{
     position: fixed;
    display: flex;
    bottom: 0;
    right: 0;
    left: 0;
    justify-content:center;
   align-items:center;
    overflow: hidden;
    width: 100%;
}

h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
}

h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
}

h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1;
    display: inline-block;
}

h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.3;
}

h5 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1;
}

h6 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.3;
}

/*
p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.3;
    text-align: center;
}
*/

.project-text p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.3;
    text-align: left;
    position: absolute;
    width: 40%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

li {
    display: inline-block;
    padding-left: 15px;
}

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

h2 a:hover {
    border-bottom: 1px solid black;
}

h5 a:hover {
    border-bottom: 0.7px solid black;
}

.visited {
    border-bottom: 1px solid black;
    padding-bottom: 3px;
}

p a:hover {
    border-bottom: 0.5px solid black;
}

.slideshow-container {
    width: 100%;
 height: 100%;
    position: fixed;
    bottom: 5px;
}

.grid {
     margin-top: 2rem;
    display: grid;
    grid-template-rows: 1;
    grid-template-columns: 33.33333333% 33.33333333% 33.33333333%;
}

.grid-info {
    display: grid;
    grid-template-rows: 1;
    grid-template-columns: 25% 25% 25% 25%;
}

.grid-info-01 {
    margin-left: 25px;
    margin-top: 6rem;
    grid-row: 1 / 1;
    grid-column: 1 / 1;
}

.grid-info-02 {
    margin-left: 25px;
    margin-top: 6rem;
    grid-row: 1 / 1;
    grid-column: 2/ 4;
}

.grid-info-03 {
    margin-left: 25px;
    margin-top: 3rem;
    grid-row: 2 / 2;
    grid-column: 1/ 4;
    margin-bottom: 20px;
}

.grid-layout {
    display: grid;
    grid-template-rows: 1;
    grid-template-columns: 50% 50%;
}

.grid-layout-01 {
    margin-top: 6rem;
    grid-row: 1 / 1;
    grid-column: 1 / 1;
}

.grid-layout-02 {
    margin-top: 6rem;
    grid-row: 1 / 1;
    grid-column: 2 / 2;
}

.grid-layout-03 {
    margin-top: 6rem;
    grid-row: 2 / 2;
    grid-column: 1 / 1;
}

.grid-layout-04 {
    margin-top: 6rem;
    grid-row: 3 / 3;
    grid-column: 2 / 2;
}

.grid-modal-box {
    grid-row: 1 / 1;
    grid-column: 1 / 4;
}

.grid-slideshow {
    grid-row: 1 / 1;
    grid-column: 1 / 4;

}

.grid-workshops {
    display: grid;
    grid-template-rows: 1;
    grid-template-columns: 25% 25% 25% 25%;
}

.grid-workshops-01 {
    margin-left: 25px;
    margin-top: 6rem;
    grid-row: 1 / 1;
    grid-column: 1 / 3;
}

.grid-workshops-02 {
    margin-left: 25px;
    margin-top: 6rem;
    grid-row: 1 / 1;
    grid-column: 3/ 6;
}


/*Slideshow*/
.slides {
    display: none;
    height: 100vh;
    width: auto;
    text-align: center;
}


.portraits-slides-01 {
  display: none;
  height: 100vh;
  width: auto;    

}

.portraits-slides-02 {
  display: none;
   height: 100vh;
  width: auto;   

}

.portraits-slides-03 {
  display: none;
   height: 100vh;
  width: auto;   

}

.portraits-slides-04 {
  display: none;
 height: 100vh;
  width: auto;    

}

.portraits-slides-05 {
  display: none;
  height: 100vh;
  width: auto;   

}

.portraits-slides-06 {
  display: none;
height: 100vh;
  width: auto;   

}

.slideshow-container-portraits {
    position: relative;
    width: 33.33333333%;
    height: auto;
display: block;
}

#slides-left {
    text-align: left;
}

.left {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: w-resize;
}

.right {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    right: 0;
    cursor: e-resize;
}

.margin {
    position: fixed;
}

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

.img-info {
    width: 90%;
    height: auto;
}

.img-slides {
    width: auto;
    height: 80vh;
    top: 50%;
    transform: translateY(-50%);
    position: relative;
}

.img-slides-choices-01 {
    width: auto;
    height: 80vh;
    top: 50%;
    transform: translateY(-50%);
    position: relative;
    padding-right: 1rem;
    padding-left: 1rem;
}

.index {
    position: absolute;
    text-align: right;
    right: 25px;
    bottom: 20px;
    cursor: pointer;
    z-index: 2;
}

.project-title {
    position: absolute;
    text-align: left;
    left: 25px;
    bottom: 20px;
    z-index: 2;
}


/*Modal Box*/
.modal-box {
    display: none;
    position: fixed;
    width: 100%;
    height: auto;
    z-index: 3;
}

.modal-content {
    padding-top: 6.3662791vh;
    padding-top: 4rem;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 1);
    position: relative;
    overflow-y: scroll;
}

/*
.index-image{
    width: 81.25%;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    
}
*/

/*-CLEARFIX-*/

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

.row:after {
    content: " ";
    clear: both;
}

/*-COL-*/

.col-1-12 {
    width: 8.333333333333334%;
}

.col-2-12 {
    width: 16.666666666666668%;
}

.col-3-12 {
    width: 25%;
}

.col-4-12 {
    width: 33.333333333333336%;
    margin-top: 40px;
}

.col-5-12 {
    width: 41.66666666666667%;
}

.col-6-12 {
    width: 50%;
}

.col-7-12 {
    width: 58.333333333333336%;
}

.col-8-12 {
    width: 66.66666666666667%;
}

.col-9-12 {
    width: 75%;
}

.col-10-12 {
    width: 83.33333333333334%;
}

.col-11-12 {
    width: 91.66666666666667%;
}

.col-12-12 {
    width: 100%;
}

.float-left {
    float: left;
    padding-right: 30px;
}

.float-right {
    float: right;
    padding-left: 30px;
}

.column {
    float: left;
    width: 33.33333333%;
    height: auto;
    padding: 25px;
    cursor: pointer;
}

.column-text {
    float: left;
    width: 66.66666666%;
    height: auto;
    padding: 25px;
    cursor: pointer;
}

/*Horizontal Scroll*/

.scroll-box {
    top: 4rem;
    left: 20px;
    right: 20px;
    bottom: 4rem;
    position: fixed;
    max-width: 100%;
    max-height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
}

figure {
    display: inline-block;
    vertical-align: middle;
    padding-right: 5px;
    padding-left: 5px;
    padding: 4rem;
}

.scroll-image {
    height: 80vh;
    width: auto;
}

.scroll-middle {
    display: inline-block;
    vertical-align: middle;
    padding-right: 5px;
    padding-left: 5px;
}

/*Glory To Ukraine*/
.flex-container {
    /*    margin-top: 4rem;*/
    display: flex;
    width: 100%;
    border-spacing: 0;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-right: 25px;
}

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

.image-position-01 {
   margin-top: 4rem;
    margin-left: 2rem;
}

.image-position-02 {
    margin-top: 2rem;
    margin-left: 2rem;
}

.image-position-03 {
   margin-top: 2rem;
    margin-right: 2rem;
}

.image-position-04 {
     margin-top: -4rem;
    margin-left: 14rem;
}

.image-position-05 {
    margin-top: -4rem;
    margin-right: 10rem;
}

/*-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: auto; /* 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: auto;
  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;   
}


/*index*/

.index-image-position-01 {
    margin-top: 4rem;
    margin-left: 2rem;
}

.index-image-position-02 {
    margin-top: 2rem;
    margin-left: 2rem;
}

.index-image-position-03 {
    margin-top: 2rem;
    margin-right: 2rem;
}

.index-image-position-04 { 
    margin-top: -10rem;
    margin-left: 14rem;
}

/*WORK*/

.work-image-position-01 {
    margin-top: 2rem;
    margin-left: 1rem;
}

.work-image-position-02 {
    margin-top: 6rem;
    margin-left: 4rem;
}

.work-image-position-03 {
    margin-top: 8rem;
    margin-right: 1rem;
}

/*PORTRAITS*/

.portraits-image-position-01 {
    margin-top: 4rem;
    margin-left: 2rem;
    margin-right: 4rem;
}

.portraits-image-position-02 {
    margin-top: 8rem;
    margin-left: 0rem;
}

.portraits-image-position-03 {
    margin-top: 2rem;
    margin-left: 6rem;
    margin-right: 4rem;
}

/*Image move up on scroll*/

.animatable {
    /* initially hide animatable objects */
    visibility: hidden;

    /* initially pause animatable objects their animations */
    animation-play-state: paused;
}

/* show objects being animated */
.animated {
    visibility: visible;

    animation-fill-mode: both;
    animation-duration: 1s;
    animation-play-state: running;
}

@keyframes moveUp {
    0% {
        transform: translateY(40px);
    }

    100% {
        transform: translateY(0);
    }
}

.animated.animationDelay {
    animation-delay: 0.4s;
}

.animated.animationDelayMed {
    animation-delay: 1.2s;
}

.animated.animationDelayLong {
    animation-delay: 1.6s;
}

.animated.moveUp {
    animation-name: moveUp;
}

.image-box{
    height: 100%;
    width: auto;
    position: relative; 
    
}

figcaption {
    font-family: "Open Sans", sans-serif;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 400;
    color: black;
    text-align: center;
    padding-top: 0;
    padding-left: 0;
}

.caption-index {
    z-index: -1;
    position: absolute;
    top:50%;
  left:50%;
  padding:0;
  margin:0;
  -moz-transform:translate(-50%, -50%);
  -webkit-transform:translate(-50%, -50%);
  transform:translate(-50%, -50%);
}

.caption {
    z-index: -1;
    position: absolute;
    top:50%;
  left:50%;
  padding:0;
  margin:0;
  -moz-transform:translate(-50%, -50%);
  -webkit-transform:translate(-50%, -50%);
  transform:translate(-50%, -50%);
}

.image-index {
    opacity: 1;

}

.image {
    opacity: 1;

}

.image-index:hover {
    opacity: 0;
}

.image:hover {
    opacity: 0;
}

.caption-position-01 {
    margin-left: -1rem;
}

.caption-position-02 {
    margin-left: -1rem;
}

.caption-position-03 {
    margin-left: -2rem;
}

.caption-position-04 {
    margin-left: 0rem;
}

.caption-position-05 {
    margin-left: -2rem;
}

.caption-position-06 {
    margin-left: -1rem;
}

.caption-position-07 {
    margin-left: -1rem;
}

.caption-about{
   font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
}

/*-MEDIA QUERIES-*/

@media only screen and (min-width: 1024px) { 
        
.modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%;
  width: auto;
  transform: translate(-50%,-50%);
  z-index: -1;
}   
        
}


/*@media screen and (min-device-width : 320px) and (max-device-width : 768px) {*/
/**@media only screen and (max-device-width : 640px)*/
@media only screen and (max-width: 640px) {


    .container {
        width: 100%;
    }

    header {
        top: 20px;
        left: 15px;
        position: fixed;
        z-index: 4;
    }

    footer {
        position: relative;
        margin-bottom: 20px;
        text-align: right;
        margin-right: 15px;
    }

    h1 {
        font-family: 'Open Sans', sans-serif;
        font-size: 1.3rem;
        font-weight: 400;
        line-height: 1;
    }

    h2 {
        font-family: 'Open Sans', sans-serif;
        font-size: 1.3rem;
        font-weight: 300;
        line-height: 1;
    }

    h3 {
        font-family: 'Open Sans', sans-serif;
        font-size: 1.1rem;
        font-weight: 300;
        line-height: 1;
        display: inline-block;
    }

    h4 {
        font-family: 'Open Sans', sans-serif;
        font-size: 1.1rem;
        font-weight: 300;
        line-height: 1.3;
    }

    h5 {
        font-family: 'Open Sans', sans-serif;
        font-size: 0.9rem;
        font-weight: 300;
        line-height: 1;
    }

    a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

    }

    .project-text p {
        font-family: 'Open Sans', sans-serif;
        font-size: 0.9rem;
        font-weight: 300;
        line-height: 1.3;
        text-align: left;
        position: absolute;
        width: 90%;
        height: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .grid-info {
        display: table;
        grid-template-rows: 1;
        grid-template-columns: 25% 25% 25% 25%;
    }

    .grid-info-01 {
        margin-left: 15px;
        /*         padding-left: 5px;*/
        padding-right: 5px;
        margin-top: 6rem;
        grid-row: 1 / 1;
        grid-column: 1 / 1;
    }

    .grid-info-02 {
        margin-left: 15px;
        /*         padding-left: 5px;*/
        padding-right: 5px;
        margin-top: 3rem;
        grid-row: 1 / 1;
        grid-column: 2/ 4;
    }

    .grid-info-03 {
        margin-left: 15px;
        /*         padding-left: 5px;*/
        padding-right: 5px;
        margin-top: 3rem;
        grid-row: 2 / 2;
        grid-column: 1/ 4;
        margin-bottom: 20px;
    }

    .img-info {
        width: 75%;
        height: auto;
    }

    .slideshow-container {
        width: 100%;
        /*        height: 80vh;*/
        height: auto;
        position: relative;
        /*        overflow-y: scroll;*/


    }

    .grid-slideshow {
        grid-row: 1 / 1;
        grid-column: 1 / 5;
    }


    .grid-modal-box {
        grid-row: 1 / 1;
        grid-column: 1 / 5;

    }

    .column {
        float left;
        width: 33.33333333%;
        height: auto;
        padding: 10px;
        cursor: pointer;
    }


    .grid-project-title {
        position: fixed;
    }


    .slides {
        display: none;
        width: auto;
        height: 95vh;
        text-align: center;
    }



    .left:onclick {
        position: absolute;
        width: 50%;
        height: 100%;
        top: 0;
        left: 0;
        cursor: default;
        background-color: transparent;
        border: none;
        outline: none;
    }

    .right:onclick {
        position: absolute;
        width: 50%;
        height: 100%;
        top: 0;
        right: 0;
        cursor: default;
        background-color: transparent;
        border: none;
        outline: none;
    }

    .img-slides {
        width: 90%;
        /*        width: 80%;*/
        height: auto;
        text-align: center;
        position: relative;
        top: 52.5%;
        z-index: -1;
    }

    /*
    .grid.index {
        display: table;
        position: relative;
    }
*/

    .index {
        display: table;
        position: absolute;
        position: relative;
        width: 62vw;
        top: 0;
        text-align: right;
        right: 0px;
        margin-bottom: 20px;
        cursor: pointer;
        z-index: 2;

    }

    /*
    .grid.project-title {
        display: table;
        position: relative;
    }
*/

    .project-title {
        display: table;
        position: absolute;
        position: relative;
        width: 90vw;
        text-align: left;
        left: 15px;
        margin-bottom: 20px;
        top: 0;
        z-index: 2;
    }


    .modal-box {
        display: none;
        position: fixed;
        width: 100%;
        height: auto;
        z-index: 3;
    }

    .modal-content {
        padding-top: 6.3662791vh;
        padding-top: 4rem;
        padding-left: 5px;
        padding-right: 5px;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 1);
        position: relative;
        overflow-y: scroll;
    }

    .flex-container {
        /*    margin-top: 4rem;*/
        display: table;
        width: 100%;
        border-spacing: 0;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .flex-container-mobile {
        margin-top: 2rem;
        margin-bottom: 4rem;

    }

    figure {
        margin-top: 4rem;
        padding: 0rem;
        padding-left: 15px;
        padding-right: 15px;
    }

    .image-position-01 {
        width: 100%;
        margin-top: 0rem;
        margin-left: 0rem;
    }

    .image-position-02 {
        width: 100%;
        margin-top: 0rem;
    }

    .image-position-03 {
        width: 100%;
        margin-top: 0rem;
        margin-left: 0rem;
    }

    .image-position-04 {
        width: 100%;
        margin-top: 0rem;
        margin-left: 0rem;
    }

    .image-position-05 {
        width: 100%;
        margin-top: 0rem;
        margin-left: 0rem;
    }

    figcaption {
        font-family: "Open Sans", sans-serif;
        font-size: 1rem;
        line-height: 1.3;
        font-weight: 300;
        color: black;
        text-align: left;
        padding-top: 0px;
        padding-left: 0px;
    }

    .image-position-06 {
        width: 100%;
        margin-top: 0rem;
    }

    .caption-position-01 {
        margin-left: 0rem;
    }

    .caption-position-02 {
        margin-left: 0rem;
    }

    .caption-position-03 {
        margin-left: 0rem;
    }

    .caption-position-04 {
        margin-left: 0rem;
    }

    .caption-position-05 {
        margin-left: 0rem;
    }

    .caption-position-06 {
        margin-left: 0rem;
    }

    .caption-position-07 {
        margin-left: 0rem;
        color: black;
        font-size: 0.7rem;

    }

}
