@charset "UTF-8";

/* Event detail page */

.event-page {
  background: var(--cream);
}

.event-main {
  padding: calc(var(--header-height) + clamp(26px, 4vw, 52px)) 0 0;
}

.event-breadcrumb {
  margin-bottom: clamp(26px, 4vw, 46px);
}

.event-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-breadcrumb-list li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.event-breadcrumb-list li + li::before {
  color: rgba(48, 49, 57, 0.35);
  content: "/";
  letter-spacing: 0;
}

.event-breadcrumb-list a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: var(--ink-soft);
  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.event-breadcrumb-list a:hover {
  color: var(--ink);
  border-color: currentColor;
}

.event-breadcrumb-list [aria-current="page"] {
  max-width: min(52vw, 620px);
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.event-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(48, 49, 57, 0.24);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.event-back svg {
  flex: 0 0 auto;
  transition: transform 220ms ease;
}

.event-back:hover {
  color: var(--ink);
  border-color: currentColor;
}

.event-back:hover svg {
  transform: translateX(-3px);
}

.event-header {
  max-width: 980px;
}

.event-title {
  max-width: 1040px;
  margin-top: 0;
  font-family: var(--serif);
  font-size: 55px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.event-cover {
  margin: clamp(24px, 3vw, 38px) 0 0;
}

.event-cover-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: var(--sand-light);
  object-fit: cover;
}

.event-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  align-items: start;
  gap: clamp(32px, 4.4vw, 68px);
  margin-top: clamp(30px, 3.4vw, 44px);
}

.event-facts {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  margin: 4px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.event-fact {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.event-fact-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--sand-dark);
  place-items: center;
}

.event-fact > span:last-child {
  display: grid;
  gap: 1px;
}

.event-fact small {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  opacity: 0.68;
  text-transform: uppercase;
}

.event-fact time,
.event-fact a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.event-place {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(48, 49, 57, 0.3);
  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.event-place svg {
  flex: 0 0 auto;
  opacity: 0.7;
  transition: transform 200ms ease;
}

.event-place:hover {
  color: var(--sand-dark);
  border-color: currentColor;
}

.event-place:hover svg {
  transform: translate(2px, -2px);
}

.event-place--static {
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.event-place--static:hover {
  color: var(--ink);
}

.event-description {
  grid-column: 1;
  grid-row: 1;
  max-width: 780px;
  margin-top: 0;
  color: var(--ink-soft);
  font-family: var(--lora);
  font-size: 18px;
  line-height: 1.72;
}

.event-description p + p {
  margin-top: 18px;
}

.event-description p:first-child {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.event-description > * + * {
  margin-top: 1.1em;
}

.event-description h2,
.event-description h3,
.event-description h4 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.event-description h2 {
  font-size: clamp(26px, 3.2vw, 36px);
}

.event-description h3 {
  font-size: clamp(22px, 2.6vw, 28px);
}

.event-description a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.event-description a:hover {
  color: var(--sand-dark);
}

.event-description ul,
.event-description ol {
  padding-left: 1.35em;
  list-style: disc;
}

.event-description ol {
  list-style: decimal;
}

.event-description li + li {
  margin-top: 0.35em;
}

.event-description img {
  height: auto;
  border-radius: 4px;
}

/* Gallery */

.event-gallery-section {
  margin-top: clamp(18px, 2vw, 24px);
}

.event-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(14px, 1.6vw, 20px);
  padding-top: clamp(16px, 1.8vw, 22px);
  border-top: 1px solid var(--line);
}

.event-gallery-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.event-gallery-count {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-gallery {
  --gallery-gap: clamp(10px, 1.2vw, 16px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--gallery-gap);
}

.event-gallery.is-justified {
  flex-direction: column;
  flex-wrap: nowrap;
}

.event-gallery-row {
  display: flex;
  width: 100%;
  gap: var(--gallery-gap);
}

.event-photo {
  position: relative;
  display: block;
  height: 280px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 4px;
  background: var(--sand-light);
  isolation: isolate;
}

.event-photo img {
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.event-gallery.is-justified .event-photo img {
  width: 100%;
}

.event-gallery--single {
  display: block;
}

.event-gallery--single .event-photo {
  width: min(100%, 860px);
  height: auto;
}

.event-gallery--single .event-photo img {
  width: 100%;
  height: auto;
}

.event-photo::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(38, 40, 46, 0.42));
  content: "";
  opacity: 0;
  transition: opacity 300ms ease;
}

.event-photo::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(247, 243, 235, 0.72);
  border-radius: 50%;
  color: var(--paper);
  content: "+";
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  place-items: center;
  transform: translateY(6px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.event-photo:hover img,
.event-photo:focus-visible img {
  transform: scale(1.04);
}

.event-photo:hover::before,
.event-photo:focus-visible::before {
  opacity: 1;
}

.event-photo:hover::after,
.event-photo:focus-visible::after {
  opacity: 1;
  transform: none;
}

.event-photo:focus-visible {
  outline-offset: 3px;
}

.event-return {
  margin-top: clamp(30px, 4vw, 48px);
  padding: clamp(24px, 3vw, 34px) 0 clamp(56px, 7vw, 90px);
  border-top: 1px solid var(--line);
}

/* Lightbox */

body.lightbox-open {
  overflow: hidden;
}

.event-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--paper);
  background: transparent;
}

.event-lightbox::backdrop {
  background: rgba(22, 23, 27, 0.95);
  backdrop-filter: blur(8px);
}

.event-lightbox-stage {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: clamp(58px, 6vw, 84px) clamp(16px, 7vw, 110px);
}

.event-lightbox-figure {
  display: flex;
  max-width: 100%;
  max-height: 100%;
  align-items: center;
  justify-content: center;
}

.event-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1400px, calc(100vw - 220px));
  max-height: calc(100dvh - 176px);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.event-lightbox-image.is-ready {
  opacity: 1;
  transform: none;
}

.event-lightbox-close,
.event-lightbox-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  padding: 0;
  border: 1px solid rgba(247, 243, 235, 0.26);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(247, 243, 235, 0.07);
  cursor: pointer;
  place-items: center;
  transition:
    color 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.event-lightbox-close:hover,
.event-lightbox-nav:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.event-lightbox-close {
  top: clamp(14px, 2.4vw, 26px);
  right: clamp(14px, 2.4vw, 26px);
  width: 48px;
  height: 48px;
}

.event-lightbox-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
}

.event-lightbox-nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.event-lightbox-nav--prev {
  left: clamp(10px, 2.4vw, 28px);
}

.event-lightbox-nav--next {
  right: clamp(10px, 2.4vw, 28px);
}

.event-lightbox-count {
  position: absolute;
  bottom: clamp(18px, 2.6vw, 28px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 243, 235, 0.78);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  transform: translateX(-50%);
}

.event-lightbox-count-sep {
  opacity: 0.45;
}

@media (max-width: 960px) {
  .event-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .event-description,
  .event-facts {
    grid-column: auto;
    grid-row: auto;
  }

  .event-description {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .event-main {
    padding-top: calc(var(--header-height) + 22px);
  }

  .event-breadcrumb {
    margin-bottom: 24px;
  }

  .event-breadcrumb-list {
    gap: 6px;
    font-size: 10px;
  }

  .event-breadcrumb-list li {
    gap: 6px;
  }

  .event-breadcrumb-list [aria-current="page"] {
    max-width: 100%;
  }

  .event-title {
    margin-top: 0;
    font-size: clamp(31px, 8.8vw, 42px);
    letter-spacing: -0.035em;
  }

  .event-cover-image {
    aspect-ratio: 4 / 3;
  }

  .event-fact {
    gap: 12px;
    padding: 14px 0;
  }

  .event-fact-icon {
    width: 34px;
    height: 34px;
  }

  .event-fact time,
  .event-fact a,
  .event-place--static {
    font-size: 14px;
  }

  .event-description {
    margin-top: 0;
    font-size: 18px;
    line-height: 1.7;
  }

  .event-description p + p {
    margin-top: 14px;
  }

  .event-description p:first-child {
    font-size: 18px;
    line-height: 1.58;
  }

  .event-gallery-section {
    margin-top: 18px;
  }

  .event-gallery-head {
    margin-bottom: 14px;
    padding-top: 16px;
  }

  .event-gallery-title {
    font-size: 28px;
  }

  .event-gallery {
    --gallery-gap: 8px;
  }

  .event-photo {
    height: 180px;
  }

  .event-photo::after {
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
  }

  .event-return {
    text-align: left;
  }

  .event-lightbox-stage {
    padding: 64px 12px 96px;
  }

  .event-lightbox-image {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 190px);
  }

  .event-lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .event-lightbox-nav {
    top: auto;
    bottom: 16px;
    width: 44px;
    height: 44px;
    transform: none;
  }

  .event-lightbox-nav:hover {
    transform: scale(1.04);
  }

  .event-lightbox-nav--prev {
    left: 18px;
  }

  .event-lightbox-nav--next {
    right: 18px;
  }

  .event-lightbox-count {
    bottom: 34px;
  }
}

@media (max-width: 390px) {
  .event-gallery-count {
    font-size: 9px;
  }

  .event-lightbox-count {
    font-size: 10px;
  }
}
