:root {
  --bgcol: #f4f4f4;
  --textcol: #323232;
  --linkcol: rgb(134, 134, 134);
  --selectcol: rgb(193, 193, 193);
}

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  padding: 0;
  margin: 0;
  font: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  vertical-align: middle;
}



.container {
  max-width: 1800px;
  padding: 1rem;
}

/* -------------------Typography & Layout------------------------ */

body {
  background-color: var(--bgcol);
  color: var(--textcol);
  font-family: 'Times New Roman', Times, serif;
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.4;
  letter-spacing: 0.005rem;
}

a {
  color: var(--linkcol);
  transition: color 200ms ease;
  text-decoration: underline 1px var(--selectcol);
  text-underline-offset: 2px;
}

a:hover, a:focus-visible, a:active {
  text-decoration: none;
  text-underline-offset: 2px;
  color: var(--textcol);
}

a:focus-visible {
  outline: 1.5px solid var(--selectcol);
  border-radius: 2px;
}

em, .italic {
  font-style: italic;
}

.grey {
  color: var(--linkcol)
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
  top: 1rem; 
}

section, header {
  margin-bottom: 2rem
}

*::selection {
  background-color: var(--selectcol);
}



/* -------------HEADER------------------ */

header {
  display: flex;
  justify-content: space-between;
}

.nav_ul {
  display: flex;
}


/* -------------ProjectsList------------------ */

.projects_list ul {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  row-gap: .25rem;
}

.projects_list ul li a {
  display: inline-block;
  padding-block: .25rem;
  padding-right: .5rem
}

.thumb {
  left: 50%;
  top:50%;
  transform: translate(-50%,-50%);
  width: 100%;
  max-height: 100%;
  position: absolute;
  opacity: 0;
  transition:  750ms ease;
  transition-delay: 250ms;
  z-index: -10;
  display: flex;
  justify-content: center;
}

.thumb img {
  max-height: 70vh;
  max-width: 60%;
  justify-self: center;
}

#thumb_intro {
  width: 30%;
  max-height: 100%;
  position: absolute;
  left: 50%;
  top:50%;
  transform: translate(-50%,-50%);
  opacity: 1;
  transition: opacity 300ms cubic-bezier(1, 0, 0, 1);
  z-index: -10;
}

.projects_list ul li a:hover ~ .thumb,
.projects_list ul li a:focus-visible ~ .thumb,
.projects_list ul li a:active ~ .thumb {
  opacity: 1; 
}

.projects_list ul:has(li a:hover)
#thumb_intro {
  opacity: 0;
}

/* --------------Project Page------------ */

.main_project {
  display: grid;
  grid-template-columns:3fr 8fr;
  column-gap: 1rem;
}

@media screen and (max-width: 800px) {
  .main_project {
    grid-template-columns: 1fr; 
  }
}

.project_info {
  min-height: min(9vh, 250px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
}

@media screen and (min-width: 800px) {
  .project_info {
    min-height: 90vh;
   
  } 
}

.project_details {
  display: flex;
  flex-wrap: wrap;
  color: var(--linkcol);
  column-gap: 1rem;
}

.project_title {
  line-height: 1.15;
}

.project_text {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-right: 1rem;
}

.project_exhibitions {
  line-height: 1.15;
}

.image_gallery ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ----------ABOUT------------ */

.about p {
  max-width: 100ch;
  padding-right: 1rem;
}

.about_portrait {
  max-width: clamp(250px, 40vw, 800px);
}


/* ---Exhibition--- */

.exhibition_list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.exhibition {
  display: grid;
  width: 100%;
  grid-template-columns: 30px repeat(auto-fit, minmax(100px, 1fr));
  column-gap: 2rem;
  line-height: 1.1;
}

.grey {
  color: var(--linkcol);
}

.exhib_name {
  max-width: 90ch;
}


/* ----------Imprint-------- */

section {
  margin-bottom: 4rem;
}

article {
  margin-bottom: 2rem;
}

.imprint p {
  max-width: 100ch;
} 

.imprint_head p {
 margin-bottom: .5rem;
}


.imprint h2, .cv h2 {
  font-style: italic;
  margin-bottom: .5rem;
}

.imprint h3 {
  text-decoration: underline;
}


.fabi_logo {
    height: 1rem;
    display: inline-block;
    vertical-align: baseline;
}

.announcement .card {
  padding: 2rem;
  background-color: rgb(225, 227, 177);
}

/* ---------FOOTER---------- */

footer {
  height: 4rem;
}