*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #111;
}

.container {
  display: flex;
  justify-content: center;
}

.title {
  padding: 0.5rem;
  text-align: center;
}

nav {
  display: none;
  opacity: 0;
  transition:
    opacity 5s,
    display 5s allow-discrete;
  /* Mobile layout – vertical centered list */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 1rem;
}

nav.is-open {
  opacity: 1;
  display: flex;
}

@starting-style {
  nav.is-open {
    opacity: 0;
  }
}

nav a,
nav span {
  font-size: 0.875rem;
  color: #777;
  text-decoration: none;
}

nav a:hover {
  color: #111;
}

nav span {
  opacity: 0.6;
}

main {
  padding: 0 1rem;
}

.gallery :first-child {
  margin-top: 0;
}

.gallery img {
  display: block;
  max-height: calc(100vh - 4rem);
  max-width: 100%;
  width: auto;
  margin: 2rem auto;
}

main a {
  display: block;
  margin-bottom: 1.5rem;
}

main a:last-child {
  margin-bottom: 0;
}

/* Desktop rules below (screen wider than 700px) */
@media (min-width: 700px) {
  body {
    flex-direction: row;
    align-items: flex-start;
  }

  nav {
    display: flex;
    position: sticky;
    top: 1rem;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 150px;
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
  }

  .title {
    margin-top: 1rem;
    padding: 0 1.5rem;
  }

  main {
    flex: 1;
    padding: 1.5rem;
  }

  .artwork-list img {
    display: block;
    max-width: 800px;
    max-height: 80vh; /* never taller than 80% of the screen */
    width: auto;
    height: auto;
    margin: 1.5rem 0;
  }

  .title {
    text-align: left;
  }
}

body {
  margin: 0; /* we'll let the wrappers handle spacing */
}
.video-wrapper {
  max-width: 900px;
  margin: 2rem auto; /* mirroring image gallery spacing */
}
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
