

:root {
  --bgcol: #f4f4f4;
  --textcol:rgb(220, 40, 0) ;
  --selectcol: rgb(244, 40, 0);
}

@keyframes page-load {
  from {
    display: none;
    opacity: 0;
  }
  to {
    display: block;
    opacity: 1;
  }
}

*, *::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;
  position: relative;
  padding: 1rem;
  min-height: 100vh;
}

.main {
  opacity: 0;
  animation: page-load 1000ms  ease-in; 
  animation-fill-mode: forwards;
}

/* -------------------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(--textcol);
  transition: color 300ms ease;
  text-decoration: underline 1px;
  text-underline-offset: 2px;
}

a:hover, a:focus-visible, a:active {
  text-decoration: none;
}

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

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


.relative {
  position: relative;
}

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

section, header {
  margin-bottom: 2rem
}

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

/* -------------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;
  text-decoration: none;
}

.projects_list ul li a:hover {
  text-decoration: underline;

}

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

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

@media  screen and (max-width: 800px) {
  .projects_list ul li:first-child {
    margin-bottom: .75rem;
  }
}

@media  screen and (min-width: 800px) {

  #thumb_intro {
    display: block;
    position: absolute;
    width: 30%;
    max-height: 100%;
    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;
  column-gap: 1rem;
}

.project_title {
  line-height: 1.15;
}

.exhib_link {
  justify-self: end;
}

.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--- */                                   

.date {
  display: flex;
  column-gap:  .25rem;
}

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

.exhibition {
  display: grid;
  width: 100%;
  grid-template-columns: 80px 1fr;
  column-gap: 1.5rem;
  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;
}

.fabi_logo {
    height: 1rem;
    display: inline-block;
    vertical-align: baseline;
    fill: var(--textcol)
}


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

footer {
  height: 4rem;
}
 
