@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Libre+Bodoni:ital,wght@0,400..700;1,400..700&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Vidaloka&display=swap');

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

div.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 24px;
  max-width: 100%;
}

h1, p {
  margin: 0;
  font-weight: 200;
  color: #a8a8a8;
}

h1 {
  font-size: 32px;
  font-family: "Libre Bodoni", serif;
}

p {
  font-size: 16px;
}

ul.years {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

ul.years li {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 100px;
  background: #ddd;
  color: #fff;
  transition: background 0.2s ease-in-out;
}

ul.years li:hover {
  background: #ccc;
}

ul.years li.selected {
  background: rgb(255, 182, 11);
}

.loading {
  margin: 24px;
  padding-top: 4px;
  text-align: center;
}

.loading .spinner {
  width: 16px;
  height: 16px;
  vertical-align: baseline;
  transform: translateY(2px);
  margin-right: 6px;
}

.viewer {
  position: relative;
  width: 100%;
  height: 100%;
}

.fade {
  position: absolute;
  top: 0px;
  width: 100%;
  height: 100px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}

.footer {
  position: absolute;
  margin-top: 56.25%;
  padding: 12px;
}

.footer,
.footer p,
.footer a {
  color: #a8a8a8;
  font-size: 12px;
}

.footer a:hover {
  color: #888;
}

@media (min-width: 320px) {
  .viewer .fade {
    height: 25px;
  }
}

@media (min-width: 480px) {
  .viewer .fade {
    height: 37.5px;
  }
}

@media (min-width: 640px) {
  .viewer .fade {
    height: 50px;
  }
}

@media (min-width: 768px) {
  .viewer .fade {
    height: 75px;
  }
}

@media (min-width: 1024px) {
  .viewer .fade {
    height: 100px;
  }
}

.viewer img {
  position: absolute;
  width: 100%;
  transition: opacity 1s ease-in-out;
}
