/* FONT */

/* cormorant-garamond-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: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/cormorant-garamond-v21-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-garamond-700 - 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: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/cormorant-garamond-v21-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-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: "Raleway";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/raleway-v37-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* GENERAL */

html {
  height: 100%;
}
body {
  font-family: "Cormorant Garamond", serif;
  background-color: #fff;
  margin: 0;
  padding: 0;
  color: #000;
  display: flex;
  flex-direction: column;
  height: 100%;
}

a {
  color: #000;
  text-decoration: none;
}

.contentNavigation a.selected {
  font-weight: bold;
  font-weight: 700;
}

a:hover {
  color: #757575;
}

/* a:hover > svg {
  color: #f9f9f9;
  background-color: #757575;
} */

/* HEADER  */

header {
  font-size: 20pt;
  /* min-height: 50px; */
  padding: 20px;

  background-color: #f9f9f9;
  box-shadow: 0px 1px 4px #757575;

  display: flex;
  flex-direction: row;
  align-items: center;
  /* justify-content: space-between; */

  /* min-height: 40px; */
}

.headerRow {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.headerRow div {
  display: flex;
  align-items: center;
  gap: 20px;
}

header svg {
  color: #757575;
}

header img {
  height: 24px;
}

.contentNavigation {
  display: flex;
  align-items: center;
  gap: 20px;
}

.headerRow a {
  display: inline-flex;
  align-items: center;
}

header img:hover,
header svg:hover {
  transform: scale(1.2);
}

/* Hide the checkbox */

#menu-toggle {
  display: none;
}

/* Hamburger button */
.hamburger {
  /* font-size: 2rem; */
  cursor: pointer;
  display: block;
  user-select: none;
}

.hamburger {
  display: none;
}

/* MAIN */

main {
  margin: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}
/*
  Overall grid wrapper for multiple image rows.
  Centers everything on the page and limits total width.
*/
.imageGrid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 800px;
}

.imageGrid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 800px;
}

.imageRow {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.imageRow img,
.imageColumn img {
  display: block;
  flex: 1;
  /* keep aspect ratio */
  width: 100%;
  height: 100%; /* stretch inside their flex parents */
  object-fit: contain; /* avoid distortion */
  min-width: 0;
  max-width: 100%;
  /* padding: 2px; */
}

.imageColumn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* justify-content: space-between; */
  /* distribute vertical space */

  gap: 20px;
  min-width: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.imageGrid img {
  /* max-width: 500px;
  max-height: 500px; */
  /* box-shadow: 0px 1px 4px #757575; */
  filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.3))
    drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.3));

  /* opacity: 0; */
  animation: fadeIn 0.2s ease-in;
  transition: transform 0.1s;
  cursor: pointer;
  /* transition: box-shadow 0.2s; */

  /* animation-iteration-count: 1; */
}

.imageGrid img:hover {
  /* transform: scale(1.02); */
  filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.5))
    drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.5));

  /* box-shadow: 0px 4px 6px #757575; */
}

/* LIGHTBOX */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-container {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  color: white;
  justify-content: center;
  align-items: center;
  font-family: "Raleway", sans-serif;
}

.lightbox img {
  min-width: 0px;
  min-height: 0px;
  object-fit: contain;
  max-width: 80%;
  max-height: 90%;
  /* height: auto; */
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

p.lightbox-caption {
  text-align: center;
}

.close {
  top: 20px;
  right: 30px;
}
.prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ABOUT PAGE */

main.about {
  font-family: "Raleway", sans-serif;

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18pt;
  font-optical-sizing: auto;
  font-weight: 300;
  /* letter-spacing: 2px; */
  line-height: 1.2em;
  /* flex-direction: column; */
}

main.about .imageGrid {
  flex: 1;
}
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  gap: 80px;
}

.about-inner-container {
  flex: 1;
  /* margin: 80px; */
  padding: 40px;
  background-color: rgb(83.4, 83.4, 83.4, 0.05);
  /* We need this for the corner image: */
  position: relative;
  min-width: 0px;
  max-width: 400px;
}

.corner-image {
  position: absolute;
  width: 150px;
  height: auto;
  bottom: -50px; /* half of image height */
  right: -25px; /* half of image width */
}

main.about button {
  background-color: #d9d9d9;
  color: black;
  padding: 12px;
  border: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 18pt;
  width: 150px;
  cursor: pointer;
}

main.about button:hover {
  color: #d9d9d9;
  background-color: black;
}

/* FOOTER */

footer {
  display: flex;
  gap: 10px;
  padding: 10px;
  /* color: #d9d9d9; */
  color: black;
  background-color: #f9f9f9;
  align-items: center;
  justify-content: center;
  font-family: "Raleway", sans-serif;
  font-size: 8pt;
}

/* #impressum {
  display: flex;
  flex-direction: column;
} */
/* MOBILE */

@media only screen and (max-width: 1000px) {
  header {
    flex-direction: column;
  }

  .hamburger {
    display: block;
  }

  .contentNavigation {
    display: none;
  }
  /* Show menu when checkbox is checked */
  /* #menu-toggle:checked ~ .contentNavigation { */
  header:has(#menu-toggle:checked) .contentNavigation {
    display: flex;
  }

  header {
    /* justify-content: space-between; */
    gap: 10px;
    flex-wrap: wrap;
  }

  .contentNavigation {
    flex-wrap: wrap;
    justify-content: space-evenly;
    /* font-size: 16pt; */
  }

  .imageRow {
    flex-wrap: wrap;
  }

  .imageColumn {
    flex-wrap: wrap;
  }

  .about-container {
    flex-direction: column;
  }

  div#additionalImages {
    display: none;
  }
}
@media only screen and (max-width: 400px) {
  img#cornerImage {
    width: 100px;
    bottom: -15px; /* half of image height */
    right: -10px; /* half of image width */
  }
}
