body {
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  max-width: 760px;
  margin: 40px auto;
  padding: 0 20px 40px;
  line-height: 1.5;
  color: #111111;
  background-color: #ffffff;
}

a {
  color: inherit;
}

nav {
  margin-bottom: 22px;
}

nav a {
  display: inline-block;
  text-decoration: none;
}

h1 {
  font-size: 18px;
  font-weight: normal;
  margin: 0 0 18px;
}

h2 {
  font-size: 16px;
  font-weight: normal;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 14px;
}

.section {
  margin-top: 60px;
  margin-bottom: 15px;
  font-weight: normal;
}

.gallery {
  max-width: 920px;
  margin: 0 auto;
}

.year-page {
  max-width: none;
  margin: 0;
  padding: 32px 24px 28px;
}

.year-page .gallery {
  display: flex;
  gap: 72px;
  max-width: none;
  margin: 0;
  padding-bottom: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.year-page .piece {
  flex: 0 0 min(58vw, 520px);
  max-width: none;
  margin: 0;
  scroll-snap-align: start;
}

.year-page .piece-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.year-page .piece img,
.year-page .piece-pair img {
  width: auto;
  max-width: 100%;
  max-height: 68vh;
  margin: 0 auto;
}

.year-2024 .gallery {
  gap: 64px;
}

.year-2024 .piece {
  flex-basis: min(76vw, 900px);
}

.year-2024 .piece img {
  max-height: 82vh;
}

.year-page .piece-same-size img {
  width: 100%;
}

.piece {
  max-width: 560px;
  margin: 0 auto 48px;
}

.piece img {
  width: 100%;
  display: block;
}

.caption {
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}

.year-page .caption {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.piece-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}

.bottom-nav {
  margin-top: 0;
  text-align: left;
}

.bottom-nav a {
  display: inline;
  text-decoration: none;
  padding: 0;
  border: 0;
}

.cv p {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
}

a:hover {
  opacity: 0.75;
}

.home {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 32px 24px;
  background-image: url("images/home.JPG");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.home-container {
  max-width: 500px;
  margin: 0;
}

.home-title,
.home-nav a {
  background: none;
  padding: 0;
  text-shadow: none;
}

.home-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.home-nav a {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  text-decoration: none;
}

.work {
  position: relative;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 32px 24px;
  color: #fff6d8;
  overflow: hidden;
  background-color: #3b1d12;
}

.year-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 100%;
  margin: 0;
}

.year-list a {
  display: inline-block;
  margin-bottom: 0;
  text-decoration: none;
  white-space: nowrap;
}

.work-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.work-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 18, 8, 0.28);
  z-index: -1;
}

.work-content {
  max-width: 720px;
  padding: 14px 18px 18px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
}

.work-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
}

.work-header h1 {
  margin: 0;
}

.about {
  background-color: #3fa7a3;
  color: #1f2a44;
}

.about-title {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 30px;
  color: #ffe066;
  letter-spacing: 0.5px;
  display: inline-block;
  padding: 2px 0 8px;
  text-shadow:
    0 -1px 0 #fffbe0,
    0 1px 0 #fff1a8,
    1px 0 0 #b56d00,
    -1px 0 0 #b56d00,
    0 2px 0 #f2b705,
    1px 2px 0 #f2b705,
    2px 3px 0 #d88d00,
    3px 4px 0 #b56d00,
    4px 5px 8px rgba(122, 67, 0, 0.22);
}

.statement summary {
  cursor: pointer;
  margin-bottom: 12px;
}

.contact {
  background-color: #8a3324;
  color: #f6d1d9;
}

.contact a {
  color: inherit;
}

.contact-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.contact-text {
  max-width: 360px;
}

.contact-image img {
  width: 220px;
  max-width: 100%;
  display: block;
}

.copyright {
  margin-top: 26px;
  font-size: 12px;
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
    margin: 24px auto;
    padding: 0 16px 28px;
  }

  h1 {
    font-size: 17px;
  }

  .about-title {
    font-size: 25px;
  }

  .work {
    padding: 24px 16px;
  }

  .work-overlay {
    background: rgba(46, 18, 8, 0.4);
  }

  .work-content {
    max-width: 100%;
    padding: 12px 14px 14px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: none;
  }

  .year-list {
    gap: 8px 14px;
    max-width: 100%;
  }

  .year-page {
    padding: 24px 16px 24px;
  }

  .year-page .gallery {
    gap: 40px;
  }

  .year-page .piece {
    flex-basis: 72vw;
  }

  .year-page .piece img,
  .year-page .piece-pair img {
    max-height: 60vh;
  }

  .year-page .piece-same-size img {
    width: 100%;
  }

  .year-2024 .gallery {
    gap: 56px;
  }

  .year-2024 .piece {
    flex-basis: 88vw;
  }

  .year-2024 .piece img {
    max-height: 72vh;
  }

  .piece {
    margin-bottom: 36px;
  }

  .piece-pair {
    grid-template-columns: 1fr;
  }

  .contact-container {
    flex-direction: column;
  }

  .contact-image img {
    width: 180px;
  }
}
