/* =========================================================
   TCG — COLLECTIONS
   Styles for templates/collections-index.php and
   collection-entry.php.

   The show happens in the dark: cover, notes, looks and film on
   black, in one label face (Michroma) with numbers, paths and
   counters. Then the lights come up: the pieces sit on the shop's
   own paper, in the shop's own cards.
========================================================= */

/* the theme makes html and body scroll containers, which stops the
   runway from holding still while the looks pass through it */
html body.tcg-col-page {
    overflow-x: clip !important;
    overflow-y: visible !important;
    background: #0b0b0b;
}

.tcg-col,
.tcg-col-viewer {
    --col-black: #0b0b0b;
    --col-paper: #f1eee8;
    --col-ink: #111111;
    --col-mute: rgba(255, 255, 255, .58);
    --col-line: rgba(255, 255, 255, .18);
    --col-signal: #ff3b2f;
    --col-gutter: clamp(18px, 4vw, 50px);
    --col-label: "Michroma", "Arial Narrow", Arial, sans-serif;
    /* the ticker and the header that sit on top of every page */
    --col-chrome: 104px;
    color: #ffffff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.tcg-col {
    position: relative;
    z-index: 1;
    background: var(--col-black);
}

.tcg-col *,
.tcg-col *::before,
.tcg-col *::after,
.tcg-col-viewer *,
.tcg-col-viewer *::before,
.tcg-col-viewer *::after {
    box-sizing: border-box;
}

.tcg-col h1,
.tcg-col h2,
.tcg-col p,
.tcg-col figure,
.tcg-col dl,
.tcg-col dt,
.tcg-col dd {
    margin: 0;
    padding: 0;
}

.tcg-col a,
.tcg-col a:hover,
.tcg-col a:focus,
.tcg-col-viewer a,
.tcg-col-viewer a:hover {
    color: inherit;
    text-decoration: none;
}

.tcg-col img,
.tcg-col-viewer img {
    display: block;
    max-width: none;
    height: auto;
}

.tcg-col :focus-visible,
.tcg-col-viewer :focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   LABELS — one small face for everything that names a thing
--------------------------------------------------------- */

.tcg-col .tcg-col-path,
.tcg-col-kicker,
.tcg-col-live,
.tcg-col-spec dt,
.tcg-col-head__no,
.tcg-col-head__side,
.tcg-col-run__count,
.tcg-col-frame__caption,
.tcg-col-frame__plus,
.tcg-col-row__no,
.tcg-col-row__label,
.tcg-col-row__meta,
.tcg-col-row__go,
.tcg-col-row__face-no,
.tcg-col-next__label,
.tcg-col-next__meta,
.tcg-col-ticker__run,
.tcg-col-toc a,
.tcg-col-run__end span,
.tcg-col-onward span {
    font-family: var(--col-label);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.tcg-col .tcg-col-path {
    display: inline-block;
    color: #ffffff;
}

.tcg-col a.tcg-col-path {
    padding: 10px 0;
}

.tcg-col a.tcg-col-path span {
    display: inline-block;
    margin-right: 8px;
    transition: transform .25s ease;
}

.tcg-col a.tcg-col-path:hover span {
    transform: translateX(-4px);
}

.tcg-col-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    color: #ffffff;
}

.tcg-col-kicker span + span::before {
    content: "/";
    margin-right: 16px;
    color: var(--col-mute);
}

.tcg-col-live {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
}

.tcg-col-live i {
    width: 7px;
    height: 7px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--col-signal);
    animation: tcg-col-blink 1.8s steps(2, jump-none) infinite;
}

@keyframes tcg-col-blink {
    from { opacity: 1; }
    to { opacity: .15; }
}

/* a collection not out yet: only the people who run the shop see it */
.tcg-col-tag {
    display: inline-block;
    margin-right: 12px;
    padding: 0 7px;
    border: 1px solid var(--col-signal);
    color: var(--col-signal);
    font-family: var(--col-label);
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.tcg-col-kicker .tcg-col-tag {
    margin-right: 0;
}

/* a collection's name, as large as its longest word allows */
.tcg-col .tcg-col-title {
    --room: 72vw;
    margin: 14px 0 0;
    color: #ffffff;
    font-family: var(--col-label);
    font-size: min(clamp(40px, 9.4vw, 132px), calc(var(--room) / (var(--chars, 6) * 1.18)));
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tcg-col .tcg-col-title a {
    color: #ffffff;
}

.tcg-col .tcg-col-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    margin-top: 28px;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, .72);
    color: #ffffff;
    font-family: var(--col-label);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .2em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}

.tcg-col .tcg-col-button span {
    transition: transform .25s ease;
}

.tcg-col .tcg-col-button:hover {
    background: #ffffff;
    color: #111111;
}

.tcg-col .tcg-col-button:hover span {
    transform: translateX(4px);
}

/* the facts of a collection, in a ruled bar */
.tcg-col-spec {
    display: flex;
    border-top: 1px solid var(--col-line);
}

.tcg-col-spec > div {
    flex: 1 1 0;
    min-width: 0;
    padding: 15px 18px 18px 0;
}

.tcg-col-spec > div + div {
    padding-left: 18px;
    border-left: 1px solid var(--col-line);
}

.tcg-col-spec dt {
    color: var(--col-mute);
    font-size: 9px;
}

.tcg-col-spec dd {
    margin-top: 5px;
    color: #ffffff;
    font-family: var(--col-label);
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* a part of the page: its number, its name, something on the side */
.tcg-col-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: clamp(20px, 2.6vw, 36px);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--col-line);
    color: #ffffff;
}

.tcg-col-head__no {
    flex: none;
    min-width: 34px;
    color: var(--col-mute);
}

.tcg-col .tcg-col-head h2 {
    flex: 1;
    min-width: 0;
    color: inherit;
    font-family: var(--col-label);
    font-size: clamp(15px, 1.5vw, 20px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tcg-col-head__side {
    flex: none;
    color: var(--col-mute);
}

.tcg-col a.tcg-col-head__side {
    padding: 8px 0;
    color: #111111;
}

.tcg-col a.tcg-col-head__side span {
    display: inline-block;
    transition: transform .25s ease;
}

.tcg-col a.tcg-col-head__side:hover span {
    transform: translateX(4px);
}

.tcg-col-head--ink {
    border-color: rgba(17, 17, 17, .16);
    color: #111111;
}

.tcg-col-head--ink .tcg-col-head__no {
    color: #6f6d66;
}


/* ---------------------------------------------------------
   STAGE — the newest collection, on /collections/
--------------------------------------------------------- */

.tcg-col-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    padding: calc(var(--col-chrome) + 22px) var(--col-gutter) 0;
    overflow: hidden;
}

.tcg-col-stage__media,
.tcg-col-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #161616;
}

/* covers are shown without colour: the colour starts with the looks */
.tcg-col .tcg-col-stage__image,
.tcg-col .tcg-col-hero__image {
    filter: grayscale(1) contrast(1.06);
}

.tcg-col .tcg-col-stage__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity .7s ease, transform 5s cubic-bezier(.16, .8, .24, 1);
}

.tcg-col .tcg-col-stage__image.is-on {
    opacity: 1;
    transform: scale(1);
}

.tcg-col-stage__shade,
.tcg-col-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .12) 28%, rgba(0, 0, 0, .2) 52%, rgba(0, 0, 0, .86) 100%);
}

.tcg-col-stage__top {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tcg-col-stage__content {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    padding-bottom: 32px;
}

.tcg-col .tcg-col-stage__line,
.tcg-col .tcg-col-hero__line {
    max-width: 520px;
    margin-top: clamp(24px, 2.2vw, 30px);
    color: rgba(255, 255, 255, .9);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.45;
}

.tcg-col-stage__strip {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    display: flex;
    gap: 8px;
    padding-bottom: 32px;
}

.tcg-col .tcg-col-stage__thumb {
    position: relative;
    display: block;
    width: 66px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    opacity: .5;
    outline: 1px solid transparent;
    outline-offset: 2px;
    transition: opacity .25s ease, outline-color .25s ease;
}

.tcg-col .tcg-col-stage__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tcg-col-stage__thumb span {
    position: absolute;
    left: 5px;
    bottom: 4px;
    font-family: var(--col-label);
    font-size: 8px;
    line-height: 1;
    letter-spacing: .12em;
    text-shadow: 0 0 6px rgba(0, 0, 0, .7);
}

.tcg-col .tcg-col-stage__thumb.is-on,
.tcg-col .tcg-col-stage__thumb:hover {
    opacity: 1;
    outline-color: #ffffff;
}

.tcg-col-stage .tcg-col-spec {
    grid-column: 1 / -1;
    grid-row: 3;
}

.tcg-col-stage--empty {
    height: auto;
    min-height: 70vh;
    background: #111111;
}

.tcg-col-stage--empty .tcg-col-stage__content {
    padding-bottom: 70px;
}


/* ---------------------------------------------------------
   TICKER
--------------------------------------------------------- */

.tcg-col-ticker {
    overflow: hidden;
    border-top: 1px solid var(--col-line);
    border-bottom: 1px solid var(--col-line);
}

.tcg-col-ticker__run {
    display: flex;
    align-items: center;
    width: max-content;
    padding: 14px 0;
    color: #ffffff;
    white-space: nowrap;
    animation: tcg-col-ticker 46s linear infinite;
}

.tcg-col-ticker__run span,
.tcg-col-ticker__run i {
    margin-right: 30px;
}

.tcg-col-ticker__run i {
    width: 5px;
    height: 5px;
    background: var(--col-signal);
}

/* the line is written four times over: one of them is a quarter of it */
@keyframes tcg-col-ticker {
    to { transform: translateX(-25%); }
}


/* ---------------------------------------------------------
   INDEX — every collection, a ruled band and its strip of photos
--------------------------------------------------------- */

.tcg-col-list {
    padding: clamp(50px, 7vw, 104px) var(--col-gutter) clamp(30px, 5vw, 70px);
}

.tcg-col-list .tcg-col-head {
    margin-bottom: 0;
}

.tcg-col .tcg-col-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    grid-template-areas:
        "no label go"
        "no title go"
        "no line meta"
        "strip strip strip";
    column-gap: 22px;
    padding: clamp(24px, 3vw, 40px) 0 clamp(26px, 3.4vw, 46px);
    border-bottom: 1px solid var(--col-line);
    color: #ffffff;
}

.tcg-col-row__text {
    display: contents;
}

.tcg-col-row__no {
    grid-area: no;
    padding-top: 2px;
    color: var(--col-mute);
    font-size: 12px;
}

.tcg-col-row__label {
    grid-area: label;
    color: var(--col-mute);
}

.tcg-col-row__title {
    grid-area: title;
    margin-top: 8px;
    font-family: var(--col-label);
    /* never wider than the row, however long its longest word */
    font-size: min(clamp(26px, 4.2vw, 62px), calc((100vw - 2 * var(--col-gutter)) / (var(--chars, 8) * 1.18)));
    line-height: 1.02;
    text-transform: uppercase;
}

.tcg-col-row__line {
    grid-area: line;
    max-width: 480px;
    margin-top: 16px;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    line-height: 1.45;
}

.tcg-col-row__meta {
    grid-area: meta;
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 18px;
    color: var(--col-mute);
}

.tcg-col-row__go {
    grid-area: go;
    align-self: start;
    justify-self: end;
    padding-top: 2px;
}

.tcg-col-row__go i {
    display: inline-block;
    margin-left: 8px;
    font-style: normal;
    transition: transform .25s ease;
}

.tcg-col-row:hover .tcg-col-row__go i {
    transform: translateX(5px);
}

.tcg-col-row__strip {
    grid-area: strip;
    display: flex;
    gap: 8px;
    margin-top: clamp(20px, 2.4vw, 32px);
}

/* the photos keep their own shape and share one height */
.tcg-col-row__face {
    position: relative;
    flex: var(--r, 1.5) 1 0;
    min-width: 0;
    aspect-ratio: var(--r, 1.5);
    overflow: hidden;
    background: #171717;
}

.tcg-col .tcg-col-row__face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter .5s ease, transform 1s cubic-bezier(.16, .8, .24, 1);
}

.tcg-col-row__face-no {
    position: absolute;
    left: 20px;
    bottom: 16px;
    color: #ffffff;
    font-size: 9px;
    text-shadow: 0 0 8px rgba(0, 0, 0, .6);
}

/* with a pointer: the strips rest in grey and wake under it */
@media (hover: hover) {

    .tcg-col .tcg-col-row__face img {
        filter: grayscale(1) brightness(.78) contrast(1.06);
    }

    .tcg-col .tcg-col-row:hover .tcg-col-row__face img {
        filter: none;
        transform: scale(1.025);
    }
}


/* ---------------------------------------------------------
   ONWARD — three ruled ways out
--------------------------------------------------------- */

.tcg-col-onward {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--col-line);
}

.tcg-col-list + .tcg-col-onward {
    border-top: 0;
}

.tcg-col .tcg-col-onward a {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 104px;
    padding: 26px var(--col-gutter);
    color: #ffffff;
    transition: background .2s ease, color .2s ease;
}

.tcg-col .tcg-col-onward a + a {
    border-left: 1px solid var(--col-line);
}

.tcg-col-onward span {
    color: var(--col-mute);
}

.tcg-col-onward strong {
    flex: 1;
    font-family: var(--col-label);
    font-size: clamp(14px, 1.5vw, 19px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tcg-col-onward i {
    font-style: normal;
    transition: transform .25s ease;
}

.tcg-col .tcg-col-onward a:hover {
    background: #ffffff;
    color: #111111;
}

.tcg-col .tcg-col-onward a:hover span {
    color: #6f6d66;
}

.tcg-col .tcg-col-onward a:hover i {
    transform: translateX(5px);
}


/* ---------------------------------------------------------
   HERO — one collection's cover
--------------------------------------------------------- */

.tcg-col-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    padding: calc(var(--col-chrome) + 22px) var(--col-gutter) 0;
    overflow: hidden;
}

.tcg-col .tcg-col-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: tcg-col-settle 2.6s cubic-bezier(.16, .8, .24, 1) both;
}

@keyframes tcg-col-settle {
    from { transform: scale(1.07); }
    to { transform: scale(1); }
}

.tcg-col-hero__content {
    padding-bottom: 32px;
}

.tcg-col-hero .tcg-col-path {
    position: absolute;
    top: calc(var(--col-chrome) + 14px);
    left: var(--col-gutter);
}


/* ---------------------------------------------------------
   CONTENTS — the parts of the page, numbered
--------------------------------------------------------- */

.tcg-col-toc {
    display: flex;
    padding: 0 var(--col-gutter);
    overflow-x: auto;
    border-bottom: 1px solid var(--col-line);
    scrollbar-width: none;
}

.tcg-col-toc::-webkit-scrollbar {
    display: none;
}

.tcg-col .tcg-col-toc a {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin-right: 34px;
    color: rgba(255, 255, 255, .86);
    white-space: nowrap;
    transition: color .2s ease;
}

.tcg-col-toc a span {
    color: var(--col-mute);
}

.tcg-col .tcg-col-toc a:hover {
    color: #ffffff;
}


/* ---------------------------------------------------------
   NOTES
--------------------------------------------------------- */

.tcg-col-notes {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 0 40px;
    padding: clamp(54px, 8vw, 120px) var(--col-gutter) clamp(34px, 5vw, 70px);
    scroll-margin-top: var(--col-chrome);
}

.tcg-col-notes .tcg-col-head {
    align-self: start;
    margin: 0;
    padding: 6px 0 0;
    border: 0;
}

.tcg-col-notes__text {
    max-width: 780px;
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
    line-height: 1.6;
}

.tcg-col .tcg-col-notes__text p {
    margin: 0 0 1.1em;
    color: inherit;
}

.tcg-col .tcg-col-notes__text > p:first-child {
    margin-bottom: .9em;
    color: #ffffff;
    font-size: clamp(19px, 2.1vw, 29px);
    line-height: 1.36;
}

.tcg-col .tcg-col-notes__text > :last-child {
    margin-bottom: 0;
}

.tcg-col .tcg-col-notes__text a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tcg-col .tcg-col-notes__text h2,
.tcg-col .tcg-col-notes__text h3 {
    margin: 1.6em 0 .7em;
    color: #ffffff;
    font-family: var(--col-label);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   FRAME — one photo, wherever it stands
--------------------------------------------------------- */

.tcg-col-frame {
    position: relative;
    min-width: 0;
}

.tcg-col .tcg-col-frame__open {
    position: relative;
    display: block;
    aspect-ratio: var(--r, 1.5);
    overflow: hidden;
    background: #171717;
    cursor: zoom-in;
}

.tcg-col .tcg-col-frame__open img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(.16, .8, .24, 1);
}

.tcg-col .tcg-col-frame__open:hover img {
    transform: scale(1.025);
}

/* corner ticks, as on a contact sheet */
.tcg-col-frame__ticks {
    --t: 12px;
    --c: rgba(255, 255, 255, .86);
    position: absolute;
    inset: 10px;
    pointer-events: none;
    background:
        linear-gradient(var(--c), var(--c)) left top / var(--t) 1px no-repeat,
        linear-gradient(var(--c), var(--c)) left top / 1px var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) right top / var(--t) 1px no-repeat,
        linear-gradient(var(--c), var(--c)) right top / 1px var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) left bottom / var(--t) 1px no-repeat,
        linear-gradient(var(--c), var(--c)) left bottom / 1px var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) right bottom / var(--t) 1px no-repeat,
        linear-gradient(var(--c), var(--c)) right bottom / 1px var(--t) no-repeat;
}

.tcg-col-frame__plus {
    position: absolute;
    right: 22px;
    bottom: 18px;
    color: #ffffff;
    font-size: 9px;
    text-shadow: 0 0 8px rgba(0, 0, 0, .6);
    transition: opacity .25s ease;
}

@media (hover: hover) {

    .tcg-col-frame__plus {
        opacity: 0;
    }

    .tcg-col-frame__open:hover .tcg-col-frame__plus,
    .tcg-col-frame__open:focus-visible .tcg-col-frame__plus {
        opacity: 1;
    }
}

.tcg-col-frame__caption {
    display: flex;
    align-items: baseline;
    gap: 14px;
    min-height: 34px;
    padding-top: 10px;
    color: #ffffff;
}

.tcg-col-frame__no {
    flex: none;
}

/* a line of the photo's own, such as the name of a painting */
.tcg-col-frame__note {
    margin-left: auto;
    color: var(--col-mute);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: right;
    text-transform: none;
}

/* where there is no room for the names: how many pieces the photo holds */
.tcg-col-frame__count {
    display: none;
    margin-left: auto;
    color: var(--col-mute);
}

.tcg-col-frame__worn {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 16px;
    margin-left: auto;
}

.tcg-col .tcg-col-frame__worn a {
    padding: 3px 0;
    color: var(--col-mute);
    letter-spacing: .14em;
    transition: color .2s ease;
}

.tcg-col .tcg-col-frame__worn a::before {
    content: "+ ";
    color: var(--col-signal);
}

.tcg-col .tcg-col-frame__worn a:hover {
    color: #ffffff;
}


/* ---------------------------------------------------------
   RUNWAY — the looks pass in a line
--------------------------------------------------------- */

.tcg-col-run {
    --frame-h: clamp(280px, 60vh, 700px);
    position: relative;
    padding: clamp(30px, 5vw, 70px) 0 clamp(26px, 4vw, 56px);
    scroll-margin-top: var(--col-chrome);
}

.tcg-col-run__pin {
    display: flex;
    flex-direction: column;
}

.tcg-col-run__head {
    align-items: center;
    margin-right: var(--col-gutter);
    margin-left: var(--col-gutter);
}

.tcg-col-run__count {
    flex: none;
    color: var(--col-mute);
}

.tcg-col-run__count b {
    color: #ffffff;
    font-weight: 400;
}

.tcg-col-run__nav {
    flex: none;
    display: flex;
    gap: 6px;
}

.tcg-col .tcg-col-run__nav button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--col-line);
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.tcg-col .tcg-col-run__nav button:hover {
    background: #ffffff;
    color: #111111;
}

.tcg-col .tcg-col-run__nav button:disabled {
    background: transparent;
    color: #ffffff;
    opacity: .3;
    cursor: default;
}

.tcg-col-run__view {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding: 0 var(--col-gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tcg-col-run__view::-webkit-scrollbar {
    display: none;
}

.tcg-col-run__track {
    position: relative;
    flex: none;
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 1.6vw, 24px);
    width: max-content;
    padding: 0 var(--col-gutter);
}

.tcg-col-run .tcg-col-frame {
    flex: none;
    width: min(calc(var(--frame-h) * var(--r, 1.5)), 86vw);
    scroll-snap-align: start;
}

/* the last thing in the line: the way down to the pieces */
.tcg-col .tcg-col-run__end {
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: min(300px, 70vw);
    height: var(--frame-h);
    padding: 20px 22px;
    border: 1px solid var(--col-line);
    color: #ffffff;
    scroll-snap-align: start;
    transition: background .2s ease, color .2s ease;
}

.tcg-col-run__end span {
    color: var(--col-mute);
}

.tcg-col-run__end strong {
    font-family: var(--col-label);
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 400;
    line-height: 1.08;
    text-transform: uppercase;
}

.tcg-col-run__end i {
    font-style: normal;
}

.tcg-col .tcg-col-run__end:hover {
    background: #ffffff;
    color: #111111;
}

.tcg-col .tcg-col-run__end:hover span {
    color: #6f6d66;
}

/* how far down the line the visitor is */
.tcg-col-run__line {
    position: relative;
    height: 1px;
    margin: clamp(16px, 2.2vw, 28px) var(--col-gutter) 0;
    background: var(--col-line);
}

.tcg-col-run__line i {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffffff;
    transform: scaleX(var(--p, 0));
    transform-origin: left center;
}

/* with a mouse and room to spare the section holds the screen and the
   page's own scrolling walks the looks through it (collections.js) */
.tcg-col-run.is-pinned {
    --frame-h: clamp(240px, calc(100vh - var(--col-chrome) - 232px), 760px);
    padding: 0;
    scroll-margin-top: 0;
}

.tcg-col-run.is-pinned .tcg-col-run__pin {
    position: sticky;
    top: 0;
    justify-content: space-between;
    height: 100vh;
    padding: calc(var(--col-chrome) + 16px) 0 26px;
    overflow: hidden;
}

.tcg-col-run.is-pinned .tcg-col-run__head {
    margin-bottom: 0;
}

.tcg-col-run.is-pinned .tcg-col-run__view {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 0;
    overflow: hidden;
}

.tcg-col-run.is-pinned .tcg-col-run__track {
    will-change: transform;
}

.tcg-col-run.is-pinned .tcg-col-frame {
    width: calc(var(--frame-h) * var(--r, 1.5));
}

.tcg-col-run.is-pinned .tcg-col-run__line {
    margin-top: 0;
}


/* ---------------------------------------------------------
   FILM
--------------------------------------------------------- */

.tcg-col-film,
.tcg-col-sheet {
    padding: clamp(40px, 6vw, 90px) var(--col-gutter) clamp(30px, 4vw, 60px);
    scroll-margin-top: var(--col-chrome);
}

.tcg-col-player {
    position: relative;
    width: min(100%, calc(82vh * var(--r, 1.7778)));
    aspect-ratio: var(--r, 1.7778);
    margin: 0 auto;
    background: #000000;
}

.tcg-col .tcg-col-player video,
.tcg-col .tcg-col-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}


/* ---------------------------------------------------------
   SHEET — a further chapter of photos, as a contact sheet
--------------------------------------------------------- */

.tcg-col-sheet__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px clamp(8px, 1.2vw, 16px);
}

.tcg-col-sheet .tcg-col-frame {
    flex: calc(var(--r, 1.5) * 100) 1 calc(var(--r, 1.5) * 360px);
    max-width: 100%;
}

/* a sheet's frames are too narrow for names: each says how many
   pieces it holds, and the viewer lists them */
.tcg-col-sheet .tcg-col-frame__worn {
    display: none;
}

.tcg-col-sheet .tcg-col-frame__count {
    display: block;
}

/* keeps the last row from stretching to the full width */
.tcg-col-sheet__grid::after {
    content: "";
    flex: 100000 1 0;
}


/* ---------------------------------------------------------
   PIECES — the lights come up: the shop's paper, the shop's cards
--------------------------------------------------------- */

.tcg-col-pieces {
    margin: clamp(30px, 4vw, 60px) 14px 14px;
    padding: clamp(34px, 4.6vw, 64px) calc(var(--col-gutter) - 14px) clamp(44px, 6vw, 84px);
    border-radius: 22px;
    background: var(--col-paper);
    color: var(--col-ink);
    scroll-margin-top: var(--col-chrome);
}

.tcg-col-pieces__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 6px;
}


/* ---------------------------------------------------------
   NEXT — the collection before this one
--------------------------------------------------------- */

.tcg-col .tcg-col-next {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 72vh;
    padding: 70px var(--col-gutter) 44px;
    overflow: hidden;
    color: #ffffff;
}

.tcg-col .tcg-col-next__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(.62);
    transition: filter .6s ease, transform 1.4s cubic-bezier(.16, .8, .24, 1);
}

.tcg-col .tcg-col-next:hover .tcg-col-next__image {
    filter: grayscale(0) brightness(.78);
    transform: scale(1.03);
}

.tcg-col-next__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .78) 100%);
}

.tcg-col-next__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.tcg-col-next__text strong {
    font-family: var(--col-label);
    font-size: min(clamp(32px, 8vw, 108px), calc(72vw / (var(--chars, 6) * 1.18)));
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.tcg-col-next__meta {
    color: rgba(255, 255, 255, .8);
}

.tcg-col-next__meta i {
    display: inline-block;
    margin-left: 10px;
    font-style: normal;
    transition: transform .25s ease;
}

.tcg-col-next:hover .tcg-col-next__meta i {
    transform: translateX(6px);
}


/* ---------------------------------------------------------
   VIEWER — a photo at full size, the pieces worn in it beside it
--------------------------------------------------------- */

html.tcg-col-lock,
html.tcg-col-lock body {
    overflow: hidden !important;
}

.tcg-col-viewer {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: auto minmax(0, 1fr);
    background: rgba(8, 8, 8, .98);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
}

.admin-bar .tcg-col-viewer {
    top: 32px;
}

.tcg-col-viewer.is-open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.tcg-col-viewer.is-bare {
    grid-template-columns: minmax(0, 1fr);
}

.tcg-col-viewer__bar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px var(--col-gutter);
    border-bottom: 1px solid var(--col-line);
}

.tcg-col-viewer__where,
.tcg-col-viewer__close,
.tcg-col-viewer__label {
    font-family: var(--col-label);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.tcg-col-viewer .tcg-col-viewer__close {
    min-height: 48px;
    padding: 0 0 0 20px;
    border: 0;
    border-radius: 0;
    background: none;
    color: #ffffff;
    cursor: pointer;
}

.tcg-col-viewer__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 22px 76px;
}

.tcg-col-viewer .tcg-col-viewer__stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tcg-col-viewer .tcg-col-viewer__prev,
.tcg-col-viewer .tcg-col-viewer__next {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    padding: 0;
    border: 1px solid var(--col-line);
    border-radius: 0;
    background: rgba(0, 0, 0, .45);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.tcg-col-viewer .tcg-col-viewer__prev {
    left: 14px;
}

.tcg-col-viewer .tcg-col-viewer__next {
    right: 14px;
}

.tcg-col-viewer .tcg-col-viewer__prev:hover,
.tcg-col-viewer .tcg-col-viewer__next:hover {
    background: #ffffff;
    color: #111111;
}

.tcg-col-viewer.is-single .tcg-col-viewer__prev,
.tcg-col-viewer.is-single .tcg-col-viewer__next {
    display: none;
}

.tcg-col-viewer__side {
    min-height: 0;
    padding: 22px 22px 30px;
    overflow-y: auto;
    border-left: 1px solid var(--col-line);
}

.tcg-col-viewer.is-bare .tcg-col-viewer__side {
    display: none;
}

.tcg-col-viewer__label {
    margin: 0 0 8px;
    color: var(--col-mute);
}

.tcg-col-viewer .tcg-col-piece {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--col-line);
    color: #ffffff;
}

.tcg-col-piece__tile {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 4px;
    background: #e9e6df;
}

.tcg-col-viewer .tcg-col-piece__tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.tcg-col-piece__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tcg-col-piece__name {
    font-family: var(--col-label);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tcg-col-piece__colour {
    color: var(--col-mute);
    font-size: 12px;
}

.tcg-col-piece__price {
    font-size: 13px;
}

.tcg-col-piece.is-soldout .tcg-col-piece__price {
    color: var(--col-mute);
}

.tcg-col-piece__go {
    transition: transform .25s ease;
}

.tcg-col-piece:hover .tcg-col-piece__go {
    transform: translateX(4px);
}


/* ---------------------------------------------------------
   ARRIVAL — parts rise into place as they are reached
   (only once collections.js has said it is running)
--------------------------------------------------------- */

html.tcg-col-js .tcg-col [data-tcg-rise] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .9s cubic-bezier(.16, .8, .24, 1);
}

html.tcg-col-js .tcg-col [data-tcg-rise].is-in {
    opacity: 1;
    transform: none;
}


/* ---------------------------------------------------------
   TABLETS
--------------------------------------------------------- */

@media (max-width: 1024px) {

    .tcg-col,
    .tcg-col-viewer {
        --col-chrome: 56px;
    }

    .tcg-col .tcg-col-title {
        --room: calc(100vw - 2 * var(--col-gutter));
    }

    .tcg-col-pieces__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tcg-col-notes {
        grid-template-columns: minmax(0, 1fr);
    }

    .tcg-col-notes .tcg-col-head {
        margin-bottom: 22px;
    }

    .tcg-col-viewer {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .tcg-col-viewer__side {
        max-height: 38vh;
        padding: 16px var(--col-gutter) 22px;
        border-top: 1px solid var(--col-line);
        border-left: 0;
    }
}


/* ---------------------------------------------------------
   PHONES
--------------------------------------------------------- */

@media (max-width: 767px) {

    .admin-bar .tcg-col-viewer {
        top: 46px;
    }

    .tcg-col-stage,
    .tcg-col-hero {
        min-height: 560px;
    }

    .tcg-col-stage {
        grid-template-columns: minmax(0, 1fr);
    }

    .tcg-col-stage__strip {
        display: none;
    }

    .tcg-col-stage__content,
    .tcg-col-hero__content {
        padding-bottom: 24px;
    }

    .tcg-col .tcg-col-title {
        font-size: min(clamp(36px, 13vw, 132px), calc(var(--room) / (var(--chars, 6) * 1.18)));
    }

    /* the path, and under it what is on */
    .tcg-col-stage__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .tcg-col .tcg-col-button {
        margin-top: 22px;
    }

    /* the facts, two to a line */
    .tcg-col-spec {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tcg-col-spec > div {
        padding: 11px 12px 12px 0;
    }

    .tcg-col-spec > div + div {
        padding-left: 0;
        border-left: 0;
    }

    .tcg-col-spec > div:nth-child(even) {
        padding-left: 14px;
        border-left: 1px solid var(--col-line);
    }

    .tcg-col-spec > div:nth-child(n + 3) {
        border-top: 1px solid var(--col-line);
    }

    .tcg-col-spec dd {
        margin-top: 3px;
        font-size: 12px;
    }

    .tcg-col-ticker__run {
        padding: 12px 0;
    }

    /* a collection in the index: number and way in, name, photos, facts */
    .tcg-col .tcg-col-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "no go"
            "label label"
            "title title"
            "line line"
            "strip strip"
            "meta meta";
        column-gap: 14px;
    }

    .tcg-col-row__no,
    .tcg-col-row__go {
        padding-top: 0;
    }

    .tcg-col-row__label {
        margin-top: 18px;
    }

    .tcg-col-row__title {
        font-size: min(clamp(28px, 9vw, 44px), calc((100vw - 2 * var(--col-gutter)) / (var(--chars, 8) * 1.18)));
    }

    .tcg-col-row__strip {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 20px;
    }

    .tcg-col-row__face:first-child {
        flex: 0 0 100%;
    }

    .tcg-col-row__meta {
        justify-content: flex-start;
        margin-top: 16px;
    }

    .tcg-col-row__face-no {
        left: 18px;
        bottom: 14px;
    }

    .tcg-col-onward {
        grid-template-columns: minmax(0, 1fr);
    }

    .tcg-col .tcg-col-onward a {
        min-height: 78px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .tcg-col .tcg-col-onward a + a {
        border-top: 1px solid var(--col-line);
        border-left: 0;
    }

    .tcg-col .tcg-col-toc a {
        margin-right: 26px;
    }

    .tcg-col-head {
        gap: 12px;
    }

    .tcg-col-head__no {
        min-width: 26px;
    }

    .tcg-col-run {
        --frame-h: clamp(260px, 56vh, 520px);
    }

    .tcg-col-run .tcg-col-frame {
        scroll-snap-align: center;
    }

    .tcg-col-run__view {
        scroll-snap-type: x mandatory;
    }

    .tcg-col-run__nav {
        display: none;
    }

    .tcg-col-frame__caption {
        flex-direction: column;
        gap: 2px;
    }

    .tcg-col-frame__worn {
        justify-content: flex-start;
        margin-left: 0;
    }

    .tcg-col-frame__note {
        margin-left: 0;
        text-align: left;
    }

    .tcg-col .tcg-col-frame__worn a {
        padding: 7px 0;
    }

    /* two upright photos to a row, a wide one on its own */
    .tcg-col-sheet .tcg-col-frame {
        flex-basis: calc(var(--r, 1.5) * 215px);
    }

    .tcg-col-sheet .tcg-col-frame__count {
        margin-left: 0;
    }

    .tcg-col-pieces {
        margin-right: 8px;
        margin-left: 8px;
        padding-right: 10px;
        padding-left: 10px;
        border-radius: 18px;
    }

    .tcg-col-pieces__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 6px;
    }

    .tcg-col .tcg-col-next {
        min-height: 60vh;
        padding-bottom: 32px;
    }

    .tcg-col-next__text strong {
        font-size: min(clamp(32px, 12vw, 108px), calc((100vw - 2 * var(--col-gutter)) / (var(--chars, 6) * 1.18)));
    }

    .tcg-col-viewer__stage {
        padding: 12px 10px;
    }

    .tcg-col-viewer .tcg-col-viewer__prev,
    .tcg-col-viewer .tcg-col-viewer__next {
        top: auto;
        bottom: 12px;
        width: 44px;
        height: 44px;
        margin-top: 0;
    }

    .tcg-col-viewer .tcg-col-viewer__prev {
        left: 10px;
    }

    .tcg-col-viewer .tcg-col-viewer__next {
        right: 10px;
    }
}


@media (prefers-reduced-motion: reduce) {

    .tcg-col-ticker__run,
    .tcg-col-live i,
    .tcg-col .tcg-col-hero__image {
        animation: none;
    }

    .tcg-col .tcg-col-stage__image,
    .tcg-col .tcg-col-frame__open img,
    .tcg-col .tcg-col-row__face img,
    .tcg-col .tcg-col-next__image {
        transition: opacity .3s ease;
        transform: none !important;
    }

    html.tcg-col-js .tcg-col [data-tcg-rise] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
