/* NOIRIX gallery pages (owner brief 15 Oct 2026): the Wishlist (owner images 1 and 2) and The Void
   Collection share one card. Colours and type are the site header's tokens (noirix-site-header.css):
   black page, cream text, muted grey, gold #c9a96e; Inter for text (the mock-ups' sans), as on the
   rest of the account pages. Phone first (390 px), then 3 columns on tablets and 4 on computers. */
.nrx-gal {
  --gal-bg: #050505;
  --gal-card: #161616;
  --gal-line: rgba(255, 255, 255, 0.1);
  --gal-text: #f0ede8;
  --gal-muted: #a7a19a; /* 7.6:1 on black (AA for small text; the old #6b6560 was 3.6:1) */
  --gal-gold: #c9a96e;
  --gal-cream: #f4f1ea;
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--noirix-mobile-header-height, 70px) + 22px) 22px 48px;
  color: var(--gal-text);
  font-family: Inter, Arial, sans-serif;
  background: var(--gal-bg);
}
.nrx-gal *, .nrx-gal *::before, .nrx-gal *::after { box-sizing: border-box; }
.nrx-gal a { color: inherit; }
.nrx-gal :focus-visible { outline: 2px solid var(--gal-gold); outline-offset: 3px; }

.nrx-gal-back { margin-bottom: 18px; }

.nrx-gal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 18px; }
.nrx-gal-title {
  margin: 0; font-family: var(--noirix-display, "Cormorant Garamond", Georgia, serif); font-weight: 400; letter-spacing: 0.08em;
  font-size: clamp(34px, 9vw, 56px); line-height: 1; color: var(--gal-text); text-transform: uppercase;
}
.nrx-gal-count { color: var(--gal-muted); font: 500 11px/1 Inter, Arial, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.nrx-gal-sub { margin: 14px 0 0; color: var(--gal-muted); font-size: 15px; line-height: 1.7; }
.nrx-gal-eyebrow { margin: 0 0 12px; color: var(--noirix-label-gold, #b8975a); font-size: 11px; letter-spacing: 0.27em; text-transform: uppercase; font-weight: 500; }

.nrx-gal-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 22px; border-bottom: 1px solid var(--gal-line); }
.nrx-gal-tab {
  display: inline-block; padding: 14px 0 12px; margin-bottom: -1px; border: 0; background: none; color: var(--gal-text);
  font: 500 11px/1 Inter, Arial, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; border-bottom: 1px solid var(--noirix-label-gold, #b8975a);
}
.nrx-gal-sort { position: relative; display: inline-flex; align-items: center; }
.nrx-gal-sort select {
  appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 32px 0 8px; border: 0; border-radius: 0; background: transparent;
  color: var(--gal-text); font: 500 11px/1 Inter, Arial, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; text-align: right;
}
.nrx-gal-sort .nrx-icon { position: absolute; right: 6px; width: 14px; height: 14px; color: var(--gal-muted); pointer-events: none; }
.nrx-gal-sort select option { color: #050505; }

.nrx-gal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .nrx-gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 16px; } .nrx-gal { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1100px) { .nrx-gal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.nrx-gal-card { position: relative; display: flex; flex-direction: column; min-width: 0; transition: opacity 220ms ease, transform 220ms ease; }
.nrx-gal-card.is-leaving { opacity: 0; transform: scale(0.97); }
.nrx-gal-media { position: relative; display: block; aspect-ratio: 5 / 7; overflow: hidden; border-radius: 10px; background: var(--gal-card); }
.nrx-gal-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.nrx-gal-heart {
  position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--gal-cream); cursor: pointer;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55)); transition: transform 150ms ease, color 150ms ease;
}
.nrx-gal-heart .nrx-icon { width: 22px; height: 22px; }
.nrx-gal-heart[aria-pressed="true"] { color: var(--gal-gold); }
.nrx-gal-heart:active { transform: scale(0.9); }
.nrx-gal-name {
  margin: 14px 0 0; font: 500 12px/1.4 Inter, Arial, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gal-text);
  /* Two lines kept for every name, so colour, status and the link line up across a row (round 2, item 2.5). */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.4em);
}
.nrx-gal-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--gal-muted); font-size: 13px; line-height: 1.35; }
.nrx-gal-meta span:last-child { text-align: right; }
.nrx-gal-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 2px;
  color: var(--gal-text); font: 500 11px/1.4 Inter, Arial, sans-serif; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(244, 241, 234, 0.35);
}
.nrx-gal-link .nrx-icon { width: 12px; height: 12px; }
.nrx-gal-link:hover { text-decoration-color: currentColor; }
.nrx-gal-buy { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.nrx-gal-buy select, .nrx-gal-buy button {
  min-height: 44px; border-radius: 0; font: 500 11px Inter, Arial, sans-serif; letter-spacing: 0.16em; text-transform: uppercase;
}
.nrx-gal-buy select { padding: 0 10px; border: 1px solid var(--gal-line); background: #0d0d0d; color: var(--gal-text); }
.nrx-gal-buy button { border: 0; background: var(--gal-cream); color: #050505; cursor: pointer; }
.nrx-gal-buy button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Empty state (owner image 2) */
.nrx-gal-empty {
  margin-top: 30px; padding: 30px 24px 26px; border: 1px solid var(--gal-line); border-radius: 0; background: #0b0b0b;
}
.nrx-gal-empty-icon { display: inline-flex; color: var(--gal-cream); }
.nrx-gal-empty-icon .nrx-icon { width: 30px; height: 30px; }
.nrx-gal-empty h2 { margin: 18px 0 0; font: 400 26px/1.1 var(--noirix-display, "Cormorant Garamond", Georgia, serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gal-text); }
.nrx-gal-empty p { margin: 10px 0 0; max-width: 340px; color: var(--gal-muted); font-size: 15px; line-height: 1.7; }
.nrx-gal-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin-top: 24px; padding: 13px 20px;
  border: 1px solid var(--gal-cream); border-radius: 0; background: var(--gal-cream); color: #050505 !important;
  font: 500 12px/1 Inter, Arial, sans-serif; letter-spacing: 0.17em; text-transform: uppercase; text-decoration: none;
}
.nrx-gal-cta:hover { background: #fff; }
.nrx-gal-signin { display: inline-block; margin-top: 20px; color: var(--gal-muted); font: 500 11px/1.4 Inter, Arial, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; }
.nrx-gal-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 44px 0 16px; }
.nrx-gal-section-head h2 { margin: 0; font: 400 24px/1.1 var(--noirix-display, "Cormorant Garamond", Georgia, serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gal-text); }
.nrx-gal-viewall { display: inline-flex; align-items: center; gap: 6px; color: var(--noirix-label-gold, #b8975a) !important; font: 500 11px/1.4 Inter, Arial, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; }
.nrx-gal-viewall .nrx-icon { width: 12px; height: 12px; }

/* Loading and error */
.nrx-gal-skeleton .nrx-gal-media { background: linear-gradient(100deg, #121212 30%, #1c1c1c 50%, #121212 70%); background-size: 200% 100%; animation: nrx-gal-shimmer 1.4s linear infinite; }
.nrx-gal-skeleton .nrx-gal-line { height: 12px; margin-top: 12px; border-radius: 4px; background: #151515; }
.nrx-gal-skeleton .nrx-gal-line + .nrx-gal-line { width: 60%; }
@keyframes nrx-gal-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .nrx-gal-skeleton .nrx-gal-media { animation: none; } .nrx-gal-card { transition: none; } }
.nrx-gal-error { margin-top: 30px; color: var(--gal-muted); font-size: 16px; }
.nrx-gal-error button { margin-left: 8px; border: 0; background: none; color: var(--gal-gold); text-decoration: underline; font: inherit; cursor: pointer; min-height: 44px; }

/* Toast with Undo */
.nrx-gal-toast {
  position: fixed; left: 50%; bottom: calc(var(--noirix-nav-h, 77px) + 16px); z-index: 60; transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 18px; padding: 12px 16px 12px 18px; border: 1px solid var(--gal-line); border-radius: 8px;
  background: rgba(12, 12, 12, 0.96); color: var(--gal-text); font: 400 15px Inter, Arial, sans-serif; opacity: 0; pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.nrx-gal-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.nrx-gal-toast button { min-height: 36px; border: 0; background: none; color: var(--gal-gold); font: 500 15px Inter, Arial, sans-serif; text-decoration: underline; cursor: pointer; }

/* The Void Collection: release block */
.nrx-void-hero { margin-top: 10px; }
.nrx-void-desc { margin: 14px 0 0; max-width: 560px; color: var(--gal-muted); font-size: 18px; line-height: 1.5; }
.nrx-void-release {
  margin-top: 40px; padding: 28px 24px; border: 1px solid var(--gal-line); border-radius: 10px; background: #0b0b0b;
}
.nrx-void-release p { margin: 0; color: var(--gal-text); font-size: 17px; line-height: 1.5; }
.nrx-void-release .nrx-gal-cta { max-width: 420px; }
.nrx-gal .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#drop-001 { scroll-margin-top: calc(var(--noirix-mobile-header-height, 70px) + 8px); }
/* Headings use the site's display face (luxury-redesign.css: Cormorant Garamond capitals); the card name
   stays one size so two-line names line up. */
.nrx-gal .nrx-gal-name { font-size: 15px !important; letter-spacing: 0.1em !important; line-height: 1.35; }
.nrx-gal-meta--stack { flex-direction: column; gap: 2px; }
.nrx-gal-meta--stack span:last-child { text-align: left; }
.nrx-void-release .nrx-gal-eyebrow { margin: 0 0 10px; color: var(--gal-gold); font-size: 12px; }
/* Empty wishlist: the Void row shows name and status only (owner image 2); the photo is the link and
   the "View piece" link stays for screen readers and keyboards. */
.nrx-gal-grid--compact .nrx-gal-meta span:first-child { display: none; }
.nrx-gal-grid--compact .nrx-gal-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.nrx-gal-grid--compact .nrx-gal-link:focus { position: static; width: auto; height: auto; clip: auto; }
.nrx-gal .nrx-gal-sort select { border: 0 !important; background: transparent !important; box-shadow: none !important; width: auto !important; }
.nrx-gal-viewall { white-space: nowrap; flex: 0 0 auto; }
.nrx-gal-section-head h2 { min-width: 0; }

/* Product page extras (owner brief 15 Oct 2026, task 13; assets/js/noirix-pdp-extras.js) */
.pdpx { display: grid; gap: 18px; margin: 22px 0 8px; font-family: Inter, Arial, sans-serif; color: #f0ede8; }
.pdpx-sizes-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #a7a19a; }
.pdpx-sizes-head a { color: #f0ede8; text-decoration: underline; text-underline-offset: 4px; letter-spacing: 0; text-transform: none; font-size: 14px; }
.pdpx-size-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pdpx-size { min-width: 56px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px dashed rgba(255,255,255,0.22); border-radius: 4px; color: #a7a19a; font-size: 15px; }
.pdpx-size--pick { position: relative; cursor: pointer; color: #f0ede8; }
.pdpx-size--pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pdpx-size--pick:has(input:checked) { background: #f4f1ea; color: #050505; border-color: #f4f1ea; }
.pdpx-size--pick:has(input:focus-visible) { outline: 2px solid #c9a96e; outline-offset: 2px; }
.pdpx-note { margin: 8px 0 0; color: #a7a19a; font-size: 15px; line-height: 1.5; }
.pdpx-details h2 { margin: 0 0 6px; font-size: 18px !important; letter-spacing: 0.12em !important; }
.pdpx-details ul { list-style: none; margin: 0; padding: 0; }
.pdpx-details li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 15px; }
.pdpx-details li span { color: #a7a19a; font-size: 14px; }
.pdpx-membership { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; }
.pdpx-membership i { color: #a7a19a; }
.pdpx-membership div { display: grid; gap: 2px; font-size: 15px; }
.pdpx-membership span { color: #a7a19a; font-size: 14px; }
.pdpx-bar { position: fixed; left: 0; right: 0; bottom: var(--noirix-nav-h, 77px); z-index: 40; display: flex; gap: 10px; padding: 10px 16px; background: #050505; border-top: 1px solid rgba(255,255,255,0.1); }
@media (min-width: 1025px) { .pdpx-bar { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); } }
.pdpx-bar-heart { width: 52px; min-height: 52px; border: 1px solid rgba(255,255,255,0.22); border-radius: 0; background: #050505; color: #f0ede8; font-size: 20px; cursor: pointer; }
.pdpx-bar-heart[aria-pressed="true"] { color: #c9a96e; }
.pdpx-bar-notify { flex: 1; min-height: 52px; border: 0; border-radius: 0; background: #f4f1ea; color: #050505; font: 600 13px Inter, Arial, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.pdpx-sheet { position: fixed; inset: 0; z-index: 2147483500; display: flex; align-items: flex-end; justify-content: center; }
.pdpx-sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.pdpx-sheet-panel { position: relative; width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 26px 22px calc(26px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; background: #111; color: #f0ede8; font-family: Inter, Arial, sans-serif; }
@media (min-width: 700px) { .pdpx-sheet { align-items: center; } .pdpx-sheet-panel { border-radius: 14px; } }
.pdpx-sheet-panel h2 { margin: 0 0 10px; font-size: 22px !important; }
.pdpx-sheet-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; color: #f0ede8; font-size: 20px; cursor: pointer; }
.pdpx-field { display: grid; gap: 8px; margin: 16px 0 0; border: 0; padding: 0; font-size: 15px; }
.pdpx-field input[type="email"] { min-height: 48px; padding: 0 12px; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; background: #0b0b0b; color: #f0ede8; font: 16px Inter, Arial, sans-serif; }
.pdpx-field legend { margin-bottom: 8px; }
.pdpx-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; color: #a7a19a; font-size: 14px; line-height: 1.5; cursor: pointer; }
.pdpx-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: #c9a96e; }
.pdpx-error { margin: 12px 0 0; color: #ff8a80; font-size: 14px; }
.pdpx-done { color: #f0ede8; font-size: 16px; line-height: 1.5; }
body.pdpx-sheet-open { overflow: hidden; }
.pdpx-rails { padding-top: 0 !important; padding-bottom: calc(var(--bottom-nav-height, 76px) + 90px) !important; }
.pdpx-rail-track { grid-auto-flow: column; grid-auto-columns: minmax(150px, 42%); grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.pdpx-rail-track > li { scroll-snap-align: start; }
.pdpx-share { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0 !important; background: none !important; color: #f0ede8 !important; font: 400 15px Inter, Arial, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; box-shadow: none !important; }
button.nrx-gal-cta, .pdpx-bar-notify { background: #f4f1ea !important; background-image: none !important; color: #050505 !important; border: 0 !important; box-shadow: none !important; }
button.nrx-gal-cta { width: 100%; letter-spacing: 0.17em !important; text-transform: uppercase !important; font: 500 12px Inter, Arial, sans-serif !important; cursor: pointer; }

/* Round 2 (item 1.2), and again on the owner's request 16 Oct 2026: the Void banner, 16:9, never stretched. */
.nrx-void-banner { margin: 0 0 26px; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.nrx-void-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.nrx-void-hero .nrx-label { margin-bottom: 12px; }
.nrx-void-desc { margin: 14px 0 0; max-width: 560px; }
.nrx-void-release { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--gal-line); }
.nrx-void-release .nrx-body { margin: 10px 0 18px; }

/* Round 2 (items 4-6): the Notify me sheet in the site's design (square fields and buttons, gold label). */
.pdpx-sheet-panel { border-radius: 0 !important; background: #0b0b0b; border-top: 1px solid rgba(255, 255, 255, 0.12); }
@media (min-width: 700px) { .pdpx-sheet-panel { border-radius: 0 !important; border: 1px solid rgba(255, 255, 255, 0.12); } }
.pdpx-sheet-panel .nrx-label { margin: 0 0 10px; }
.pdpx-sheet-panel h2.nrx-title { margin: 0 0 14px; font-size: 28px !important; }
.pdpx-sheet-panel .nrx-body { margin: 0; }
.pdpx-sheet-close .nrx-icon { width: 20px; height: 20px; }
label.pdpx-field { margin: 20px 0 8px; color: var(--noirix-muted); font: 500 11px/1.4 Inter, Arial, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; }
fieldset.pdpx-field legend { color: var(--noirix-muted); font: 500 11px/1.4 Inter, Arial, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; }
.pdpx-input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 0; background: #050505; color: #f0ede8; font: 16px Inter, Arial, sans-serif; }
.pdpx-input:focus { outline: 1px solid var(--noirix-label-gold, #b8975a); outline-offset: 0; border-color: var(--noirix-label-gold, #b8975a); }
.pdpx-input[aria-invalid="true"] { border-color: #ff8a80; }
.pdpx-sheet-panel .nrx-btn { margin-top: 20px; }
.pdpx-actions { display: grid; gap: 0; }
.pdpx-actions .nrx-btn + .nrx-btn { margin-top: 10px; }
.pdpx-sheet-panel .pdpx-note { margin: 8px 0 0; color: var(--noirix-muted); font-size: 13px; }
/* "On the list": the secondary (outline) state of the sticky button. */
.pdpx-bar .pdpx-bar-notify.is-on-list { background: #050505 !important; color: #f0ede8 !important; border: 1px solid rgba(244, 241, 234, 0.6) !important; }
.pdpx-bar-notify { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.pdpx-bar-notify .nrx-icon, .pdpx-bar-heart .nrx-icon { width: 18px; height: 18px; }
.pdpx-bar-heart { display: grid; place-items: center; }
.pdpx-bar-heart .nrx-icon { width: 22px; height: 22px; }
/* The page scrolls clear of the sticky bar and the nav. */
body.pdpx-has-bar { padding-bottom: calc(var(--noirix-nav-h, 77px) + 72px + 20px) !important; }
@media (min-width: 1025px) { body.pdpx-has-bar { padding-bottom: 92px !important; } }

/* Round 2 (rule 0.4): the sort reads like the filter labels; the select itself is invisible on top at 16 px. */
.nrx-gal-sort { gap: 10px; min-height: 44px; padding-right: 2px; }
.nrx-gal-sort-label { color: var(--gal-text); font: 500 11px/1 Inter, Arial, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.nrx-gal-sort .nrx-icon { position: static; width: 14px; height: 14px; }
.nrx-gal-sort select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px !important; padding: 0; cursor: pointer; }
.nrx-gal-sort:has(select:focus-visible) { outline: 1px solid var(--noirix-label-gold, #b8975a); outline-offset: 4px; }
