@font-face {
  font-family: "Garamond";
  src: url("fonts/EBGaramond-Italic.ttf");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fafaf8;
  color: #202020;
  font-family: Arial, sans-serif;
}

.places {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 60px 24px 90px;
}

.place {
  width: min(360px, 100%);
  padding: 18px 24px;
  border: 1px solid #d8d8d4;
  background: transparent;
  color: inherit;
  font-family: "Garamond", Georgia, serif;
  font-size: 29px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.place:hover,
.place:focus-visible {
  background: #efefec;
  border-color: #888;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px;
  background: #fafaf8;
  text-align: center;
  font-size: 11px;
  color: #777;
}

#viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 18px;
  border: 0;
  background: #111;
  color: white;
}

#viewer::backdrop {
  background: #111;
}

.viewer-bar,
.viewer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  font-size: 13px;
}

.simple,
.arrow {
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.simple {
  font-size: 32px;
}

.picture {
  height: calc(100% - 92px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.picture img {
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.arrow {
  flex: 0 0 34px;
  font-size: 44px;
}

.viewer-bottom a {
  color: #c7c7c7;
  text-decoration: none;
  text-align: right;
}

@media (max-width: 600px) {
  #viewer {
    padding: 10px;
  }

  .arrow {
    flex-basis: 20px;
    font-size: 34px;
  }

  .picture {
    gap: 0;
  }

  .viewer-bottom {
    font-size: 11px;
  }
}
