*, *::before, *::after {
  box-sizing: border-box;
}

* {
  padding: 0;
  margin: 0;
  font: inherit;
}

:root {
  --textcol: #121212;
  --bgcol: #f0f0f0;
  --grey: #b8b8b8;
  --linkcol: blue;
}

img, image, picture, video, iframe {
  max-width: 100%;
  max-height: max(400px, 70vh);
  vertical-align: middle;
}

p {
  text-wrap: pretty;
}

ul  {
  list-style: none;
}

a {
  color: var(--textcol);
  text-decoration: none;
}

a:hover, a:focus-visible, a:active {
  text-decoration: underline;
  color: var(--linkcol);
}

a:focus-visible {
  outline: 1px solid var(--linkcol);
  border-radius: 2px;
}


body {
  font-family: 'Times New Roman', Times, serif;
  color: var(--textcol);
  background-color: var(--bgcol);
  font-size: .875rem;
  line-height: 1.3;
}

.italic {
  font-style: italic;
}

.small {
  font-size: .65rem;
}

.container {
  max-width: 1200px;
  padding: 8px 16px;
  margin-inline: auto;
}



/* ---------HEADER---------- */

.topline {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.topline .nav {
  flex-grow: 2;
}

.topline .nav .nav_ul {
  width: 100%;
  display: flex;
  justify-content: space-between;
}



.secondline {
  display: flex;
  justify-content: space-around;
}

nav ul {
  display: flex;
  justify-content: space-around;
}

.field {
  border-bottom: 1px solid var(--grey);
  padding: .25rem;
}

.project_list ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: .5rem;
  row-gap: .125rem;
}


/* ---------MAIN PROJECT--------- */
.page_title h2 {
  text-align: center;
}

/* ------Exhibition Text Toggle */

  .project_info_head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 1rem;
  }

  .text_tab {
    display: none;
  } 

  .text_toggle {
    width: -1px;
    height: -1px;
    position: absolute;
    opacity: 0;
  }

  .text_toggle:focus-visible label {
    border: 1px solid var(--linkcol);
  }

  .text_toggle:checked ~ .text_tab {
    display: block; 
  }

  .text_toggle_span {
    opacity: 1;
    width: 150px;
    cursor: pointer;
  }

  .text_toggle_span:hover {
    color: var(--linkcol);
    text-decoration: underline;
  }

  .text_toggle_span:focus-visible {
    border: 1px solid var(--linkcol);
  }


  label > span::after {
    display: inline-block;
    content: '\002B';
    margin-left: 8px;
    transform: rotate(0);
    font-weight: bold;
    transition: transform 200ms ease;
  }

  .text_toggle:checked ~ div > label > span::after {
    transform: rotate(45deg);
  }

  .text_tab {
    padding-top: .5rem;
    padding-bottom: 1rem;
  }

/* ----------- CAROUSEL */
  .slide {
    display: none;
  }

  .slide[data-active] {
    display: block;
  }

  .slider_controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .buttons{
    display: flex;
    gap: 1rem;
  }

  .buttons button {
    all: unset;  
    font-size: 1.2rem;
    font-weight: bold; 

  }
   .buttons button:hover, .buttons button:focus-visible {
    color: var(--linkcol);
    text-decoration: underline;
   }

   .buttons button:focus-visible {
    outline: 1px solid var(--linkcol);
    border-radius: 2px;
   }

  .slider_container {
    position: relative;
  } 

  .buttons_overlay {
    width: 100%;
    height: 40%;
    position: absolute;
    top:0;
    left: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
  }

  .overlay_btn_left, .overlay_btn_right {
    all:unset;
    background-color: grey;
    opacity:0;
    height: 100%;
    width: 40%;
    transition: all 300ms ease-out;
  }

  .overlay_btn_right {
    cursor: e-resize;
  }
  .overlay_btn_left {
    cursor: w-resize;
  }

  .overlay_btn_left:active, .overlay_btn_right:active {
    opacity: .2;

  }

  .slide_info {
    font-size: .75rem;
  }
  
/* ----------BLOG----------- */

.post_header {
  display: flex;
  justify-content: space-between;
  margin-bottom: .5rem;
}

.post_content {
  margin-bottom: 1rem;
}

.post_img {
  margin-bottom: .25rem;
}

/* -----------Folder----------------- */

.inactive:hover {
  cursor: progress;
}


/* -----------INFO------------------- */

.cv_grid {
  display: grid;
  grid-template-columns: 55px 1fr;
  column-gap: 1rem;
  row-gap: .25rem;
}

.cv article, .info_contact {
  padding-bottom: .5rem ;
}


.cv article > h3, 
.imprint article > h3,
.legal article > h3
 {
  font-style: italic;
  margin-bottom: .125rem;
}

.legal_h3 {
  text-align: center;
}

.legal article p,
.legal article h3 {
  font-size: .75rem;
}

.legal article p {
  max-width: 160ch;
}

.fabi_logo {
  height: .8rem;
  display: inline-block;
  vertical-align: baseline;
}

/* ----------FOOTER----------- */

