@font-face {
	font-family: "Familjen Grotesk";
	src: url("/fonts/familjen-grotesk.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}

:root {
	--bg: #0f2b21;
	--surface: #17392c;
	--line: #2d5344;
	--sleeve: #0c2219; /* inside an empty pocket, a shade deeper than the page */
	--text: #f5f3ea;
	--muted: #b4c5bb;
	--mango: #ffa733;
	--on-mango: #10241b;
	--felt: #232323; /* the scanner felt, so a scan's edge doesn't show against its frame */
	--ease: cubic-bezier(.16, 1, .3, 1);
	--side: 272px;
	color-scheme: dark;
}

* { box-sizing: border-box; }
::selection { background: var(--mango); color: var(--on-mango); }
html { scrollbar-color: var(--line) var(--bg); }
html:has(.big[open]) { overflow: hidden; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.5 "Familjen Grotesk", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

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

/* The shop: dividers and filters down the side, the binder beside them. */
.shop {
	display: grid;
	grid-template-columns: var(--side) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 48px);
	max-width: 1480px;
	margin: 0 auto;
	padding-inline: clamp(16px, 3vw, 40px);
}

.side {
	position: sticky;
	top: 0;
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-height: 100dvh;
	padding-block: 34px 24px;
	overflow-y: auto;
	scrollbar-width: thin;
}
.side__head h1 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.side__head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.side__foot { margin: auto 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.side__foot p { margin: 0; }
.ship { margin-bottom: 14px; padding: 14px 14px 12px; border-radius: 8px; background: var(--surface); }
.ship h2 { margin: 0 0 6px; color: var(--text); font-size: 15px; font-weight: 600; }
.ship dl { margin: 0 0 8px; }
.ship dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.ship dl div:last-child { border-bottom: 0; }
.ship dt { color: var(--text); font-size: 14px; }
.ship dd { margin: 0; color: var(--text); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ship__free dd { color: var(--mango); }

/* Singles and slabs, the binder's two dividers. */
.dividers { display: flex; flex-direction: column; gap: 6px; }
.dividers button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 52px;
	padding: 0 16px 0 18px;
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	color: var(--text);
	background: var(--surface);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}
.dividers button:hover { background: var(--line); }
.dividers button span { color: var(--muted); font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dividers button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.dividers button[aria-pressed="true"] span { color: var(--bg); opacity: .7; }

/* Search and filters: always open on a computer, one button on a phone. */
.find summary { display: none; }
.find__fields, .find__filters { display: flex; flex-direction: column; gap: 8px; }
.find input, .find select {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	font: inherit;
	font-size: 16px;
	color: var(--text);
	caret-color: var(--mango);
	background-color: var(--surface);
	border: 0;
	border-radius: 8px;
}
.find input::placeholder { color: var(--muted); opacity: 1; }
.find select {
	appearance: none;
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b4c5bb' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}
.find input:hover, .find select:hover { background-color: var(--line); }
.find__fields > select { margin-bottom: 6px; }
.find__check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; color: var(--muted); font-size: 15px; cursor: pointer; }
.find__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--mango); }
.find__count { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 0; margin: 0; color: var(--muted); font-size: 14.5px; }
.find__count:has(.link:not([hidden])), .find__count:has(span:not(:empty)) { min-height: 44px; }
.find__count .link { margin-inline: 0 -12px; }
.find__on { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 8px; padding: 0 6px; border-radius: 6px; background: var(--mango); color: var(--on-mango); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.views { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.views button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 0; border-radius: 8px; cursor: pointer; }
.views button:hover { background: var(--line); }
.views button[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 600; }

.shelf { min-width: 0; max-width: 1000px; padding-block: 34px clamp(32px, 4vw, 56px); perspective: 1800px; }
.note { margin: 0 0 24px; color: var(--muted); }

/* ---------------------------------------------------------------
 * The binder page: a 9-pocket sheet, punched down its left edge.
 * ------------------------------------------------------------- */
.grid.is-binder {
	--hole: var(--surface);
	--pad: clamp(16px, 2vw, 28px);
	--margin: clamp(46px, 4.2vw, 62px);
	position: relative;
	display: grid;
	max-width: 1000px; /* past this the pockets outgrow a real page */
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: clamp(18px, 2vw, 28px) clamp(12px, 1.5vw, 20px);
	padding: var(--pad) var(--pad) var(--pad) var(--margin);
	background: var(--surface);
	border-radius: 12px;
	transform-origin: left center;
}
.grid.is-binder:empty { display: none; }
/* Three punched holes, and the reinforced strip they sit in. */
.grid.is-binder::before {
	content: "";
	position: absolute;
	left: calc(var(--margin) / 2 - 9px);
	top: 0;
	bottom: 0;
	width: 18px;
	background:
		radial-gradient(circle, var(--bg) 0 8px, transparent 8.5px) center 14% / 18px 18px no-repeat,
		radial-gradient(circle, var(--bg) 0 8px, transparent 8.5px) center 50% / 18px 18px no-repeat,
		radial-gradient(circle, var(--bg) 0 8px, transparent 8.5px) center 86% / 18px 18px no-repeat;
	pointer-events: none;
}
.grid.is-binder::after {
	content: "";
	position: absolute;
	left: calc(var(--margin) - 12px);
	top: var(--pad);
	bottom: var(--pad);
	width: 1px;
	background: rgba(245, 243, 234, .07);
	pointer-events: none;
}

.pocket { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* The clear sleeve. Its glint sweeps across when you point at it. */
.pocket__sleeve {
	position: relative;
	aspect-ratio: 3 / 4;
	border-radius: 8px;
	background: var(--sleeve);
	box-shadow: inset 0 0 0 1px rgba(245, 243, 234, .07);
}
.is-slabs .pocket__sleeve { aspect-ratio: 3 / 5; }
.pocket__sleeve::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .075) 47%, rgba(255, 255, 255, .02) 53%, transparent 60%) 100% 0 / 260% 100% no-repeat;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(245, 243, 234, .05);
	pointer-events: none;
	transition: background-position .6s var(--ease);
}
.pocket.is-empty .pocket__sleeve::after { background-image: none; }

.pocket__card {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 4%;
	font: inherit;
	background: none;
	border: 0;
	border-radius: inherit;
	cursor: zoom-in;
	perspective: 1100px;
}
.pocket__window {
	position: relative;
	display: block;
	width: 97%;
	aspect-ratio: .727;
	border-radius: 4px;
	transform-style: preserve-3d;
	transition: transform .42s var(--ease), translate .2s var(--ease);
}
.is-slabs .pocket__window { aspect-ratio: .59; }
.pocket__face { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--felt); backface-visibility: hidden; }
.pocket__face img { position: absolute; top: 0; left: 0; display: block; width: 200%; max-width: none; height: 100%; }
.pocket__face--back { transform: rotateY(180deg); }
.pocket__face--back img { left: -100%; }
.is-slab .pocket__face img { width: 100%; }
.pocket.is-back .pocket__window { transform: rotateY(180deg); }
.pocket.is-sold .pocket__window { opacity: .45; }

/* Turn the card over in its sleeve to see the back. */
.pocket__turn {
	position: absolute;
	right: 4px;
	bottom: 4px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--text);
	background: none;
	border: 0;
	cursor: pointer;
}
.pocket__turn .icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(15, 43, 33, .86);
	box-shadow: inset 0 0 0 1px rgba(245, 243, 234, .16);
	transition: background-color .12s, color .12s, transform .1s ease-out;
}
.pocket__turn:hover .icon { background: var(--surface); }
.pocket__turn[aria-pressed="true"] .icon { background: var(--text); color: var(--bg); }
.pocket__turn:active .icon { transform: scale(.92); }
.pocket__turn:focus-visible { outline: 0; }
.pocket__turn:focus-visible .icon { outline: 2px solid var(--mango); outline-offset: 2px; }

/* The caption under the pocket: name and price tag, then condition and set. */
.pocket__cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding-inline: 2px; }
.pocket__name { grid-column: 1; grid-row: 1; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pocket__cap .tag { grid-column: 2; grid-row: 1; }
.pocket__meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px 8px; min-width: 0; margin: 0; color: var(--muted); font-size: 14px; }
.pocket__set { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pocket__when, .item__when { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pocket__when { grid-column: 1 / -1; }
.item__when { grid-column: 1 / -1; grid-row: 3; }

/* Turning the page swings it in from the rings. */
.grid.is-turn-next { animation: turn-next .3s var(--ease); }
.grid.is-turn-back { animation: turn-back .3s var(--ease); }
@keyframes turn-next { from { opacity: .2; transform: translateX(26px) rotateY(-4deg); } }
@keyframes turn-back { from { opacity: .2; transform: translateX(-26px) rotateY(4deg); } }

/* The page turner stays in reach while you scroll a tall page. */
.pager {
	position: sticky;
	bottom: 16px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 4px;
	width: fit-content;
	margin: 18px auto 0;
	padding: 4px;
	border-radius: 12px;
	background: var(--bg);
	box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -10px rgba(0, 0, 0, .7);
}
.pager__turn { display: grid; place-items: center; width: 48px; height: 44px; padding: 0; color: var(--text); background: var(--surface); border: 0; border-radius: 8px; cursor: pointer; transition: background-color .12s, transform .1s ease-out; }
.pager__turn:hover:not(:disabled) { background: var(--line); }
.pager__turn:active:not(:disabled) { transform: scale(.94); }
.pager__turn:disabled { opacity: .35; cursor: default; }
.pager__at { min-width: 11ch; margin: 0; padding-inline: 10px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------
 * The list: one row per card.
 * ------------------------------------------------------------- */
.grid.is-list { display: block; }
.item { display: grid; grid-template-columns: clamp(96px, 8vw, 108px) minmax(0, 1fr); align-items: center; gap: 14px; padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: zoom-in; }
.item:first-child { border-top: 1px solid var(--line); }
.item__pic { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 6px; background: var(--felt); cursor: zoom-in; overflow: hidden; }
.item__pic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.is-slabs .item__pic img { aspect-ratio: 3 / 4; }
.item.is-sold .item__pic img { opacity: .45; }
.item__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
.item__name { grid-column: 1 / -1; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.item__body .tag { grid-column: 2; grid-row: 2; justify-self: end; align-self: center; }
.item__meta { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; color: var(--muted); font-size: 14.5px; }

/* Condition, from green for the best to red for the worst. */
.cond { --c: var(--muted); padding: 1px 8px; border-radius: 6px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cond--grade { --c: var(--text); }
.cond[data-condition="Near Mint"] { --c: #5fdc9a; }
.cond[data-condition="Lightly Played"] { --c: #bfe36b; }
.cond[data-condition="Moderately Played"] { --c: #f5dc62; }
.cond[data-condition="Heavily Played"] { --c: #ffa877; }
.cond[data-condition="Damaged"] { --c: #ff959b; }

/* The price tag: the point leans towards the name, and the punched hole shows what's behind it. */
.tag {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	height: 30px;
	margin-left: 12px;
	padding: 0 10px 0 8px;
	border-radius: 0 6px 6px 0;
	background: var(--mango);
	color: var(--on-mango);
	font-size: 16px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.tag::before { content: ""; position: absolute; z-index: -1; left: -10.5px; top: 50%; width: 21px; height: 21px; border-radius: 4px; background: inherit; transform: translateY(-50%) rotate(45deg); }
.tag::after { content: ""; position: absolute; left: -6px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--hole, var(--bg)); transform: translateY(-50%); }
.tag.is-sold { background: var(--line); color: var(--muted); }
.tag--big { align-self: flex-start; height: 38px; margin: 2px 0 0 15px; padding: 0 14px 0 10px; font-size: 22px; }
.tag--big::before { left: -13.5px; width: 27px; height: 27px; }
.tag--big::after { left: -8px; width: 8px; height: 8px; }

/* Links grow their hit area, not their look. */
.link { display: inline-flex; align-items: center; min-height: 44px; margin-inline: -12px; padding: 0 12px; font: inherit; font-size: 14.5px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.link:hover { color: var(--text); }
.link.is-copied { color: var(--mango); }

/* ---------------------------------------------------------------
 * The large view and its loupe.
 * ------------------------------------------------------------- */
.big {
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--bg);
	color: var(--text);
	overflow: auto;
}
.big[open] { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.big::backdrop { background: var(--bg); }
.big__stage { display: grid; place-items: center; min-width: 0; min-height: 0; padding: clamp(12px, 2.4vw, 32px); }
.big img { display: block; width: 100%; height: 100%; max-height: calc(100dvh - 2 * clamp(12px, 2.4vw, 32px)); object-fit: contain; border-radius: 10px; }
.big__side { display: flex; flex-direction: column; gap: 10px; padding: 72px 28px 24px 0; }
.big__side h2 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.big__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; color: var(--muted); font-size: 15px; }
.big__copy { align-self: flex-start; margin-top: -4px; }
.big__when { margin: 0; color: var(--muted); font-size: 14px; }
.big__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--text); background: var(--surface); border: 0; border-radius: 8px; cursor: pointer; }
.big__close:hover { background: var(--line); }

.zoom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 12px; }
.zoom span { grid-column: 1 / -1; color: var(--muted); font-size: 14.5px; }
.zoom button { height: 44px; padding: 0; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 0; border-radius: 8px; cursor: pointer; }
.zoom button:hover { background: var(--line); }
.zoom button[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 600; }

.big.is-zoom img { touch-action: none; cursor: crosshair; }
.big__tip { display: none; color: var(--muted); font-size: 14.5px; }

.lens {
	position: fixed;
	inset: auto;
	margin: 0;
	padding: 0;
	overflow: visible;
	border: 2px solid var(--mango);
	border-radius: 50%;
	background-color: var(--felt);
	background-repeat: no-repeat;
	box-shadow: 0 12px 28px -6px rgba(0, 0, 0, .6);
	pointer-events: none;
}
.lens::after {
	content: attr(data-level);
	position: absolute;
	right: 8%;
	bottom: 6%;
	padding: 1px 7px;
	border-radius: 6px;
	background: var(--mango);
	color: var(--on-mango);
	font-size: 13px;
	font-weight: 700;
}

::view-transition-group(plate) { animation-duration: .25s; animation-timing-function: var(--ease); }
::view-transition { pointer-events: none; }

/* A quick press so every tap visibly lands. */
.dividers button, .views button, .zoom button, .big__close, .link { transition: transform .1s ease-out, background-color .12s, color .12s; }
.dividers button:active, .views button:active, .zoom button:active, .big__close:active, .link:active { transform: scale(.96); }

@media (hover: hover) {
	.pocket:not(.is-empty):hover .pocket__sleeve::after { background-position: 0 0; }
	.pocket__card:hover .pocket__window { translate: 0 -2%; }
	.pocket__turn { opacity: 0; transition: opacity .15s; }
	.pocket:hover .pocket__turn, .pocket__turn:focus-visible, .pocket.is-back .pocket__turn { opacity: 1; }
	.item:hover { --hole: var(--surface); background: var(--surface); }
}
@media (hover: none) {
	.big.is-zoom .big__tip { display: block; }
}
@media (min-width: 761px) {
	.item__body { grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1fr) 176px; align-items: center; gap: 0 20px; }
	.item__name { grid-column: 1; }
	.item__meta { display: contents; }
	.item__set { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 14.5px; }
	.item__condition { grid-column: 3; grid-row: 1; justify-self: start; }
	.item__body .tag { grid-column: 4; grid-row: 1; }
	.item__when { grid-column: 4; grid-row: 2; justify-self: end; }
}
@media (max-width: 1100px) and (min-width: 761px) {
	.item__body { grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1fr) 130px; }
	.item__when { grid-column: 1 / -1; justify-self: start; }
	:root { --side: 232px; }
	.pocket__cap { grid-template-columns: minmax(0, 1fr); }
	.pocket__cap .tag { grid-column: 1; grid-row: 2; justify-self: start; }
}
/* A phone: the side folds into a strip above the binder, and a page holds two pockets across. */
@media (max-width: 760px) {
	.shop { display: flex; flex-direction: column; gap: 14px; }
	.side { display: contents; }
	.side__head { padding-top: 22px; }
	.side__head p { margin-top: 4px; }
	.dividers { flex-direction: row; }
	.dividers button { flex: 1; height: 48px; }
	.find summary {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 44px;
		border-radius: 8px;
		background: var(--surface);
		font-weight: 600;
		cursor: pointer;
		list-style: none;
	}
	.find summary::-webkit-details-marker { display: none; }
	.find summary::before { content: ""; width: 16px; height: 16px; margin-right: 8px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 4h12M4.5 8h7M7 12h2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 4h12M4.5 8h7M7 12h2'/%3E%3C/svg%3E") center / contain no-repeat; }
	.find[open] summary { margin-bottom: 8px; background: var(--line); }
	.find__filters { display: grid; grid-template-columns: 1fr 1fr; }
	.find__filters select:last-of-type:nth-of-type(odd), .find__check { grid-column: 1 / -1; }
	.find__fields > select { margin-bottom: 0; }
	.shelf { order: 1; padding-block: 0 24px; }
	.side__foot { order: 2; padding-bottom: 28px; }
	.grid.is-binder { --margin: 38px; --pad: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
	.grid.is-binder::before { left: calc(var(--margin) / 2 - 8px); width: 16px; background:
		radial-gradient(circle, var(--bg) 0 6.5px, transparent 7px) center 14% / 16px 16px no-repeat,
		radial-gradient(circle, var(--bg) 0 6.5px, transparent 7px) center 50% / 16px 16px no-repeat,
		radial-gradient(circle, var(--bg) 0 6.5px, transparent 7px) center 86% / 16px 16px no-repeat; }
	.grid.is-binder::after { left: calc(var(--margin) - 7px); }
	.pocket { gap: 8px; }
	.pocket__cap { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.pocket__name { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.pocket__cap .tag { grid-column: 1; grid-row: 2; justify-self: start; height: 28px; font-size: 15px; }
	.pocket__meta { font-size: 13px; }
	.pocket__set { display: none; }
	.pocket__turn { right: 2px; bottom: 2px; }
	.pocket__turn .icon { width: 32px; height: 32px; }
	.pager { bottom: 12px; margin-top: 14px; }
}
@media (max-width: 980px) {
	.big[open] { display: block; }
	.big__stage { padding: 68px 12px 8px; }
	.big img { height: auto; max-height: none; }
	.big__side { padding: 8px 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.grid.is-turn-next, .grid.is-turn-back { animation: none; }
	.pocket__window, .pocket__sleeve::after, .pocket__turn, .pocket__turn .icon, .pager__turn { transition: none; }
	.pocket__card:hover .pocket__window { translate: none; }
	.dividers button, .views button, .zoom button, .big__close, .link { transition: none; }
	.dividers button:active, .views button:active, .zoom button:active, .big__close:active, .link:active, .pager__turn:active:not(:disabled), .pocket__turn:active .icon { transform: none; }
}

[hidden] { display: none !important; }

/* The seller's extra photos: thumbnails in the large view, and a count on the card. */
.big__photos { display: flex; flex-wrap: wrap; gap: 8px; }
.big__photos[hidden] { display: none; }
.big__photo { width: 60px; height: 60px; padding: 0; overflow: hidden; background: var(--surface); border: 2px solid transparent; border-radius: 8px; cursor: pointer; transition: border-color .12s; }
.big__photo:hover { border-color: var(--line); }
.big__photo[aria-pressed="true"] { border-color: var(--mango, #ffa733); }
.big .big__photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; }
.pocket__more, .item__more { flex: none; color: var(--mango, #ffa733); white-space: nowrap; }
@media (pointer: coarse) {
	.big__photo { width: 64px; height: 64px; }
}
