* {
  margin: 0;
  padding: 0;
}

/* ibm-plex-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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/ibm-plex-sans-v14-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/ibm-plex-sans-v14-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/ibm-plex-sans-v14-latin-regular.ttf') format('truetype'); /* Safari, Android, iOS */
}


:root {
  --padding: 1.5rem;
  --pri: #333;
  --sec: #000;
  --accent: #333;
}

html {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  padding: var(--padding);
  max-width: 100rem;
  background: var(--pri);
  color: var(--sec);
}

.main {
  /* padding-top: 2rem; */
  /* padding-bottom: 6rem; */
  position: relative;
}

.bgimage {
  position: fixed;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /* margin-right: -1rem; */
  /* margin-left: -1rem; */
  margin-bottom: 3rem;
  border-bottom: 1px solid;
  padding: 2rem 0;

}

img, video {
  width: 100%;
  height: auto;
  border-radius: 11px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  max-width: 10rem;
}

.logos img {
  max-width: 14rem;
  padding-bottom: 1rem;
  display: block;
}

.menu {
  display: flex;
}

.menu a {
  display: block;
  margin-left: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
}

.menu a:nth-child(1) {
  margin-left: 0;
}
.menu a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 0.4em;

  /* font-weight: 700; */
}


#toggle {
  display: none;
  visibility: hidden;
  top: 1rem;
}

.button_container {
  position: absolute;
  top: 0;
  right: var(--padding);
  height: 35px;
  width: 35px;
  cursor: pointer;
  z-index: 100;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
  z-index: 1001;
}

.button_container:hover {
  opacity: 0.7;
}

.button_container.active {
  /* position: fixed; */
}

.button_container.active .top {
  -webkit-transform: translateY(11px) translateX(0) rotate(45deg);
  transform: translateY(11px) translateX(0) rotate(45deg);
  background: var(--pri);

}

.button_container.active .middle {
  opacity: 0;
}

.button_container.active .bottom {
  -webkit-transform: translateY(-11px) translateX(0) rotate(-45deg);
  transform: translateY(-11px) translateX(0) rotate(-45deg);
  background: var(--pri);

}

.button_container span {
  background: #000;
  background: currentColor;
  border: none;
  height: 3px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
  cursor: pointer;
}

.button_container span:nth-of-type(2) {
  top: 11px;
}

.button_container span:nth-of-type(3) {
  top: 22px;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  height: 100%;
  z-index: 1000;
}

li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;

}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}

em {
  /* font-size: .75rem;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 700; */
  font-style: italic;
}




h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}


.text {
  line-height: 1.45;
  font-size: 1.25rem;
}
.text a {
  text-decoration: underline;
  /* margin-right: 1rem; */
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul, 
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1 {
  font-size: 3rem;
  margin-bottom: 3rem;
  line-height: 1.15em;
  font-size: 8rem;
  font-size: clamp(2rem, 6vw, 7rem);
  max-width: 70rem;
}
.text h2,
.h2,
.m {
  font-weight: 400;
  margin-bottom: 2.25rem;
  font-size: 1.75rem;
  line-height: 1.25;
}

.l {
  font-size: 4rem;
  line-height: 1.15em;
}

.post h1 {
  font-size: 4rem;
  margin-bottom: 3rem;
  line-height: 1.15em;
}
.h3 {
  font-size: 1.65rem;
  font-weight: 400;
  margin-bottom: 2.25rem;
  line-height: 1.25;
}

.intro {
  text-align: right;
  font-size: 5rem;
  font-size: clamp(3rem, 6vw, 9rem);
  padding-bottom: 4rem;
  padding-bottom: 2vw;
}

.text h3  {
  font-weight: 600;
}

.text .codeblock {
  display: grid;
}

.center {
  text-align: center;
}

.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr, hr {
  margin: 3rem 0;
  border: none;
  border-bottom: 1px solid var(--sec);
}

.text blockquote {
  font-size: 1.25rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
}
.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
}

.grid {
  --columns: 12;
  --gutter: 2rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(var(--columns), 1fr);
}

.grid > .column {
  margin-bottom: var(--gutter);
  grid-column: span var(--columns);
  list-style-type: none;
}

.news {
  --columns: 3;
}

.news .column {
  border-top: 1px solid;
  padding-top: 1rem;
}


.news .column h2{
  min-height: 9rem;
  margin-top: .5rem;

}

.news .column img {
  filter: grayscale(100%);
}


.autogrid {
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  grid-auto-flow: dense;
  justify-content: space-evenly;
  justify-items: center;
  align-content: space-evenly;
  align-items: center;
}



.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}


video::-webkit-media-controls-play-button {
  background-color: var(--sec);
  border-radius: 50%;
  padding: 8px;
  color: var(--pri);

}

video::-webkit-media-controls-timeline {
  /* background-color: var(--sec); */
  color: var(--sec);

}

video::-webkit-media-controls-played-progress {
  background-color: var(--pri);
  color: var(--sec);

}

video::-webkit-media-controls-mute-button {
  color: var(--sec);

}

video::-webkit-media-controls-fullscreen-button {
  background-color: var(--pri);
  color: var(--sec);
}


.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.gridgallery {
  width: 100%;
  --gutter: .5em;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(100, 1fr);
  grid-auto-flow: dense;
}

.gridgallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: var(--gutter);
}


.centerblock {
  align-self: center;
}

.centerbottom{
  align-self: end;
}

.project .grid {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.projectsinfo {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.projects {
  justify-content: space-evenly;
}
.projects li a, .crossprojects li {
  transition: opacity .3s ease-in-out;
}


.projects li a:hover, .crossprojects li:hover {
  opacity: .6;
}


.person {
  margin-bottom: 2rem;
}
.person .portrait img {
  width: auto;
  height: 100%;
  max-height: 19rem;
  margin-bottom: 1rem;
}

.person .m {
  margin-bottom: 0;
}

.btn {
  padding: .5rem .75rem;
  background: var(--sec);
  color: var(--pri);
  border: 1px solid  var(--sec);
  display: inline-block;
  width: auto;
  height: fit-content;
  border-radius: 11px;
  font-size: .9rem;
  text-align: center;
  transition: background .4s ease-in-out;
  margin-bottom: .5rem;
}

.btn:hover {
  background: none;
  color: var(--sec);
  cursor: pointer;
}


.footer img {
  max-width: 15rem;
}
.footerbox {
  border-radius: 7px;
  background: #fff;
  /* background: var(--sec); */
  padding: 3vw;
}

.footerbox p {
  font-size: 1rem;
  color: #000;
  color: var(--sec);
  margin-bottom: 1rem;
}

.sponsors {
  padding: 2rem 0;
  border-top: 1px solid;
}

.sponsors img {
  /* max-width: 5rem; */
}

.sponsors.autogrid {
  grid-gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(2rem, 10rem));
}

.postgallery {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: 1fr 1fr;
  padding: 3rem 0 ;
}

.gridgallery {
  width: 100%;
  --gutter: .5em;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(100, 1fr);
  grid-auto-flow: dense;
}

.gridgallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: var(--gutter);
}


.downloads li {
  border-top: 1px solid;
  margin-top: 4rem;
  padding-top: 4rem;
  display: grid;
  grid-template-columns: 4fr 1fr 1fr;
  list-style: none;
}

.downloads li a:nth-child(1) {
  /* font-size: 1.5rem; */
  word-break: break-all;
}

.read-more__link {
  margin-top: .5rem;
  display: block;
  text-decoration: underline;
}
.tagcloud li {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: .5rem;
  margin-bottom: 1.5rem;
}

.tagcloud li.active {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

.footer {
  padding-top: 2rem;
}

.footer nav a {
  font-size: 2.75rem;
  display: block;
}

.footer .social {
  text-align: right;
}



@media screen and (min-width: 60rem) {
  body {
    --padding: 1rem 3rem;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }
}


@media screen and (max-width: 60rem) {

    .grid {
      grid-template-columns: repeat(8, 1fr);
    }

}




@media screen and (max-width: 47rem) {


  :root {
    --padding: 1rem;
  }

  .h1 {
    font-size: 3rem;
  }

  .h2 {
    font-size: 2.25rem;
  }

  .text {
    line-height: 1.45;
    font-size: 1.05rem;
  }
  .grid > .column {
    grid-column: span var(--columns);
    margin-bottom: 1rem;
  }

  .grid {
    display: block;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .gridgallery {
    display: block;
  }

  .news .column h2 {
    min-height: 0;
  }

  .logo {
    max-width: 8rem;
    top: 1.5rem;
  }

  #toggle {
    top: 1rem;
    right: 1rem
  }

  .header {
    padding: 1rem 0;
  }

  #toggle {
    display: block;
    visibility: visible;
    position: fixed;
    top: 2rem;
  }

  .overlay {
    position: fixed;
    background: var(--sec);
    color: var(--pri);
    top: 0;
    right: 0;
    width: 50%;
    width: 100%;
    height: 0%;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.35s, visibility 0.35s, height 0.35s;
    transition: opacity 0.35s, visibility 0.35s, height 0.35s;
    overflow: hidden;
  }

  .menu {
    display: block;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .menu a {
    font-size: 1.45rem;
    margin-bottom: 1.5rem;
  }

  .column {
    display: inline-block;
    width: 100%;
  }
  .footer img {
    float: none;
  }

  .footer .text {
    display: block !important; 
  }
  .footer .social {
    text-align: left;
  }
  

  .menu, .smallmenu {
    padding: 4rem 0 0 0rem;
  }
}