/*
 * The "shoply" theme (BrandSetting::THEMES): a quiet retail storefront
 * for a business that mostly sells products. White pages, hairline rules,
 * a light serif for headings over a plain sans, square product photos on
 * a soft panel, and solid square buttons that turn to an outline on hover.
 * Switching to it also puts the store right after the hero and hides the
 * food and drink sections (Theme default_sections), and the site calls
 * its store "Shop" (Theme merch_label).
 *
 * Colors and fonts come from the brand's CSS custom properties (set in
 * the public layout's <style> block): buttons use the primary with its
 * --color-on-primary text, the hero and cart panel the secondary with
 * --color-on-secondary, and the muted text and rules are mixed from the
 * text and background colors, so a business's own colors carry through.
 * The markup is shared with every other theme, so everything here hangs
 * off neutral hook classes (site-header, site-hero, section-title,
 * merch-product, merch-cart, and so on) scoped to data-theme="shoply".
 * Unlayered, so these rules win over Tailwind's utilities. classic.css is
 * linked on every public page too and supplies the base hamburger,
 * lightbox, and hero photo rules.
 */

body[data-layout="public"][data-theme="shoply"] {
  --sh-muted: color-mix(in srgb, var(--color-text) 62%, var(--color-background));
  --sh-rule: color-mix(in srgb, var(--color-text) 14%, var(--color-background));
  --sh-panel: var(--color-secondary);
  --sh-on-panel: var(--color-on-secondary);
  --sh-button: var(--color-primary);
  --sh-on-button: var(--color-on-primary);
  --sh-width: 1200px;

  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body[data-layout="public"][data-theme="shoply"] a {
  color: inherit;
}

body[data-layout="public"][data-theme="shoply"] main a.underline {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

body[data-layout="public"][data-theme="shoply"] a:focus-visible,
body[data-layout="public"][data-theme="shoply"] button:focus-visible,
body[data-layout="public"][data-theme="shoply"] input:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 3px;
}

body[data-layout="public"][data-theme="shoply"] h1,
body[data-layout="public"][data-theme="shoply"] h2,
body[data-layout="public"][data-theme="shoply"] h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Square corners and hairline rules everywhere. */
body[data-layout="public"][data-theme="shoply"] main .rounded {
  border-radius: 0;
}

body[data-layout="public"][data-theme="shoply"] main .border {
  border-color: var(--sh-rule);
}

/* ---------- Buttons: solid and square, an outline on hover ---------- */

/* main a.site-button comes after main a.underline, so a section's "Shop
   all" link (site-button underline) gets the button's look. */
body[data-layout="public"][data-theme="shoply"] .site-button,
body[data-layout="public"][data-theme="shoply"] main a.site-button,
body[data-layout="public"][data-theme="shoply"] .merch-variant__add,
body[data-layout="public"][data-theme="shoply"] .merch-cart__checkout {
  display: inline-block;
  padding: 0.95rem 2.25rem;
  border: 0;
  border-radius: 0;
  background: var(--sh-button);
  color: var(--sh-on-button);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

body[data-layout="public"][data-theme="shoply"] .site-button:hover,
body[data-layout="public"][data-theme="shoply"] main a.site-button:hover,
body[data-layout="public"][data-theme="shoply"] .merch-variant__add:hover,
body[data-layout="public"][data-theme="shoply"] .merch-cart__checkout:not(:disabled):hover {
  background: transparent;
  color: var(--color-heading);
  box-shadow: inset 0 0 0 1px currentColor;
}

/* ---------- Header: white, a hairline under it, quiet tracked links ---------- */

body[data-layout="public"][data-theme="shoply"] .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-background);
  color: var(--color-text);
  border-bottom: 1px solid var(--sh-rule);
}

body[data-layout="public"][data-theme="shoply"] .site-header nav {
  max-width: var(--sh-width);
  margin: 0 auto;
  min-height: 4.5rem;
  row-gap: 0.5rem;
}

body[data-layout="public"][data-theme="shoply"] .site-header__brand {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  gap: 0.75rem;
}

body[data-layout="public"][data-theme="shoply"] .site-header__logo {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

body[data-layout="public"][data-theme="shoply"] .site-header__links {
  gap: 1.75rem;
}

body[data-layout="public"][data-theme="shoply"] .site-header__links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-underline-offset: 0.4em;
}

body[data-layout="public"][data-theme="shoply"] .site-header__links a:hover,
body[data-layout="public"][data-theme="shoply"] .site-header__links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

body[data-layout="public"][data-theme="shoply"] .site-header__links .social-links {
  gap: 1rem;
}

/* ---------- Header contact: address, then phone · email (Theme header_contact) ---------- */

/* On the header row between the name and the links; on a phone, its own
   centered line under the row (after the menu toggle and the open menu),
   so the toggle stays beside the name. */
body[data-layout="public"][data-theme="shoply"] .site-header__contact {
  color: var(--sh-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 639px) {
  body[data-layout="public"][data-theme="shoply"] .site-header__contact {
    order: 10;
    flex-basis: 100%;
    text-align: center;
  }
}

body[data-layout="public"][data-theme="shoply"] .site-header__contact a,
body[data-layout="public"][data-theme="shoply"] .site-footer__contact a {
  text-decoration: none;
}

body[data-layout="public"][data-theme="shoply"] .site-header__contact a:hover,
body[data-layout="public"][data-theme="shoply"] .site-footer__contact a:hover {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- Header name and logo: faded in after the hero ----------
 * On the home page when it opens with the hero ([data-header-overlay]),
 * the hero already shows the name and logo, so the header's stay hidden
 * until the page has scrolled a tenth of the window
 * (site_header_controller.js sets data-scrolled-far) and fade back out on
 * the way up. They keep their space, so the row never shifts; hidden also
 * takes the link out of the tab order until it shows. Every other page
 * shows them as usual. */

body[data-layout="public"][data-theme="shoply"][data-header-overlay] .site-header__brand {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

body[data-layout="public"][data-theme="shoply"][data-header-overlay] .site-header[data-scrolled-far] .site-header__brand {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

/* ---------- Header: narrow-screen hamburger nav ----------
 * classic.css hides the toggle above the phone breakpoint and collapses
 * the links below it once site_header_controller.js sets [data-js]; this
 * only restyles the toggle and the open panel. */

body[data-layout="public"][data-theme="shoply"] .site-header__toggle {
  border-radius: 0;
  color: var(--color-text);
}

@media (max-width: 639px) {
  body[data-layout="public"][data-theme="shoply"] .site-header[data-compact] .site-header__logo {
    display: none;
  }

  body[data-layout="public"][data-theme="shoply"] .site-header[data-js][data-open] .site-header__links[data-collapsible] {
    gap: 0;
    padding: 0.25rem 0 0.75rem;
    background: var(--color-background);
    border-top: 1px solid var(--sh-rule);
  }

  body[data-layout="public"][data-theme="shoply"] .site-header[data-js][data-open] .site-header__links[data-collapsible] a {
    border-bottom: 1px solid var(--sh-rule);
  }

  body[data-layout="public"][data-theme="shoply"] .site-header[data-js][data-open] .site-header__links[data-collapsible] .social-links a {
    border-bottom: 0;
  }
}

/* ---------- Hero: a calm panel, or the photo under a light overlay ---------- */

body[data-layout="public"][data-theme="shoply"] .site-hero {
  padding: 6.5rem 1.25rem;
  background: var(--sh-panel);
  color: var(--sh-on-panel);
}

body[data-layout="public"][data-theme="shoply"] .site-hero--photo {
  min-height: 60vh;
  justify-content: center;
  color: #ffffff;
}

body[data-layout="public"][data-theme="shoply"] .site-hero__overlay {
  background: rgb(0 0 0 / 0.38);
}

body[data-layout="public"][data-theme="shoply"] .site-hero__content {
  gap: 1.25rem;
}

/* 44% larger than the markup's size-20 (5rem): 20% more, twice. */
body[data-layout="public"][data-theme="shoply"] .site-hero__logo {
  width: 7.2rem;
  height: 7.2rem;
}

body[data-layout="public"][data-theme="shoply"] .site-hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

body[data-layout="public"][data-theme="shoply"] .site-hero__location {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-layout="public"][data-theme="shoply"] .site-hero__description {
  max-width: 36rem;
  font-size: 1.05rem;
  opacity: 0.8;
}

/* The hero's buttons sit on the panel, not the page: the panel's text
   color filled, the panel color on it. */
body[data-layout="public"][data-theme="shoply"] .site-hero .site-button {
  margin-top: 0.5rem;
  background: var(--sh-on-panel);
  color: var(--sh-panel);
}

body[data-layout="public"][data-theme="shoply"] .site-hero .site-button:hover {
  background: transparent;
  color: var(--sh-on-panel);
}

body[data-layout="public"][data-theme="shoply"] .site-hero--photo .site-button {
  background: #ffffff;
  color: #111111;
}

body[data-layout="public"][data-theme="shoply"] .site-hero--photo .site-button:hover {
  background: transparent;
  color: #ffffff;
}

/* ---------- Sections: centered titles in a roomy column ---------- */

/* Two neighbouring sections sit 4.5rem apart (2.25rem each side). */
body[data-layout="public"][data-theme="shoply"] main > section:not(.site-hero),
body[data-layout="public"][data-theme="shoply"] main > div.merch-page {
  width: 100%;
  max-width: var(--sh-width);
  margin-inline: auto;
  padding-block: 2.25rem;
  gap: 2rem;
}

body[data-layout="public"][data-theme="shoply"] .section-title {
  align-self: center;
  font-size: 2rem;
  text-align: center;
}

body[data-layout="public"][data-theme="shoply"] main > section > .site-button {
  align-self: center;
}

body[data-layout="public"][data-theme="shoply"] .about-summary {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

body[data-layout="public"][data-theme="shoply"] .hours-location {
  align-items: center;
  text-align: center;
}

body[data-layout="public"][data-theme="shoply"] .hours-location__day {
  width: 100%;
  max-width: 20rem;
  border-bottom: 1px solid var(--sh-rule);
  padding-block: 0.35rem;
}

/* ---------- Product grid: the home section and the store page ---------- */

body[data-layout="public"][data-theme="shoply"] .merch-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.25rem;
}

@media (min-width: 640px) {
  body[data-layout="public"][data-theme="shoply"] .merch-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem 1.75rem;
  }
}

@media (min-width: 1024px) {
  body[data-layout="public"][data-theme="shoply"] .merch-page .merch-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body[data-layout="public"][data-theme="shoply"] .merch-product {
  gap: 0.35rem;
  padding: 0;
  border: 0;
}

body[data-layout="public"][data-theme="shoply"] .merch-product__link {
  gap: 0.9rem;
  text-decoration: none;
}

body[data-layout="public"][data-theme="shoply"] .merch-product__photo {
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sh-panel);
  transition: opacity 0.2s;
}

/* A product without a photo keeps the grid square with an empty panel. */
body[data-layout="public"][data-theme="shoply"] .merch-product__link:not(:has(.merch-product__photo))::before {
  content: "";
  display: block;
  aspect-ratio: 1;
  background: var(--sh-panel);
}

body[data-layout="public"][data-theme="shoply"] .merch-product__link:hover .merch-product__photo {
  opacity: 0.85;
}

body[data-layout="public"][data-theme="shoply"] .merch-product__name {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

body[data-layout="public"][data-theme="shoply"] .merch-product__link:hover .merch-product__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

body[data-layout="public"][data-theme="shoply"] .merch-product__price {
  color: var(--sh-muted);
  font-size: 0.9rem;
}

/* ---------- Store page ---------- */

body[data-layout="public"][data-theme="shoply"] .merch-page__title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  text-align: center;
}

body[data-layout="public"][data-theme="shoply"] .merch-page__empty {
  color: var(--sh-muted);
  text-align: center;
}

/* ---------- Product page: photos beside the details ----------
 * On a phone the photos come first, then the name, price, description,
 * and sizes (the markup's order puts the name before the photos and the
 * description before the price). */

body[data-layout="public"][data-theme="shoply"] .merch-product-page {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-block: 2.5rem 4.5rem;
  gap: 1.25rem;
}

body[data-layout="public"][data-theme="shoply"] .merch-product-page__back { order: 0; }
body[data-layout="public"][data-theme="shoply"] .merch-product-page__photos { order: 1; }
body[data-layout="public"][data-theme="shoply"] .merch-product-page__title { order: 2; }
body[data-layout="public"][data-theme="shoply"] .merch-product-page__price { order: 3; }
body[data-layout="public"][data-theme="shoply"] .merch-product-page__description { order: 4; }
body[data-layout="public"][data-theme="shoply"] .merch-product-page__variants { order: 5; }
body[data-layout="public"][data-theme="shoply"] .merch-product-page .merch-cart { order: 6; }

body[data-layout="public"][data-theme="shoply"] .merch-product-page__back {
  align-self: flex-start;
  color: var(--sh-muted);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

body[data-layout="public"][data-theme="shoply"] .merch-product-page__back::before {
  content: "\2190\00a0";
}

body[data-layout="public"][data-theme="shoply"] .merch-product-page__back:hover {
  color: var(--color-text);
}

body[data-layout="public"][data-theme="shoply"] .merch-product-page__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

body[data-layout="public"][data-theme="shoply"] .merch-product-page__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sh-panel);
}

body[data-layout="public"][data-theme="shoply"] .merch-product-page__photo:first-child {
  grid-column: 1 / -1;
}

body[data-layout="public"][data-theme="shoply"] .merch-product-page__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

body[data-layout="public"][data-theme="shoply"] .merch-product-page__price {
  font-size: 1.2rem;
  font-weight: 400;
}

body[data-layout="public"][data-theme="shoply"] .merch-product-page__description {
  color: var(--sh-muted);
  line-height: 1.75;
}

@media (min-width: 768px) {
  body[data-layout="public"][data-theme="shoply"] .merch-product-page:has(.merch-product-page__photos) {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas:
      "back back"
      "photos title"
      "photos price"
      "photos description"
      "photos variants"
      "cart cart";
    grid-template-rows: auto auto auto auto 1fr auto;
    column-gap: 4rem;
    row-gap: 1.25rem;
    align-items: start;
  }

  body[data-layout="public"][data-theme="shoply"] .merch-product-page__back { grid-area: back; }
  body[data-layout="public"][data-theme="shoply"] .merch-product-page__photos { grid-area: photos; }
  body[data-layout="public"][data-theme="shoply"] .merch-product-page__title { grid-area: title; }
  body[data-layout="public"][data-theme="shoply"] .merch-product-page__price { grid-area: price; }
  body[data-layout="public"][data-theme="shoply"] .merch-product-page__description { grid-area: description; }
  body[data-layout="public"][data-theme="shoply"] .merch-product-page__variants { grid-area: variants; }
  body[data-layout="public"][data-theme="shoply"] .merch-product-page .merch-cart { grid-area: cart; }

  /* Without photos the details read as one narrow column. */
  body[data-layout="public"][data-theme="shoply"] .merch-product-page:not(:has(.merch-product-page__photos)) {
    max-width: 42rem;
  }
}

/* Sizes and options: one ruled row each, the add button at the end. */
body[data-layout="public"][data-theme="shoply"] .merch-product-page__variants {
  gap: 0;
  border-top: 1px solid var(--sh-rule);
}

body[data-layout="public"][data-theme="shoply"] .merch-variant {
  gap: 1rem;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid var(--sh-rule);
}

body[data-layout="public"][data-theme="shoply"] .merch-variant__label {
  flex: 1 1 auto;
  font-weight: 500;
}

body[data-layout="public"][data-theme="shoply"] .merch-variant__price {
  color: var(--sh-muted);
}

body[data-layout="public"][data-theme="shoply"] .merch-variant__add {
  padding: 0.7rem 1.2rem;
  font-size: 0.7rem;
}

body[data-layout="public"][data-theme="shoply"] .merch-variant__sold-out {
  color: var(--sh-muted);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Cart: a quiet panel with underlined fields ---------- */

body[data-layout="public"][data-theme="shoply"] .merch-cart {
  width: 100%;
  max-width: 36rem;
  align-self: center;
  justify-self: center;
  margin-top: 2rem;
  padding: 2.5rem 2rem;
  gap: 1.25rem;
  border: 0;
  border-radius: 0;
  background: var(--sh-panel);
  color: var(--sh-on-panel);
}

body[data-layout="public"][data-theme="shoply"] .merch-cart__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  text-align: center;
}

body[data-layout="public"][data-theme="shoply"] .merch-cart__items {
  gap: 0;
}

body[data-layout="public"][data-theme="shoply"] .merch-cart__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

body[data-layout="public"][data-theme="shoply"] .merch-cart__remove {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  opacity: 0.7;
  cursor: pointer;
}

body[data-layout="public"][data-theme="shoply"] .merch-cart__remove:hover {
  opacity: 1;
}

body[data-layout="public"][data-theme="shoply"] .merch-cart__empty {
  color: inherit;
  opacity: 0.7;
  text-align: center;
}

body[data-layout="public"][data-theme="shoply"] .merch-cart__errors {
  border-color: currentColor;
  border-radius: 0;
}

body[data-layout="public"][data-theme="shoply"] .merch-cart__form {
  max-width: none;
  gap: 1rem;
}

body[data-layout="public"][data-theme="shoply"] .merch-cart__field label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

body[data-layout="public"][data-theme="shoply"] .merch-cart__field input {
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 0;
  background: transparent;
  color: inherit;
}

body[data-layout="public"][data-theme="shoply"] .merch-cart__field input:focus {
  border-bottom-color: currentColor;
}

/* On the panel, the checkout button takes the panel's text color. */
body[data-layout="public"][data-theme="shoply"] .merch-cart__checkout {
  align-self: stretch;
  margin-top: 0.5rem;
  padding: 1.05rem;
  background: var(--sh-on-panel);
  color: var(--sh-panel);
}

body[data-layout="public"][data-theme="shoply"] .merch-cart__checkout:not(:disabled):hover {
  color: var(--sh-on-panel);
}

body[data-layout="public"][data-theme="shoply"] .merch-cart__checkout:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---------- Order status ---------- */

body[data-layout="public"][data-theme="shoply"] .merch-order-status {
  width: 100%;
  margin-inline: auto;
  padding-block: 4rem;
}

/* ---------- Footer: centered and muted ---------- */

body[data-layout="public"][data-theme="shoply"] .site-footer {
  align-items: center;
  padding: 3.5rem 1.25rem;
  border-color: var(--sh-rule);
  color: var(--sh-muted);
  text-align: center;
}

body[data-layout="public"][data-theme="shoply"] .site-footer__name {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
}

body[data-layout="public"][data-theme="shoply"] .site-footer .social-links {
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---------- About: the photo and story centered, like the rest of the page ---------- */

body[data-layout="public"][data-theme="shoply"] .about-photo {
  align-self: center;
}

body[data-layout="public"][data-theme="shoply"] .about-page > h1 {
  text-align: center;
}

body[data-layout="public"][data-theme="shoply"] .about-page > div {
  align-self: center;
  width: 100%;
}

/* Room for the print's tilt and shadow before the story starts. */
body[data-layout="public"][data-theme="shoply"] .about-page .about-photo {
  margin-bottom: 1rem;
}

/* ---------- Photos: old prints on a cream mat ----------
 * Every content photo (About, products, gallery, blog, specials, events,
 * reviews) looks like a print from a family album: a cream paper mat with
 * a thin rule around the picture, a slight tilt, and a soft shadow. All on
 * the img itself (padding shows the background as the mat), so the shared
 * markup doesn't change. Not the hero photo or logo (a background
 * and a mark, not prints), and nothing in a dialog or a crop preview
 * (photo_crop_controller.js positions those images itself). */

body[data-layout="public"][data-theme="shoply"] {
  --sh-mat: #f7f0e1;
  --sh-mat-rule: rgb(60 48 32 / 0.35);
  /* Declared here, not on the img, so a smaller photo's rule can override
     it without out-ranking the frame rule's :not() list. */
  --sh-mat-size: 0.75rem;
}

body[data-layout="public"][data-theme="shoply"] main img:not(.site-hero__photo, .site-hero__logo, dialog img, [data-photo-crop-cropped] img) {
  padding: var(--sh-mat-size);
  border-radius: 0;
  background: var(--sh-mat);
  outline: 1px solid var(--sh-mat-rule);
  outline-offset: calc(var(--sh-mat-size) * -1 + 1px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.18), 0 8px 18px rgb(0 0 0 / 0.14);
  rotate: -0.8deg;
  transition: rotate 0.25s, box-shadow 0.25s;
}

/* Prints in a row are laid down by hand, not squared up. */
body[data-layout="public"][data-theme="shoply"] main li:nth-child(even) img:not(dialog img, [data-photo-crop-cropped] img),
body[data-layout="public"][data-theme="shoply"] main img:not(.site-hero__photo, .site-hero__logo, dialog img, [data-photo-crop-cropped] img) + img {
  rotate: 0.7deg;
}

/* A linked print straightens up under the pointer. */
body[data-layout="public"][data-theme="shoply"] main a:hover img:not(.site-hero__logo, [data-photo-crop-cropped] img),
body[data-layout="public"][data-theme="shoply"] main a:focus-visible img:not(.site-hero__logo, [data-photo-crop-cropped] img) {
  rotate: 0deg;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.2), 0 12px 24px rgb(0 0 0 / 0.18);
}

/* Small thumbnails get a narrower mat. */
body[data-layout="public"][data-theme="shoply"] main img.special__photo,
body[data-layout="public"][data-theme="shoply"] main .event-card__photo img {
  --sh-mat-size: 0.25rem;
}

/* The product grid's empty square matches the prints around it. */
body[data-layout="public"][data-theme="shoply"] .merch-product__link:not(:has(.merch-product__photo))::before {
  background: var(--sh-mat);
  outline: 1px solid var(--sh-mat-rule);
  outline-offset: -0.75rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.18), 0 8px 18px rgb(0 0 0 / 0.14);
  rotate: -0.8deg;
}

@media (prefers-reduced-motion: reduce) {
  body[data-layout="public"][data-theme="shoply"] main img {
    transition: none;
  }
}
