/* RESET */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  /* Colors */
  --textcol: #4c3929;
  --linkcol: #9b7352;
  --linecol: #998978;

  --bgcol: #f4f4f4;
  /* Gaps */
  --gap_huge: 2.56rem;
  --gap_big: 1.6rem;
  --gap_medium: 1rem;
  --gap_small: 8px;
  --gap_tiny: 4px;
}

* {
  padding: 0;
  margin:0;
  font: inherit;
}

p::marker {
  background-color: #9b7352;
}

ul {
  list-style: none;
}

img, picture, iframe {
  font-style: italic;
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}

iframe {
  padding: 0;
  margin: 0;
}

a {
  color: var(--textcol);
  display: inline-block;
}

a:hover {
  color: var(--linkcol);
  text-decoration: none;
}

/* GENERAL AND TYPOGRAPHY */

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: var(--textcol);
  background-color: var(--bgcol);
}

.container {
  max-width: 1080px;
  background-color: var(--bgcol);
  margin-inline: auto;
  padding: 8px;
}

@media screen and (width < 600px) {
  .container {
    padding: 16px;
  }
}

.italic {
  font-style: italic;
}

.small {
  font-size: 12px;
}

/* HEADER */

header {
  margin-bottom: var(--gap_huge);
}

.top {
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--gap_huge);
}

.right {
  text-align: right;
}

.hero_img {
  width: 100%;
  max-width: 450px;
  margin-inline: auto;
}

.hero_img > img {
  filter: drop-shadow(1px 1px 8px rgba(0,0,0, .12));
}


/* PROJECT TABS */

.project_title {
  margin-bottom: 1rem;
}

.project_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab {
  width:100%;
  display: none;
  order: 1;
}

.project_text {
  text-align: justify;
  display: flex;
  flex-direction: column;
  gap: var(--gap_small);
}


.citation, .quote, .quote_list {
  text-align: left;
}

.quote_list {
  padding-left: 16px;
}

.quote {
  padding-block: 8px;
}

.tab p {
  max-width: 80ch;
  text-wrap: pretty;
}

input[type="radio"] {
 display: none;
}

.project_tabs input[type="radio"]:checked + label + .tab {
  display: block;
}

.project_tabs input[type="radio"]:checked + label {
  font-style: italic;
} 

.project_tabs input + label:hover {
  color: var(--linkcol);
  cursor: pointer;
}     

/* GALLERY */

.project_gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gallery_item {
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr;
}

.item_img {
  /* width: fit-content; */
  margin-bottom: 8px;
}

.item_img > img {
  max-width: 100%;
  max-height: 90dvh;
}

.item_info {
  max-width: 600px;
  /* display: grid;
  grid-template-columns: repeat(auto-fit, 140px);
  column-gap: 16px;
  row-gap: 16px; */
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  
}

.item_text {
  width: 140px;
  font-size: 12px;
  padding-left: 4px;
  padding-bottom: 8px;
  border-left:1px solid var(--linecol);
}

.item_title {
  margin-bottom: 6px;
}


/* DOCS */

.doc_list  {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc_item {
  width: 100%;
}

.videos {
  max-width: 80%;
  margin-top: 1rem;
}

/* NOTES */

.note {
  margin-bottom: 8rem;
}

.note_date {
  text-align: right;
  margin-bottom: 1em;
}

.note_title {
  margin-bottom: 1em;
}


/* ABOUT */


.about,
.legal,
.cv {
  margin-bottom: 12rem;
}

.about_text h2,
.cv h2,
.imprint h2,
.legal h2 {
  margin-bottom: .75rem;
}

.legal article {
  margin-bottom: .75rem;
}

.imprint {
  margin-bottom: 4rem;
}

.about_text > p {
  max-width: 50ch;
}

.about + .cv h3, .legal article > h3 {
  margin-bottom: .25rem;
}

.cv_grid {
  width: 100%;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 100px 1fr;
  row-gap: .3rem;
  column-gap: 1rem;

}

.fabi_logo {
  height: .875rem;
  display: inline-block;
  vertical-align: text-top;
  fill: var(--textcol);
}

/* .grid_date {
  text-align: right;
} */