/* ==========================================================================
   Photographers: sign-in and sign-up pages (inside the Easyprint site), the
   photographer's own pages and their clients' gallery (inside a shell that
   carries the photographer's logo and background colour: --ph-bg / --ph-fg).
   Square corners, capitals for headings, no italics, as everywhere else.
   ========================================================================== */

.ep-ph [hidden] { display: none !important; }
.ep-ph-shell--brand { background: var(--ph-bg, #231f20); color: var(--ph-fg, #fff); min-height: 100vh; display: flex; flex-direction: column; }
.ep-ph-shell--brand .ep-ph-main { flex: 1; }
.ep-ph-shell--brand .cmyk i:nth-child(4) { background: var(--ph-fg); }
.ep-ph-shell--brand a:hover { color: inherit; opacity: .75; }
.ep-ph-shell--brand .ep-ph-panel a:hover, .ep-ph-shell--brand .ep-ph-note a:hover { color: var(--magenta); opacity: 1; }

/* Header and footer of the photographer's shell */
.ep-ph-top { border-bottom: 2px solid color-mix(in srgb, var(--ph-fg) 22%, transparent); }
.ep-ph .ep-ph-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.125rem; }
.ep-ph-top__brand { display: inline-flex; align-items: center; text-decoration: none; }
.ep-ph-top__brand img { max-height: 72px; max-width: min(260px, 60vw); width: auto; }
.ep-ph-top__name { font-size: clamp(1.125rem, 2.4vw, 1.5rem); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.ep-ph-top__nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.ep-ph-top__nav a { padding: .375rem 0; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 3px solid transparent; }
.ep-ph-top__nav a[aria-current="page"] { border-bottom-color: currentColor; }
.ep-ph-foot { margin-top: clamp(40px, 6vw, 80px); padding: 1.5rem 0; border-top: 2px solid color-mix(in srgb, var(--ph-fg) 22%, transparent); }
.ep-ph-powered { display: flex; align-items: center; justify-content: center; gap: .625rem; margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ep-ph-powered a { text-decoration-thickness: 2px; }
.ep-ph-powered-bar { padding: 1rem var(--gutter, 16px); background: var(--ink); color: var(--white); border-top: 1px solid rgba(255, 255, 255, .15); }
.ep-ph-powered-bar .cmyk i:nth-child(4) { background: var(--white); }
.ep-ph-powered-bar a:hover { color: var(--yellow); }

/* Page furniture */
.ep-ph .ep-ph-page { padding-block: clamp(28px, 5vw, 64px) 0; }
.ep-ph.ep-ph-shell--site .ep-ph-page { padding-bottom: clamp(48px, 7vw, 96px); }
.ep-ph-page--narrow { max-width: calc(640px + var(--gutter, 16px) * 2); }
.ep-ph-display { margin: .625rem 0 1rem; font-size: clamp(2rem, 5.4vw, 4rem); font-weight: 900; line-height: .96; letter-spacing: -.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.ep-ph-display--ink { color: var(--ink); }
.ep-ph-lead { max-width: 62ch; font-size: 1.0625rem; }
.ep-ph-sub { margin: 0 0 1.75rem; font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.ep-ph-heading { display: flex; align-items: center; gap: .75rem; margin: 0 0 .875rem; font-size: 1.25rem; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.ep-ph-heading--big { font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.05; overflow-wrap: anywhere; }
.ep-ph-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2rem; height: 2rem; background: var(--yellow); color: var(--ink); font-size: 1rem; font-weight: 900; }
.ep-ph-back { margin: 0 0 1.25rem; }
.ep-ph-back a { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.ep-ph-back .ep-icon { width: 1.1em; height: 1.1em; }
.ep-ph-hint { margin: 0 0 1rem; color: var(--muted); font-size: .875rem; }
.ep-ph-links { margin: 1rem 0 0; font-size: .875rem; font-weight: 600; }
.ep-ph-titlebar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ep-ph-titlebar .ep-ph-display { margin-bottom: .5rem; }
.button.button--ghost-brand { background: transparent; border-color: var(--ph-fg); color: var(--ph-fg); }
.button.button--ghost-brand:hover { background: var(--ph-fg); border-color: var(--ph-fg); color: var(--ph-bg); box-shadow: none; opacity: 1; }
.ep-ph-shell--brand .button:hover { opacity: 1; color: var(--white); }
.ep-ph-shell--brand .button.button--yellow:hover, .ep-ph-shell--brand .button.button--ghost:hover { color: var(--ink); }
.ep-ph-shell--brand .button.button--ghost:hover { color: var(--white); }
.ep-ph .button .ep-icon { width: 1.2em; height: 1.2em; }

/* White panels sit on the photographer's colour */
.ep-ph-panel { margin: 0 0 1.5rem; padding: clamp(18px, 3vw, 32px); background: var(--white); color: var(--ink); border: 2px solid var(--ink); box-shadow: 6px 6px 0 color-mix(in srgb, var(--ph-fg, #231f20) 28%, transparent); }
.ep-ph-shell--site .ep-ph-panel { box-shadow: 6px 6px 0 var(--yellow); }
.ep-ph-panel--slim { max-width: 640px; }
.ep-ph-panel__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ep-ph-panel__head .ep-ph-heading { margin: 0; }
.ep-ph-danger { border-color: var(--magenta); }

/* Messages */
.ep-ph-note { margin: 0 0 1.25rem; padding: .875rem 1.125rem; background: var(--well); color: var(--ink); border-left: 5px solid var(--cyan); font-weight: 600; }
.ep-ph-note--ok { border-left-color: #1f7a4d; }
.ep-ph-note--bad { border-left-color: var(--magenta); }
.ep-ph-wcnotices:empty { display: none; }

/* Forms */
.ep-ph-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.ep-ph-field { grid-column: 1 / -1; margin: 0 0 1.125rem; }
.ep-ph-field--half { grid-column: auto; }
.ep-ph-field label, .ep-ph-look label:not(.ep-ph-check) { display: block; margin-bottom: .3rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ep-ph-field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), .ep-ph-field textarea, .ep-ph-field select {
	width: 100%; padding: .75rem .875rem; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; font-size: 1rem;
}
.ep-ph-field input:focus, .ep-ph-field textarea:focus, .ep-ph-field select:focus { outline: none; box-shadow: 0 0 0 3px rgba(78, 145, 211, .45); }
.ep-ph-field input:disabled { background: var(--well); color: var(--muted); }
.ep-ph-field select:disabled { background: var(--well); color: var(--muted); }
.ep-ph-field small, .ep-ph-look small { display: block; margin-top: .3rem; color: var(--muted); font-size: .8125rem; }
.ep-ph-check { display: flex; align-items: flex-start; gap: .625rem; margin: 0 0 1.25rem; font-size: .9375rem; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ep-ph-field label.ep-ph-check { display: flex; font-size: .9375rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ep-ph-check input { flex: none; width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--magenta); }
.ep-ph-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ep-ph-code { max-width: 14rem; font-size: 1.75rem !important; font-weight: 800; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.ep-ph-code--pass { max-width: 22rem; font-size: 1.375rem !important; letter-spacing: .12em; text-transform: uppercase; }

/* Logo and colour */
.ep-ph-look { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem 1.5rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.ep-ph-look input[type="file"] { width: 100%; padding: .625rem; border: 2px dashed var(--ink); background: var(--well); font: inherit; font-size: .875rem; }
.ep-ph-look input[type="color"] { width: 100%; height: 3.25rem; padding: 0; border: 2px solid var(--ink); background: none; cursor: pointer; }
.ep-ph-look .ep-ph-check { margin: .75rem 0 0; }
.ep-ph-look__preview { grid-column: 1 / -1; position: relative; display: flex; align-items: center; min-height: 112px; padding: 2rem 1.5rem 1rem; border: 2px solid var(--ink); }
.ep-ph-look__preview img { max-height: 64px; max-width: 240px; width: auto; }
.ep-ph-look__preview strong { font-size: 1.25rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.ep-ph-look__label { position: absolute; top: .5rem; left: .75rem; font-size: .625rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }

/* Sign-in: pitch on ink beside the form */
.ep-ph-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.ep-ph-split__pitch { padding: clamp(32px, 6vw, 88px) var(--gutter, 16px) clamp(32px, 6vw, 88px) max(var(--gutter, 16px), calc((100vw - var(--max, 1280px)) / 2)); background: var(--ink); color: var(--white); --cm-inset: 14px; }
.ep-ph-split__pitch.crop-marks::after { --c: rgba(255, 255, 255, .5); }
.ep-ph-split__form { padding: clamp(32px, 6vw, 88px) max(var(--gutter, 16px), calc((100vw - var(--max, 1280px)) / 2)) clamp(32px, 6vw, 88px) clamp(20px, 5vw, 72px); background: var(--white); }
.ep-ph-steps { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1.125rem; }
.ep-ph-steps li { position: relative; padding-left: 3.25rem; counter-increment: step; }
.ep-ph-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; color: var(--ink); font-weight: 900; }
.ep-ph-steps li:nth-child(1)::before { background: var(--cyan); }
.ep-ph-steps li:nth-child(2)::before { background: var(--magenta); color: var(--white); }
.ep-ph-steps li:nth-child(3)::before { background: var(--yellow); }
.ep-ph-steps li:nth-child(4)::before { background: var(--white); }
.ep-ph-steps strong { display: block; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ep-ph-steps span { color: rgba(255, 255, 255, .78); font-size: .9375rem; }
.ep-ph-join-cta { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 2px solid var(--ink); }
.ep-ph-join-cta h3 { margin-bottom: .375rem; font-size: 1.125rem; font-weight: 900; text-transform: uppercase; }

/* Dashboard: welcome panel with a stack of the photographer's latest pictures */
.ep-ph-hero { position: relative; overflow: hidden; border-bottom: 2px solid color-mix(in srgb, var(--ph-fg) 22%, transparent); }
.ep-ph-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--ph-fg) 26%, transparent) 1.4px, transparent 1.8px) 0 0 / 14px 14px; -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%); mask-image: linear-gradient(100deg, transparent 30%, #000 100%); }
.ep-ph .ep-ph-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: clamp(36px, 6vw, 88px); }
.ep-ph-hero__title { margin: .875rem 0 1.25rem; font-weight: 900; line-height: .92; letter-spacing: -.025em; text-transform: uppercase; overflow-wrap: anywhere; }
.ep-ph-hero__hello { display: block; font-size: clamp(2.5rem, 5.6vw, 4.75rem); }
.ep-ph-hero__of { display: block; margin-top: .3em; font-size: clamp(1.25rem, 3.2vw, 2.5rem); line-height: 1.5; letter-spacing: .01em; }
.ep-ph-hero__of span { padding: .1em .35em; background: var(--ph-fg); color: var(--ph-bg); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ep-ph-hero__lead { max-width: 46ch; margin: 0 0 1.75rem; font-size: 1.0625rem; opacity: .9; }
.ep-ph-hero__prints { position: relative; aspect-ratio: 1 / 1; max-width: 440px; width: 100%; justify-self: end; }
.ep-ph-print { position: absolute; display: block; width: 64%; padding: 10px 10px 34px; background: var(--white); border: 2px solid var(--ink); box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 55%, transparent); }
.ep-ph-print img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ep-ph-print:nth-child(1) { top: 18%; left: 20%; z-index: 3; transform: rotate(-3deg); }
.ep-ph-print:nth-child(2) { top: 0; left: 0; z-index: 2; transform: rotate(-9deg); width: 52%; }
.ep-ph-print:nth-child(3) { right: 0; bottom: 2%; z-index: 1; transform: rotate(7deg); width: 52%; }
.ep-ph-hero__prints.has-1 .ep-ph-print { top: 10%; left: 14%; width: 74%; transform: rotate(3deg); }
.ep-ph-print--blank { top: 10% !important; left: 14% !important; width: 74% !important; aspect-ratio: 1 / 1.1; padding: 1.5rem; display: grid; place-content: center; justify-items: center; gap: .75rem; background: var(--white) var(--halftone); color: var(--ink); text-align: center; transform: rotate(3deg) !important; --cm-inset: 12px; }
.ep-ph-print--blank .ep-icon { width: 2.5rem; height: 2.5rem; }
.ep-ph-print--blank b { max-width: 12ch; font-weight: 900; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; }

/* Figures at a glance: four joined cells */
.ep-ph-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(24px, 4vw, 48px) 0; padding: 0; list-style: none; border: 2px solid var(--ph-fg); }
.ep-ph-figures li { position: relative; display: grid; align-content: start; gap: .5rem; padding: 1.125rem 1.25rem 1.25rem; border-left: 2px solid var(--ph-fg); }
.ep-ph-figures li:first-child { border-left: 0; }
.ep-ph-figures li > span { font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.ep-ph-figures strong { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.ep-ph-figures strong small { font-size: .875rem; font-weight: 700; opacity: .8; }
.ep-ph-figures__due { background: var(--yellow); color: var(--ink); }
.ep-ph-figures__due a { position: absolute; bottom: .75rem; right: 1rem; display: inline-flex; align-items: center; gap: .25rem; font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.ep-ph-figures__due a::after { content: ""; position: absolute; inset: -1rem; }
.ep-ph-figures__due a:hover { color: var(--magenta); opacity: 1; }
.ep-ph-figures__due .ep-icon { width: 1em; height: 1em; }
.ep-ph-bar { display: block; height: 8px; border: 2px solid currentColor; }
.ep-ph-bar b { display: block; height: 100%; background: currentColor; }

/* Collections */
.ep-ph-list__head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ep-ph-list__head .ep-ph-heading { margin: 0; font-size: clamp(1.5rem, 3vw, 2.125rem); }
.ep-ph-list__note { margin: 0 0 0 auto; font-size: .8125rem; font-weight: 600; opacity: .8; }
.ep-ph-count { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem; background: var(--ph-fg); color: var(--ph-bg); font-size: 1.125rem; font-weight: 900; }
.ep-ph-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.ep-ph-card { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; background: var(--white); color: var(--ink); border: 2px solid var(--ink); box-shadow: 6px 6px 0 color-mix(in srgb, var(--ph-fg) 28%, transparent); text-align: left; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.ep-ph-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--yellow); opacity: 1 !important; color: var(--ink) !important; }
.ep-ph-card__cover { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 3 / 2; background: var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; }
.ep-ph-card__cover img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.ep-ph-card__cover img:first-child { grid-row: 1 / 3; }
.ep-ph-card__cover--1 img, .ep-ph-card__cover--2 img { grid-row: 1 / 3; }
.ep-ph-card__cover--1 img { grid-column: 1 / 3; }
.ep-ph-card__cover--0 { background: var(--well) var(--halftone); place-items: center; }
.ep-ph-card__cover--0 b { grid-area: 1 / 1 / 3 / 3; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ep-ph-card__count { position: absolute; left: 0; bottom: 0; padding: .3rem .625rem; background: var(--ink); color: var(--white); font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ep-ph-card__body { display: grid; gap: .625rem; padding: 1rem 1.125rem 1.125rem; flex: 1; align-content: start; }
.ep-ph-card__body > strong { font-size: 1.25rem; font-weight: 900; line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
.ep-ph-card__life { display: grid; gap: .3rem; color: var(--muted); font-size: .75rem; font-weight: 700; }
.ep-ph-card__life .ep-ph-bar { height: 6px; color: var(--ink); }
.ep-ph-card__life.is-ending, .ep-ph-card__life.is-ending .ep-ph-bar { color: var(--magenta); }
.ep-ph-card__open { display: inline-flex; align-items: center; gap: .375rem; margin-top: .25rem; padding-top: .75rem; border-top: 2px solid var(--line); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ep-ph-card__open .ep-icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.ep-ph-card:hover .ep-ph-card__open .ep-icon { transform: translateX(4px); }
.ep-ph-card--new { align-items: center; justify-content: center; gap: .375rem; min-height: 320px; padding: 1.5rem; background: transparent; color: var(--ph-fg); border: 2px dashed var(--ph-fg); box-shadow: none; font: inherit; text-align: center; }
.ep-ph-card--new:hover { background: var(--yellow); border-style: solid; border-color: var(--ink); box-shadow: 9px 9px 0 color-mix(in srgb, var(--ph-fg) 40%, transparent); }
.ep-ph-card__plus { display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; margin-bottom: .5rem; background: var(--ph-fg); color: var(--ph-bg); font-size: 2.25rem; font-weight: 900; line-height: 1; }
.ep-ph-card--new:hover .ep-ph-card__plus { background: var(--ink); color: var(--yellow); }
.ep-ph-card--new strong { font-size: 1.125rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.ep-ph-card--new span:last-child { max-width: 22ch; font-size: .875rem; opacity: .85; }
.ep-ph-empty { padding: clamp(32px, 6vw, 64px) 1.5rem; border: 2px dashed color-mix(in srgb, var(--ph-fg) 50%, transparent); text-align: center; --cm-inset: 10px; }
.ep-ph-empty.crop-marks::after { --c: var(--ph-fg); }
.ep-ph-empty h3 { margin-bottom: .5rem; font-size: 1.375rem; font-weight: 900; text-transform: uppercase; }
.ep-ph-empty p { margin: 0; }
.ep-ph-tag { display: inline-block; justify-self: start; padding: .2rem .5rem; background: var(--well); color: var(--ink); font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ep-ph-tag--warn, .ep-ph-tag--due { background: var(--yellow); }
.ep-ph-tag--paid { background: var(--ink); color: var(--white); }
.ep-ph-tag--own { background: var(--magenta); color: var(--white); }

/* Upload */
.ep-ph-drop__zone { display: grid; justify-items: center; gap: .375rem; padding: clamp(24px, 4vw, 44px) 1rem; border: 2px dashed var(--ink); background: var(--well) var(--halftone); text-align: center; cursor: pointer; transition: background-color .2s; }
.ep-ph-drop__zone:hover, .ep-ph-drop__zone.is-over { background-color: var(--yellow); }
.ep-ph-drop__zone .ep-icon { width: 2.25rem; height: 2.25rem; }
.ep-ph-drop__zone strong { font-size: 1.0625rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.ep-ph-drop__zone span { max-width: 46ch; color: var(--muted); font-size: .875rem; }
.ep-ph-drop.is-busy .ep-ph-drop__zone { pointer-events: none; opacity: .6; }
[data-ph-files]:focus-visible + .ep-ph-drop__zone { outline: 3px solid var(--cyan); outline-offset: 2px; }
.ep-ph-progress { display: grid; gap: .375rem; margin-top: 1rem; }
.ep-ph-progress__bar { display: block; height: 14px; border: 2px solid var(--ink); background: var(--white); }
.ep-ph-progress__bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--magenta) 55%, var(--yellow)); transition: width .25s linear; }
.ep-ph-progress__text { font-size: .875rem; font-weight: 700; }
.ep-ph-queue { max-height: 19rem; margin: .875rem 0 0; padding: 0; overflow-y: auto; list-style: none; border: 2px solid var(--ink); }
.ep-ph-file { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: .25rem 1rem; padding: .5rem .75rem .625rem; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.ep-ph-file:last-child { border-bottom: 0; }
.ep-ph-file__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ph-file__size { color: var(--muted); font-variant-numeric: tabular-nums; }
.ep-ph-file__state { min-width: 7.5rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ep-ph-file__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--well); }
.ep-ph-file__bar i { display: block; width: 0; height: 100%; background: var(--cyan); transition: width .2s linear; }
.ep-ph-file.is-waiting .ep-ph-file__state { color: var(--muted); font-weight: 500; }
.ep-ph-file.is-done .ep-ph-file__state { color: #1f7a4d; }
.ep-ph-file.is-done .ep-ph-file__bar i { background: #1f7a4d; }
.ep-ph-file.is-failed { background: #fdf0f6; }
.ep-ph-file.is-failed .ep-ph-file__state { min-width: 0; color: var(--magenta); }
.ep-ph-file.is-failed .ep-ph-file__bar i { background: var(--magenta); }
.ep-ph-file__retry { padding: .25rem .5rem; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.ep-ph-file__retry:hover { background: var(--yellow); }
.ep-ph .ep-ph-new { padding-bottom: 1rem; }
.ep-ph-new .ep-ph-drop { margin-bottom: 1.25rem; }

/* Photo grid on the collection page */
.ep-ph-toolbar { display: flex; align-items: center; gap: .625rem 1rem; flex-wrap: wrap; font-size: .875rem; font-weight: 600; color: var(--muted); }
.ep-ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.ep-ph-tile label { position: relative; display: block; border: 2px solid var(--line); background: var(--well); cursor: pointer; }
.ep-ph-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ep-ph-tile input { position: absolute; top: .5rem; left: .5rem; width: 1.375rem; height: 1.375rem; margin: 0; accent-color: var(--magenta); }
.ep-ph-tile__name { display: block; padding: .375rem .5rem; font-size: .75rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ph-tile .ep-ph-tag { position: absolute; top: .5rem; right: .5rem; }
.ep-ph-tile.is-picked label { border-color: var(--magenta); box-shadow: 4px 4px 0 var(--magenta); }

/* Products and prices */
.ep-ph-scope { display: inline-flex; flex-wrap: wrap; margin-bottom: 1rem; border: 2px solid var(--ink); }
.ep-ph-scope label { cursor: pointer; }
.ep-ph-scope input { position: absolute; opacity: 0; }
.ep-ph-scope span { display: block; padding: .625rem 1rem; font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ep-ph-scope input:checked + span { background: var(--ink); color: var(--white); }
.ep-ph-scope input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.ep-ph-check--all { padding: .75rem 1rem; background: var(--yellow); }
.ep-ph-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.ep-ph-product { padding: 1rem; border: 2px solid var(--line); }
.ep-ph-product.is-on { border-color: var(--ink); }
.ep-ph-product__head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.ep-ph-product__head h3 { font-size: 1.0625rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.ep-ph-product__count { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ep-ph-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ep-ph-chip { padding: .4375rem .75rem; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font-size: .8125rem; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.ep-ph-chip::before { content: "+ "; font-weight: 900; }
.ep-ph-chip:hover { background: var(--yellow); }
.ep-ph-chip.is-on { background: var(--ink); color: var(--white); }
.ep-ph-chip.is-on::before { content: "✓ "; }
.ep-ph-prices { display: grid; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--line); }
.ep-ph-price { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) 7rem minmax(0, 1.3fr); align-items: center; gap: .5rem .75rem; font-size: .8125rem; }
.ep-ph-price__size { font-weight: 800; }
.ep-ph-price__base { color: var(--muted); }
.ep-ph-price__input { display: flex; align-items: center; border: 2px solid var(--ink); }
.ep-ph-price__input span { padding: 0 .25rem 0 .5rem; font-weight: 800; }
.ep-ph-price__input input { width: 100%; min-width: 0; padding: .4375rem .375rem .4375rem 0; border: 0; background: none; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.ep-ph-price__input input::-webkit-outer-spin-button, .ep-ph-price__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ep-ph-price__input input:focus { outline: none; }
.ep-ph-price__input:focus-within { box-shadow: 0 0 0 3px rgba(78, 145, 211, .45); }
.ep-ph-price__keep { font-weight: 700; color: #1f7a4d; }
.ep-ph-price.is-low .ep-ph-price__input { border-color: var(--magenta); }
.ep-ph-price.is-low .ep-ph-price__keep { color: var(--magenta); }

/* Client access */
.ep-ph-access__facts { display: grid; gap: .75rem; margin: 0 0 1.25rem; }
.ep-ph-access__facts div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); align-items: center; gap: .75rem; }
.ep-ph-access__facts dt { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ep-ph-access__facts dd { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 0; overflow-wrap: anywhere; }
.ep-ph-pass { padding: .5rem .875rem; background: var(--ink); color: var(--yellow); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.25rem; font-weight: 700; letter-spacing: .12em; }
.ep-ph-access__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.ep-ph-access__client { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; padding-top: 1.25rem; border-top: 2px solid var(--line); }
.ep-ph-access__client .ep-ph-field { flex: 1 1 280px; margin: 0; }

/* Sales */
.ep-ph-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.ep-ph-stats li { display: grid; gap: .25rem; padding: 1rem 1.25rem; border: 2px solid var(--ph-fg); }
.ep-ph-stats li > span { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ep-ph-stats strong { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; line-height: 1; }
.ep-ph-stats__due { background: var(--yellow); color: var(--ink); border-color: var(--ink) !important; }
.ep-ph-tablewrap { overflow-x: auto; }
.ep-ph-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .875rem; }
.ep-ph-table th { padding: .625rem .75rem; background: var(--ink); color: var(--white); font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.ep-ph-table td { padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ep-ph-table .num { text-align: right; white-space: nowrap; }
.ep-ph-table tr.is-void td { color: var(--muted); }

/* Client gallery */
.ep-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ep-gal-tile { position: relative; display: block; background: var(--white); border: 2px solid var(--ink); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.ep-gal-tile:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--yellow); opacity: 1 !important; }
.ep-gal-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ep-gal-tile::after { content: ""; position: absolute; inset: 0; }
.ep-gal-tile__label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; color: var(--ink); font-size: .75rem; font-weight: 700; border-top: 2px solid var(--ink); }
.ep-gal-tile__label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-gal-tile__label b { flex: none; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
[data-gal-protect] img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
.ep-gal-product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.ep-gal-product__media { position: relative; }
.ep-gal-product__media img { width: 100%; max-height: 78vh; object-fit: contain; background: color-mix(in srgb, var(--ph-fg) 8%, transparent); border: 2px solid color-mix(in srgb, var(--ph-fg) 40%, transparent); }
.ep-gal-product__media::after { content: ""; position: absolute; inset: 0; }
.ep-gal-product__note { margin: .625rem 0 0; font-size: .8125rem; font-weight: 600; opacity: .8; }
.ep-gal-product__summary { margin: 0; }
.ep-gal-product__count { margin: 0 0 .25rem; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ep-gal-product__price { margin: 0 0 1.25rem; font-size: 1.75rem; font-weight: 900; }
.ep-gal-product__buy { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ep-gal-product__qty { flex: 0 0 6.5rem; margin: 0; }
.ep-gal-product__buy .button { flex: 1 1 12rem; }
.ep-gal-product__nav { display: flex; justify-content: space-between; gap: .75rem; margin: 1.25rem 0 0; padding-top: 1.25rem; border-top: 2px solid var(--line); }
.ep-gal-product__nav .ep-icon { width: 1.1em; height: 1.1em; }
.ep-ph-thanks { margin: 0 0 2rem; padding: 1.25rem 1.5rem; background: var(--well); border-left: 5px solid var(--magenta); }
.ep-ph-thanks h2 { margin-bottom: .5rem; font-size: 1.25rem; font-weight: 900; text-transform: uppercase; }

/* Renaming photos, keeping a collection longer */
.ep-ph-tile { position: relative; }
.ep-ph-tile__name { padding-right: 4.25rem !important; }
.ep-ph-tile__file { display: block; margin-top: -.25rem; padding: 0 4.25rem .375rem .5rem; color: var(--muted); font-size: .6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ph-tile__rename { position: absolute; margin: 0; padding: .3rem .5rem; border: 0; background: var(--ink); color: var(--white); font: inherit; font-size: .625rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; inset: auto 2px 2px auto; }
.ep-ph-tile__rename:hover { background: var(--magenta); }
.ep-ph-sub__more { margin-left: .75rem; vertical-align: middle; text-transform: none; letter-spacing: 0; }

/* Bank details, statements */
.ep-ph-bank { margin: 1.5rem 0 1.25rem; padding: 1.25rem 0 0; border: 0; border-top: 2px solid var(--ink); min-width: 0; }
.ep-ph-bank legend { padding: 0 .75rem 0 0; }
.ep-ph-fields--three { grid-template-columns: 1.6fr 1fr 1fr; }
.ep-ph-fields--three .ep-ph-field { grid-column: auto; }
.ep-ph-statements { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .625rem; margin: 0 0 1.5rem; }
.ep-ph-statements strong { margin-right: .5rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Client: larger preview, thank-you page */
.ep-gal-product__media { cursor: zoom-in; }
.ep-gal-product__note { position: relative; z-index: 1; display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; cursor: default; }
.ep-gal-zoom { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: clamp(8px, 2vw, 32px); background: rgba(20, 18, 19, .94); cursor: zoom-out; }
.ep-gal-zoom img { max-width: 100%; max-height: calc(100vh - clamp(16px, 4vw, 64px)); width: auto; height: auto; object-fit: contain; border: 2px solid var(--white); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.ep-gal-zoom .button { position: absolute; top: 1rem; right: 1rem; background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.ep-gal-thanks__actions { margin: 0 0 2rem; }
.ep-gal-thanks .woocommerce-notice { display: none; }
.ep-gal-thanks.woocommerce ul.order_details, .ep-gal-thanks.woocommerce ul.wc-bacs-bank-details { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 0 0 1.5rem; list-style: none; border-bottom: 2px solid var(--ink); }
.ep-gal-thanks.woocommerce ul.order_details li, .ep-gal-thanks.woocommerce ul.wc-bacs-bank-details li { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ep-gal-thanks.woocommerce ul.order_details li strong, .ep-gal-thanks.woocommerce ul.wc-bacs-bank-details li strong { display: block; margin-top: .25rem; font-size: 1.0625rem; letter-spacing: 0; text-transform: none; }
.ep-gal-thanks.woocommerce ul.order_details::before, .ep-gal-thanks.woocommerce ul.order_details::after, .ep-gal-thanks.woocommerce ul.wc-bacs-bank-details::before, .ep-gal-thanks.woocommerce ul.wc-bacs-bank-details::after { content: none !important; }
.ep-gal-thanks h2 { margin: 1.5rem 0 .75rem; font-size: 1.125rem; font-weight: 900; text-transform: uppercase; }
.ep-gal-thanks table { width: 100%; border-collapse: collapse; }
.ep-gal-thanks th, .ep-gal-thanks td { padding: .625rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ep-gal-thanks address { font-style: normal; }
.ep-gal-thanks .ep-ph-thanks { display: none; }

@media (max-width: 860px) {
	.ep-ph-split, .ep-gal-product, .ep-ph .ep-ph-hero__inner { grid-template-columns: 1fr; }
	.ep-ph-hero__prints { justify-self: start; max-width: 320px; }
	.ep-ph-figures { grid-template-columns: 1fr 1fr; }
	.ep-ph-figures li:nth-child(3) { border-left: 0; }
	.ep-ph-figures li:nth-child(n+3) { border-top: 2px solid var(--ph-fg); }
	.ep-ph-list__note { margin-left: 0; flex-basis: 100%; }
	.ep-ph-split__pitch, .ep-ph-split__form { padding-inline: var(--gutter, 16px); }
}
@media (max-width: 640px) {
	.ep-ph-fields, .ep-ph-look, .ep-ph-fields--three { grid-template-columns: 1fr; }
	.ep-ph-field--half { grid-column: 1 / -1; }
	.ep-ph-file { grid-template-columns: minmax(0, 1fr) auto; }
	.ep-ph-file__size { text-align: right; }
	.ep-ph-file__state { min-width: 0; text-align: left; }
	.ep-ph-price { grid-template-columns: 1fr 7rem; padding-bottom: .625rem; border-bottom: 1px solid var(--line); }
	.ep-ph-price:last-child { padding-bottom: 0; border-bottom: 0; }
	.ep-ph-table { min-width: 0; }
	.ep-ph-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.ep-ph-table tr { display: block; padding: .875rem 0; border-bottom: 2px solid var(--ink); }
	.ep-ph-table tr:last-child { border-bottom: 0; }
	.ep-ph-table td { position: relative; display: block; padding: .3rem 0 .3rem 7.25rem; border: 0; text-align: left !important; white-space: normal !important; overflow-wrap: anywhere; }
	.ep-ph-table td::before { content: attr(data-label); position: absolute; left: 0; top: .5rem; font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
	.ep-ph-price__base { order: 3; }
	.ep-ph-price__keep { order: 4; text-align: right; }
	.ep-ph-access__facts div { grid-template-columns: 1fr; gap: .25rem; }
	.ep-ph-top__inner { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.ep-ph-card, .ep-gal-tile, .ep-ph-progress__bar i { transition: none; }
}
