/**
 * KruisCo Photo Gallery — front-end styles.
 * Colours and fonts inherit from the active WordPress theme.
 */

.wpgal {
	--wpgal-gap: 1rem;
	box-sizing: border-box;
	color: inherit;
	font-family: var(--wpgal-font, inherit);
	line-height: 1.55;
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.5rem 0 3rem;
}

.wpgal *,
.wpgal *::before,
.wpgal *::after {
	box-sizing: inherit;
}

.wpgal-title {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.15;
	margin: 0 0 0.35rem;
	color: inherit;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.wpgal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	font-size: 0.875rem;
	opacity: 0.7;
	margin: 0 0 1rem;
}

.wpgal-meta > span {
	display: inline-flex;
	align-items: center;
}

.wpgal-meta > span + span::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.5;
	margin-right: 1rem;
}

.wpgal-description {
	margin: 0 0 1.5rem;
	max-width: 68ch;
}

/* ---------------------------------------------------------------- Buttons */

.wpgal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	border: 0;
	border-radius: var(--wpgal-radius, 10px);
	background: var(--wpgal-accent, #2c3e50);
	background: color-mix(in srgb, var(--wpgal-accent, #2c3e50) 86%, #ffffff);
	color: var(--wpgal-accent-contrast, #ffffff);
	font: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.75rem 1.35rem;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.15s ease, transform 0.15s ease;
	line-height: 1.2;
}

.wpgal-btn:hover {
	filter: brightness(1.08);
	color: var(--wpgal-accent-contrast, #fff);
}

.wpgal-btn:active {
	transform: translateY(1px);
}

.wpgal-btn--ghost {
	background: transparent;
	color: inherit;
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}

.wpgal-btn--ghost:hover {
	background: color-mix(in srgb, currentColor 6%, transparent);
	color: inherit;
}

.wpgal-btn--small {
	font-size: 0.8rem;
	padding: 0.4rem 0.8rem;
}

.wpgal-btn--paypal {
	background: #ffc439;
	color: #15324b;
	min-width: 240px;
}

.wpgal-btn--paypal:hover {
	color: #15324b;
	filter: brightness(0.97);
}

/*
 * Themes commonly restyle links, which left the anchor-based buttons (download,
 * PDF) dark on dark. Force a readable label and a slightly lighter fill.
 */
.wpgal a.wpgal-btn:not(.wpgal-btn--paypal),
.wpgal button.wpgal-btn:not(.wpgal-btn--paypal) {
	background-color: var(--wpgal-accent, #2c3e50);
	background-color: color-mix(in srgb, var(--wpgal-accent, #2c3e50) 80%, #ffffff);
	color: var(--wpgal-accent-contrast, #ffffff) !important;
	text-decoration: none;
}

.wpgal a.wpgal-btn:not(.wpgal-btn--paypal):hover,
.wpgal button.wpgal-btn:not(.wpgal-btn--paypal):hover {
	background-color: var(--wpgal-accent, #2c3e50);
	background-color: color-mix(in srgb, var(--wpgal-accent, #2c3e50) 60%, #ffffff);
	color: var(--wpgal-accent-contrast, #ffffff) !important;
}

.wpgal a.wpgal-btn--ghost {
	background-color: transparent;
	color: inherit;
	border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 38%, transparent);
}

.wpgal a.wpgal-btn--ghost:hover {
	background-color: rgba(127, 127, 127, 0.1);
	background-color: color-mix(in srgb, currentColor 9%, transparent);
}

.wpgal-link {
	color: var(--wpgal-accent, inherit);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ------------------------------------------------------------------ Forms */

.wpgal-form {
	display: grid;
	gap: 1rem;
}

.wpgal-field {
	display: grid;
	gap: 0.35rem;
}

.wpgal-field__label {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.wpgal-field__hint {
	font-size: 0.8rem;
	opacity: 0.75;
}

.wpgal-form input[type="text"],
.wpgal-form input[type="tel"],
.wpgal-form input[type="email"],
.wpgal-form input[type="password"] {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border-radius: calc(var(--wpgal-radius, 10px) * 0.8);
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	background: transparent;
	color: inherit;
	font: inherit;
}

.wpgal-form input:focus-visible,
.wpgal-btn:focus-visible,
.wpgal-tab:focus-visible {
	outline: 2px solid var(--wpgal-accent, currentColor);
	outline-offset: 2px;
}

.wpgal-checkbox {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	font-size: 0.9rem;
}

.wpgal-checkbox input {
	margin-top: 0.25rem;
}

/* ----------------------------------------------------------------- Alerts */

.wpgal-alert {
	border-radius: calc(var(--wpgal-radius, 10px) * 0.8);
	padding: 0.85rem 1rem;
	margin: 0 0 1.25rem;
	font-size: 0.925rem;
	border: 1px solid transparent;
	background: color-mix(in srgb, currentColor 6%, transparent);
}

.wpgal-alert--error {
	border-color: #f0b7b7;
	background: #fdf0f0;
	color: #8a1f1f;
}

.wpgal-alert--success {
	border-color: #b7dcc4;
	background: #eefaf1;
	color: #14532d;
}

.wpgal-empty {
	opacity: 0.7;
	font-style: italic;
}

/* -------------------------------------------------------------- Gate card */

.wpgal-gate {
	display: flex;
	justify-content: center;
	padding: 2rem 0 4rem;
}

.wpgal-portal-login {
	display: flex;
	justify-content: center;
	padding: 2rem 0 4rem;
}

.wpgal-gate__card {
	width: 100%;
	max-width: 420px;
	border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
	border-radius: calc(var(--wpgal-radius, 10px) * 1.4);
	padding: 2rem;
	background: color-mix(in srgb, currentColor 3%, transparent);
}

.wpgal-gate__title {
	margin: 0 0 0.5rem;
	font-size: 1.4rem;
	font-weight: 600;
}

.wpgal-gate__intro {
	margin: 0 0 1.5rem;
	opacity: 0.75;
	font-size: 0.925rem;
}

.wpgal-gate__help {
	margin: 1.25rem 0 0;
	text-align: center;
	font-size: 0.875rem;
}

/* ------------------------------------------------------------------- Grid */

.wpgal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--wpgal-gap);
	margin: 0 0 1.5rem;
}

.wpgal-tile {
	margin: 0;
	overflow: hidden;
	border-radius: calc(var(--wpgal-radius, 10px) * 0.8);
	background: color-mix(in srgb, currentColor 6%, transparent);
}

.wpgal-tile__link {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.wpgal-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
	-webkit-user-drag: none;
	user-select: none;
}

.wpgal-tile__link:hover img {
	transform: scale(1.03);
}

/*
 * Photo layouts, chosen per gallery on its admin screen. The size variants
 * are more specific than the plain grid so the narrow-screen rule further
 * down cannot flatten every choice back to the default, and masonry keeps
 * each photo's own shape in staggered columns instead of cropping to 4:3.
 */
.wpgal-gallery .wpgal-grid--compact {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.wpgal-gallery .wpgal-grid--large {
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/*
 * Masonry keeps every photo's own shape. These column rules are the board as
 * it is drawn before JavaScript runs, and as it stays if JavaScript never
 * arrives: photos fill one column at a time. The packed variant below adds
 * nothing to look at — it only gives the browser a row span per photo so it
 * can drop each one into the shortest column, which levels the bottom of the
 * board instead of leaving it ragged.
 */
.wpgal-gallery .wpgal-grid--masonry {
	display: block;
	/* Never narrower than a 320px photo, never more than three across; the
	   packed variant below uses the same rule from assets/js/public.js. */
	column-count: 3;
	column-width: 320px;
	column-gap: var(--wpgal-gap);
}

.wpgal-gallery .wpgal-grid--masonry .wpgal-tile {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	margin: 0 0 var(--wpgal-gap);
	/* The tile is cut to the photo it holds, so the translucent fill that
	   stands in for a photo in the fixed-ratio grids has nothing to cover
	   here. Left in, a photo that stops short of the tile's edge shows that
	   fill as a grey strip down its right side — a theme rule or a lazy-loader
	   that writes a width onto the image is enough — and the strip reads as a
	   smudge in the gutter. */
	background: transparent;
}

.wpgal-gallery .wpgal-grid--masonry .wpgal-tile__link {
	aspect-ratio: auto;
}

/* The photo spans the tile: masonry keeps every shape, so the image is sized
   by the column and nothing else may cap or narrow it. */
.wpgal-gallery .wpgal-grid--masonry .wpgal-tile img {
	width: 100%;
	max-width: 100%;
	height: auto;
}

/* Packed by assets/js/public.js, which sets a row span on each tile. */
.wpgal-gallery .wpgal-grid--masonry.is-packed {
	display: grid;
	grid-template-columns: repeat(var(--wpgal-columns, 2), minmax(0, 1fr));
	/* A row is one pixel and rows carry no gap of their own: the space that
	   follows a photo is part of its span, so the columns cannot drift and
	   the photos keep their exact shape instead of being cropped to fit. */
	grid-auto-rows: 1px;
	grid-auto-flow: row dense;
	gap: 0 var(--wpgal-gap);
	column-count: auto;
}

.wpgal-gallery .wpgal-grid--masonry.is-packed .wpgal-tile {
	align-self: start;
	margin: 0;
}

/* --------------------------------------------------------- Photo selection */

.wpgal-selection {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 0.9rem;
	padding: 0.65rem 0.9rem;
	margin: 0 0 0.6rem;
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-radius: calc(var(--wpgal-radius, 10px) * 0.8);
	background: color-mix(in srgb, currentColor 4%, transparent);
	font-size: 0.9rem;
}

.wpgal-selection__summary {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.wpgal-selection__heart {
	color: #d94f6a;
	font-size: 1rem;
	line-height: 1;
}

.wpgal-selection__toggle,
.wpgal-selection__clear {
	font: inherit;
	font-size: 0.82rem;
	line-height: 1.2;
	background: transparent;
	color: inherit;
	border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
	border-radius: 999px;
	padding: 0.3rem 0.8rem;
	cursor: pointer;
}

.wpgal-selection__toggle[aria-pressed="true"] {
	background: var(--wpgal-accent, #2c3e50);
	border-color: var(--wpgal-accent, #2c3e50);
	color: var(--wpgal-accent-contrast, #ffffff);
}

.wpgal-selection__clear {
	border-color: transparent;
	text-decoration: underline;
	opacity: 0.75;
}

/*
 * Uses the shared button palette so the colours match "Download all photos
 * (.zip)" at the foot of the gallery; themes that restyle links cannot wash
 * the label out. Only the pill shape is gallery-bar specific.
 */
.wpgal-selection__download {
	border-radius: 999px;
	white-space: nowrap;
}

.wpgal-selection__download:hover,
.wpgal-selection__download:focus {
	text-decoration: none;
}

.wpgal-selection__hint {
	font-size: 0.8rem;
	opacity: 0.7;
	margin: 0 0 1rem;
}

.wpgal-tile {
	position: relative;
}

.wpgal-tile__pick {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.15rem;
	height: 2.15rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(12, 14, 16, 0.45);
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.05rem;
	line-height: 1;
	cursor: pointer;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.wpgal-tile__pick:hover {
	transform: scale(1.07);
	background: rgba(12, 14, 16, 0.65);
}

.wpgal-tile__pick[aria-pressed="true"] {
	background: #d94f6a;
	color: #ffffff;
}

.wpgal-tile.is-picked {
	box-shadow: inset 0 0 0 2px #d94f6a;
}

.wpgal-gallery.is-filtered .wpgal-tile:not(.is-picked) {
	display: none;
}

.wpgal-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem;
	padding: 1.25rem 0;
	border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.wpgal-actions__hint {
	font-size: 0.8rem;
	opacity: 0.6;
}

.wpgal-gallery__foot {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	font-size: 0.8rem;
	opacity: 0.55;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ Cards */

.wpgal-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--wpgal-gap);
}

.wpgal-card {
	display: block;
	border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	border-radius: calc(var(--wpgal-radius, 10px) * 1.2);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: color-mix(in srgb, currentColor 3%, transparent);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.wpgal-card:hover {
	border-color: color-mix(in srgb, currentColor 32%, transparent);
	transform: translateY(-2px);
}

.wpgal-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	background: color-mix(in srgb, currentColor 8%, transparent);
}

.wpgal-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wpgal-card__body {
	display: grid;
	gap: 0.25rem;
	padding: 0.9rem 1rem;
}

.wpgal-card__title {
	font-weight: 600;
}

.wpgal-card__meta {
	font-size: 0.82rem;
	opacity: 0.65;
}

/* -------------------------------------------------------------------- Tabs */

.wpgal-portal__head {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.wpgal-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	margin-bottom: 1.5rem;
}

.wpgal-tab {
	padding: 0.6rem 0.95rem;
	text-decoration: none;
	color: inherit;
	opacity: 0.65;
	font-size: 0.925rem;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.wpgal-tab.is-active {
	opacity: 1;
	border-bottom-color: var(--wpgal-accent, currentColor);
}

/* ------------------------------------------------------------------- Table */

.wpgal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.925rem;
	margin-bottom: 1.5rem;
}

.wpgal-table th,
.wpgal-table td {
	text-align: left;
	padding: 0.65rem 0.6rem;
	border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	vertical-align: top;
}

.wpgal-table th {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.6;
	font-weight: 600;
}

.wpgal-table .is-numeric {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ Status */

.wpgal-status {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: capitalize;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	background: color-mix(in srgb, currentColor 10%, transparent);
}

.wpgal-status--paid,
.wpgal-status--completed {
	background: #e6f6ec;
	color: #14603a;
}

.wpgal-status--sent {
	background: #fdf3e2;
	color: #7a4c06;
}

.wpgal-status--viewed {
	background: #f4f3ff;
	color: #5925dc;
}

.wpgal-status--partial {
	background: #e8f1fb;
	color: #14508a;
}

.wpgal-status--signed {
	background: #e8f1fb;
	color: #14508a;
}

.wpgal-status--overdue {
	background: #fdecec;
	color: #91201f;
}

.wpgal-status--void,
.wpgal-status--cancelled {
	background: #f2f4f7;
	color: #667085;
	text-decoration: line-through;
}

/* ------------------------------------------------------------------ Doc/contract */

.wpgal-doc {
	border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	border-radius: calc(var(--wpgal-radius, 10px) * 1.2);
	padding: clamp(1.5rem, 4vw, 3rem);
	background: color-mix(in srgb, currentColor 2%, transparent);
	margin-bottom: 1.5rem;
}

.wpgal-doc h1,
.wpgal-doc h2,
.wpgal-doc h3 {
	margin-top: 1.75rem;
	line-height: 1.25;
}

.wpgal-doc h1:first-child,
.wpgal-doc h2:first-child,
.wpgal-doc h3:first-child {
	font-size: 2rem;
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 1rem;
}

/* Section headings inside a contract read as sub-headings, not page titles. */
.wpgal-doc h1:not(:first-child),
.wpgal-doc h2:not(:first-child),
.wpgal-doc h3:not(:first-child) {
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.01em;
	margin: 2.5rem 0 0.9rem;
}

.wpgal-doc p,
.wpgal-doc li {
	font-size: 0.95rem;
}

/* Keep the layout the studio built in the visual editor. */
.wpgal-doc table {
	border-collapse: collapse;
	max-width: 100%;
	margin: 1rem 0;
}

.wpgal-doc th,
.wpgal-doc td {
	padding: 0.35rem 0.6rem 0.35rem 0;
	vertical-align: top;
	text-align: left;
}

.wpgal-doc hr {
	border: 0;
	border-top: 1px solid currentColor;
	opacity: 0.25;
	margin: 1.75rem 0;
}

.wpgal-doc img {
	max-width: 100%;
	height: auto;
}

.wpgal-doc-head {
	margin-bottom: 1.5rem;
}

.wpgal-doc-head .wpgal-meta {
	align-items: center;
}

.wpgal-signatures {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.wpgal-signatures__title {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.6;
	margin: 0 0 1rem;
}

.wpgal-signatures__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
}

.wpgal-signatures__box {
	display: grid;
	gap: 0.3rem;
}

.wpgal-signatures__role {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.55;
}

.wpgal-signatures__line {
	min-height: 64px;
	display: flex;
	align-items: flex-end;
	border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	padding-bottom: 0.25rem;
}

.wpgal-sign {
	display: inline-block;
	max-width: 100%;
	vertical-align: bottom;
}

.wpgal-sign-img {
	max-height: 90px;
	max-width: 100%;
	width: auto;
	display: inline-block;
}

.wpgal-signatures__line .wpgal-sign-img {
	display: block;
}

.wpgal-sign-pending {
	font-size: 0.85rem;
	opacity: 0.5;
	font-style: italic;
}

.wpgal-signatures__name {
	font-size: 0.9rem;
	font-weight: 600;
}

.wpgal-signatures__date {
	font-size: 0.8rem;
	opacity: 0.6;
}

.wpgal-fingerprint {
	font-size: 0.75rem;
	opacity: 0.5;
	word-break: break-all;
}

/* --------------------------------------------------------------- Sign pad */

.wpgal-sign-section {
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-radius: calc(var(--wpgal-radius, 10px) * 1.2);
	padding: clamp(1.25rem, 3vw, 2rem);
	margin-bottom: 1.5rem;
}

.wpgal-sign-section__title {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
}

.wpgal-sign-section__intro {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	opacity: 0.7;
	max-width: 62ch;
}

.wpgal-sign-consent {
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-radius: calc(var(--wpgal-radius, 10px) * 0.8);
	padding: 0.9rem 1rem;
	margin: 0 0 1.1rem;
}

.wpgal-sign-consent__title {
	display: block;
	font-size: 0.9rem;
	margin-bottom: 0.4rem;
}

.wpgal-sign-consent__text {
	margin: 0 0 0.75rem;
	font-size: 0.82rem;
	line-height: 1.5;
	opacity: 0.75;
}

.wpgal-sign-pad {
	border: 1px dashed color-mix(in srgb, currentColor 35%, transparent);
	border-radius: calc(var(--wpgal-radius, 10px) * 0.8);
	background: #fff;
	overflow: hidden;
}

.wpgal-sign-pad__canvas {
	display: block;
	width: 100%;
	height: 180px;
	touch-action: none;
	cursor: crosshair;
	background: #fff;
}

.wpgal-sign-pad__modes {
	display: flex;
	gap: 0.25rem;
	padding: 0.45rem 0.5rem;
	background: #f7f7f8;
	border-bottom: 1px solid #e6e6e8;
}

.wpgal-sign-pad__mode {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: #3c434a;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.3rem 0.75rem;
	cursor: pointer;
}

.wpgal-sign-pad__mode:hover {
	background: #ececed;
}

.wpgal-sign-pad__mode[aria-selected="true"] {
	background: #fff;
	border-color: #d0d0d5;
	color: #111418;
}

.wpgal-sign-pad__typed {
	padding: 0.75rem;
	background: #fff;
	border-top: 1px solid #e6e6e8;
}

.wpgal-sign-pad__typed[hidden],
.wpgal-sign-pad__upload[hidden] {
	display: none;
}

.wpgal-sign-pad__upload {
	padding: 0.75rem;
	background: #fff;
	border-top: 1px solid #e6e6e8;
}

.wpgal-sign-pad__upload input[type="file"] {
	font-size: 0.85rem;
}

.wpgal-sign-pad__typed-label {
	display: block;
	font-size: 0.75rem;
	opacity: 0.65;
	margin: 0 0 0.35rem;
	color: #3c434a;
}

.wpgal-sign-pad__typed-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.25rem 0.5rem;
	border: 1px solid #cfcfd4;
	border-radius: 6px;
	background: #fff;
	color: #111418;
	font-family: 'Segoe Script', 'Bradley Hand', 'Brush Script MT', 'Snell Roundhand', cursive;
	font-size: 1.9rem;
	line-height: 1.4;
}

/* Email confirmation step before a signature is recorded. */
.wpgal-sign-otp {
	margin: 0 0 1.25rem;
	padding: 0.9rem 1rem;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f6f7f7;
}

.wpgal-sign-otp__title {
	margin: 0 0 0.4rem;
	font-size: 1rem;
}

.wpgal-sign-otp__form {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin: 0.6rem 0 0;
}

.wpgal-sign-otp__sent {
	font-size: 0.85rem;
	color: #50575e;
}

.wpgal-sign-otp__done {
	margin: 0;
	color: #1a7f37;
	font-weight: 600;
}

.wpgal-sign-otp__verify {
	padding-top: 0.75rem;
	border-top: 1px solid #e6e6e8;
}

.wpgal-sign-section,
#wpgal-sign-pad {
	scroll-margin-top: 1.5rem;
}

.wpgal-sign-otp__error {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	color: #b32d2e;
	font-weight: 600;
}

.wpgal-sign-otp__code {
	display: block;
}

.wpgal-sign-otp__code input {
	width: 9rem;
	letter-spacing: 0.3em;
	font-size: 1.1rem;
}

.wpgal-sign-otp__locked {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	background: #f6f7f7;
	color: #50575e;
}

.wpgal-sign-section__step {
	margin: 1.5rem 0 0.75rem;
	font-size: 1rem;
}

.wpgal-sign-legal-name {
	margin: -0.4rem 0 1rem;
	font-size: 0.85rem;
	color: #50575e;
}

.wpgal-sign-pad[data-mode="type"] .wpgal-sign-pad__canvas {
	cursor: default;
	touch-action: auto;
}

.wpgal-sign-pad__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.75rem;
	background: #f7f7f8;
	border-top: 1px solid #e6e6e8;
	color: #3c434a;
}

.wpgal-sign-pad__hint {
	font-size: 0.75rem;
	opacity: 0.65;
}

.wpgal-sign-pad .wpgal-btn--ghost {
	color: #3c434a;
	border-color: #cfcfd4;
}

/* ------------------------------------------------------------------ Invoice */

.wpgal-invoice-doc {
	border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	border-radius: calc(var(--wpgal-radius, 10px) * 1.2);
	padding: clamp(1.25rem, 3vw, 2.5rem);
	background: color-mix(in srgb, currentColor 2%, transparent);
}

.wpgal-invoice-doc__back {
	margin: 0 0 1rem;
	font-size: 0.85rem;
}

.wpgal-invoice-doc__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	margin-bottom: 1.5rem;
}

.wpgal-invoice-doc__logo,
.wpgal .wpgal-invoice-doc__studio .wpgal-invoice-doc__logo {
	display: block;
	height: 256px !important;
	width: auto !important;
	max-width: 100%;
	max-height: 256px;
	object-fit: contain;
	margin-bottom: 0.5rem;
}

.wpgal-invoice-doc__studio-name {
	font-size: 1.1rem;
}

.wpgal-invoice-doc__studio-meta {
	font-size: 0.85rem;
	opacity: 0.7;
	line-height: 1.5;
}

.wpgal-invoice-doc__studio-meta p {
	margin: 0;
}

.wpgal-invoice-doc__ref {
	text-align: right;
}

.wpgal-invoice-doc__number {
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
	opacity: 0.75;
	margin-bottom: 0.35rem;
}

.wpgal-invoice-doc__parties {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.wpgal-invoice-doc__parties address {
	font-style: normal;
	font-size: 0.9rem;
	line-height: 1.55;
}

.wpgal-invoice-doc__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.6;
	margin: 0 0 0.5rem;
}

.wpgal-invoice-doc__dates {
	display: grid;
	gap: 0.3rem;
	font-size: 0.9rem;
	text-align: right;
}

.wpgal-invoice-doc__dates span {
	opacity: 0.6;
	margin-right: 0.35rem;
}

.wpgal-invoice-table td {
	font-size: 0.9rem;
}

.wpgal-invoice-doc__totals {
	margin-left: auto;
	max-width: 320px;
	display: grid;
	gap: 0.4rem;
	font-size: 0.925rem;
}

.wpgal-invoice-doc__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.wpgal-invoice-doc__row.is-total {
	font-weight: 700;
	font-size: 1.05rem;
	border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	padding-top: 0.5rem;
	margin-top: 0.25rem;
}

.wpgal-invoice-doc__pay {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 1.75rem 0;
}

.wpgal-invoice-doc__secure,
.wpgal-invoice-doc__pay-note {
	font-size: 0.82rem;
	opacity: 0.6;
	margin: 0;
}

.wpgal-invoice-doc__notes,
.wpgal-invoice-doc__terms {
	font-size: 0.85rem;
	opacity: 0.75;
	border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	padding-top: 1rem;
	margin-top: 1.5rem;
}

/* ---------------------------------------------------------------- Lightbox */

.wpgal-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: radial-gradient(circle at 50% 45%, rgba(8, 10, 12, 0.93) 0%, rgba(0, 0, 0, 0.985) 68%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 3.5rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, visibility 0.18s ease;
	-webkit-backdrop-filter: blur(10px) saturate(0.85);
	backdrop-filter: blur(10px) saturate(0.85);
}

.wpgal-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.wpgal-lightbox__img {
	max-width: 100%;
	max-height: 88vh;
	object-fit: contain;
	border-radius: 4px;
	user-select: none;
	-webkit-user-drag: none;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 28px 80px rgba(0, 0, 0, 0.85);
	transition: filter 0.2s ease;
}

/* The grid copy appears first, softened, while the sharp copy arrives. */
.wpgal-lightbox__img.is-soft {
	filter: blur(7px);
}

.wpgal-lightbox__pick {
	position: absolute;
	bottom: 1.15rem;
	right: 1.15rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.wpgal-lightbox__pick[aria-pressed="true"] {
	background: #d94f6a;
	color: #ffffff;
}

.wpgal-lightbox__close,
.wpgal-lightbox__nav {
	position: absolute;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	border: 0;
	border-radius: 999px;
	width: 42px;
	height: 42px;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpgal-lightbox__close {
	top: 1rem;
	right: 1rem;
}

.wpgal-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
}

.wpgal-lightbox__nav--prev {
	left: 1rem;
}

.wpgal-lightbox__nav--next {
	right: 1rem;
}

.wpgal-lightbox__caption {
	position: absolute;
	bottom: 1.25rem;
	left: 0;
	right: 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8rem;
}

/* Per-photo download link, shown only when the gallery allows downloads. */
.wpgal-lightbox__download {
	position: absolute;
	top: 1rem;
	right: 4.25rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0 0.9rem;
	height: 42px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
}

.wpgal-lightbox__download:hover,
.wpgal-lightbox__download:focus {
	background: rgba(255, 255, 255, 0.26);
	color: #fff;
}

.wpgal-lightbox__download[hidden] {
	display: none;
}

body.wpgal-lightbox-open {
	overflow: hidden;
}

/* ------------------------------------------------------------- Protection */

.wpgal[data-wpgal-protection="1"] img {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	pointer-events: auto;
}

body.wpgal-guard::after {
	content: "";
	position: fixed;
	inset: 0;
	backdrop-filter: blur(22px);
	background: rgba(255, 255, 255, 0.35);
	z-index: 100001;
	pointer-events: none;
}

@media (max-width: 640px) {
	.wpgal-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 0.6rem;
	}

	.wpgal-gallery .wpgal-grid--large {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}

	.wpgal-lightbox {
		padding: 3rem 0.75rem;
	}

	.wpgal-invoice-doc__head,
	.wpgal-invoice-doc__dates {
		text-align: left;
	}

	.wpgal-invoice-doc__ref {
		text-align: left;
	}
}

/* ------------------------------------------------------------ Save as PDF */

.wpgal-print-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.9rem;
	margin: 0 0 1.25rem;
}

.wpgal-print-hint {
	font-size: 0.8rem;
	opacity: 0.7;
}

.wpgal-print-row .wpgal-btn {
	text-decoration: none;
}

@media print {
	@page {
		margin: 16mm;
	}

	.wpgal-lightbox,
	.wpgal-grid,
	.wpgal-selection,
	.wpgal-selection__hint,
	.wpgal-actions,
	.wpgal-print-row,
	.wpgal-sign-section,
	.wpgal-sign-form,
	.wpgal-sign-pad,
	.wpgal-invoice-doc__pay,
	.wpgal-invoice-doc__pay-note,
	.wpgal-alert--error,
	body.wpgal-guard::after {
		display: none !important;
	}

	/* Best effort at dropping the surrounding site chrome. */
	.site-header,
	.site-footer,
	.site-navigation,
	.main-navigation,
	#masthead,
	#colophon,
	.widget-area,
	#secondary,
	.sidebar,
	.wp-block-navigation,
	.wp-site-blocks > header,
	.wp-site-blocks > footer,
	nav {
		display: none !important;
	}

	html,
	body {
		background: #ffffff !important;
		color: #000000 !important;
	}

	.wpgal {
		max-width: none;
		margin: 0;
		padding: 0;
		color: #000000 !important;
	}

	.wpgal-invoice-doc__back {
		display: none !important;
	}

	.wpgal-doc,
	.wpgal-invoice-doc {
		border: 0 !important;
		border-radius: 0 !important;
		background: none !important;
		padding: 0 !important;
		box-shadow: none !important;
	}

	.wpgal-doc h1:first-child,
	.wpgal-invoice-doc .wpgal-title {
		font-size: 17pt;
	}

	.wpgal-doc h1:not(:first-child),
	.wpgal-doc h2:not(:first-child),
	.wpgal-doc h3:not(:first-child) {
		font-size: 12.5pt;
		margin: 16pt 0 6pt;
		break-after: avoid;
		page-break-after: avoid;
	}

	.wpgal-doc p,
	.wpgal-doc li,
	.wpgal-invoice-doc p {
		font-size: 10.5pt;
		orphans: 3;
		widows: 3;
	}

	.wpgal-doc p {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.wpgal-doc img,
	.wpgal-sign-img,
	.wpgal-invoice-doc__logo {
		display: inline-block !important;
		max-width: 100%;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.wpgal-status,
	.wpgal-fingerprint,
	.wpgal-alert {
		background: none !important;
		border: 0 !important;
		padding: 0 !important;
		font-size: 9pt;
	}

	.wpgal-signatures {
		border-top: 1px solid #000000;
		margin-top: 24pt;
	}

	.wpgal-table {
		width: 100%;
		border-collapse: collapse;
	}

	.wpgal-invoice-table {
		width: 100%;
		border-collapse: collapse;
	}

	.wpgal-table th,
	.wpgal-table td {
		border-bottom: 1px solid #bbbbbb;
	}

	tr,
	table {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.wpgal-signatures__box {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.wpgal-invoice-doc__totals .is-total {
		font-weight: 700;
	}

	.wpgal a {
		color: #000000 !important;
		text-decoration: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpgal * {
		transition: none !important;
	}
}

/* Invoice payment providers */
.wpgal-helcim-status {
	font-size: 0.85rem;
	margin: 0.15rem 0 0;
}

.wpgal-helcim-status.is-error {
	color: #b32d2e;
}

.wpgal-invoice-doc__pay form {
	margin: 0;
}

/* --------------------------------------------------------------- Intake form */

.wpgal-intake {
	max-width: 720px;
	margin: 0 auto;
}

.wpgal-intake__card {
	border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
	border-radius: calc(var(--wpgal-radius, 10px) * 1.4);
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.wpgal-intake__form {
	gap: 1.75rem;
}

.wpgal-intake__section {
	display: grid;
	gap: 1rem;
}

.wpgal-intake__heading {
	margin: 0;
	font-size: 1.05rem;
}

.wpgal-intake__label {
	margin: 0.5rem 0 0;
	font-size: 0.95rem;
}

.wpgal-intake__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.wpgal-field--wide {
	grid-column: 1 / -1;
}

.wpgal-form select {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border-radius: calc(var(--wpgal-radius, 10px) * 0.8);
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	background: transparent;
	color: inherit;
	font: inherit;
}

.wpgal-form input[readonly] {
	opacity: 0.7;
}

.wpgal-choice {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	border: 0;
}

.wpgal-choice legend {
	margin-bottom: 0.5rem;
}

.wpgal-choice__option {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.925rem;
}

.wpgal-people {
	display: grid;
	gap: 0.85rem;
}

/* The display rule above would otherwise beat the hidden attribute. */
.wpgal-people[hidden] {
	display: none;
}

.wpgal-choice--spaced {
	margin-top: 1.25rem;
}

.wpgal-people__list {
	display: grid;
	gap: 0.5rem;
}

.wpgal-person {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 0.5rem;
	align-items: center;
}

@media (max-width: 560px) {
	.wpgal-intake__grid {
		grid-template-columns: 1fr;
	}
}

/* =============================================================================
   1.9.7 — front-end refresh

   Screen-only polish so contracts and invoices keep printing exactly as they
   did. Surfaces are mixed from the theme's own text colour, which keeps the
   galleries readable on light and dark themes alike.
   ========================================================================== */

@media screen {
	.wpgal {
		--wpgal-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
		--wpgal-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.05);
		padding-top: 1.75rem;
	}

	/* ------------------------------------------------------------- Heading */

	.wpgal-title {
		font-weight: 700;
		letter-spacing: -0.03em;
		text-wrap: balance;
	}

	.wpgal-description {
		font-size: 1.02rem;
		line-height: 1.65;
		opacity: 0.85;
	}

	.wpgal-meta {
		gap: 0.4rem 1rem;
		font-size: 0.7rem;
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		opacity: 0.55;
	}

	.wpgal-meta__lock {
		padding: 0.15rem 0.55rem;
		border-radius: 999px;
		background: color-mix(in srgb, currentColor 10%, transparent);
		letter-spacing: 0.02em;
		text-transform: none;
	}

	.wpgal-gallery__head {
		margin-bottom: 1.5rem;
	}

	/* ------------------------------------------------------------- Buttons */

	.wpgal-btn {
		box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14),
			0 6px 18px color-mix(in srgb, var(--wpgal-accent, #2c3e50) 20%, transparent);
		transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	}

	.wpgal-btn:hover {
		transform: translateY(-1px);
		box-shadow: 0 2px 4px rgba(15, 23, 42, 0.16),
			0 10px 24px color-mix(in srgb, var(--wpgal-accent, #2c3e50) 24%, transparent);
	}

	.wpgal-btn:active {
		transform: translateY(0);
		box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14);
	}

	.wpgal-btn--ghost,
	.wpgal-selection__toggle,
	.wpgal-selection__clear {
		box-shadow: none;
	}

	.wpgal-btn--ghost:hover {
		transform: none;
		box-shadow: none;
	}

	/* --------------------------------------------------------------- Forms */

	.wpgal-form input[type="text"],
	.wpgal-form input[type="tel"],
	.wpgal-form input[type="email"],
	.wpgal-form input[type="password"],
	.wpgal-form select {
		background: color-mix(in srgb, currentColor 3%, transparent);
		border-color: color-mix(in srgb, currentColor 22%, transparent);
		box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
		transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	}

	.wpgal-form input:hover,
	.wpgal-form select:hover {
		border-color: color-mix(in srgb, currentColor 36%, transparent);
	}

	.wpgal-form input:focus,
	.wpgal-form select:focus {
		border-color: var(--wpgal-accent, currentColor);
		box-shadow: 0 0 0 3px color-mix(in srgb, var(--wpgal-accent, currentColor) 20%, transparent);
		outline: none;
	}

	.wpgal-field__label {
		font-size: 0.82rem;
		letter-spacing: 0.02em;
	}

	/* --------------------------------------------------------------- Alerts */

	.wpgal-alert {
		border-radius: calc(var(--wpgal-radius, 10px) * 0.9);
		padding: 0.95rem 1.1rem;
		box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	}

	/* ------------------------------------------------------------ Gate card */

	.wpgal-gate__card {
		position: relative;
		overflow: hidden;
		background: color-mix(in srgb, currentColor 2.5%, transparent);
		box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 30px 70px -40px rgba(15, 23, 42, 0.45);
	}

	.wpgal-gate__card::before {
		content: "";
		position: absolute;
		inset: 0 0 auto;
		height: 3px;
		background: linear-gradient(
			90deg,
			var(--wpgal-accent, #2c3e50),
			color-mix(in srgb, var(--wpgal-accent, #2c3e50) 25%, transparent)
		);
	}

	/* --------------------------------------------------------------- Tiles */

	.wpgal-grid {
		gap: 1.1rem;
	}

	.wpgal-tile {
		border-radius: calc(var(--wpgal-radius, 10px) * 1.1);
		box-shadow: var(--wpgal-shadow-sm);
		transition: box-shadow 0.25s ease;
	}

	.wpgal-tile:hover {
		box-shadow: var(--wpgal-shadow-md);
	}

	.wpgal-tile__link::after {
		content: "";
		position: absolute;
		inset: auto 0 0;
		height: 45%;
		background: linear-gradient(to top, rgba(9, 12, 18, 0.45), transparent);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.25s ease;
	}

	.wpgal-tile__link:hover::after {
		opacity: 1;
	}

	.wpgal-tile img {
		transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
	}

	.wpgal-tile__link:hover img {
		transform: scale(1.045);
	}

	.wpgal-tile__pick {
		width: 2.35rem;
		height: 2.35rem;
		border: 1px solid rgba(255, 255, 255, 0.28);
		box-shadow: 0 2px 10px rgba(9, 12, 18, 0.35);
	}

	.wpgal-tile.is-picked {
		box-shadow: inset 0 0 0 2px #d94f6a, var(--wpgal-shadow-md);
	}

	.wpgal-selection {
		border-radius: calc(var(--wpgal-radius, 10px) * 1.1);
		padding: 0.7rem 1rem;
		background: color-mix(in srgb, currentColor 7%, transparent);
		box-shadow: var(--wpgal-shadow-sm);
	}

	.wpgal-selection__toggle,
	.wpgal-selection__clear {
		transition: background 0.15s ease, border-color 0.15s ease;
	}

	.wpgal-selection__toggle:hover,
	.wpgal-selection__clear:hover {
		background: color-mix(in srgb, currentColor 8%, transparent);
	}

	/* --------------------------------------------------------------- Cards */

	.wpgal-card {
		border-radius: calc(var(--wpgal-radius, 10px) * 1.35);
		box-shadow: var(--wpgal-shadow-sm);
		transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	}

	.wpgal-card:hover {
		transform: translateY(-3px);
		box-shadow: var(--wpgal-shadow-md);
	}

	.wpgal-card__media {
		overflow: hidden;
	}

	.wpgal-card__media img {
		transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
	}

	.wpgal-card:hover .wpgal-card__media img {
		transform: scale(1.03);
	}

	.wpgal-card__body {
		padding: 1rem 1.1rem 1.05rem;
	}

	.wpgal-card__title {
		letter-spacing: -0.01em;
	}

	/* ---------------------------------------------------------------- Tabs */

	.wpgal-tab {
		border-radius: 8px 8px 0 0;
		transition: background 0.15s ease, opacity 0.15s ease;
	}

	.wpgal-tab:hover {
		background: color-mix(in srgb, currentColor 5%, transparent);
		opacity: 0.9;
	}

	.wpgal-tab.is-active {
		font-weight: 700;
		border-bottom-width: 3px;
	}

	/* --------------------------------------------------------------- Table */

	.wpgal-table {
		font-size: 0.9rem;
	}

	.wpgal-table thead th {
		background: color-mix(in srgb, currentColor 4%, transparent);
		padding: 0.7rem 0.7rem;
	}

	.wpgal-table tbody tr {
		transition: background 0.15s ease;
	}

	.wpgal-table tbody tr:hover {
		background: color-mix(in srgb, currentColor 3.5%, transparent);
	}

	.wpgal-status {
		padding: 0.22rem 0.6rem;
		letter-spacing: 0.04em;
		box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 8%, transparent);
	}

	/* ------------------------------------------------------ Contracts/invoices */

	.wpgal-doc,
	.wpgal-invoice-doc {
		border-radius: calc(var(--wpgal-radius, 10px) * 1.5);
		box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 24px 60px -32px rgba(15, 23, 42, 0.35);
	}

	.wpgal-doc h1:first-child {
		letter-spacing: -0.025em;
	}

	.wpgal-invoice-doc__number {
		font-size: 0.78rem;
		font-weight: 700;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		opacity: 0.55;
	}

	.wpgal-invoice-doc__logo {
		filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.08));
	}

	.wpgal-signatures__line {
		border-bottom-width: 1.5px;
	}

	.wpgal-sign-section {
		box-shadow: var(--wpgal-shadow-sm);
		border-radius: calc(var(--wpgal-radius, 10px) * 1.35);
	}

	.wpgal-sign-pad {
		box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 6%, transparent);
	}

	/* -------------------------------------------------------------- Intake */

	.wpgal-intake {
		max-width: 760px;
	}

	.wpgal-intake__card {
		position: relative;
		overflow: hidden;
		background: color-mix(in srgb, currentColor 2%, transparent);
		box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 30px 70px -40px rgba(15, 23, 42, 0.4);
	}

	.wpgal-intake__card::before {
		content: "";
		position: absolute;
		inset: 0 0 auto;
		height: 3px;
		background: linear-gradient(
			90deg,
			var(--wpgal-accent, #2c3e50),
			color-mix(in srgb, var(--wpgal-accent, #2c3e50) 25%, transparent)
		);
	}

	.wpgal-intake__form {
		gap: 0;
	}

	.wpgal-intake__section {
		gap: 0.9rem;
		padding: 1.6rem 0;
		border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
	}

	.wpgal-intake__section:first-of-type {
		padding-top: 0.4rem;
	}

	.wpgal-intake__section:last-of-type {
		padding-bottom: 0.4rem;
		border-bottom: 0;
	}

	.wpgal-intake__heading {
		font-size: 1.18rem;
		letter-spacing: -0.02em;
	}

	.wpgal-intake .wpgal-choice legend {
		font-size: 1.02rem;
		font-weight: 700;
		letter-spacing: -0.01em;
		margin-bottom: 0.75rem;
		color: inherit;
	}

	.wpgal-intake .wpgal-choice__option {
		padding: 0.45rem 0.85rem;
		border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
		border-radius: 999px;
		background: color-mix(in srgb, currentColor 2%, transparent);
		transition: border-color 0.15s ease, background 0.15s ease;
	}

	.wpgal-intake .wpgal-choice__option:hover {
		border-color: color-mix(in srgb, currentColor 34%, transparent);
	}

	.wpgal-intake .wpgal-choice__option:has(input:checked) {
		border-color: var(--wpgal-accent, #2c3e50);
		background: color-mix(in srgb, var(--wpgal-accent, #2c3e50) 10%, transparent);
		font-weight: 600;
	}

	.wpgal-intake .wpgal-person input {
		min-width: 0;
	}

	.wpgal-intake__form > .wpgal-btn {
		margin-top: 1.6rem;
		justify-self: start;
	}

	/* ----------------------------------------------------------- Lightbox */

	.wpgal-lightbox__img {
		border-radius: 6px;
	}

	.wpgal-lightbox__close,
	.wpgal-lightbox__nav,
	.wpgal-lightbox__pick {
		transition: background 0.18s ease, transform 0.18s ease;
	}

	.wpgal-lightbox__close:hover,
	.wpgal-lightbox__nav:hover,
	.wpgal-lightbox__pick:hover {
		background: rgba(255, 255, 255, 0.28);
	}

	.wpgal-lightbox__nav:hover {
		transform: translateY(-50%) scale(1.05);
	}

	@media (max-width: 640px) {
		.wpgal {
			padding-top: 1.25rem;
		}

		.wpgal-gate__card {
			padding: 1.5rem;
		}

		.wpgal-intake__card {
			padding: 1.35rem;
		}

		.wpgal-intake__section {
			padding: 1.35rem 0;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpgal-tile__link::after,
	.wpgal-tile img,
	.wpgal-tile:hover,
	.wpgal-card:hover,
	.wpgal-card__media img,
	.wpgal-btn:hover {
		transition: none !important;
		transform: none !important;
	}
}
