/* Contact Sheet: strips of film on a dark sheet, one frame circled in red grease pencil. */
:root {
    --te-radius: 0;
    --film: color-mix(in srgb, var(--te-bg) 32%, #000);
    --frame: color-mix(in srgb, var(--te-bg) 82%, #fff);
    --band: 2.125rem;
    --holes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16'%3E%3Crect x='5' y='1' width='14' height='14' rx='2.5'/%3E%3C/svg%3E");
    --holes-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24'%3E%3Crect x='1' y='5' width='14' height='14' rx='2.5'/%3E%3C/svg%3E");
}

/* Chrome */
.te-nav-wrap { padding: 0; position: relative; }
.te-nav { max-width: none; border-radius: 0; box-shadow: none; background: var(--film); backdrop-filter: none; -webkit-backdrop-filter: none; }
.te-nav-brand { font-weight: 500; letter-spacing: -.02em; }
.te-nav-link { border-radius: 0; font-family: var(--te-heading); font-size: .8125rem; }
.te-nav-link.is-active { background: none; color: var(--te-accent-text); box-shadow: inset 0 -2px 0 var(--te-accent); }
.te-nav-sheet { background: var(--film); }
.te-btn { border-radius: 0; background: var(--te-primary); color: var(--te-on-primary); box-shadow: none; font-family: var(--te-heading); font-weight: 500; }
.te-btn-accent { background: var(--te-accent); color: var(--te-on-accent); box-shadow: none; }
.te-btn-soft { background: var(--te-tint-strong); color: var(--te-primary-text); box-shadow: none; }
.te-btn-light { background: #fff; color: #14141c; box-shadow: none; }
.te-btn-outline { border-radius: 0; font-family: var(--te-heading); font-weight: 500; }
.te-btn.te-btn-outline { background: transparent; color: var(--te-primary-text); }
.te-field, .te-choice { border-radius: 0; }
.te-chip { border-radius: 0; background: none; padding: 0; color: var(--te-accent-text); font-family: var(--te-heading); }

/* Hero */
.ct-hero { padding: 1.25rem 0 1rem; overflow: hidden; }
.ct-defs { position: absolute; }
.ct-head { display: grid; gap: 1rem; max-width: 86rem; margin: 0 auto 1.5rem; padding-inline: 1.25rem; align-items: end; }
.ct-title { font-size: calc(var(--fit, 1) * clamp(2.75rem, 11vw, 8rem)); line-height: 1; font-weight: 500; letter-spacing: -.05em; color: var(--te-primary-text); overflow-wrap: break-word; }
.ct-meta { color: var(--te-muted); font-size: .9375rem; line-height: 1.55; }
.ct-label { color: var(--te-ink); font-family: var(--te-heading); }
@media (min-width: 800px) { .ct-head { grid-template-columns: 1fr minmax(16rem, 24rem); } }

/* A strip of film: holes along both edges, frames between. */
.ct-sheet { display: grid; gap: clamp(.5rem, 1.5vw, 1rem); margin-inline: -1.5%; }
.ct-strip { position: relative; display: flex; gap: clamp(.25rem, .7vw, .5rem); padding: var(--band) clamp(.25rem, .7vw, .5rem); background: var(--film); }
.ct-sheet .ct-strip:nth-child(1) { transform: rotate(-.3deg); }
.ct-sheet .ct-strip:nth-child(2) { transform: rotate(.35deg); }
.ct-sheet .ct-strip:nth-child(3) { transform: rotate(-.15deg); }
.ct-strip::before, .ct-strip::after, .te-card::before, .te-card::after, .te-tile::before, .te-tile::after, .te-page-head::before, .te-page-head::after, .te-gallery-item::before, .te-gallery-item::after { content: ""; position: absolute; left: 0; right: 0; height: 1.25rem; background: var(--te-primary); -webkit-mask: var(--holes) 0 50% / 24px 16px repeat-x; mask: var(--holes) 0 50% / 24px 16px repeat-x; pointer-events: none; }
.ct-strip::before, .te-card::before, .te-tile::before, .te-page-head::before, .te-gallery-item::before { top: .1875rem; }
.ct-strip::after, .te-card::after, .te-tile::after, .te-page-head::after, .te-gallery-item::after { bottom: .1875rem; }
.ct-frame { position: relative; flex: 1 1 0; min-width: 0; }
.ct-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--frame); }
.ct-image > * { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
/* When an event has few photos the frames repeat, so each one is cropped a little differently. */
.ct-frame:nth-child(2n) .ct-image > * { object-position: 28% 10%; transform: scale(1.18); }
.ct-frame:nth-child(3n) .ct-image > * { object-position: 72% 18%; transform: scale(1.32); }
.ct-frame:nth-child(n+4) { display: none; }
.ct-num { position: absolute; z-index: 1; top: 100%; left: .125rem; margin-top: .125rem; font-family: var(--te-heading); font-size: .6875rem; line-height: 1; color: var(--te-primary-text); }
@media (min-width: 700px) { .ct-frame:nth-child(n+4) { display: block; } }

/* The grease-pencil circle draws itself once. */
.ct-mark { position: absolute; z-index: 3; top: -19%; left: -11%; width: 122%; height: 138%; overflow: visible; pointer-events: none; fill: none; stroke: var(--te-accent); stroke-width: 5; stroke-linecap: round; filter: url(#ct-rough); }
.ct-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ct-draw 1.4s cubic-bezier(.5,.1,.3,1) .5s forwards; }
@keyframes ct-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ct-mark path { animation: none; stroke-dashoffset: 0; } }

.ct-foot { display: grid; gap: 1rem; max-width: 86rem; margin: 1.5rem auto 0; padding-inline: 1.25rem; align-items: center; }
.ct-count { padding-inline: 1rem; }
.ct-count .te-count { width: 100%; gap: 0; }
.te-count-cell { max-width: none; padding: .5rem .25rem; border-radius: 0; background: none !important; box-shadow: none !important; border-left: 1px solid var(--te-line); }
.te-count-cell:first-child { border-left: 0; }
.te-count-num { font-weight: 500; color: var(--te-primary-text); }
@media (min-width: 800px) { .ct-foot { grid-template-columns: minmax(0, 34rem) auto; justify-content: space-between; } }

/* Everything below is more film. */
.te-card, .te-tile, .te-tile-accent { position: relative; border: 0; border-radius: 0; background: var(--film) !important; box-shadow: none !important; padding-block: 2.25rem !important; }
a.te-card:hover { transform: none; }
a.te-card:hover .te-h-card { color: var(--te-accent-text); }
.te-icon-tile { display: none; }
.te-eyebrow { margin: 0 !important; font-family: var(--te-heading); }
.te-h-section, .te-h-page { font-weight: 500; font-size: clamp(2.25rem, 8vw, 4.5rem); line-height: 1.05; letter-spacing: -.045em; }
.te-h-card { font-weight: 500; letter-spacing: -.02em; }
.te-section-head, .te-facts-grid, .te-explore > div, .te-schedule > div, .te-gallery-grid { max-width: 78rem !important; }
.te-section-head { margin-inline: auto; text-align: left; }
.te-page-head { position: relative; margin: 0; border-radius: 0; background: var(--film); text-align: left; padding-block: 4rem; }
.te-page-head > div { max-width: 78rem !important; }

/* The facts and links run on as joined frames. */
.te-facts-grid, .te-explore .grid { gap: .25rem !important; }
.te-explore .grid { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)) !important; }
.te-explore a.te-card { align-items: flex-end; min-height: 11rem; }
.te-explore a.te-card > svg { display: none; }
.te-story .te-card { max-width: 54rem !important; }

/* Programme: one long vertical strip, frame by frame. */
.te-schedule > div { max-width: 52rem !important; }
.te-timeline { padding: .375rem var(--band) !important; counter-reset: frame; }
.te-timeline::before, .te-timeline::after { top: 0; bottom: 0; right: auto; width: var(--band); height: auto; -webkit-mask: var(--holes-v) 50% 0 / 16px 24px repeat-y; mask: var(--holes-v) 50% 0 / 16px 24px repeat-y; }
.te-timeline::before { left: 0; }
.te-timeline::after { left: auto; right: 0; }
.te-timeline li { grid-template-columns: 1fr !important; margin-block: .25rem; padding: 1rem 2.75rem 1rem 1rem !important; background: var(--te-surface); counter-increment: frame; }
.te-timeline li > div:first-child { display: none; }
.te-timeline li::after { content: counter(frame) "A"; position: absolute; right: .5rem; bottom: .375rem; font-family: var(--te-heading); font-size: .6875rem; color: var(--te-muted); }
.te-timeline .te-chip { margin-bottom: .25rem; font-size: 1.25rem; }
.te-timeline .te-h-card { color: var(--te-primary-text); }

/* Gallery: a roll of frames. */
.te-gallery-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 0 !important; }
.te-gallery-item { position: relative; aspect-ratio: 1 / 1.05; border-radius: 0 !important; background: var(--film); }
.te-gallery-item img { position: absolute; inset: var(--band) .125rem; width: calc(100% - .25rem); height: calc(100% - 2 * var(--band)); object-position: 50% 16%; }

/* Closing frame with the red pencil's colour. */
.te-closing-panel { max-width: 78rem !important; text-align: left; }
.te-closing-panel .te-muted { margin-left: 0; }
.te-closing-panel .te-btn { background: var(--te-accent); color: var(--te-on-accent); }
