:root {
  --homepage-photo-width: 100%;
}

html,
body {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 500;
}

.page {
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 40px 64px;
}

h1 {
  font-size: 30px;
}

h2 {
  margin-top: 20px;
  font-size: 22px;
}

ol {
  margin: 0;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.6em;
}

a,
a:visited {
  color: #224ace;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.gray {
  color: #555;
}

.item-note {
  display: block;
  color: #555;
}

figure {
  margin: 0;
}

img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

.homepage-photo-frame {
  display: flex;
  width: 100%;
  justify-content: center;
}

.homepage-photo {
  flex: 0 1 var(--homepage-photo-width);
  width: var(--homepage-photo-width);
  max-width: 100%;
  margin: 0;
}

figcaption {
  margin-top: 4px;
  color: #555;
  font-size: 0.9em;
  text-align: center;
}

.slideshow {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
  align-items: center;
}

.slideshow-frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 2 / 3;
}

.slide {
  display: none;
  height: 100%;
}

.slide.active {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  animation: fade-in 0.4s;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slideshow-button {
  align-self: stretch;
  border: 0;
  background: none;
  color: #888;
  font: inherit;
  cursor: pointer;
}

.slideshow-button:hover,
.slideshow-button:focus-visible {
  color: #111;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .slide.active {
    animation: none;
  }
}
