/* Traci ART: shared site styles */

/* Fonts */
@font-face {
  font-family: "Arima";
  src: url("/assets/fonts/arima.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "Bellota Text";
  src: url("/assets/fonts/bellota-text-bold.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

@font-face {
  font-family: "Martel Sans";
  src: url("/assets/fonts/martel-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Martel Sans";
  src: url("/assets/fonts/martel-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Martel Sans";
  src: url("/assets/fonts/martel-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Brand colours and fonts */
:root {
  --purple: #403d95;
  --blue: #054699;
  --plum: #882f70;
  --aqua: #3bb7d8;
  /* the owner's chosen colour: a slightly darker shade of the logo splat */
  /* Pale versions of the brand colours, for box backgrounds. */
  --light-purple: #f6f6fb;
  --light-blue: #edf3fb;
  --light-plum: #fbeef7;
  --light-aqua: #eef8fb;
  /* Size of section and card headings across the site. To change just one, replace var(--heading-size) in its own rule with a size, e.g. 36px. */
  --heading-size: 30px;
  /* Size of the main title at the top of every page, on computers and on phones. */
  --title-size: 44px;
  --title-size-phone: 38px;
  /* Size of the coloured capitals line under a main title, e.g. "One-of-a-kind artwork by Traci Scerri". */
  --subtitle-size: 20px;
  /* Button hover: how much darker the colour goes, and how much the button shrinks. */
  --hover-darken: black 0%;
  --hover-press: scale(.92);
  /* Text links, prices and buy buttons. To use a different colour for these, replace var(--aqua). */
  --accent-text: var(--aqua);
  --ink: #080808;
  --grey: #6b6b6b;
  --white: #fff;
  /* Paragraph alignment on phones. To centre it again, change "left" to "center". */
  --phone-text-align: left;
  --font-heading: "Arima", Georgia, serif;
  --font-label: "Bellota Text", Georgia, serif;
  --font-body: "Martel Sans", Arial, sans-serif;
  --page-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/28px var(--font-body);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  color: var(--purple);
  text-decoration: underline;
}

a.button,
.menu a,
.icon-links a,
.back-to-top {
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.center {
  text-align: center;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  padding: 8px 16px;
  background: var(--purple);
  color: var(--white);
  z-index: 10;
}

.skip-link:focus {
  top: 8px;
  color: var(--white);
}

.visually-hidden,
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header and menu */
.site-header {
  padding-top: 10px;
  text-align: center;
}

.logo {
  display: inline-block;
}

.logo img {
  width: 160px;
}

/* The menu sits between fine aqua lines that fade out at both ends. */
.menu {
  width: min(92%, 860px);
  margin: 16px auto 40px;
  padding: 8px 0;
  background:
    linear-gradient(90deg, transparent, var(--aqua), transparent) top / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, var(--aqua), transparent) bottom / 100% 2px no-repeat;
}

.menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.menu a {
  display: block;
  padding: 8px 15px;
  color: var(--accent-text);
  font: 700 16px/24px var(--font-label);
  text-transform: uppercase;
  transition: color .3s;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--purple);
  text-decoration: none;
}

.basket-link {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.basket-count {
  margin-left: -3px;
}

/* Shared title */
.page-title {
  color: var(--purple);
  font: 500 var(--title-size)/1.2 var(--font-heading);
  text-align: center;
}

.page-title span {
  display: block;
  color: var(--accent-text);
  margin-top: 8px;
  font: 600 var(--subtitle-size)/1.2 var(--font-label);
  text-transform: uppercase;
}

/* Home: introduction */
.intro {
  width: min(92%, 982px);
  margin: 0 auto;
  text-align: center;
}

.intro picture {
  display: block;
  margin: 20px 0 30px;
}

.hero {
  width: 100%;
  border-radius: 10px;
}

.intro-lead {
  margin-bottom: 30px;
}

.intro-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 70px;
}

/* Home: three cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: min(92%, var(--page-width));
  margin: 70px auto 0;
  align-items: stretch;
  text-align: center;
}

.card {
  --tone: var(--purple);
}

.card-blue {
  --tone: var(--blue);
}

.card-plum {
  --tone: var(--plum);
}

.card h2 {
  padding-top: 10px;
  color: var(--tone);
  font: 500 var(--heading-size)/1.1 var(--font-heading);
}

.card-subtitle {
  padding: 10px 0;
  color: var(--tone);
  font: 600 20px/1.3 var(--font-label);
  text-transform: uppercase;
}

.card-image {
  display: block;
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s;
}

.card-image:hover img {
  transform: scale(1.1);
}

.ribbon {
  position: absolute;
  top: 22px;
  left: -42px;
  width: 150px;
  padding: 3px 0;
  background: var(--aqua);
  color: var(--purple);
  font: 600 14px/20px var(--font-label);
  text-transform: uppercase;
  transform: rotate(-45deg);
}

.card-text {
  padding: 10px;
  background: var(--tone);
  color: var(--white);
  font-weight: 600;
}

.card-text a {
  color: var(--white);
  text-decoration: underline;
}

.card-text a:hover {
  color: var(--white);
  text-decoration: none;
}

.button {
  display: inline-block;
  margin: 20px 0;
  padding: 8px 26px;
  border-radius: 32px;
  background: var(--tone, var(--purple));
  color: var(--white);
  font: 600 18px/24px var(--font-label);
  text-transform: uppercase;
  transition: background-color .2s, transform .15s;
}

.button:hover:not(:disabled),
.button:active:not(:disabled) {
  background: color-mix(in srgb, var(--tone, var(--purple)), var(--hover-darken));
  color: var(--white);
  text-decoration: none;
  transform: var(--hover-press);
}

.button-buy {
  --tone: var(--accent-text);
  border: 0;
  cursor: pointer;
}

.button-buy:disabled {
  opacity: .6;
  cursor: wait;
}

.button-wide {
  display: block;
  width: 100%;
  margin-bottom: 0;
  text-align: center;
}

/* Artwork cards, used on the shop and home pages */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
  text-align: center;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card-image {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-image .flip {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s;
}

.product-card-image:hover .flip {
  opacity: 1;
}

.product-card-title {
  margin: 16px 0 6px;
  font: 500 26px/1.2 var(--font-heading);
}

.product-card-title a {
  color: var(--purple);
}

.price.price-sold {
  color: var(--plum);
  text-transform: uppercase;
}

.price {
  margin: 0 0 10px;
  color: var(--accent-text);
  font: 600 19px/1.4 var(--font-label);
}

.product-card .button,
.product-card .buy {
  margin: auto 0 0;
}

.product-card .buy {
  width: 100%;
}

.product-card .button {
  padding: 5px 14px;
  font-size: 14px;
  line-height: 20px;
}

.status-label {
  color: var(--plum);
  font: 600 20px/1.4 var(--font-label);
  text-transform: uppercase;
}

@media (hover: none) {
  .product-card-image .flip {
    display: none;
  }
}

/* Home: artwork for sale and review quotes */
.featured,
.home-reviews {
  width: min(92%, var(--page-width));
  margin: 60px auto 0;
  text-align: center;
}

.featured h2,
.home-reviews h2 {
  margin-bottom: 30px;
  color: var(--purple);
  font: 500 var(--heading-size)/1.2 var(--font-heading);
}

.featured>.button,
.home-reviews>.button {
  margin-top: 30px;
  margin-bottom: 0;
}

/* The reviews sit on the same wavy marbled band as the carousel, so the cards inside it are white. */
.home-reviews {
  position: relative;
  width: 100%;
  margin-top: 70px;
  padding: 80px max(4%, calc((100% - var(--page-width)) / 2));
  background: #f4f5f5 url("/assets/img/abstract-background3-1600.webp") center / cover;
}

.home-reviews+.featured {
  margin-top: 70px;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Each review: the student's photo, with the quote card beside it. */
.quotes figure {
  display: grid;
  grid-template-columns: 130px 1fr;
  margin: 0;
}

.quotes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border-top: 4px solid var(--aqua);
  background: var(--white);
  text-align: left;
}

.quotes blockquote {
  margin: 0 0 12px;
  font-size: 17px;
}

.quotes figcaption {
  color: var(--purple);
  font: 600 16px/1.4 var(--font-label);
  text-transform: uppercase;
}

/* Shop page */
.shop-intro {
  width: min(92%, 860px);
  margin: 0 auto 50px;
  text-align: center;
}

.shop-intro p {
  margin-top: 20px;
}

.shop-intro h1+p {
  margin-top: 28px;
}

/* "To discuss custom artwork…" in a soft aqua box, like the home page sign-up. */
.shop-intro .shop-commission {
  display: table;
  margin: 24px auto 0;
  padding: 14px 26px;
  border-radius: 14px;
  background: var(--light-aqua);
}

.shop-intro .small-print {
  color: var(--grey);
  font-size: 13px;
  line-height: 20px;
}

.shop-grid {
  width: min(92%, var(--page-width));
  margin: 0 auto;
}

/* Artwork page */
.product {
  display: grid;
  grid-template-columns: 475px 1fr;
  gap: 35px;
  width: min(92%, 1140px);
  margin: 0 auto;
}

.gallery-main {
  display: block;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-main {
  cursor: zoom-in;
}

/* The large photo viewer that opens over an artwork page */
.viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #14122a;
  /* No text cursor or text highlighting when clicking the arrows. */
  caret-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.viewer::backdrop {
  background: transparent;
}

.viewer[open] {
  display: grid;
  place-items: center;
}

.viewer-image {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  object-fit: contain;
}

.viewer-close,
.viewer-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: var(--white);
  font: 400 34px/1 var(--font-body);
  cursor: pointer;
  transition: background-color .2s;
}

.viewer-close:hover,
.viewer-arrow:hover {
  background: var(--aqua);
}

.viewer-close {
  top: 16px;
  right: 16px;
}

.viewer-arrow {
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  padding-bottom: 4px;
}

.viewer-previous {
  left: 16px;
}

.viewer-next {
  right: 16px;
}

.viewer-count {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 100%;
  color: var(--white);
  font: 600 15px/1 var(--font-label);
  text-align: center;
}

/* Stops the page behind from scrolling while the viewer is open. */
.viewer-open {
  overflow: hidden;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.gallery-thumbs a {
  display: block;
  aspect-ratio: 1;
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs a[aria-current] img {
  outline: 3px solid var(--aqua);
  outline-offset: -3px;
}

.product-info h1 {
  color: var(--purple);
  font: 500 var(--title-size)/1.2 var(--font-heading);
}

.product-info .price {
  margin-top: 8px;
  font-size: 24px;
}

.product-description {
  margin: 20px 0;
}

.product-description p {
  margin-bottom: 14px;
}

.video-caption {
  margin: 30px 0 10px;
  color: var(--accent-text);
  font: 700 17px/1.4 var(--font-label);
  text-transform: uppercase;
}

.icon-links.icon-links-start {
  justify-content: flex-start;
}

.product-info .icon-links {
  margin-bottom: 30px;
}

.product-info .buy {
  margin-top: 14px;
}

.product-info .buy .button {
  margin: 6px 0;
}

/* On artwork pages, Add to basket / View basket is purple, turning aqua on hover. */
.product-info .buy .button {
  --tone: var(--purple);
}

.product-info .buy .button:hover:not(:disabled),
.product-info .buy .button:active:not(:disabled) {
  background: var(--aqua);
}

.product-info .button {
  padding: 6px 22px;
  font-size: 16px;
}

.sold-note {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--plum);
  background: var(--light-plum);
  color: var(--plum);
}

.sold-note a {
  color: inherit;
  text-decoration: underline;
}

/* "← Back to shop" under the basket button (or the sold note), styled like the menu links. */
.back-link {
  margin: 24px 0 0;
  font: 700 16px/1.4 var(--font-label);
  text-transform: uppercase;
}

.back-link a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color .3s;
}

.back-link a:hover {
  color: var(--purple);
}

/* Class and workshop pages */
.class-intro {
  width: min(92%, 916px);
  margin: 0 auto 40px;
  text-align: center;
}

.class-intro h1 {
  color: var(--purple);
  font: 500 var(--title-size)/1.2 var(--font-heading);
}

.class-name {
  display: block;
  color: var(--purple);
  font: 500 30px/1.2 var(--font-heading);
}

.class-tagline {
  margin: 8px 0 20px;
  color: var(--accent-text);
  font: 600 var(--subtitle-size)/1.2 var(--font-label);
  text-transform: uppercase;
}

/* Intro box. To try other colours, swap the names below, e.g. var(--plum) and var(--light-plum).
   For an aqua box, keep the text dark: aqua text on pale aqua is too faint to read. */
.class-lead {
  padding: 18px 22px;
  border-left: 4px solid var(--purple);
  background: var(--light-purple);
  color: var(--purple);
  text-align: left;
}

.class-grid {
  display: grid;
  grid-template: "photos features" auto "booking features" 1fr / 1fr 1fr;
  column-gap: 60px;
  width: min(92%, 916px);
  margin: 0 auto;
  align-items: start;
}

.class-photos {
  grid-area: photos;
}

.class-photos>img {
  width: 100%;
  margin-bottom: 20px;
}

.class-booking {
  grid-area: booking;
}

.features {
  grid-area: features;
}

.class-price {
  margin-top: 24px;
  color: var(--purple);
  font: 500 36px/1.2 var(--font-heading);
  text-align: center;
}

.class-price span {
  display: block;
  margin-top: 4px;
  font: 600 15px/1.4 var(--font-label);
  text-transform: uppercase;
}

.class-price-note {
  margin-top: 6px;
  color: var(--grey);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.class-book {
  margin: 16px 0 30px;
  text-align: center;
}

.class-book .button {
  margin: 0;
}

.discount {
  margin-top: 10px;
  padding: 10px;
  color: var(--white);
  font-size: 16px;
  line-height: 26px;
  text-align: center;
}

.discount-aqua {
  background: var(--aqua);
}

.discount-plum {
  background: var(--plum);
}

.discount-rule {
  margin-top: 8px;
  color: var(--grey);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.class-reviews {
  margin-top: 44px;
  text-align: center;
}

.value-adds {
  margin: 10px 0 0;
  padding: 20px;
  background: var(--purple);
  color: var(--white);
  text-align: center;
}

.value-adds h2 {
  margin-bottom: 12px;
  font: 600 24px/1.3 var(--font-label);
  text-transform: uppercase;
}

.value-adds p+p {
  margin-top: 14px;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.features li {
  display: flex;
  gap: 24px;
  margin-bottom: 26px;
}

.feature-icon {
  flex: none;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  fill: var(--purple);
}

.features h2 {
  margin-bottom: 4px;
  color: var(--accent-text);
  font: 600 18px/1.3 var(--font-label);
  text-transform: uppercase;
}

.class-cta {
  margin-top: 56px;
  padding: 40px 16px;
  background: linear-gradient(rgba(255, 255, 255, .65), rgba(255, 255, 255, .65)), url("/assets/img/header-classes1-narrow-scaled-1600.webp") center / cover;
  text-align: center;
}

.class-cta h2 {
  color: var(--purple);
  font: 500 var(--heading-size)/1.2 var(--font-heading);
}

.class-cta-tagline {
  margin: 6px 0 16px;
  color: var(--accent-text);
  font: 600 24px/1.3 var(--font-label);
  text-transform: uppercase;
}

.booking summary {
  display: inline-block;
  margin: 0;
  cursor: pointer;
  list-style: none;
}

.booking summary::-webkit-details-marker {
  display: none;
}

.booking[open] summary {
  display: none;
}

.booking-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .93);
  text-align: left;
}

.booking-form h2,
.booking-form h3 {
  margin-bottom: 8px;
  color: var(--purple);
  font: 600 24px/1.3 var(--font-label);
  text-transform: uppercase;
  text-align: center;
}

.booking-form>p {
  margin-bottom: 12px;
}

.booking-form .button {
  margin: 6px 0 0;
  border: 0;
  cursor: pointer;
}

.form-success {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .93);
  color: var(--purple);
  font-weight: 600;
  text-align: center;
}

/* Supplies page */
.supplies-intro {
  width: min(92%, 982px);
  margin: 0 auto 20px;
}

.supplies-photos .photo-row {
  --cards: 5;
}

.supplies-text {
  width: min(92%, 860px);
  margin: 36px auto 0;
  text-align: center;
}

.supplies-text p+p {
  margin-top: 14px;
}

.supplies-ranges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: min(92%, 982px);
  margin: 50px auto 0;
}

.range {
  --tone: var(--purple);
  --tint: var(--light-purple);
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-top: 5px solid var(--tone);
  border-radius: 10px;
  background: var(--tint);
}

.range-blue {
  --tone: var(--blue);
  --tint: var(--light-blue);
}

.range-plum {
  --tone: var(--plum);
  --tint: var(--light-plum);
}

.range-aqua {
  --tone: var(--aqua);
  --tint: var(--light-aqua);
}

.range h2 {
  color: var(--tone);
  font: 500 var(--heading-size)/1.2 var(--font-heading);
  text-align: center;
}

.range ul {
  flex: 1;
  margin: 14px 0 0;
  padding-left: 18px;
}

.range li {
  margin-bottom: 10px;
  list-style: disc;
}

.range li::marker {
  color: var(--tone);
}

.range-sizes {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--tone), transparent 70%);
  font-size: 15px;
}

.range-sizes span {
  display: block;
  color: var(--tone);
  font: 600 15px/1.4 var(--font-label);
  text-transform: uppercase;
}

.supplies-more {
  width: min(92%, 760px);
  margin: 56px auto 0;
  text-align: center;
}

.supplies-logo {
  display: block;
  width: 250px;
  margin: 44px auto 0;
  transition: transform .15s;
}

.supplies-logo:hover {
  transform: scale(1.04);
}

.supplies-logo img {
  width: 100%;
}

.supplies-logo+.supplies-ranges {
  margin-top: 36px;
}

.supplies-more h2 {
  margin: 0 0 10px;
  color: var(--purple);
  font: 500 var(--heading-size)/1.2 var(--font-heading);
}

.supplies-more p {
  margin-bottom: 12px;
}

.supplies-more .button {
  margin-top: 8px;
}

/* Commissions page */
.commission-intro {
  width: min(92%, 982px);
  margin: 0 auto;
  text-align: center;
}

.commission-intro p {
  max-width: 860px;
  margin: 0 auto 14px;
}

.commission-intro h1+p {
  margin-top: 28px;
}

/* The photo is cropped to a wide strip. To show more of it, make the second number bigger, e.g. 3 / 1.4. */
.commission-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  margin-top: 30px;
  border-radius: 10px;
  object-fit: cover;
}

.commission-steps {
  width: min(92%, 982px);
  margin: 50px auto 0;
  text-align: center;
}

.commission-steps h2 {
  color: var(--purple);
  font: 500 var(--heading-size)/1.2 var(--font-heading);
}

.commission-steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.commission-steps li {
  counter-increment: step;
}

.commission-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--white);
  font: 600 22px/1 var(--font-label);
}

.commission-steps h3 {
  color: var(--purple);
  font: 600 18px/1.3 var(--font-label);
  text-transform: uppercase;
}

.commission-steps p {
  margin-top: 6px;
}

/* Photo picker: the browser's own file box is hidden (its button wording can't be changed),
   and this box, which looks like the other boxes, opens it instead. */
.field .file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.field .file-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  min-height: 46px;
  padding: 7px 8px;
  border: 1px solid #8a8a8a;
  border-radius: 6px;
  background: var(--white);
  font-weight: 400;
  cursor: pointer;
}

.file-input:focus-visible + .file-picker {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.file-button {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--light-purple);
  color: var(--purple);
  font: 600 15px/22px var(--font-label);
  text-transform: uppercase;
}

.file-picker:hover .file-button {
  background: var(--purple);
  color: var(--white);
}

/* On a narrow screen the chosen file names drop below the button rather than being cut short. */
.file-names {
  flex: 1 1 0;
  min-width: 8em;
  padding-left: 4px;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-picker + .field-help {
  margin: 6px 0 0;
}

/* Soft marbled band behind the commission and contact forms */
.marbled-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 50px;
  padding: 50px 16px;
}

/* To use a different photo, change the file name in the background line (pick a photo at least 1600px wide). */
.marbled-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/abstract-background6-1600.webp") center / cover;
}

/* Contact page */
.contact-intro {
  width: min(92%, 860px);
  margin: 0 auto;
  text-align: center;
}

.contact-intro h1+p {
  margin-top: 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  align-items: start;
  width: min(100%, 1000px);
  margin: 0 auto;
}

.contact-grid .booking-form {
  max-width: none;
  margin: 0;
}

.contact-details {
  padding: 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .93);
}

.contact-details h2 {
  margin-bottom: 14px;
  color: var(--purple);
  font: 600 24px/1.3 var(--font-label);
  text-transform: uppercase;
  text-align: center;
}

.contact-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #e3e3ee;
}

.contact-list li:first-child {
  border-top: 0;
}

.contact-list .icon-links a {
  width: 44px;
}

.contact-list strong {
  display: block;
  color: var(--purple);
  font: 600 15px/1.4 var(--font-label);
  text-transform: uppercase;
}

.contact-list p {
  overflow-wrap: anywhere;
}

/* Legal pages: privacy, shipping, terms and disclaimer */
.legal {
  width: min(92%, 780px);
  margin: 0 auto;
}

.legal .page-title {
  text-align: center;
}

.legal-updated {
  margin: 6px 0 28px;
  color: var(--accent-text);
  font: 600 16px/1.4 var(--font-label);
  text-transform: uppercase;
  text-align: center;
}

.legal p,
.legal li {
  margin: 0 0 12px;
}

.legal section ul {
  margin: 0 0 12px;
  padding-left: 22px;
  list-style: disc;
}

.legal section li::marker {
  color: var(--aqua);
}

.legal section {
  scroll-margin-top: 20px;
}

.legal h2 {
  margin: 34px 0 10px;
  color: var(--purple);
  font: 600 24px/1.3 var(--font-label);
  text-transform: uppercase;
}

/* Links in the legal wording are underlined, so they stand out in long paragraphs. */
.legal section a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-contents {
  margin: 24px 0 8px;
  padding: 16px 22px;
  border-left: 4px solid var(--aqua);
  background: var(--light-aqua);
}

.legal-contents p {
  margin: 0 0 6px;
  color: var(--purple);
  font: 600 17px/1.4 var(--font-label);
  text-transform: uppercase;
}

.legal-contents ul {
  margin: 0;
  columns: 2 240px;
  column-gap: 30px;
}

.legal-contents li {
  margin: 0 0 4px;
}

.legal-other {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid #e3e3ee;
  text-align: center;
}

/* Reviews page */
.reviews-intro {
  width: min(92%, 860px);
  margin: 0 auto;
  text-align: center;
}

.reviews-intro h1+p {
  margin: 28px 0 20px;
}

/* The reviews flow down in columns: three on wide screens, two on tablets, one on phones. */
.reviews {
  width: min(92%, var(--page-width));
  margin: 50px auto 0;
  columns: 3 300px;
  column-gap: 24px;
}

/* With the page's script, the reviews read left to right instead: each one goes into the shortest column. */
.reviews.reviews-masonry {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  columns: auto;
}

.reviews-column {
  flex: 1;
  min-width: 0;
}

.review {
  --tone: var(--aqua);
  --tint: var(--light-aqua);
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 16px;
  align-items: center;
  break-inside: avoid;
  margin: 0 0 24px;
  padding: 22px;
  border-top: 4px solid var(--tone);
  background: var(--tint);
}

.review-purple {
  --tone: var(--purple);
  --tint: var(--light-purple);
}

.review-plum {
  --tone: var(--plum);
  --tint: var(--light-plum);
}

.review-blue {
  --tone: var(--blue);
  --tint: var(--light-blue);
}

/* The round photo, or the first letter of the name when there's no photo yet. */
.review-photo {
  grid-row: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}

.review-initial {
  display: grid;
  place-items: center;
  background: var(--tone);
  color: var(--white);
  font: 500 34px/1 var(--font-heading);
}

.review figcaption {
  grid-row: 1;
  grid-column: 2;
  color: var(--purple);
  font: 600 18px/1.4 var(--font-label);
  text-transform: uppercase;
}

.review blockquote {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  font-size: 17px;
}

/* Space between the last reviews and the "Leave a review" form, and between the form and the footer menu. */
.reviews+.marbled-band {
  margin-top: 60px;
  /* This overlaps the footer's own 30px space rather than adding to it, so 60px gives a 60px gap. */
  margin-bottom: 60px;
}

.related {
  position: relative;
  margin-top: 70px;
  padding: 80px 0;
  background: #f4f5f5 url("/assets/img/abstract-background3-1600.webp") center / cover;
  text-align: center;
}

.related>h2 {
  padding: 0 16px;
  color: var(--purple);
  font: 500 var(--heading-size)/1.2 var(--font-heading);
}

.related-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(96%, 1240px);
  margin: 24px auto 0;
}

/* Without JavaScript the row can still be scrolled sideways; site.js clips it and moves it one card at a time. */
.related-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

/* "relative" keeps hidden screen-reader labels inside the clipped area */
.related-viewport::-webkit-scrollbar {
  display: none;
}

.related-viewport.is-carousel {
  overflow: hidden;
  touch-action: pan-y;
}

.related-row {
  --cards: 5;
  display: flex;
  gap: 20px;
}

.related-card {
  display: flex;
  flex: 0 0 calc((100% - (var(--cards) - 1) * 20px) / var(--cards));
  flex-direction: column;
  container-type: inline-size;
}

/* Heading size follows the card's width, so the longest name (Creative Couples) just fits on one line. */
.related-card h3 {
  margin-bottom: 8px;
  color: var(--accent-text);
  font: 600 18px/1.3 var(--font-label);
  font-size: min(10.2cqi, 24px);
  text-transform: uppercase;
}

.related-image {
  display: block;
}

.related-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.related-card p {
  margin: 10px 0 14px;
  font-size: 15px;
  line-height: 24px;
}

.related-card .button {
  align-self: center;
  margin: 0;
  padding: 5px 20px;
  font-size: 16px;
}

.carousel-arrow {
  flex: none;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--purple);
  font-size: 22px;
  cursor: pointer;
}

.carousel-arrow:hover {
  color: var(--accent-text);
}

/* The page listing all the classes */
.classes-intro {
  width: min(92%, 916px);
  margin: 0 auto;
  text-align: center;
}

.classes-title {
  color: var(--purple);
  font: 500 var(--title-size)/1.2 var(--font-heading);
}

.photo-carousel {
  margin-top: 10px;
}

.photo-row {
  --cards: 6;
  display: flex;
  gap: 6px;
}

.photo-slide {
  flex: 0 0 calc((100% - (var(--cards) - 1) * 6px) / var(--cards));
}

.photo-slide img {
  width: 100%;
}

.classes-welcome {
  width: min(92%, 982px);
  margin: 36px auto 0;
  text-align: center;
}

.classes-welcome h2 {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--purple);
  color: var(--white);
  font: 500 var(--heading-size)/1.3 var(--font-heading);
}

/* Each section of classes starts with a thin faded aqua line (the same as the menu lines), so it reads as a new section. */
.classes-group {
  margin-top: 80px;
  padding-top: 50px;
  background: linear-gradient(90deg, transparent, var(--aqua), transparent) top center / min(92%, 860px) 2px no-repeat;
}

.classes-group-intro {
  width: min(92%, 760px);
  margin: 0 auto;
  text-align: center;
}

.classes-group-intro h2 {
  margin-bottom: 8px;
  color: var(--purple);
  font: 500 var(--heading-size)/1.2 var(--font-heading);
}

/* Each card's name, subtitle, photo, text and button line up with the same part of its neighbours. */
.class-cards {
  margin-top: 30px;
  align-items: stretch;
}

.class-cards-three {
  width: min(92%, 1000px);
}

.class-cards-four {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: min(92%, 1180px);
}

.cards .card {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
}

.cards .button {
  justify-self: center;
  margin-bottom: 0;
}

.class-cards .card-subtitle {
  font-size: 17px;
}

.card h3 {
  margin: 0;
  padding-top: 10px;
  color: var(--tone);
  font: 500 var(--heading-size)/1.1 var(--font-heading);
}

.card-aqua {
  --tone: var(--aqua);
}

.ribbon-right {
  top: 22px;
  right: -42px;
  left: auto;
  background: var(--tone);
  color: var(--white);
  transform: rotate(45deg);
}

/* The Reviews button under the purple box. The space below it comes from the next section's top margin. */
.classes-reviews {
  margin: 44px 0 0;
  text-align: center;
}

.classes-reviews .button {
  margin: 0;
}

.classes-reviews+.classes-group {
  margin-top: 64px;
}

/* Space between the last class cards and the footer menu (this overlaps the footer's own 30px, so 60px gives 60px). */
.classes-group:last-child {
  margin-bottom: 60px;
}

/* Basket and checkout */
.shop-page {
  width: min(92%, var(--page-width));
  margin: 0 auto;
}

/* The "page not found" page (404.html) */
.not-found {
  max-width: 720px;
  margin-bottom: 64px;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.not-found-links .button {
  margin: 0;
}

.button-plum {
  --tone: var(--plum);
}

.button-blue {
  --tone: var(--blue);
}

.shop-page>*+* {
  margin-top: 24px;
}

.notice {
  padding: 18px 22px;
  border-left: 4px solid var(--aqua);
  background: var(--light-purple);
}

.notice h2 {
  margin-bottom: 6px;
  color: var(--purple);
  font: 600 18px/1.4 var(--font-label);
  text-transform: uppercase;
}

.empty-message {
  margin: 30px 0 10px;
  text-align: center;
}

.basket-list {
  margin-top: 20px;
  border-top: 1px solid #ddd;
}

.basket-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.basket-row img {
  flex: none;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.basket-name {
  flex: 1;
  color: var(--purple);
  font: 500 22px/1.2 var(--font-heading);
}

.basket-price {
  font-weight: 600;
  white-space: nowrap;
}

.link-button {
  padding: 4px;
  border: 0;
  background: none;
  color: var(--plum);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.basket-total {
  margin-top: 20px;
  font-size: 20px;
  text-align: right;
}

.basket-note,
.basket-next {
  margin-top: 4px;
  text-align: right;
}

.basket-next .button {
  margin-top: 12px;
}

.checkout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.checkout fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.checkout legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--purple);
  font: 500 var(--heading-size)/1.2 var(--font-heading);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-weight: 600;
}

.field input,
.field select {
  height: 46px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #8a8a8a;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/24px var(--font-body);
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

/* Three boxes on one line (commission form: size, colours, due date) */
.field-pair.field-trio {
  grid-template-columns: 1fr 1fr 1fr;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.choice input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 5px 0 0;
}

.field-help {
  margin-bottom: 14px;
  color: var(--grey);
  font-size: 14px;
  line-height: 22px;
}

.order-summary {
  position: sticky;
  top: 16px;
  padding: 22px;
  background: var(--light-purple);
}

.order-summary h2 {
  color: var(--purple);
  font: 500 var(--heading-size)/1.2 var(--font-heading);
}

.order-summary h3 {
  margin: 18px 0 4px;
  color: var(--purple);
  font: 600 16px/1.4 var(--font-label);
  text-transform: uppercase;
}

.summary-list {
  margin: 12px 0;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid #ddd;
}

.summary-total {
  font-weight: 700;
}

.form-error {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--plum);
  background: var(--light-plum);
  color: var(--ink);
}

.order-summary .button {
  margin-top: 14px;
}

.order-number {
  font-size: 19px;
}

/* Home: connect */
.connect {
  width: min(92%, 950px);
  margin: 50px auto 0;
  text-align: center;
}

.connect h2 {
  margin-bottom: 30px;
  color: var(--purple);
  font: 500 var(--heading-size)/1.2 var(--font-heading);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.connect-grid>div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

/* Round icon links */
.icon-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.icon-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--white);
  font-size: 22px;
  transition: background-color .2s, transform .15s;
}

.icon-links a:hover,
.icon-links a:active {
  background: var(--purple);
  color: var(--white);
  transform: var(--hover-press);
}

/* The home page's "Thanks for being here" icons are purple, turning aqua, to stand apart from the aqua buttons and footer icons. */
.connect .icon-links a {
  background: var(--purple);
}

.connect .icon-links a:hover,
.connect .icon-links a:active {
  background: var(--aqua);
}

/* Home: mailing list, in a soft aqua box */
.mailing-list {
  width: min(92%, 440px);
  margin: 56px auto 70px;
  padding: 24px 28px 28px;
  border-radius: 14px;
  background: var(--light-aqua);
  text-align: center;
}

.mailing-list h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--purple);
  font: 600 20px/1.3 var(--font-label);
  text-transform: uppercase;
}

.mailing-list p {
  margin: 2px 0 12px;
  color: var(--grey);
  font-size: 15px;
}

/* The wavy edge of the carousel band */
.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 42px;
  fill: var(--white);
}

.wave-top {
  top: 0;
}

.wave-bottom {
  bottom: 0;
  transform: rotate(180deg);
}

.subscribe {
  display: flex;
  position: relative;
}

.subscribe input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 6px 20px;
  border: 1px solid var(--aqua);
  border-right: 0;
  border-radius: 20px 0 0 20px;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/24px var(--font-body);
  transition: border-color .2s;
}

/* The sign-up keeps its own hover: the box outline and the button turn purple, with no shrinking. */
.subscribe:hover input[type="email"],
.subscribe input[type="email"]:focus {
  border-color: var(--purple);
}

/* The purple outline above shows where you're typing, so the box skips the site's usual thick focus ring. */
.subscribe input[type="email"]:focus-visible {
  outline: none;
}

.subscribe button {
  padding: 7px 20px;
  border: 0;
  border-radius: 0 20px 20px 0;
  background: var(--aqua);
  color: var(--white);
  font: 600 18px/24px var(--font-label);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s;
}

.subscribe button:hover,
.subscribe button:active {
  background: var(--purple);
}

/* Footer */
.site-footer {
  margin-top: 30px;
  padding-bottom: 10px;
  text-align: center;
}

.site-footer .menu {
  margin: 0 auto 20px;
}

.footer-splat {
  width: 100px;
  margin: 0 auto 10px;
}

.footer-name {
  color: var(--purple);
  font: 500 38px/1.2 var(--font-heading);
}

.footer-by {
  color: var(--accent-text);
  font: 600 18px/1.4 var(--font-label);
  text-transform: uppercase;
}

.site-footer .icon-links {
  margin: 14px 0;
}

.footer-legal {
  color: var(--grey);
  font: 600 14px/28px var(--font-label);
  text-transform: uppercase;
}

.footer-legal a,
.footer-credit a {
  color: inherit;
}

.footer-legal a:hover,
.footer-credit a:hover {
  color: var(--purple);
}

.back-to-top {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 14px auto;
  border: 1px solid var(--accent-text);
  border-radius: 50%;
  color: var(--accent-text);
  font-size: 15px;
  transition: border-color .2s, color .2s, transform .15s;
}

.back-to-top:hover,
.back-to-top:active {
  border-color: var(--purple);
  color: var(--purple);
  transform: var(--hover-press);
}

.footer-credit {
  color: var(--grey);
  font-size: 12px;
}

/* Tablets */
@media (max-width: 1024px) {
  .photo-row {
    --cards: 4;
  }

  .quotes {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
    gap: 20px;
  }

  .quotes figure {
    grid-template-columns: 180px 1fr;
  }

  .class-cards-four {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .supplies-photos .photo-row {
    --cards: 4;
  }

  .connect-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-row {
    --cards: 3;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .checkout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

/* Phones */
@media (max-width: 767px) {
  .menu {
    margin-bottom: 36px;
  }

  /* The basket total, delivery note and checkout button sit in the middle on phones. */
  .basket-total,
  .basket-note,
  .basket-next {
    text-align: center;
  }

  /* Form send buttons sit in the middle on phones. */
  .booking-form .button {
    display: table;
    margin: 6px auto 0;
  }

  .quotes figure {
    grid-template-columns: 32% 1fr;
  }

  .photo-row,
  .supplies-photos .photo-row {
    --cards: 2;
  }

  .supplies-ranges {
    grid-template-columns: 1fr;
  }

  /* The Classes page keeps its paragraphs centred on phones, the same as on computers. */
  .classes-welcome p,
  .classes-group-intro p {
    text-align: center;
  }

  .classes-group {
    margin-top: 72px;
    padding-top: 40px;
  }

  .class-cards {
    gap: 40px;
  }

  .class-cards .card-subtitle {
    font-size: 20px;
  }

  .classes-reviews {
    margin-top: 34px;
  }

  .classes-reviews+.classes-group {
    margin-top: 52px;
  }

  /* Tighter on phones, so the menu fits on two lines even with a basket count, e.g. "Basket (2)". */
  .menu a {
    padding: 4px 5px;
  }

  .page-title,
  .product-info h1,
  .class-intro h1,
  .classes-title {
    font-size: var(--title-size-phone);
  }

  .intro-columns,
  .cards,
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    margin-top: 50px;
    gap: 40px;
  }

  .supplies-text p,
  .supplies-more p,
  .quotes blockquote,
  .notice,
  .class-lead,
  .value-adds p {
    text-align: var(--phone-text-align);
  }

  /* Phones spread the photos out: photo, features, photo, price and booking, photo. */
  .class-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .class-photos {
    display: contents;
  }

  .class-photos>img:nth-child(1) {
    order: 1;
    margin-bottom: 32px;
  }

  .features {
    order: 2;
  }

  .class-photos>img:nth-child(2) {
    order: 3;
  }

  .class-booking {
    order: 4;
  }

  .class-photos>img:nth-child(3) {
    order: 5;
    margin: 36px 0 0;
  }

  .class-cta-tagline {
    font-size: 20px;
  }

  .value-adds h2 {
    font-size: 22px;
  }

  .related-row {
    --cards: 1;
  }

  .product-grid,
  .featured .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 14px;
  }

  .product-card-title {
    font-size: 22px;
  }

  .product-card .button {
    padding: 4px 12px;
    font-size: 13px;
    line-height: 18px;
  }

  /* Artwork pages: the video links and "See all artwork" sit in the middle. */
  .product-info h1,
  .product-info .price,
  .product-info .status-label,
  .product-info .video-caption {
    text-align: center;
  }

  .product-info .icon-links.icon-links-start {
    justify-content: center;
  }

  .product-info .buy,
  .back-link {
    text-align: center;
  }

  /* The photo viewer uses the whole width, with its arrows below the photo. */
  .viewer-image {
    max-width: 100vw;
    max-height: calc(100vh - 170px);
    max-height: calc(100dvh - 170px);
  }

  .viewer-arrow {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .viewer-previous {
    left: calc(50% - 110px);
  }

  .viewer-next {
    right: calc(50% - 110px);
  }

  .viewer-count {
    bottom: 40px;
  }

  .quotes,
  .product,
  .field-pair,
  .field-pair.field-trio,
  .commission-steps ol {
    grid-template-columns: 1fr;
  }

  .commission-image {
    aspect-ratio: 2 / 1;
  }

  /* Phones put each step's number beside its words. */
  .commission-steps ol {
    gap: 20px;
  }

  .commission-steps li {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: 16px;
    text-align: left;
  }

  .commission-steps li::before {
    grid-row: span 2;
    margin: 0;
  }

  .commission-steps h3 {
    margin: 0;
    padding-top: 12px;
  }

  .basket-row {
    flex-wrap: wrap;
  }

  .basket-name {
    flex-basis: calc(100% - 96px);
  }

  .basket-price {
    margin-left: 96px;
  }

  .link-button {
    margin-left: auto;
  }
}

/* Respect visitors who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}