/* A piece page in the pearl card (her ask, 2026-10-29): the page the unrolling gallery opens for each picture is the same
   pearl card as the one over the wall, standing on the room's roses. card.js builds it from the plain page under it; without
   script the plain page stands as it is. The pearl itself is ../pearl.css. One colour scheme, no dark mode (her standing rule). */
body.pearled { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 14px; box-sizing: border-box;
  background: #cfc9a9 url(../art/walls/wallpaper.jpg?v=1) 0 0 / 930px 500px; color: #2a1c2e; }
body.pearled > main.piece { display: none; }
.pearled .card.pearl { position: relative; margin: 0 auto; color: #2a1c2e; font: 17px/1.5 'Crimson Pro', Georgia, serif; }
.pearled .card.pearl .x { position: absolute; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--deep); border-radius: 50%;
  color: #2a1c2e; text-decoration: none; font: bold 22px/1 'Crimson Pro', Georgia, serif; box-shadow: 0 2px 6px #0005; }
.pearled .card.pearl .stage a { display: inline-block; max-width: 100%; }
.pearled .card.pearl .turn a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--deep); background: #fbf5e8;
  color: #2a1c2e; text-decoration: none; font: bold 22px/1 'Crimson Pro', Georgia, serif; }
.pearled .card.pearl .head h1 { margin: 0; font: bold 26px/1.2 'Crimson Pro', Georgia, serif; }
.pearled .card.pearl .head .made { margin: 2px 0 0; font: italic 15px Lora, Georgia, serif; color: var(--deep); }
.pearled .card.pearl .story { font-size: 18px; }
.pearled .card.pearl a { color: var(--deep); }
/* taking it home: the sizes are choices; the one chosen fills in under them */
.pearled .card.pearl .choose { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pearled .card.pearl .choose button { padding: 6px 11px; border: 2px solid var(--deep); border-radius: 4px; background: #fbf5e8; color: #2a1c2e; font: 15px 'Crimson Pro', Georgia, serif; cursor: pointer; }
.pearled .card.pearl .chosen { margin: 0 0 10px; padding: 10px 14px; border-left: 4px solid var(--accent); background: #fffdf6cc; }
.pearled .card.pearl .chosen p { margin: 0 0 4px; }
.pearled .card.pearl .till { display: inline-block; margin: 6px 0 4px; padding: 10px 20px; border: 2px solid var(--deep); border-radius: 4px; background: var(--accent);
  color: #2a1c2e; text-decoration: none; font: bold 17px 'Crimson Pro', Georgia, serif; }
.pearled .card.pearl .till:hover, .pearled .card.pearl .till:focus-visible { background: var(--soft); outline: none; box-shadow: 0 0 0 3px var(--deep); }
.pearled .card.pearl .every { margin: 14px 0 0; text-align: center; }
.pearled .card.pearl .every a { display: inline-block; padding: 3px 12px; background: #fffaf0e6; box-shadow: 1px 2px 4px #0005; font: italic 15px Lora, Georgia, serif; }
@media (max-width: 560px) {
  body.pearled { padding: 8px; }
  .pearled .card.pearl .head h1 { font-size: 22px; }
}
.pearled .card.pearl .head h1 { color: #2a1c2e; }
/* the till lent by the box (2026-10-30): the box's own sizes, amount and bag button inside Take it home */
.pearled .card.pearl .takehome .plain { margin: 0 0 10px; padding: 10px 14px; border-left: 4px solid var(--accent); background: #fffdf6cc; }
.pearled .card.pearl .takehome .plain p { margin: 0 0 4px; }
.pearled .card.pearl .takehome .bagrow { margin: 8px 0 4px; }
.pearled .card.pearl .takehome .bagrow .till { display: block; margin-top: 10px; }
.pearled .card.pearl .takehome .elsewhere { margin: 6px 0 0; font-size: 14px; }
.pearled .card.pearl .inbag { margin: 10px 0 0; padding: 8px 12px; background: var(--soft); border-radius: 3px; font: bold 16px 'Crimson Pro', Georgia, serif; }
.pearled .card.pearl .inbag .till { margin: 6px 0 0 8px; padding: 6px 14px; font-size: 15px; }
.pearled .bag { z-index: 60; }
/* the card fills the page's own width, not the window's: with the purse's fine print under it the page scrolls, and a
   width taken from the window then pushed it sideways by the scrollbar's width (2026-10-30) */
.pearled .card.pearl { width: 100%; }
/* the page's own scrollbar in the frame's gilt on the wallpaper's cream (her ask, 2026-10-30) */
html:has(body.pearled), html:has(body.every) { scrollbar-color: #8a6a2a #e6dfc6; }
/* her type for the cards (2026-10-30, picked from twelve: "more antique ... more like Victorian, more European"): Emilys
   Candy, the Victorian sweet shop, for a piece's name; Elsie, bold, for the line under it; Playfair Display small caps,
   bold, for the buttons (narrow and all one height was the ask). All live in ../fonts, so no page calls anyone else to draw a letter. Everything else follows type.css. */
@font-face { font-family: "Emilys Candy"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/emilys-candy.woff2) format("woff2"); }
@font-face { font-family: Elsie; font-style: normal; font-weight: 900; font-display: swap; src: url(../fonts/elsie-black.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display SC"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/playfair-sc-bold.woff2) format("woff2"); }
.pearled .card.pearl .head h1, .every header h1 { font-family: "Emilys Candy", Georgia, serif !important; font-size: 34px; line-height: 1.15; }
/* the line under the name in Elsie, bold, in the room's plum (her pick; the colour is Claude's, hers to change) */
.pearled .card.pearl .head .made { margin-top: 2px; font: 900 18px/1.3 Elsie, Georgia, serif; color: #6b2a4a; }
.pearled .card.pearl .tabs button, .pearled .card.pearl .subs button, .pearled .card.pearl .choose button { font-family: "Playfair Display SC", Georgia, serif; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
@media (max-width: 560px) {
  .pearled .card.pearl .head h1, .every header h1 { font-size: 28px; }
}
/* the time lapse (2026-10-30): an upright film sits at its own width, no bars beside it, short enough to see whole; choosing it
   brings it into view (card.js) */
.pearled .card.pearl .closeups .film { text-align: center; }
.pearled .card.pearl .closeups .film { grid-column: 1 / -1; }
.pearled .card.pearl .closeups video { display: inline-block; width: auto; max-width: 100%; height: auto; max-height: min(84vh, 1100px); background: none; }
/* a piece's name wears curly quotes, so it reads as its name (her ask, 2026-10-30) */
.pearled .card.pearl .head h1::before { content: "\201C"; }
.pearled .card.pearl .head h1::after { content: "\201D"; }
/* every little picture in a sheet (2026-10-31, her ask): the whole picture, never cut, in the same frame as the big one up top
   (the pearls, the gilt edge, the light mat in the card's accent), only smaller; no names under them */
.pearled .card.pearl .closeups { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: center; gap: 14px; }
.pearled .card.pearl .closeups button { padding: 0; border: 0; background: none; overflow: visible; }
.pearled .card.pearl .closeups img { box-sizing: border-box; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain;
  padding: 11px; border: 3px solid #b8913f; border-radius: 2px; outline: 4px solid var(--soft); outline-offset: -14px;
  background: radial-gradient(circle at 38% 34%, #fffdf7 0 14%, #efe6d6 34%, #b5a687 62%, transparent 68%) 0 0 / 8px 8px round, #cdb98f;
  box-shadow: 0 0 0 1px #6a4a10, inset 0 0 0 1px #6a4a10, 0 6px 14px #0006; }
.pearled .card.pearl .closeups button.on img, .pearled .card.pearl .closeups button:hover img { box-shadow: 0 0 0 1px #6a4a10, inset 0 0 0 1px #6a4a10, 0 0 0 4px var(--deep), 0 6px 14px #0006; }
.pearled .card.pearl .closeups span { margin-top: 6px; background: #fbf5e8d9; text-align: center; }
@media (max-width: 560px) { .pearled .card.pearl .closeups { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
/* the whole drawing, live (2026-10-31): the full length stream, wide, in the card's mat */
.pearled .card.pearl .live { margin: 0 0 14px; border: 4px solid var(--soft); background: #1a0610; }
.pearled .card.pearl .live iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.pearled .card.pearl .live video { display: block; width: 100%; max-height: 84vh; }
/* the magnifying glass over a film: a round lens in a gilt rim; while it is on, the film's own controls stay usable along the bottom */
.pearled .card.pearl .glass-box { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; }
.pearled .card.pearl .glassed { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.pearled .card.pearl .glass-over { display: none; position: absolute; left: 0; right: 0; top: 0; bottom: 52px; cursor: none; touch-action: none; }
.pearled .card.pearl .glassed.looking .glass-over { display: block; }
.pearled .card.pearl .lens { position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 5px solid #b8913f; box-shadow: 0 0 0 2px #6a4a10, 0 8px 20px #0008; pointer-events: none; z-index: 3; }
.pearled .card.pearl .glass-on { padding: 6px 14px; border: 2px solid var(--deep); border-radius: 4px; background: #fbf5e8; color: var(--ink); font: 700 16px "Playfair Display SC", Georgia, serif; cursor: pointer; }
.pearled .card.pearl .glass-on[aria-pressed="true"] { background: var(--accent); }
.pearled .card.pearl .live .glass-box { display: flex; }
.pearled .card.pearl .glass-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
/* the picture buttons: round, gilt edged; what each does shows above it when pointed at or focused */
.pearled .card.pearl .glass-on.icon { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 3px solid #b8913f; box-shadow: 0 0 0 1px #6a4a10; color: var(--deep); }
.pearled .card.pearl .glass-on.icon[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.pearled .card.pearl .glass-on.icon::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 3px; background: #fbf5e8; color: var(--ink); box-shadow: 0 0 0 2px var(--deep), 0 4px 10px #0005; font: italic 15px/1.3 Lora, Georgia, serif; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 4; }
.pearled .card.pearl .glass-on.icon:hover::after, .pearled .card.pearl .glass-on.icon:focus-visible::after { opacity: 1; }
/* the buttons under a film sit on a little panel of the pearls (her "gingham"), in a gilt edge with a lace ruffle round it
   (her ask, 31 October 2026) */
.pearled .card.pearl .glass-row { position: relative; isolation: isolate; gap: 26px; margin: 18px 16px 16px; padding: 12px 30px; filter: drop-shadow(0 0 1px #7d6a45) drop-shadow(0 2px 3px #0003); }
.pearled .card.pearl .glass-row::after { content: ""; position: absolute; inset: 0; z-index: -1; border: 3px solid #b8913f; border-radius: 3px; box-shadow: 0 0 0 1px #6a4a10, 0 4px 10px #0004;
  background: radial-gradient(circle at 38% 34%, #fffdf7 0 14%, #efe6d6 34%, #b5a687 62%, transparent 68%) 0 0 / 15px 15px round, #cdb98f; }
.pearled .card.pearl .glass-row::before { content: ""; position: absolute; inset: -15px; padding: 7px; z-index: -2;
  background: radial-gradient(circle, #d9ccb0 0 1.5px, #fff 2px) 0 0 / 7px 7px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 7px, #000 96%, #0000) 0 0 / 14px 14px round;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 7px, #000 96%, #0000) 0 0 / 14px 14px round; }
/* the glass over a picture: nothing at the bottom to leave free, and the picture keeps its own frame (2026-10-31) */
.pearled .card.pearl .glassed.still .glass-over { bottom: 0; }
.pearled .card.pearl .stage .glass-box { display: inline-flex; }
/* one small glass at the bottom of the sheet, for everything on the card (2026-10-31, her ask: much smaller) */
.pearled .card.pearl .glass-row.loupe { width: max-content; margin: 22px auto 12px; padding: 5px 12px; gap: 0; }
.pearled .card.pearl .glass-row.loupe::before { inset: -10px; padding: 5px; -webkit-mask-size: auto, 10px 10px; mask-size: auto, 10px 10px;
  -webkit-mask-image: linear-gradient(#000 0 0), radial-gradient(circle 5px, #000 96%, #0000); mask-image: linear-gradient(#000 0 0), radial-gradient(circle 5px, #000 96%, #0000);
  background-size: 5px 5px; }
.pearled .card.pearl .glass-row.loupe::after { border-width: 2px; background-size: 11px 11px, auto; }
.pearled .card.pearl .glass-row.loupe .glass-on.icon { width: 32px; height: 32px; border-width: 2px; }
.pearled .card.pearl .glass-row.loupe .glass-on.icon svg { width: 19px; height: 19px; }

/* ---- her layout, 31 October 2026: the title on top, the art leads, the labels are little paper gift tags ---- */
.pearled .card.pearl .room { padding: 14px 14px 18px; }
.pearled .card.pearl .head { margin: 0 auto 8px; padding: 3px 14px 4px; }
.pearled .card.pearl .head h1 { font-size: 26px; line-height: 1.1; }
.pearled .card.pearl .stage .glassed > img { max-height: 76vh; }
/* at desk width the tags and the first words show under the picture without a scroll (31 October, the juror walk: at 1280
   by 800 only the tags' tips peeked out, and the card looked like just the picture) */
@media (min-width: 561px) { .pearled .card.pearl .stage .glassed > img { max-height: min(76vh, calc(100vh - 300px)); max-height: min(76vh, calc(100dvh - 300px)); } }
.pearled .card.pearl .panel { margin-top: 0; }
.pearled .card.pearl .panel > div { min-height: 0; padding: 10px 14px 12px; }
.pearled .card.pearl .panel, .pearled .card.pearl .panel p, .pearled .card.pearl .panel li, .pearled .card.pearl .panel dl, .pearled .card.pearl .panel dt,
.pearled .card.pearl .panel dd, .pearled .card.pearl .panel .story, .pearled .card.pearl .panel .plain, .pearled .card.pearl .panel .chosen { font-size: 15.5px; line-height: 1.45; }
.pearled .card.pearl .panel p { margin: 0 0 9px; }
.pearled .card.pearl .panel p.from { font: italic 14px Lora, Georgia, serif; color: var(--deep); margin-bottom: 6px; }
.pearled .card.pearl .panel h3 { font-size: 15px; margin: 8px 0 4px; }
.pearled .card.pearl .subs { gap: 5px; margin-bottom: 8px; }
.pearled .card.pearl .subs button, .pearled .card.pearl .choose button { padding: 4px 9px; font-size: 13px; border-width: 1.5px; }

/* the tags (her ask, 31 October 2026): little kraft paper gift tags tied to the top of the sheet's pearl edge, all tipping
   the same way, up and to the right; the word starts at the string and reads outward, left to right. The button is only the
   knot on the edge; the tag itself hangs from it. */
.pearled .card.pearl .room > .tabs { display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-end; gap: 0 42px; height: 96px; margin: 10px 0 0; padding-right: 56px; position: relative; z-index: 3; pointer-events: none; }   /* the row is only room for the fanned tags; on a wide screen its box lay over the × and took the click (guest book, 3 November), so only the tags take a touch */
.pearled .card.pearl .room > .tabs button { position: relative; flex: none; width: 10px; height: 4px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; pointer-events: auto; }
.pearled .card.pearl .room > .tabs button::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 15px; height: 1.5px; background: #7a5a2c; border-radius: 1px; transform-origin: 0 50%; transform: rotate(-58deg); }
.pearled .card.pearl .room > .tabs .tag { position: absolute; left: 50%; bottom: -2px; display: block; padding: 5px 10px 5px 21px; color: var(--ink); text-align: left; white-space: nowrap;
  font: 700 12.5px/1.15 "Playfair Display SC", Georgia, serif; letter-spacing: .04em; transform-origin: 0 50%; transform: translateY(50%) rotate(-58deg) translateX(12px);
  filter: drop-shadow(1px 2px 1.5px #0006); transition: transform .25s; }
.pearled .card.pearl .room > .tabs .tag::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 10px 50%, #0000 0 2.6px, #8f6d3d 3px 3.9px, #0000 4.3px), linear-gradient(180deg, #f8efd8, #e7d3a8);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.pearled .card.pearl .room > .tabs button[aria-selected="true"] .tag { font-weight: 900; }
.pearled .card.pearl .room > .tabs button[aria-selected="true"] .tag::before { background: radial-gradient(circle at 10px 50%, #0000 0 2.6px, #6a4a10 3px 3.9px, #0000 4.3px), var(--accent); }
.pearled .card.pearl .room > .tabs button:hover .tag { transform: translateY(50%) rotate(-52deg) translateX(12px); }
.pearled .card.pearl .room > .tabs button:focus-visible { outline: none; }
.pearled .card.pearl .room > .tabs button:focus-visible .tag { outline: 2px solid var(--deep); outline-offset: 2px; }

@media (max-width: 560px) {
  .pearled .card.pearl .room { padding: 8px 6px 14px; }
  .pearled .card.pearl .head { margin-bottom: 6px; padding: 2px 10px 3px; }
  .pearled .card.pearl .head h1 { font-size: 21px; }
  .pearled .card.pearl .stage .glassed > img { max-height: 62vh; }
  .pearled .card.pearl .panel > div { padding: 8px 9px 10px; }
  .pearled .card.pearl .panel, .pearled .card.pearl .panel p, .pearled .card.pearl .panel li, .pearled .card.pearl .panel dl, .pearled .card.pearl .panel dt,
  .pearled .card.pearl .panel dd, .pearled .card.pearl .panel .story, .pearled .card.pearl .panel .plain, .pearled .card.pearl .panel .chosen { font-size: 15px; }
  .pearled .card.pearl .room > .tabs { gap: 0 36px; height: 86px; padding-right: 48px; }
  .pearled .card.pearl .room > .tabs .tag { font-size: 11.5px; padding: 4px 8px 4px 19px; }
}
/* the Gallery tag's page: the old bedroom wall in small, every piece in its own mismatched frame on the plum wall */
.pearled .card.pearl .minwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 14px; align-items: center; padding: 16px 12px;
  background-color: #4e1230; background-image: radial-gradient(circle at 50% 50%, #ffffff10 0 2px, transparent 2.5px), radial-gradient(circle at 0 0, #00000026 0 6px, transparent 6.5px);
  background-size: 28px 28px, 56px 56px; border-radius: 2px; }
.pearled .card.pearl .minwall .mf { display: block; transform: rotate(var(--tilt, 0deg)); filter: drop-shadow(3px 5px 4px #000a); transition: transform .2s; }
.pearled .card.pearl .minwall .mf img { display: block; width: 100%; height: auto; box-sizing: border-box; background: #1a0610; }
.pearled .card.pearl .minwall .mf.gilt img { border: 6px solid #c9a24b; box-shadow: inset 0 0 0 2px #6a4a10; outline: 2px solid #e2b06a; outline-offset: -4px; }
.pearled .card.pearl .minwall .mf.black img { border: 5px solid #1a1218; }
.pearled .card.pearl .minwall .mf.white img { border: 5px solid #f2e2c4; padding: 6px; background: #fffdf6; }
.pearled .card.pearl .minwall .mf.pink img { border: 5px solid #c4477a; }
.pearled .card.pearl .minwall .mf.teal img { border: 5px solid #4fb3a9; }
.pearled .card.pearl .minwall .mf.oval img { border: 6px solid #c9a24b; border-radius: 50%; aspect-ratio: 3 / 4; object-fit: cover; }
.pearled .card.pearl .minwall .mf:hover, .pearled .card.pearl .minwall .mf:focus-visible { transform: rotate(0deg) scale(1.05); }
.pearled .card.pearl .minwall .mf.here { outline: 3px solid #fbf5e8; outline-offset: 4px; }
@media (max-width: 560px) { .pearled .card.pearl .minwall { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; padding: 10px 8px; } }
/* the tags in handwriting: Mynerve, her pick (31 October 2026) */
@font-face { font-family: Mynerve; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/mynerve.woff2) format("woff2"); }
.pearled .card.pearl .room > .tabs .tag { font: 400 17px/1.05 Mynerve, "Comic Sans MS", cursive; letter-spacing: .01em; }
.pearled .card.pearl .room > .tabs button[aria-selected="true"] .tag { font-weight: 400; text-shadow: 0 0 .5px currentColor; }
@media (max-width: 560px) { .pearled .card.pearl .room > .tabs .tag { font-size: 15.5px; } }
/* the string runs right into the hole (12px from the knot to the tag's tip, 10px more to the hole's middle), and the hole is
   punched a little bigger so the wall shows through it */
.pearled .card.pearl .room > .tabs button::after { width: 22px; z-index: 2; }
.pearled .card.pearl .room > .tabs .tag::before { background: radial-gradient(circle at 10px 50%, #0000 0 3.4px, #8f6d3d 3.8px 4.8px, #0000 5.2px), linear-gradient(180deg, #f8efd8, #e7d3a8); }
.pearled .card.pearl .room > .tabs button[aria-selected="true"] .tag::before { background: radial-gradient(circle at 10px 50%, #0000 0 3.4px, #6a4a10 3.8px 4.8px, #0000 5.2px), var(--accent); }
/* "of" sits centred under "Making" (her ask) */
.pearled .card.pearl .room > .tabs .tag { text-align: center; }
/* the Gallery page's top (her ask, 31 October 2026): two index tabs, like the ones stuck in an annotated book, peeking out
   from behind the wall; the wall itself a softer, lighter plum inside a gilt border */
.pearled .card.pearl .galtop { display: flex; justify-content: flex-start; align-items: flex-end; gap: 8px; margin: 4px 0 -7px 18px; position: relative; z-index: 0; }
.pearled .card.pearl .galtab { display: inline-block; padding: 5px 14px 12px; border-radius: 6px 6px 0 0; font: 400 17px/1.1 Mynerve, "Comic Sans MS", cursive; color: var(--ink);
  text-decoration: none; box-shadow: inset 0 -6px 6px -4px #0003, 1px -1px 2px #0002; transition: transform .2s; }
.pearled .card.pearl .galtab.home { background: var(--accent); }
.pearled .card.pearl .galtab.pick { background: #f6e7b8; transform: translateY(3px); }
.pearled .card.pearl .galtab.home:hover, .pearled .card.pearl .galtab.home:focus-visible { transform: translateY(-3px); }
.pearled .card.pearl .minwall { position: relative; z-index: 1; background-color: #5a2b3e; border: 5px solid #b8913f; box-shadow: inset 0 0 0 2px #6a4a10, 0 2px 6px #0004; }
@media (max-width: 560px) { .pearled .card.pearl .galtop { margin-left: 8px; gap: 5px; } .pearled .card.pearl .galtab { font-size: 15.5px; padding: 4px 10px 11px; } }
.pearled .card.pearl .galtab { white-space: nowrap; }
/* room at the bottom for the purse and the bag (31 October, the juror walk): wherever they sit over the card's corners,
   the sheet scrolls on far enough that its last words and a film's play button come up clear of them */
@media (max-width: 1250px) { .pearled .card.pearl .room { padding-bottom: 110px; scroll-padding-bottom: 110px; } }
/* a picture tapped opens big over the card (31 October, her ask): in the same gilt and pearl frame as the big one up top,
   on a dim veil over everything, the purse and bag included; its own glass button under it */
.pearled .card.pearl .zoom { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 16px; box-sizing: border-box; background: #2a1c2ee8; }
.pearled .card.pearl .zoom[hidden] { display: none; }
.pearled .card.pearl .zoom .glassed > img { box-sizing: border-box; display: block; width: auto; height: auto; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); padding: 22px; border: 5px solid #b8913f; border-radius: 2px;
  outline: 7px solid var(--soft); outline-offset: -27px; background: #fbf5e8; box-shadow: 0 10px 30px #000a; }
.pearled .card.pearl .zoom .x { position: fixed; top: 14px; right: 14px; z-index: 5; background: #fbf5e8; }
.pearled .card.pearl .zoom .glass-row.loupe { margin: 16px auto 6px; }
@media (max-width: 560px) { .pearled .card.pearl .zoom { padding: 8px; } .pearled .card.pearl .zoom .glassed > img { max-width: calc(100vw - 16px); padding: 14px; outline-width: 5px; outline-offset: -18px; } }
.pearled .card.pearl .zoom.wait .glassed, .pearled .card.pearl .zoom.wait .glass-row { visibility: hidden; }   /* no empty frame while the picture comes */
/* at desk width the picture stands on the left and everything about it on the right (31 October, her ask), so nothing
   needs a long scroll down: the title over the picture, the tags over the sheet, and only the sheet's words scroll */
@media (min-width: 900px) {
  .pearled .card.pearl .room { display: grid; grid-template-columns: auto minmax(340px, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 28px; overflow: hidden; }
  .pearled .card.pearl .room > .head { grid-column: 1; grid-row: 1; align-self: end; }
  .pearled .card.pearl .room > .stage { grid-column: 1; grid-row: 2; align-self: start; }
  .pearled .card.pearl .room > .tabs { grid-column: 2; grid-row: 1; margin: 0; }
  .pearled .card.pearl .room > .panel { grid-column: 2; grid-row: 2; align-self: start; display: flex; flex-direction: column; max-height: 100%; }
  .pearled .card.pearl .room > .panel > div { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--deep) transparent;
    background: #fbf5e8 url(../art/dress/paper-card.webp) center / 256px; background-attachment: local; }
  .pearled .card.pearl .room > .panel > div::before { display: none; }
  .pearled .card.pearl .stage .glassed > img { max-height: calc(100vh - 240px); max-height: calc(100dvh - 240px); }
}
@media (min-width: 900px) and (max-width: 1250px) {
  .pearled .card.pearl .room { padding-bottom: 90px; }
  .pearled .card.pearl .stage .glassed > img { max-height: calc(100vh - 300px); max-height: calc(100dvh - 300px); }
}
/* the big picture up top opens big too (31 October, her ask); in the open view card.js sizes the picture to the screen */
.pearled .card.pearl .stage .glassed:not(.looking) > img { cursor: zoom-in; }
.pearled .card.pearl .zoom .glassed > img { max-width: none; max-height: none; }
/* while the glass is on, the film's own buttons are gone, so the glass covers all of it and a long touch brings up nothing (31 October) */
.pearled .card.pearl .glassed.looking .glass-over { bottom: 0; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* THE CARD FITS THE SCREEN (her walk, 2 November: "the main box scrolls instead of fitting to your screen, which is ultimately what
   it needs to do"; "the title underneath the image, three fourths of the size"; "the tags need made smaller ... up where the title
   starts"). Nothing scrolls but the sheet the tags choose, which fits its words up to the room left. --foot is what the
   footer and the purse cover at the bottom of the card. The two screen shapes below take the place of the older rules above. */
/* no page scrollbar, ever: the card is the screen's size, and in the room's frame the 28px the room adds under a page for its own
   footer made the page taller than the frame, so a scrollbar came up on a card that already fit (room-view.js dress) */
body.pearled { overflow: hidden; padding-bottom: 14px !important; }
.pearled .card.pearl { --foot: 18px; }
@media (max-width: 1250px) { .pearled .card.pearl { --foot: 58px; } }
.pearled .card.pearl .room { overflow: hidden; padding-bottom: var(--foot); scroll-padding-bottom: 0; }
.pearled .card.pearl .room > .head { padding: 2px 10px 3px; }
.pearled .card.pearl .head h1 { font-size: 19px; }
.pearled .card.pearl .room > .tabs { gap: 0 32px; height: 72px; margin: 0; padding-right: 56px; }
.pearled .card.pearl .room > .tabs .tag { font-size: 13px; padding: 3px 8px 3px 17px; }
.pearled .card.pearl .room > .tabs button::after { width: 14px; }
.pearled .card.pearl .room > .panel { display: flex; flex-direction: column; align-self: start; max-height: 100%; min-height: 0; }
.pearled .card.pearl .room > .panel > div { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--deep) transparent;
  background: #fbf5e8 url(../art/dress/paper-card.webp) center / 256px; background-attachment: local; }
.pearled .card.pearl .room > .panel > div::before { display: none; }
/* wider than tall: the picture and its title on the left, the tags and the sheet on the right */
@media (min-aspect-ratio: 1/1) {
  .pearled .card.pearl { width: min(calc(100vw - 28px), 1300px); max-width: none; }
  .pearled .card.pearl .room { display: grid; grid-template-columns: auto minmax(240px, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 26px; }
  .pearled .card.pearl .room > .stage { grid-column: 1; grid-row: 1; align-self: start; }
  .pearled .card.pearl .room > .head { grid-column: 1; grid-row: 2; align-self: start; justify-self: center; margin: 6px 0 0; }
  .pearled .card.pearl .room > .tabs { grid-column: 2; grid-row: 1; align-self: start; }
  .pearled .card.pearl .room > .panel { grid-column: 2; grid-row: 1 / 3; margin-top: 72px; max-height: calc(100% - 72px); }
  .pearled .card.pearl .stage .glassed > img { max-height: calc(100vh - 118px - var(--foot)); max-height: calc(100dvh - 118px - var(--foot));
    max-width: calc(min(100vw - 28px, 1300px) * .6); }   /* a wide picture leaves the sheet its share */
}
/* taller than wide: one above the other, the picture leaving room for the sheet */
@media (max-aspect-ratio: 1/1) {
  .pearled .card.pearl { --foot: 74px; }
  .pearled .card.pearl .room { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); justify-items: center; }
  .pearled .card.pearl .room > .panel { justify-self: stretch; }
  .pearled .card.pearl .room > .head { margin: 4px auto 0; }
  .pearled .card.pearl .room > .tabs { justify-self: stretch; }
  .pearled .card.pearl .stage .glassed > img { max-height: 40vh; max-height: 40dvh; }
}

/* a phone on its side, or any short window (her walk, 2 November: "huge text for the name of it, and then a tiny ass image below
   it"): the picture stacked under the title was left only what 300px of tags and words did not use, 80 by 90 on a phone. Here
   the picture takes the height on the left, the title, tags and words beside it on the right. Last in the file, so it wins. */
@media (min-width: 561px) and (max-height: 620px) {
  .pearled .card.pearl .room { display: grid; grid-template-columns: auto minmax(240px, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 20px; overflow: hidden; --foot: 40px; }
  .pearled .card.pearl .room > .stage { grid-column: 1; grid-row: 1 / 4; align-self: start; }
  .pearled .card.pearl .room > .head { grid-column: 2; grid-row: 1; margin: 0 0 4px; justify-self: start; }
  .pearled .card.pearl .room > .tabs { grid-column: 2; grid-row: 2; margin: 0; }
  .pearled .card.pearl .room > .panel { grid-column: 2; grid-row: 3; align-self: start; display: flex; flex-direction: column; margin-top: 0; max-height: 100%; }
  .pearled .card.pearl .room > .panel > div { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--deep) transparent;
    background: #fbf5e8 url(../art/dress/paper-card.webp) center / 256px; background-attachment: local; }
  .pearled .card.pearl .room > .panel > div::before { display: none; }
  .pearled .card.pearl .stage .glassed > img { max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); }
  .pearled .card.pearl .head h1 { font-size: 21px; }
}
