/* ==========================================================================
   The RI shop (2026-11-21): the Shop page (custom-shop.hbs), each thing for
   sale (custom-product.hbs, partials/ri-product.hbs) and the cart link.
   From the settled sketch, sketches/shop-2026-11-14/refined.html: a large
   picture beside a short block of text, the details like a wall label, a
   grey panel for the grid, Add to cart as a red hairline. Uses the tokens in
   ri-look.css.
   ========================================================================== */

.ri-wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* The Shop page's head: the title and his line or two */
.ri-shop-head { padding: 4vmin 40px 8px; }
.ri-shop .ri-title {
    font-family: var(--ri-title-font);
    font-weight: 400;
    color: var(--ri-red);
    letter-spacing: 0;
    line-height: 1.2;
}
.ri-shop-head .ri-title { font-size: 4.08rem; margin: 0 0 14px; }
/* his bag beside the title, in ink, a little under twice the letters' height
   (from his screengrab, then "a bit smaller"; Hanif, 2026-11-22) */
.ri-shop-head .ri-title-bag { display: flex; align-items: center; gap: .4em; }
.ri-title-bag .ri-icon-bag { flex: none; width: 1.02em; height: 1.41em; background-color: var(--ri-ink); vertical-align: 0; }
.ri-shop-head .ri-intro { margin-top: 0; max-width: 34em; font-size: 1.6rem; }
.ri-shop-head .ri-intro > * + * { margin-top: .8em; }

/* A feature: the picture large, the text beside it */
.ri-feature {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
    gap: 72px;
    align-items: center;
    padding: 64px 0;
}
.ri-feature.ri-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
.ri-feature.ri-flip .ri-pic { order: 2; }
.ri-feature + .ri-feature { border-top: 1px solid var(--ri-line); }
.ri-shop .ri-feature { align-items: start; }
.ri-product-page .ri-feature { padding-top: 24px; }

.ri-wall { background: var(--ri-wall); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ri-view { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; }
.ri-view.on { display: flex; }
.ri-frame { background: #161311; padding: 7px; width: 58%; box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .4); }
.ri-mat { background: #fff; padding: 15% 12%; }
.ri-mat img, .ri-flat { display: block; width: 100%; }
.ri-flat { width: 56%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.ri-detail { width: 100%; height: 100%; background-color: #fff; background-repeat: no-repeat; background-size: 240%; background-position: 50% 48%; }
.ri-photo {   /* a card or an unframed print: on the wall, with a soft shadow */
    width: 78%; height: auto; max-height: 86%; object-fit: contain; background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 16px 32px -18px rgba(0, 0, 0, .35);
}
.ri-framed { height: 86%; width: auto; max-width: 86%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .22)); }

.ri-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.ri-thumbs button {
    width: 44px; height: 44px; padding: 0; cursor: pointer;
    border: 1px solid var(--ri-line); background: #fff center / cover no-repeat;
    opacity: .55; transition: opacity .2s, border-color .2s;
}
.ri-thumbs button:first-child { background-size: 70%; background-color: var(--ri-wall); }
.ri-thumbs button.ri-thumb-detail { background-size: 300%; background-position: 50% 48%; }
.ri-thumbs button:hover { opacity: 1; }
.ri-thumbs button.on { opacity: 1; border-color: var(--ri-grey); }

/* A preview video as one more view (ri-shop.js; 2026-11-22) */
.ri-video {
    display: block; width: 86%; height: auto; max-height: 86%; background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 16px 32px -18px rgba(0, 0, 0, .35);
}
.ri-thumbs { align-items: center; }
.ri-thumbs button.ri-thumb-video { position: relative; background-size: cover; background-position: 50% 50%; background-color: #000; }
.ri-thumbs button.ri-thumb-video::after {   /* a small play mark */
    content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
    border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--ri-red);   /* red: the drawings are on white */
}
.ri-preview-link {
    margin-left: 8px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ri-red);
}
.ri-preview-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* The text beside it */
.ri-text { font-size: 1.5rem; line-height: 1.65; }
.ri-kicker, .ri-soon {
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ri-grey);
}
.ri-feature .ri-title { font-size: 1.8rem; margin: 10px 0 8px; }
.ri-product-page .ri-feature .ri-title { font-size: 2.8rem; }
.ri-title a { color: inherit; }
.ri-solid { font-size: 1.5rem; font-weight: 300; line-height: 1.55; margin: 0 0 18px; }
.ri-words { margin: 0 0 24px; font-size: 1.5rem; }
.ri-words.gh-content > * + * { margin-top: 1em; }

/* The wall label: a list in the editor, each line starting with a bold label */
.ri-words ul { list-style: none; padding: 0; margin: 1.6em 0; border-top: 1px solid var(--ri-line); font-size: 1.3rem; }
.ri-words ul li {   /* the label in its own column; the rest of the line beside it */
    display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 16px;
    padding: 9px 0; margin: 0; border-bottom: 1px solid var(--ri-line);
}
/* the label column only as wide as the longest label, the same for every line
   (Hanif, 2026-11-22: less space between label and description) */
@supports (grid-template-columns: subgrid) {
    .ri-words ul { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 1.4em; }
    .ri-words ul li { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: 1.4em; }
}
.ri-words ul li + li { margin-top: 0; }
.ri-words ul li strong, .ri-words ul li b { font-weight: 400; color: var(--ri-grey); }

/* Price and Add to cart */
.ri-buy { margin-top: 8px; min-height: 48px; }
.ri-price { font-size: 1.7rem; font-weight: 300; margin: 0 0 18px; }
.ri-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 30px; cursor: pointer;
    font-family: var(--ri-font); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    border: 1px solid var(--ri-ink); background: var(--ri-ink); color: #fff; border-radius: 0;
    transition: background-color .2s, color .2s, border-color .2s;
}
.ri-btn-cart { background: transparent; color: var(--ri-ink); border-color: var(--ri-red); }   /* red: an outline at rest, filled on hover */
.ri-btn-cart:hover { background: var(--ri-red); color: #fff; }
.ri-pending .ri-btn-cart:hover { background: transparent; color: var(--ri-ink); }
.ri-btn-cart:disabled { border-color: var(--ri-line); color: var(--ri-grey); cursor: default; background: transparent; }
.ri-btn-line { background: transparent; color: var(--ri-ink); }
.ri-btn-line:hover { background: var(--ri-ink); color: #fff; }
.ri-soon { color: var(--ri-red); margin: 8px 0 18px; }
.ri-ph { color: var(--ri-grey); }
.ri-pending .ri-btn { cursor: default; }
.ri-buy:has(shopify-context > :not(template)) .ri-pending { display: none; }   /* the product is in Shopify */


/* A row of small pictures on a grey panel, between the features (the shop
   sketch's "Prints"; Hanif, 2026-11-21): the heading and a line, then three
   across, each a picture on white with its title and price beneath */
.ri-row { margin: 24px 0 56px; }
.ri-row { border-top: 1px solid var(--ri-line); }
.ri-row-head { margin: 40px 0 24px; }
.ri-row-title { font-family: var(--ri-font); font-weight: 500; font-size: 2rem; letter-spacing: 0; margin: 0; }
.ri-row-text { margin: 6px 0 0; max-width: 36em; font-size: 1.5rem; font-weight: 300; line-height: 1.55; }
.ri-grid-panel { background: var(--ri-wall); padding: 40px 56px; }
.ri-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
.ri-card { display: block; color: inherit; }
.ri-card-img { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.ri-card-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.ri-card:hover .ri-card-img img { opacity: .88; }
.ri-card-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 1.3rem; }
.ri-card-t { font-weight: 300; }
.ri-card-p { color: var(--ri-grey); font-weight: 300; white-space: nowrap; }
.ri-row + .ri-feature { border-top: 0; }

/* The header: the cart (his bag, with the count beside it); the shop's menu
   item stays red on a product's page */
.ri-cart-link[hidden] { display: none; }
.ri-cart-link { display: inline-flex; align-items: center; gap: 5px; }
.ri-cart-count { font-size: 11px; color: var(--ri-red); }
.ri-cart-count:empty { display: none; }
.ri-cart-phone { display: none; }
@media (max-width: 991px) {
    .ri-cart-phone:not([hidden]) {
        display: inline-flex; align-items: center; gap: 5px;
        margin-left: auto; margin-right: 18px; padding: 6px; border: 0; background: none; cursor: pointer;
        color: var(--ri-ink);
    }
    .header-actions .ri-cart-link { display: none; }   /* the phone's bag stands in for it */
}
body.tag-hash-shop .site-header .menu-item-shop,
body.tag-hash-shop .site-header .menu-item-merch { color: var(--ri-red); }

@media (max-width: 900px) {
    .ri-wrap { padding: 0 16px; }
    .ri-shop-head { padding: 4vmin 16px 0; }
    .ri-feature, .ri-feature.ri-flip { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
    .ri-feature.ri-flip .ri-pic { order: 0; }
    .ri-grid-panel { margin: 0 -16px; padding: 28px 16px; }
    .ri-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}
@media (max-width: 560px) {
    .ri-shop-head .ri-title { font-size: 3.4rem; }
}

/* ==========================================================================
   Ghost's product card (the Projects page, and anywhere one is used), laid
   out like the shop's feature (Hanif, 2026-11-21: "i like 'A' with reluctance
   red titles"; sketches/project-cards-2026-11-21/): the picture on the grey
   wall, the title and words beside it, the button a red outline; sides
   alternate from one card to the next, with a hairline between. In the wide
   column, at most 904px across, as in the sketch. The card is still made in the editor as before. Ghost's own card
   styles (cards.min.css) load after these, so the selectors carry .gh-content.
   Pages only (2026-11-22): in a post the same card is "New in this post",
   styled further down.
   ========================================================================== */
body:not(.post-template) .gh-content > .kg-product-card {   /* in the wide column, but no wider than the sketch (904px; Hanif, 2026-11-21: 8770 "is the correct version") */
    grid-column: wide-start / wide-end;
    justify-self: center;
    max-width: 904px;
}
body:not(.post-template) .gh-content .kg-product-card { display: block; width: 100%; }
body:not(.post-template) .gh-content .kg-product-card + .kg-product-card { border-top: 1px solid var(--ri-line); }

body:not(.post-template) .gh-content .kg-product-card .kg-product-card-container {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
    grid-template-rows: 1fr auto auto auto 1fr;   /* the text centred beside the wall */
    column-gap: 56px;
    row-gap: 0;
    align-items: start;
    max-width: none;
    width: 100%;
    padding: 48px 0;
    background: transparent;
    color: var(--ri-ink);
    border-radius: 0;
    box-shadow: none;
    font-family: var(--ri-font);
}
body:not(.post-template) .gh-content .kg-product-card .kg-product-card-container::before {   /* the wall */
    content: "";
    grid-column: 1;
    grid-row: 1 / -1;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--ri-wall);
}
body:not(.post-template) .gh-content .kg-product-card .kg-product-card-image {
    grid-column: 1;
    grid-row: 1 / -1;
    justify-self: center;
    align-self: center;
    width: 74%;
    height: 74%;
    contain: size;          /* its own size doesn't stretch the rows; the wall sets them */
    object-fit: contain;
    filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .16));
}
body:not(.post-template) .gh-content .kg-product-card .kg-product-card-title-container { grid-column: 2; grid-row: 2; }
body:not(.post-template) .gh-content .kg-product-card h4.kg-product-card-title {
    font-family: var(--ri-title-font);
    font-weight: 400;
    color: var(--ri-red);
    font-size: 2.2rem;
    line-height: 1.25;
    letter-spacing: 0;
    margin: 0 0 10px;
}
body:not(.post-template) .gh-content .kg-product-card .kg-product-card-rating { grid-column: 2; grid-row: 2; padding-left: 0; }
body:not(.post-template) .gh-content .kg-product-card .kg-product-card-description { grid-column: 2; grid-row: 3; margin: 0 0 24px; }
body:not(.post-template) .gh-content .kg-product-card .kg-product-card-description :is(p, ul, ol) {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 1;
    margin-top: 0;
}
body:not(.post-template) .gh-content .kg-product-card a.kg-product-card-button {
    grid-column: 2;
    grid-row: 4;
    justify-self: start;
    width: auto;
    height: auto;
    padding: 13px 26px;
    border: 1px solid var(--ri-red);
    border-radius: 0;
    background: transparent;
    color: var(--ri-ink);
    font: 500 11px/1 var(--ri-font);
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
body:not(.post-template) .gh-content .kg-product-card a.kg-product-card-button:hover { background: var(--ri-red); color: #fff; opacity: 1; }

/* every second card the other way round */
body:not(.post-template) .gh-content .kg-product-card:nth-child(even of .kg-product-card) .kg-product-card-container { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
body:not(.post-template) .gh-content .kg-product-card:nth-child(even of .kg-product-card) .kg-product-card-container::before,
body:not(.post-template) .gh-content .kg-product-card:nth-child(even of .kg-product-card) .kg-product-card-image { grid-column: 2; }
body:not(.post-template) .gh-content .kg-product-card:nth-child(even of .kg-product-card) :is(.kg-product-card-title-container, .kg-product-card-rating, .kg-product-card-description),
body:not(.post-template) .gh-content .kg-product-card:nth-child(even of .kg-product-card) a.kg-product-card-button { grid-column: 1; }

/* phones: one column, the picture first */
@media (max-width: 760px) {
    body:not(.post-template) .gh-content .kg-product-card .kg-product-card-container,
    body:not(.post-template) .gh-content .kg-product-card:nth-child(even of .kg-product-card) .kg-product-card-container {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        padding: 32px 0;
    }
    body:not(.post-template) .gh-content .kg-product-card .kg-product-card-container::before,
    body:not(.post-template) .gh-content .kg-product-card .kg-product-card-image,
    body:not(.post-template) .gh-content .kg-product-card:nth-child(even of .kg-product-card) .kg-product-card-container::before,
    body:not(.post-template) .gh-content .kg-product-card:nth-child(even of .kg-product-card) .kg-product-card-image { grid-column: 1; grid-row: 1; }
    body:not(.post-template) .gh-content .kg-product-card .kg-product-card-title-container,
    body:not(.post-template) .gh-content .kg-product-card:nth-child(even of .kg-product-card) .kg-product-card-title-container { grid-column: 1; grid-row: 2; margin-top: 24px; }
    body:not(.post-template) .gh-content .kg-product-card .kg-product-card-description,
    body:not(.post-template) .gh-content .kg-product-card:nth-child(even of .kg-product-card) .kg-product-card-description { grid-column: 1; grid-row: 3; }
    body:not(.post-template) .gh-content .kg-product-card a.kg-product-card-button,
    body:not(.post-template) .gh-content .kg-product-card:nth-child(even of .kg-product-card) a.kg-product-card-button { grid-column: 1; grid-row: 4; }
}

/* ==========================================================================
   The shop's card on the home page (2026-11-22; partials/ri-shop-card.hbs),
   after the end-of-post block in the shop sketch: a grey box with a hairline;
   for each thing in the shop a small picture, its tag, its title in
   Reluctance red, its short line, and View as a red outline (filled when the
   row is hovered).
   ========================================================================== */
/* its heading in the feed's style; more white between the box and the blog's heading (Hanif, 2026-11-22) */
.ri-shopcard { margin-top: 2vmin; margin-bottom: 11vmin; }   /* less white above, under the cover's note (Hanif, 2026-11-22) */
.ri-shopcard .ri-shopcard-header { margin: 0 0 2.4rem; }
.ri-shopcard-box { background: var(--ri-wall); border: 1px solid var(--ri-line); padding: 22px 32px 8px; }
.ri-shopcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.ri-shopcard-kicker, .ri-shopcard-tag {
    font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.ri-shopcard-kicker { font-size: 12px; }   /* the box's label, as "New in this post" (cards normalised, Hanif, 2026-11-24) */
.ri-shopcard-kicker { color: var(--ri-red); }   /* "new drops": the link to the shop */
.ri-shopcard-kicker:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.ri-shopcard-item {
    display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 28px; align-items: center;
    padding: 20px 0; color: var(--ri-ink);
}
.ri-shopcard-item + .ri-shopcard-item { border-top: 1px solid #dcdad7; }
.ri-shopcard-item:hover { opacity: 1; }
.ri-shopcard-pic { display: flex; align-items: center; justify-content: flex-start; height: 96px; }   /* the picture's edge in line with the label (2026-11-24) */
.ri-shopcard-pic img { max-width: 100%; max-height: 96px; width: auto; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18)); }
.ri-shopcard-tag { color: #555; }   /* darker (2026-11-24) */
.ri-shopcard-soon { color: var(--ri-red); }
.ri-kicker-soon { color: var(--ri-red); white-space: nowrap; }   /* " · Coming soon" beside a thing's kicker (2026-11-22) */
.ri-shopcard-title {
    font-family: var(--ri-title-font); font-weight: 400; font-size: 2rem; line-height: 1.25;
    letter-spacing: 0; color: var(--ri-red); margin: 6px 0 4px;
}
.ri-shopcard-line { margin: 0; font-size: 1.4rem; font-weight: 400; line-height: 1.5; color: #444; }   /* as the "New in this post" card's line (2026-11-24) */
.ri-shopcard-btn {
    padding: 10px 18px; border: 1px solid var(--ri-red); background: #fff; color: var(--ri-ink);
    font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    transition: background-color .2s, color .2s;
}
.ri-shopcard-item:hover .ri-shopcard-btn { background: var(--ri-red); color: #fff; }

@media (max-width: 767px) {
    .ri-shopcard { margin-top: 12px; margin-bottom: 56px; }
    .ri-shopcard-box { padding: 18px 16px 4px; }
    .ri-shopcard-item { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
    .ri-shopcard-pic { height: 72px; }
    .ri-shopcard-pic img { max-height: 72px; }
    .ri-shopcard-item { grid-template-rows: auto auto; row-gap: 10px; }
    .ri-shopcard-pic { grid-row: 1 / span 2; align-self: start; }
    .ri-shopcard-btn { grid-column: 2; grid-row: 2; justify-self: start; }   /* View shown on phones too, under the line, as on the post card (Hanif, 2026-11-24) */
}

/* On a thing's own page, under Add to cart or "Know when it's ready": back to the shop (2026-11-22) */
.ri-more-shop { margin: 26px 0 0; font-size: 1.4rem; }
.ri-more-shop a { display: inline-flex; align-items: center; gap: 10px; color: var(--ri-red); }
.ri-more-shop a:hover { opacity: 1; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.ri-more-shop .ri-icon-bag { vertical-align: 0; }

/* The shop's box at the end of a post (2026-11-22; partials/content.hbs) */
.ri-shopcard.ri-shopcard--post { margin: 64px auto 0; }
.ri-shopcard--post + .gh-canvas .single-footer { margin-top: 48px; }
.post-template article:has(.gh-content .kg-product-card) .ri-shopcard--post { display: none; }   /* the post has a card of its own */
@media (max-width: 767px) { .ri-shopcard.ri-shopcard--post { margin: 48px auto 0; } }

/* ==========================================================================
   "New in this post" (2026-11-22): Ghost's product card, in a post, made by
   Hanif in the editor when a post has a drawing worth printing (+ → Product:
   the picture, a title, a line, a button). Styled like the end-of-post block
   in the shop sketch: a grey box, a small picture, the title in Reluctance
   red, the line, the button a red outline. Several cards in a row make one
   box, a row each, under one "New in this post". Pages keep the shop-feature
   style above.
   ========================================================================== */
.post-template .gh-content .kg-product-card { display: block; width: 100%; max-width: none; margin-top: 2.4em; }
.post-template .gh-content .kg-product-card + .kg-product-card { margin-top: 0; }
.post-template .gh-content .kg-product-card .kg-product-card-container {
    position: relative; display: grid; width: 100%; max-width: none;
    grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-rows: auto auto;   /* the picture at the column's start, its edge in line with the label (Hanif, 2026-11-24) */
    column-gap: 28px; row-gap: 4px; align-items: center;
    padding: 20px 32px; margin: 0;
    background: var(--ri-wall); border: 1px solid var(--ri-line); border-radius: 0; box-shadow: none;
}
/* the first card carries the label, as a row of the grid, so the button can sit
   in the middle of the whole box (Hanif, 2026-11-24: "centre the button vertically") */
.post-template .gh-content .kg-product-card:not(.kg-product-card + .kg-product-card) .kg-product-card-container { grid-template-rows: auto auto auto; }
.post-template .gh-content .kg-product-card:not(.kg-product-card + .kg-product-card) .kg-product-card-container::before {
    content: "New in this post"; grid-column: 1 / span 2; grid-row: 1; margin-bottom: 10px;
    font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ri-red);   /* a little bigger, and red like the shop box's label (Hanif, 2026-11-24) */
}
.post-template .gh-content .kg-product-card:not(.kg-product-card + .kg-product-card) .kg-product-card-image { grid-row: 2 / span 2; }
.post-template .gh-content .kg-product-card:not(.kg-product-card + .kg-product-card) .kg-product-card-title-container { grid-row: 2; }
.post-template .gh-content .kg-product-card:not(.kg-product-card + .kg-product-card) .kg-product-card-description { grid-row: 3; }
.post-template .gh-content .kg-product-card:not(.kg-product-card + .kg-product-card) a.kg-product-card-button { grid-row: 1 / span 3; }
.post-template .gh-content .kg-product-card + .kg-product-card .kg-product-card-container {   /* the next drawing: the same box, a hairline between */
    border-top: 0;
    background-image: linear-gradient(#dcdad7, #dcdad7); background-size: calc(100% - 64px) 1px; background-position: 32px 0; background-repeat: no-repeat;
}
.post-template .gh-content .kg-product-card .kg-product-card-image {
    grid-column: 1; grid-row: 1 / span 2; justify-self: start;
    width: auto; max-width: 96px; height: auto; max-height: 96px; margin: 0;
    background: #fff; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18));
}
.post-template .gh-content .kg-product-card .kg-product-card-title-container { grid-column: 2; grid-row: 1; align-self: end; }
.post-template .gh-content .kg-product-card h4.kg-product-card-title {
    margin: 0; font-family: var(--ri-title-font); font-weight: 400; font-size: 2rem; line-height: 1.25; letter-spacing: 0; color: var(--ri-red);
}
.post-template .gh-content .kg-product-card .kg-product-card-rating { display: none; }
.post-template .gh-content .kg-product-card .kg-product-card-description { grid-column: 2; grid-row: 2; align-self: start; margin: 0; }
.post-template .gh-content .kg-product-card .kg-product-card-description :is(p, ul, ol) { margin: 0; font-size: 1.4rem; font-weight: 400; line-height: 1.5; color: #444; }   /* darker and a touch bigger: the light grey was hard to read (Hanif, 2026-11-24) */
.post-template .gh-content .kg-product-card a.kg-product-card-button {
    grid-column: 3; grid-row: 1 / span 2; align-self: center; justify-self: end;
    display: inline-flex; align-items: center; height: auto; width: auto; margin: 0; padding: 10px 18px;
    border: 1px solid var(--ri-red); border-radius: 0; background: #fff; color: var(--ri-ink);
    font-family: var(--ri-font); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
    transition: background-color .2s, color .2s;
}
.post-template .gh-content .kg-product-card a.kg-product-card-button:hover { background: var(--ri-red); color: #fff; opacity: 1; }
@media (max-width: 767px) {
    .post-template .gh-content .kg-product-card .kg-product-card-container { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 16px; padding-left: 16px; padding-right: 16px; }
    .post-template .gh-content .kg-product-card + .kg-product-card .kg-product-card-container { background-size: calc(100% - 32px) 1px; background-position: 16px 0; }
    .post-template .gh-content .kg-product-card .kg-product-card-image { grid-row: 1 / span 3; max-width: 72px; max-height: 72px; align-self: start; }
    .post-template .gh-content .kg-product-card a.kg-product-card-button { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 10px; }
    /* the first card: the label on top, then picture, title, line and button */
    .post-template .gh-content .kg-product-card:not(.kg-product-card + .kg-product-card) .kg-product-card-container { grid-template-rows: auto auto auto auto; }
    .post-template .gh-content .kg-product-card:not(.kg-product-card + .kg-product-card) .kg-product-card-image { grid-row: 2 / span 3; }
    .post-template .gh-content .kg-product-card:not(.kg-product-card + .kg-product-card) a.kg-product-card-button { grid-row: 4; align-self: start; }
}

/* ==========================================================================
   The gallery (2026-11-22): the listing (gallery.hbs, partials/ri-item.hbs)
   on the shop's grey, white squares with the drawing whole; and a drawing's
   page (partials/content-gallery.hbs) in the product page's layout, with the
   clap, "Available as" and "I'd live with this" (partials/ri-interest.hbs).
   ========================================================================== */
.ri-gallery-head { padding-bottom: 28px; }
.ri-gallery .ri-gallery-panel { margin-bottom: 40px; }
.ri-gallery .loop-wrap + .loop-wrap { margin-top: 56px; }   /* each further screen the theme loads */
.ri-tile { min-width: 0; }
.ri-tile-link { display: block; color: var(--ri-ink); }
.ri-tile-link:hover { opacity: 1; }
.ri-tile-img { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 8%; background: #fff; }
.ri-tile-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.ri-tile-link:hover .ri-tile-img img { opacity: .88; }
.ri-tile-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 1.3rem; }
.ri-tile-t { font-weight: 300; transition: color .2s; }
.ri-tile-link:hover .ri-tile-t { color: var(--ri-red); }
.ri-tile-p { color: var(--ri-grey); font-weight: 300; white-space: nowrap; }

/* a drawing's page */
.ri-drawing { padding-bottom: 8px; }
.ri-drawing-share { margin-top: 56px; }

/* the older and newer drawings, named, above the picture (Hanif, 2026-11-22: "above") */
.ri-drawing-nav { display: flex; justify-content: space-between; gap: 24px; padding: 0 0 14px; width: calc((100% - 72px) * 8 / 13); }   /* as wide as the picture's grey (the feature's 8fr of 8fr + 5fr, gap 72px), so the right arrow ends at its edge (Hanif, 2026-11-22) */
.post-template.tag-gallery .site-content { padding-top: 32px; }   /* less white above the arrows and the drawing (Hanif, 2026-11-22) */
.ri-drawing-nav > div { flex: 1 1 0; min-width: 0; display: flex; }
.ri-drawing-nav-right { justify-content: flex-end; }
.ri-drawing-nav .navigation-link { display: flex; align-items: flex-start; gap: 10px; min-width: 0; max-width: 100%; color: var(--ri-ink); }
.ri-drawing-nav-right .navigation-link { text-align: right; }
.ri-drawing-nav .navigation-link:hover { opacity: 1; }
.ri-drawing-nav .navigation-icon { flex: none; width: 22px; height: 22px; margin: 2px 0 0; }
.ri-drawing-nav .ri-nav-title { margin-top: 5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* a long title cut short with … */
@media (max-width: 900px) { .ri-drawing-nav { width: auto; } }
.ri-drawing.ri-product-page .ri-feature { padding-top: 0; }

/* "Available as": the wall label's look */
.ri-available { list-style: none; padding: 0; margin: 1.6em 0; border-top: 1px solid var(--ri-line); font-size: 1.3rem; }
.ri-available li { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 1.4em; padding: 9px 0; margin: 0; border-bottom: 1px solid var(--ri-line); }
.ri-available strong { font-weight: 400; color: var(--ri-grey); }

/* the clap, with his note beside it (2026-11-22; partials/ri-interest.hbs) */
.ri-interest-clap { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; align-items: center; margin-top: 44px; }   /* room above for the clap's count (Hanif, 2026-11-22) */
.ri-clap applause-button { display: block; width: 52px; color: var(--ri-red); }
/* the widget's count sits above the circle without taking room, so the circle
   itself centres on the note (Hanif, 2026-11-22: "centre aligned with the text block") */
.ri-clap applause-button .style-root { position: relative; }
.ri-clap applause-button .clap-count { position: absolute; left: 0; right: 0; bottom: 100%; margin: 0 0 4px; text-align: center; }
.ri-interest-note { margin: 0; font-size: 1.4rem; font-weight: 300; line-height: 1.6; color: var(--ri-ink); }
.ri-interest-note a { color: var(--ri-red); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Shopify's cart popup (2026-11-22; Hanif: "Can we change that or is it
   inherited?"). Shopify names parts of its cart for the page to style
   (shopify.dev, shopify-cart, "CSS parts"): dialog, primary-button (Checkout),
   secondary-button (the quantity and remove buttons), tertiary-button (apply
   a discount), input-field, line-image, line-heading, line-price,
   line-options, discount-code, discount-error. Here: square, the item's name
   in Reluctance red, Checkout the site's red outline, filled on hover. The
   heading "Shopping cart", the close button and the "Discounts" row have no
   part, so they keep Shopify's look; the type is Jost throughout already
   (inherited from the page).
   ========================================================================== */
shopify-cart::part(dialog) { border-radius: 0; color: var(--ri-ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .16); }
shopify-cart::part(primary-button) {
    border-radius: 0; background: #fff; color: var(--ri-ink); border: 1px solid var(--ri-red);
    font-family: var(--ri-font); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    transition: background-color .2s, color .2s;
}
shopify-cart::part(primary-button):hover { background: var(--ri-red); color: #fff; }
shopify-cart::part(secondary-button),
shopify-cart::part(tertiary-button),
shopify-cart::part(input-field),
shopify-cart::part(line-image) { border-radius: 0; }
shopify-cart::part(line-heading) { font-family: var(--ri-title-font); font-weight: 400; font-size: 1.8rem; line-height: 1.3; color: var(--ri-red); }
shopify-cart::part(line-price) { font-weight: 400; }
