html{

    --text-size-s: 1.118rem;
    --text-size-m: 1.6rem;
    --text-size-l: 1.93rem;

    --text-size-xxl: 11.31rem; /*This will make ProtoPotsdam as wide as the screen*/


    --site-padding: 1.5rem;
    --column-left-space: 10%;
    --column-right-space: 25%;

    --text-indentation: var(--site-padding);



    font-size: 1.12vw;
    font-synthesis: none;
}



body{
    font-family: 'Proto-Sans', 'Helvetica';
    transition: background-color 0.3s linear;
    background-color: var(--site-bg-color);
    width: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    font-size: var(--text-size-s);
    overflow-x: hidden;

    overflow-wrap: break-word;
    word-wrap: break-word;

    line-height: 1.44;

    word-break: break-word;
    overscroll-behavior: none; /*prevent inertia scroll that would show a piece of background color over the gallery*/
}

p:not(:last-of-type){
    margin-bottom: 0;
}
p{
    margin-bottom: 0;
}

section:not(.imprint, .contact) p:not(:first-of-type){
    text-indent: var(--text-indentation);
    margin-top: 0;
}
/* p a {
    text-indent: unset;
} */


.mobileonly{
    display: none;
}

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

a[target=_blank]::before{
    content: '↗\200A\200A';
    display: inline;
}
a[target=_blank]:hover::before{
    display: inline;
    content: '↗\200A\200A';
}

hr{
    border: 0px;
}

h2, h3, h4, h5, h6{
    font-style: normal;
    font-size: var(--text-size-l);
    margin-bottom: 0;
    margin-top: 4.5rem;
    line-height: 1.166;
}

section h2:first-of-type,
section h3:first-of-type,
section h4:first-of-type,
section h5:first-of-type,
section h6:first-of-type{
    margin-top: 0;
}

.lang-en h2:first-of-type{
    margin-top: 4.5rem;
}

.hero{
    width: 100%;
}
.hero .gallery{
    height: 100%;
    width: 100%;
}
.gallery .swiper-slide{
    width: 100%;
    height: 100vh;
}
.gallery .swiper-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;

}
.gallery .swiper-slide video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next, .swiper-button-prev{
    top: 0;
    width: 50%;
    height: 100%;
}
.swiper-button-next::after, .swiper-button-prev::after{
    content: '';
}
.swiper-button-next{
    cursor: url(./assets/arrow-r-01.svg) 20 20, e-resize;
}
.swiper-button-prev{
    cursor: url(./assets/arrow-l-01.svg) 20 20, w-resize;
}
.swiper-button-prev:focus-visible, 
.swiper-button-next:focus-visible{
  outline: none;
}


.captions{
    width: 100vw;
}

.captions .caption{
    display:  block;
    width: 100vw !important;
    padding-left: var(--site-padding);
    padding-right: var(--site-padding);
    padding-bottom: var(--site-padding);
    padding-top:calc(var(--site-padding)*0.2);

    background-color: var(--site-bg-color);

    transition: background-color 0.3s linear;
    box-sizing: border-box;
    display: flex;
}

.caption .caption-text{
    flex-grow: 1;
}

.caption .caption-credits{
    text-align: right;
}

.caption .caption-credits:not(:empty)::before{
    content: '©'
}

.caption p{
    margin-top: 0;
    margin-bottom: 0;
    display: inline;
}

nav{
    position: fixed;
    top: 0;
    left: var(--site-padding);
    top: var(--site-padding);
    right: var(--site-padding);

    font-size: var(--text-size-xxl);
    z-index: 2;
    pointer-events: none;
    display: flex;
    box-sizing: border-box;
    line-height: calc(var(--text-size-xxl) * 0.7);
}
nav .brand{
    display:inline-block;
    height: var(--text-size-xxl);
    width: auto;
    white-space: nowrap;
}
.brand::before{
    content:'Proto';
    text-transform: uppercase;
    font-family: 'Proto-Sans-Outline';
    color: black;
}
.brand.animationready::before{
    content:'';
}
.brand.animationready svg{
    width: auto !important;
    height: 71% !important;
    margin-top: 0.68rem !important; /* TO DO convert to variable */
    margin-left: 0.62rem !important;

    margin-top: calc(var(--text-size-xxl) * 0.05991) !important;
    margin-left: calc(var(--text-size-xxl) * 0.05462555066) !important;
}

.gender-asterisk{
    font-feature-settings: "aalt";
}


nav .indicator{
    display: inline-flex;  
    flex-direction: column;
    vertical-align: top;
    overflow-y: hidden;
    flex-grow: 1;
    height:calc(var(--text-size-xxl)*0.8);
}
.indicator .section{
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-transform: uppercase;
    transform: translateY(0);
    transition: transform 0.3s ease-in;
    min-height: calc(var(--text-size-xxl)*0.8);
}

@supports (-moz-appearance:none) {
   .indicator .section{
    line-height: 1;
   }
   .brand::before{
    line-height: 1;
   }
}


/* nav .indicator{
    display: inline-flex;  
    flex-direction: column;
    vertical-align: top;
    overflow-y: hidden;
    flex-grow: 1;
    height:calc(var(--text-size-xxl)*0.8);
}
.indicator .section{
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    transform: translateY(0);
    transition: transform 0.3s ease-in;
    line-height: 1;
} */

/* section{
    background-color: red;
}
section>*{
    background-color: green;
} */

.links{
    position: fixed;
    right: var(--site-padding);
    max-width: calc(var(--column-right-space) * 0.75);
    bottom: calc(var(--site-padding)*0.75);
    text-align: left;
    line-height: 1.217;
}
.links p{
    margin: 0;
}


/* .lang-en p::before{
    display: inline-block;
    vertical-align: baseline;
    content: 'E';
    margin-right: 0.7em;
    border-radius: 1.2rem;
    border: 0.11em solid black;
    padding: 0.09em;
    box-sizing: content-box;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 1.2rem;
    line-height: 1.06rem;
    text-align: center;
    transform: translateY(-0.15em);
}
.lang-de p::before{
    display: inline-block;
    vertical-align: baseline;
    content: 'D';
    margin-right: 0.7em;
    border-radius: 1.2rem;
    border: 0.11em solid black;
    padding: 0.09em;
    padding-right: 0.07em;
    padding-left: 0.11em;
    box-sizing: content-box;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 1.2rem;
    line-height: 1.06rem;
    text-align: center;
    transform: translateY(-0.15em);
} */

section:not(.hero){
    margin-left: var(--column-left-space);
    margin-right: var(--column-right-space);
}

section:last-of-type{
    padding-bottom: 12rem;
}

.about{
    padding-top: 12rem;
    font-size: var(--text-size-m);
}

.news{
    padding-top: 12rem;
    font-size: var(--text-size-m);
    /* min-height: 100vh; */
}


.news .event .date p,
.news .event .description p
{
    display: inline;
    margin: 0;
}
.news .event{
    margin-top: 1.4rem;
    font-size: var(--text-size-s);
    line-height: 1.217;
    display: grid;
    grid-template-columns: 7rem 1fr;
}

.news .event:first-of-type{
    margin-top: 0;
}


.contact{
    padding-top: 12rem;
    font-size: var(--text-size-m);
}

.imprint{
    padding-top: 12rem;
    font-size: var(--text-size-s);
    line-height: 1.217;

    /* min-height: 100vh; */

}
.imprint .inner{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 4rem;
    grid-row-gap: 2rem;
    width: 100%;
}
.imprint .inner .intro {
    column-span: 2;
    grid-column: span 2;
}

.imprint *:not(.intro) p{
    margin-top: 0;
}

.logos{
    margin-bottom: 4rem;
}

.logos div{
    margin-top: 1rem;
    width: 100%;
    height: auto
}
.logos img{
    margin-top: 1rem;
    width: 100%;
    height: auto;
}


@media all and (max-width: 500px) {  
    html {  
        --site-padding: 1.2rem;
        --text-size-s: 1.1rem;
        --text-size-m: 1.35rem;
        --text-size-l: 1.62rem;

        --text-size-xxl: 5.7rem; /*This will make ProtoPotsda as wide as the screen*/

        --column-left-space: 1.5rem;
        --column-right-space: 1.5rem;

        --text-indentation: 1.5rem;

        font-size: 3.5vw;
  }
  /* nav{
    font-size: 2rem;
    width: 300px;
  } */
  /* nav .indicator{
    height: 2rem;
  } */
  /* nav .indicator .section{
    min-height: 2rem;
  } */

  nav{
    flex-direction: column;
  }
  nav .brand{
    margin-bottom: calc(var(--text-size-xxl)*-0.18);
  }
  .mobileonly{
    display: initial;
  }

  .swiper-button-next, .swiper-button-prev{
    display: none;

  }


  .caption{
    flex-direction: column;
    line-height: 1.217;
  }
  .caption .caption-credits{
    text-align: left;
  }

  .links{
    position:relative;
    float: right;
    margin-bottom: var(--site-padding);
    margin-right: var(--site-padding);
    max-width: 56%;
  }

  .news .event{
    grid-template-columns: 5.5rem 1fr;
  }
  .imprint .inner{
    grid-template-columns: auto;
  }
  .imprint .inner .intro {
    column-span: 2;
    grid-column: unset;
}

}
