:root {
  --poster-width: min(100%, 1350px);
  --photo-size: calc(64px + 2.4cqw);

  --reveal-duration: 1600ms;
  --reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hover-duration: 550ms;
  --skeleton-duration: 400ms;

  --measure: 34rem;
  --gutter: 24px;
  --info-gap: clamp(18px, 2.6vw, 26px);

  --background: #e9e0c9;
  --poster-background: #f6f0df;
  --skeleton: #ded2b4;
  --text: #171713;
}

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

html,
body {
  margin: 0;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

img {
  display: block;
}

.poster-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.poster {
  width: var(--poster-width);
  container-type: inline-size;
}

.poster__frame {
  display: grid;
  grid-template-rows: auto 1fr auto;

  width: 100%;
  min-height: 100svh;

  background: var(--poster-background);
}

.poster__photos {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(min(var(--photo-size), 100%), 1fr));
  grid-template-rows: auto;
  grid-auto-rows: 0;

  width: 100%;
  overflow: hidden;
}

.poster__tile {
  aspect-ratio: 1;
  overflow: hidden;

  background: var(--skeleton);
  opacity: 0;
  transition: opacity var(--skeleton-duration) linear;
}

.poster__tile--in {
  opacity: 1;
}

.poster__photo {
  width: 100%;
  height: 100%;

  object-fit: contain;
  opacity: 0;

  transform: var(--photo-crop, none);
  transition:
    transform var(--hover-duration) var(--reveal-ease),
    opacity 400ms linear;
}

.poster__photo--ready {
  opacity: 1;
}

@media (hover: hover) {
  .poster__tile:hover .poster__photo {
    transform: var(--photo-start, none);
  }
}

@keyframes photo-reveal {
  from {
    transform: var(--photo-start, none);
  }
}

.poster__photo--revealing {
  animation: photo-reveal var(--reveal-duration) var(--reveal-ease) both;
}

@media (prefers-reduced-motion: reduce) {
  .poster__tile,
  .poster__photo {
    transition: none;
  }

  .poster__photo--revealing {
    animation: none;
  }
}

.poster__content {
  display: grid;
  align-content: center;

  padding: max(20px, 3cqw) 7cqw;

  text-align: center;
}

.poster__title {
  margin-top: max(8px, 0.8cqw);
}

.poster__intro {
  margin-top: max(14px, 2.2cqw);
}

.poster__details {
  margin-top: max(24px, 4.2cqw);
}

.poster__type {
  margin-top: max(16px, 2.4cqw);
}

.poster__edition,
.poster__type {
  font-size: max(11px, 1.2cqw);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.poster__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: max(58px, 13cqw);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.78;
}

.poster__intro {
  font-family: Georgia, "Times New Roman", serif;
  font-size: max(16px, 2.4cqw);
  line-height: 1.4;
}

.poster__details {
  display: grid;
  gap: max(4px, 0.5cqw);

  justify-self: center;
  width: min(100%, max(280px, 42cqw));
  padding: max(10px, 1.5cqw) 0;

  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;

  font-size: max(13px, 1.6cqw);
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.event-info {
  padding: clamp(56px, 9vw, 112px) var(--gutter);
}

.event-info__inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.event-info__block + .event-info__block {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 40px);

  border-top: 1px solid currentColor;
}

.event-info__eyebrow {
  margin-bottom: 0.9rem;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.event-info__heading {
  margin-bottom: 0.25em;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.event-info__address,
.event-info__text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
}

.event-info__text {
  margin-top: var(--info-gap);
}

.event-info__text p + p {
  margin-top: 1.1rem;
}

.site-footer {
  display: grid;
  gap: 0.4rem;

  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 7vw, 80px);

  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: right;
}

.site-footer__credit {
  opacity: 0.6;
}

.site-footer__credit a {
  color: inherit;
  text-underline-offset: 0.25em;
}

.site-footer__credit a:hover {
  text-decoration-thickness: 2px;
}
