:root {
  color-scheme: dark;
  --ink: #0b0b09;
  --ivory: #f1ebdd;
  --muted: #918e86;
  --amber: #d38a47;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--ivory);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

body {
  margin: 0;
}

main {
  margin: 0 auto;
  max-width: 760px;
  min-height: 100vh;
  padding: clamp(28px, 7vw, 76px) 24px;
}

.mark {
  align-items: center;
  display: flex;
  height: 64px;
  justify-content: center;
  margin-bottom: 72px;
  width: 64px;
}

.mark span {
  background: var(--ivory);
  border-radius: 99px;
  display: block;
  height: 34px;
  margin: 0 4px;
  width: 6px;
}

h1,
h2 {
  font-family: "New York", "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(48px, 11vw, 86px);
  line-height: 0.95;
  margin: 0 0 32px;
}

h2 {
  font-size: 30px;
  margin: 52px 0 12px;
}

p,
li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--ivory);
  text-underline-offset: 4px;
}

.eyebrow {
  color: var(--amber);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  border: 1px solid rgba(241, 235, 221, 0.24);
  border-radius: 999px;
  padding: 14px 20px;
  text-decoration: none;
}

.button.primary {
  background: var(--ivory);
  color: var(--ink);
}

footer {
  border-top: 1px solid rgba(241, 235, 221, 0.12);
  color: var(--muted);
  font-size: 13px;
  margin-top: 80px;
  padding-top: 22px;
}

.event-shell {
  align-items: center;
  display: flex;
  max-width: 920px;
  text-align: center;
}

.event-card {
  border: 1px solid rgba(241, 235, 221, 0.14);
  border-radius: 32px;
  margin: auto;
  padding: clamp(30px, 7vw, 72px);
  width: min(100%, 680px);
}

.event-card .mark {
  margin: 0 auto 46px;
}

.event-card h1 {
  font-size: clamp(46px, 10vw, 78px);
}

.event-card .actions {
  justify-content: center;
}

.event-note {
  font-size: 13px;
  margin-top: 28px;
}

.event-page {
  max-width: 1120px;
}

.event-hero {
  max-width: 720px;
}

.event-hero .mark {
  margin-bottom: 54px;
}

.event-gallery {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 9vw, 96px);
  overflow: hidden;
}

.event-gallery figure {
  aspect-ratio: 4 / 5;
  background: rgba(241, 235, 221, 0.05);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.event-photo {
  background: none;
  border: 0;
  cursor: zoom-in;
  display: block;
  height: 100%;
  padding: 0;
  width: 100%;
}

.event-gallery img,
.photo-lightbox img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-download {
  background: rgba(11, 11, 9, 0.78);
  border: 1px solid rgba(241, 235, 221, 0.22);
  border-radius: 999px;
  bottom: 12px;
  font-size: 12px;
  opacity: 0;
  padding: 8px 12px;
  position: absolute;
  right: 12px;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.event-gallery figure:hover .photo-download,
.event-gallery figure:focus-within .photo-download {
  opacity: 1;
}

.photo-lightbox {
  background: var(--ink);
  border: 1px solid rgba(241, 235, 221, 0.18);
  border-radius: 24px;
  color: var(--ivory);
  height: min(92vh, 940px);
  margin: auto;
  max-width: min(92vw, 880px);
  padding: 54px 18px 76px;
  width: max-content;
}

.photo-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.photo-lightbox img {
  object-fit: contain;
}

.lightbox-close {
  background: none;
  border: 0;
  color: var(--ivory);
  cursor: pointer;
  font: inherit;
  padding: 14px;
  position: absolute;
  right: 8px;
  top: 4px;
}

.lightbox-download {
  bottom: 12px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.event-empty {
  border-top: 1px solid rgba(241, 235, 221, 0.14);
  margin-top: 64px;
  padding-top: 26px;
}

@media (max-width: 620px) {
  .event-gallery {
    gap: 2px;
  }

  .photo-download {
    bottom: 7px;
    opacity: 1;
    right: 7px;
  }
}
