/* ==========================================================================
   EDITORIAL — artist pages: /about /awards-exhibits /reviews /sold /contact
   sawyerberson.com inner-page language on charcoal (#232729, set by studio.css):
   62/75 title + serif sub-nav over a 1px mist rule, 50/62 intro sentence,
   5/12 portrait + 480px text pairs, centred italic quotes, 140px rhythm.
   Type is set a step larger than the reference for older readers: body copy 21–23px/1.5,
   labels 13–15px, nothing under 12px (tiny badges only). On phones (< 768px, and landscape phones
   up to 540px tall) every painting is shown whole at its natural ratio: no cover-cropping.
   ========================================================================== */

.ed {
  --ed-line: rgba(178, 197, 207, .3); --ed-soft: #d9dbd6;
  --ed-body: clamp(21px, calc(19.4px + .32vw), 23px);      /* paragraph copy: 21px phone → 23px desktop */
  padding-bottom: clamp(32px, 4vw, 56px);
}
.ed-wrap { max-width: 1512px; margin-inline: auto; padding-inline: var(--gutter); }
.ed-section { margin-bottom: clamp(48px, 6vw, 88px); scroll-margin-top: calc(var(--sb-header-h) + 24px); }
.ed [id] { scroll-margin-top: calc(var(--sb-header-h) + 24px); }

/* ---------- page head ---------- */
.ed-head { padding-top: clamp(28px, 4vw, 57px); }
.ed-head__row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 40px; }
.ed-head__aside { font: 400 clamp(27px, 2.5vw, 36px)/1.35 var(--serif); color: var(--sb-accent); }
.ed-subnav ul { display: flex; flex-wrap: wrap; gap: 0 1em; }
.ed-subnav a { display: inline-block; font: 400 clamp(27px, 2.5vw, 36px)/1.35 var(--serif); letter-spacing: .005em; transition: color .2s; }
.ed-subnav a:hover { color: var(--sb-accent); }
.ed-head .sb-rule { margin-bottom: clamp(28px, 3.4vw, 50px); }
.ed-intro { font: 400 clamp(32px, 3.5vw, 50px)/1.25 var(--serif); letter-spacing: .005em; max-width: 1220px; }
.ed-intro + .ed-lead { margin-top: clamp(24px, 2.6vw, 38px); }
.ed-lead { max-width: 660px; font: 400 var(--ed-body)/1.5 var(--serif); color: var(--ed-soft); }
.ed-lead p + p { margin-top: .75em; }

/* ---------- headings ---------- */
.ed-eyebrow { display: block; margin-bottom: 18px; }
.ed-h { font: 400 clamp(34px, 3.2vw, 47px)/1.25 var(--serif); letter-spacing: .005em; }
.ed-title-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 44px); }

/* ---------- text & media pair ---------- */
.ed-pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); align-items: center; }
.ed-pair__media { grid-column: 1 / span 5; grid-row: 1; }
.ed-pair__text { grid-column: 7 / span 6; grid-row: 1; max-width: 640px; }
.ed-pair--flip .ed-pair__media { grid-column: 8 / span 5; }
.ed-pair--flip .ed-pair__text { grid-column: 1 / span 6; }
.ed-pair--wide .ed-pair__text { grid-column: 7 / span 6; max-width: 620px; }
.ed-pair--wide.ed-pair--flip .ed-pair__text { grid-column: 1 / span 6; justify-self: end; }
.ed-body, .ed-copy p { font: 400 var(--ed-body)/1.5 var(--serif); }
.ed-copy p + p { margin-top: 1em; }
.ed-copy .ed-h { margin-bottom: clamp(18px, 2vw, 28px); }
.ed-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 14px; font: 600 14px/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sb-accent); }
.ed-cap a { transition: color .2s; }
.ed-cap a:hover { color: var(--sb-ink); }

/* media frame with a curtain reveal: the image wipes up and settles from a slight zoom */
.ed-frame { position: relative; display: block; overflow: hidden; background: rgba(235, 236, 231, .04); }
.ed-frame img { width: 100%; height: 100%; object-fit: cover; }
.ed-frame--portrait { aspect-ratio: 4 / 5; }
/* the wipe is clipped on the IMAGE, never on the observed frame (a fully clipped target never counts as "in view") */
html.js .ed-frame.reveal { opacity: 1; transform: none; }
html.js .ed-frame.reveal img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.4s var(--ease-out), transform 2.4s var(--ease-out); }
html.js .ed-frame.reveal.is-revealed img { clip-path: inset(0); transform: none; }
a.ed-frame[data-lightbox] { cursor: zoom-in; }

/* ---------- quote ---------- */
.ed-quote { max-width: 1000px; margin-inline: auto; text-align: center; }
.ed-quote blockquote p { font: italic 400 clamp(28px, 2.6vw, 38px)/1.4 var(--serif); letter-spacing: .005em; }
.ed-quote__line { display: block; width: 1px; height: clamp(24px, 2.6vw, 36px); margin: clamp(16px, 1.8vw, 22px) auto clamp(12px, 1.4vw, 18px); background: var(--sb-accent); }
html.js .ed-quote__line.reveal-line { transform-origin: top center; transform: scaleY(0); }
html.js .ed-quote__line.reveal-line.is-revealed { transform: none; }
.ed-quote figcaption, .ed-attr { font: 600 15px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sb-accent); font-style: normal; }
.ed-pair .ed-quote { text-align: left; margin: 0; }
.ed-pair .ed-quote blockquote p { font-size: clamp(25px, 2.2vw, 32px); }
.ed-pair .ed-quote--long blockquote p { font-size: clamp(22px, 1.75vw, 25px); line-height: 1.5; }
.ed-pair .ed-quote__line { margin-left: 0; }

/* ---------- full-bleed detail strip (desktop); a stack of whole images on phones ---------- */
.ed-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ed-strip__item { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.ed-strip__item .ed-frame { height: 100%; }
.ed-strip__item:hover .ed-frame img, html.js .ed-strip__item:hover .ed-frame.reveal.is-revealed img { transform: scale(1.06); }
.ed-strip__cap {
  position: absolute; inset: auto 0 0 0; padding: 64px 20px 18px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(to top, rgba(20, 22, 24, .82), rgba(20, 22, 24, 0));
  opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .6s var(--ease-out);
}
.ed-strip__cap span { font: 600 14px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sb-accent); }
.ed-strip__cap strong { font: 400 clamp(22px, 1.9vw, 28px)/1.25 var(--serif); }
.ed-strip__item:hover .ed-strip__cap, .ed-strip__item:focus-within .ed-strip__cap { opacity: 1; transform: none; }
.ed-strip__item a:focus-visible { outline-offset: -4px; }

/* ---------- awards list (year | text | link) ---------- */
.ed-list { border-top: 1px solid var(--ed-line); }
.ed-list__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 6px 32px; align-items: baseline; padding: clamp(20px, 2.1vw, 30px) 0; border-bottom: 1px solid var(--ed-line); transition: background-color .3s; }
.ed-list__row:hover { background: rgba(178, 197, 207, .035); }
.ed-year { font: 600 15px/1.6 var(--sans); letter-spacing: .1em; color: var(--sb-accent); font-variant-numeric: lining-nums; }
.ed-list__text { font: 400 clamp(22px, 1.9vw, 28px)/1.35 var(--serif); }
.ed-list__links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ed-list__links .arrow-link { font-size: 15px; white-space: nowrap; }

/* ---------- exhibitions table ---------- */
.ed-table { border-top: 1px solid var(--ed-line); }
.ed-table__row { display: grid; grid-template-columns: minmax(190px, 1.05fr) minmax(0, 1.6fr) minmax(0, 1.25fr) minmax(140px, .75fr); gap: 6px 28px; align-items: baseline; padding: clamp(18px, 1.9vw, 26px) 0; border-bottom: 1px solid var(--ed-line); }
.ed-table__head { padding: 0 0 12px; border-bottom: 1px solid var(--ed-line); }
.ed-table__head span { font: 600 14px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sb-accent); }
.ed-table__dates { font: 600 14px/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--sb-accent); }
.ed-table__title { font: 400 clamp(22px, 1.9vw, 28px)/1.3 var(--serif); }
.ed-table__note { display: inline-block; margin-left: 10px; padding: 3px 9px; border: 1px solid var(--sb-accent); font: 600 12px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sb-accent); vertical-align: middle; }
.ed-table__venue { font: 400 20px/1.45 var(--serif); color: var(--ed-soft); }
.ed-table__loc { font: italic 400 20px/1.45 var(--serif); color: var(--sb-accent); }

/* ---------- artwork cards (awards page) ---------- */
.ed-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(40px, 4vw, 60px) clamp(20px, 2vw, 30px); }
.ed-work a { display: block; }
.ed-work__wall { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 13%; background: rgba(235, 236, 231, .045); transition: background-color .4s; }
.ed-work__wall img { width: var(--w, 100%); box-shadow: 0 22px 34px -18px rgba(0, 0, 0, .75), 0 2px 6px rgba(0, 0, 0, .25); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.ed-work a:hover .ed-work__wall { background: rgba(235, 236, 231, .08); }
.ed-work a:hover .ed-work__wall img { transform: translateY(-6px); box-shadow: 0 34px 44px -20px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .25); }
.ed-work__title { margin-top: 18px; font: 400 clamp(24px, 1.95vw, 28px)/1.25 var(--serif); }
.ed-work__award { margin-top: 8px; font: 600 14px/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sb-accent); }
.ed-work__status { margin-top: 8px; font: italic 400 20px/1.45 var(--serif); color: var(--ed-soft); }

/* ---------- press ---------- */
.ed-badge { display: inline-block; width: min(260px, 72%); margin-bottom: 26px; padding: 6px 10px; background: #fff; }
.ed-news { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 2.5vw, 36px); align-items: start; margin-top: clamp(28px, 3vw, 44px); }
.ed-news figure .ed-frame img { object-fit: contain; }
.ed-news figcaption { margin-top: 12px; font: italic 400 19px/1.45 var(--serif); color: var(--ed-soft); }

/* ---------- testimonials ---------- */
.ed-testimonials > * + * { margin-top: clamp(44px, 5.5vw, 80px); }
.ed-testimonials > .sr-only + * { margin-top: 0; }
.ed-testimonials .ed-pair__media .ed-frame { aspect-ratio: auto; }

/* ---------- sold archive: justified rows at natural ratios ---------- */
.ed-sold { --row-h: calc((100vw - 2 * var(--gutter)) / 2.1); --gap: 14px; display: flex; flex-wrap: wrap; gap: calc(var(--gap) * 2.2) var(--gap); }
.ed-sold::after { content: ""; flex-grow: 1e6; }
.ed-sold__item { position: relative; min-width: 0; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--row-h)); }
.ed-sold__link { position: relative; display: block; overflow: hidden; cursor: zoom-in; background: var(--c, #333); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.ed-sold__link img { width: 100%; transition: transform 1.4s var(--ease-out); }
.ed-sold__cap { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; min-width: 0; }
.ed-sold__title { font: 400 20px/1.25 var(--serif); overflow-wrap: anywhere; }
.ed-sold__meta { font: 600 13px/1.45 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--sb-accent); }
.ed-tag { position: absolute; top: 10px; left: 10px; z-index: 2; max-width: calc(100% - 20px); padding: 5px 9px; transition: transform .6s var(--ease-out); background: var(--sb-accent); color: var(--sb-bg-inner); font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.ed-count { font: 400 clamp(27px, 2.5vw, 36px)/1.35 var(--serif); color: var(--sb-accent); }

@media (hover: hover) and (pointer: fine) {
  .ed-sold__cap {
    position: absolute; inset: auto 0 0 0; z-index: 1; padding: 72px 18px 16px; pointer-events: none;
    background: linear-gradient(to top, rgba(18, 20, 22, .86), rgba(18, 20, 22, 0));
    opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .6s var(--ease-out);
  }
  .ed-sold__title { font-size: clamp(21px, 1.6vw, 26px); }
  .ed-sold__meta { font-size: 14px; }
  .ed-sold__item:hover .ed-sold__link, .ed-sold__link:focus-visible { transform: translateY(-8px); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .85); }
  .ed-sold__item:hover .ed-sold__link img { transform: scale(1.035); }
  .ed-sold__item:hover .ed-tag, .ed-sold__item:focus-within .ed-tag { transform: translateY(-8px); }
  .ed-sold__item:hover .ed-sold__cap, .ed-sold__item:focus-within .ed-sold__cap { opacity: 1; transform: translateY(-8px); }
}

/* ---------- call to action ---------- */
.ed-cta { max-width: 940px; margin-inline: auto; text-align: center; }
.ed-cta p { margin-top: 18px; font: 400 var(--ed-body)/1.5 var(--serif); color: var(--ed-soft); }
.ed-cta p.ed-intro { font: 400 clamp(32px, 3.5vw, 50px)/1.25 var(--serif); color: inherit; }
.ed-links { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: clamp(26px, 3vw, 40px); }
.ed-cta .ed-links, .ed-links--center { justify-content: center; }
.ed-links .arrow-link { max-width: 100%; overflow-wrap: anywhere; }
.ed-contact address { font-style: normal; }

/* ---------- contact ---------- */
.ed-contact { font-style: normal; }
.ed-contact dl > div + div { margin-top: clamp(24px, 2.6vw, 34px); }
.ed-contact dt { margin-bottom: 4px; }
.ed-contact dd { font: 400 clamp(24px, 1.95vw, 28px)/1.35 var(--serif); }
.ed-contact dd a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out), color .2s; overflow-wrap: anywhere; }
.ed-contact dd a:hover { background-size: 100% 1px; color: var(--sb-accent); }
.ed-social { display: flex; flex-direction: column; gap: 8px; }
.ed-social a { display: inline-flex; align-items: center; gap: 12px; }
.ed-social .icon { width: 20px; height: 20px; flex: none; color: var(--sb-accent); }
.ed-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); border-top: 1px solid var(--ed-line); padding-top: clamp(32px, 3.4vw, 50px); }
.ed-notes h2 { margin-bottom: 14px; }

.ed-form { color-scheme: dark; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 2.8vw, 38px) clamp(20px, 2.4vw, 36px); max-width: 1000px; }
.ed-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ed-field--full { grid-column: 1 / -1; }
.ed-field label { font: 600 15px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sb-accent); }
.ed-field input, .ed-field select, .ed-field textarea {
  width: 100%; min-height: 52px; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(178, 197, 207, .6); border-radius: 0;
  background: transparent; color: var(--sb-ink); font: 400 clamp(20px, 1.7vw, 23px)/1.4 var(--serif); transition: border-color .2s;
}
.ed-field select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%23b2c5cf' stroke-width='1.2'/%3E%3C/svg%3E") right 4px center / 13px 8px no-repeat; }
.ed-field select option { color: #232729; background: #ebece7; }
.ed-field textarea { min-height: 180px; resize: vertical; }
.ed-field input:focus, .ed-field select:focus, .ed-field textarea:focus { border-bottom-color: var(--sb-ink); outline: none; }
.ed-field input:focus-visible, .ed-field select:focus-visible, .ed-field textarea:focus-visible { outline: 1px solid var(--sb-accent); outline-offset: 4px; }
.ed-field ::placeholder { color: rgba(235, 236, 231, .72); }
.ed-form__foot { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.ed-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 32px; border: 1px solid var(--sb-accent);
  font: 600 14px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sb-ink);
  transition: background-color .25s, color .25s;
}
.ed-btn:hover { background: var(--sb-accent); color: var(--sb-bg-inner); }
.ed-form__hint, .ed-form__status { font: italic 400 19px/1.45 var(--serif); color: var(--ed-soft); }

/* ---------- responsive ---------- */
@media (min-width: 700px) { .ed-sold { --row-h: calc((100vw - 2 * var(--gutter)) / 2.4); --gap: 22px; } }
@media (min-width: 1100px) { .ed-sold { --row-h: min(calc((100vw - 2 * var(--gutter)) / 3.4), 420px); --gap: 32px; } }

@media (max-width: 899px) {
  .ed-pair { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .ed-pair .ed-pair__media, .ed-pair .ed-pair__text,
  .ed-pair--flip .ed-pair__media, .ed-pair--flip .ed-pair__text,
  .ed-pair--wide .ed-pair__text, .ed-pair--wide.ed-pair--flip .ed-pair__text { grid-column: 1; grid-row: auto; justify-self: start; }
  .ed-pair__media { width: 100%; max-width: 560px; }
  .ed-pair__text, .ed-pair--wide .ed-pair__text { max-width: 660px; }
  .ed-news, .ed-notes { grid-template-columns: minmax(0, 1fr); }
  .ed-table__head { display: none; }
  .ed-table__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* phones, portrait AND landscape: every painting whole, at its own proportions.
   Landscape phones are wider than 767px but never taller than 540px, so they match the second query. */
@media (max-width: 767px), (orientation: landscape) and (max-height: 540px) {
  .ed-frame--portrait { aspect-ratio: auto; }
  .ed-frame img { height: auto; object-fit: contain; }

  /* the desktop detail strip becomes a stack of single, uncropped images with captions below */
  .ed-strip { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-inline: var(--gutter); }
  .ed-strip__item { aspect-ratio: auto; overflow: visible; }
  .ed-strip__item .ed-frame { height: auto; background: none; }
  .ed-strip__item:hover .ed-frame img, html.js .ed-strip__item:hover .ed-frame.reveal.is-revealed img { transform: none; }
  .ed-strip__cap { position: static; padding: 14px 0 0; gap: 4px; background: none; opacity: 1; transform: none; }
  .ed-strip__item a:focus-visible { outline-offset: 3px; }

  /* sold archive: the award tag moves off the painting into the caption */
  .ed-sold__item { display: flex; flex-direction: column; }
  .ed-tag { position: static; order: 3; align-self: flex-start; max-width: 100%; margin-top: 8px; }
}

/* landscape phones: each painting also fits under the header, so it is seen whole without scrolling.
   .ed-fit wrappers carry the image's width/height ratio as --r (set in the templates). */
@media (orientation: landscape) and (max-height: 540px) {
  .ed { --ed-fit-h: calc(100vh - var(--sb-header-h) - 32px); }
  @supports (height: 100svh) { .ed { --ed-fit-h: calc(100svh - var(--sb-header-h) - 32px); } }
  .ed-fit { width: min(100%, calc(var(--ed-fit-h) * var(--r, 1))); }
  .ed-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .ed-sold { --row-h: min(calc((100vw - 2 * var(--gutter)) / 2.4), calc(var(--ed-fit-h) * .62)); }
}

@media (max-width: 767px) {
  .ed-list__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ed-list__links { align-items: flex-start; }
  .ed-list__links .arrow-link { white-space: normal; }
  .ed-form { grid-template-columns: minmax(0, 1fr); }
  .ed-form__foot { align-items: flex-start; }
  .ed-links { gap: 16px 28px; }
}
@media (hover: none) and (min-width: 768px) { .ed-strip__cap { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html.js .ed-frame.reveal img { clip-path: none; }
  html.js .ed-frame.reveal img, html.js .ed-strip__item:hover .ed-frame.reveal.is-revealed img, .ed-strip__item:hover .ed-frame img, .ed-sold__item:hover .ed-sold__link img { transform: none; }
  html.js .ed-quote__line.reveal-line { transform: none; }
}

/* ---------- contact page imagery ---------- */
.ct-banner { margin-bottom: clamp(40px, 5vw, 72px); }
.ct-banner__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.ct-banner__item a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: rgba(235, 236, 231, .05); }
.ct-banner__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 2.4s var(--ease-out); }
.ct-banner__item a:hover img { transform: scale(1.04); }
.ct-banner__cap {
  position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 56px 18px 16px; background: linear-gradient(rgba(35, 39, 41, 0), rgba(35, 39, 41, .82));
  font: 400 22px/1.3 var(--serif); color: var(--sb-ink);
}
.ct-banner__cap span { font: 600 13px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--sb-accent); white-space: nowrap; }
.ct-note__img { display: block; margin-bottom: 24px; overflow: hidden; aspect-ratio: 3 / 2; background: rgba(235, 236, 231, .05); }
.ct-note__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease-out); }
.ct-note__img:hover img { transform: scale(1.04); }
.ct-works { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 999px) { .ct-works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* phones: every painting / room photo whole, no cropping */
@media (max-width: 767px), (orientation: landscape) and (max-height: 540px) {
  .ct-banner__row { grid-template-columns: 1fr; }
  .ct-banner__item:nth-child(n + 2) { display: none; }
  .ct-banner__item a { aspect-ratio: auto; }
  .ct-banner__item img, .ct-note__img img { height: auto; object-fit: contain; }
  .ct-banner__cap { position: static; padding: 12px 0 0; background: none; }
  .ct-note__img { aspect-ratio: auto; }
}
