body {
  font-family: 'EB Garamond', Georgia, serif;
  background-color: #f9f9f7;
  color: #1a1a1a;
  margin: 0;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

html, body {
  overflow-x: hidden;
}

/* This class hides whichever curtain is closed */
.hidden {
  display: none;
}

#list-view {
  position: relative;
  width: 100%;
  height: 115vh;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

li {
  position: absolute;
  transform: translate(-50%, -50%);
  max-width: 240px;
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

li:hover {
  transform: translate(-50%, -54%);
  opacity: 0.65;
}

li.visited {
  font-style: italic;
  color: #7a7872;
  cursor: default;
}

li.visited:hover {
  transform: translate(-50%, -50%);
  opacity: 1;
}

#artwork-view {
  text-align: center;
  max-width: 800px;
}

#site-header {
  position: fixed;
  top: 24px;
  left: 28px;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #666666;
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease;
}

#site-header:hover {
  color: #1a1a1a;
  opacity: 0.7;
}

#sound-toggle {
  position: fixed;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-style: italic;
  color: #7a7872;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s ease;
}

#sound-toggle:hover {
  color: #1a1a1a;
}

#back-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 1.6rem;
  color: #1a1a1a;
  cursor: pointer;
  margin-bottom: 24px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#back-btn:hover {
  transform: translateX(-5px);
  opacity: 0.6;
}

#artwork-img {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  margin: 0 auto;
}

#artwork-caption {
  font-size: 1.4rem;
  font-weight: normal;
  margin: 20px 0 6px;
}

#artwork-meta {
  font-size: 0.95rem;
  color: #666666;
  margin: 0 0 16px;
}

#artwork-description {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
  color: #333333;
  white-space: pre-line;
  text-align: justify;
  hyphens: auto;
}

/* --- Full-screen paper contact sheet (Desktop & Mobile) --- */
#contact-view {
  position: fixed;
  inset: 0;
  background-color: #f9f9f7;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

#contact-view.hidden {
  display: none;
}

#contact-close-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 1.6rem;
  color: #1a1a1a;
  cursor: pointer;
  margin-bottom: 28px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#contact-close-btn:hover {
  transform: translateX(-5px);
  opacity: 0.6;
}

.contact-container {
  max-width: 480px;
}

.contact-links {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  font-size: 1.25rem;
}

.contact-links li {
  position: static;
  transform: none;
  max-width: none;
  margin: 14px 0;
}

.contact-links li:hover {
  transform: none;
  opacity: 0.65;
}

.contact-links a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 2px;
}

.contact-copyright {
  margin-top: 32px;
  font-size: 0.85rem;
  color: #7a7872;
}

/* --- Mobile Overrides --- */
@media (max-width: 767px) {
  body {
    padding: 80px 12px 40px;
  }

  ul {
    font-size: 1.15rem;
  }

  li {
    max-width: 175px;
    line-height: 1.25;
  }

  #site-header {
    top: 18px;
    left: 18px;
    font-size: 0.95rem;
  }

}