body {
    font-family: "Inter UI", Helvetica, Arial, sans-serif;
    font-size: 130%;
}

.head {
  display: flex;
  min-height: 100px;
  flex-wrap: wrap;
}

.description {
  flex: 1;
  min-width: 35em;
  word-break: break-word;
  overflow-wrap: break-word;
  padding: 10px;
}

@media (max-width: 1000px) {
  .description {
    min-width: 30em;
  }
}

.buttons {
  flex: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 400px;
}

.button {
  display: flex;
  flex: 1;
  height: 50px;
  min-width: 100px;
  margin: 5px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: black;
  text-decoration: none;
  background-color: #c0c0c0;
  cursor: pointer;
}

.interaction {
  background-color: #ebebeb;
}

.dropdown {
  position: relative;
  display: flex;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  width: 100%;
  top: 100%;
  z-index: 1;
  flex-direction: column;
}

.dropdown-content a {
  display: block;
  padding: 7px 10px;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
}

.dropdown-content a:hover {
  background-color: #ebebeb;
}

.imageGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.imageItem {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  margin-left: 5px;
  margin-right: 5px;
  margin-bottom: 5px;
  max-width: calc(1.5 * 100vh);
}

@media (max-height: 860px) {
  .imageItem {
    max-width: none;
  }
}

.imageItem center {
  padding-top: 2px;
}

.imageItem a {
  padding-top: 2px;
}

.imageItem, .aspect3-2, .aspect2-3, .aspect3-4, .aspect4-3 {
    box-sizing: border-box;
}

.aspect3-2 {
    flex: 9 9 0;
    flex-basis: 640px;
    min-width: 0;
}

.aspect2-3 {
    flex: 4 4 0;
    flex-basis: 284px;
    min-width: 0;
}

.aspect3-4 {
    flex: 4.5 4.5 0;
    flex-basis: 320px;
    min-width: 0;
}

.aspect4-3 {
    flex: 8 8 0;
    flex-basis: 569px;
    min-width: 0;
}

.imageItem img {
  width: 100%;
  display: block;
}

@media (max-width: 700px) {
    .imageItem {
    min-width: 90vw;
    width: 90vw;
  }

  .buttons {
    flex-wrap: wrap;
  }

  .description {
    min-width: 90vw;
  }
}

@media (min-width: 1601px) {
  .aspect3-2 {min-width: 770px;}
  .aspect2-3 {min-width: 440px;}
  .aspect3-4 {min-width: 460px;}
  .aspect4-3 {min-width: 700px;}
}

body.dark-mode {
    background-color: black;
    color: white;
}

body.dark-mode .button {
    background-color: #5f5f5f;
    color: white;
}

#darkMode {
    cursor: pointer;
}

#image-viewer {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      display: none;
      z-index: 10;
      overflow: auto;
      background-color: white;
    }

body.dark-mode #image-viewer {
    background-color: black;
    color: white;
}

body.dark-mode .button #image-viewer {
    background-color: #303030;
    color: white;
}

body.dark-mode a #image-viewer {
  color: #99C2FC;
}

body.dark-mode .currentLabel #image-viewer {
  background-color: black;
  color: white;
}

body.dark-mode .dropdown-content {
  background-color: #101010;
}

body.dark-mode .dropdown-content a:hover {
  background-color: #303030;
}

body.dark-mode .interaction {
  background-color: #313131;
}