/*
 * Light — its own stylesheet.
 *
 * Loaded after the shared `events.css`, only while Light draws the page. The
 * forms have stylesheets of their own beside this file (`*.form.css`, which
 * become each form's `custom_css`); this file draws the page around them, and
 * hides the questions the page's own cards stand for.
 *
 * Glass, made plain and small: a white page, sections without a frame — each
 * title underlined instead — the accent flat rather than a gradient with a
 * glow, and every size a step down — type, gaps, radii, buttons. One column
 * at every width, up to 1000px; the registration form narrower inside it.
 *
 * Contents
 *   1. Tokens       5. The column    9. The form's frame
 *   2. The page     6. Sections     10. Borrowed pieces
 *   3. White        7. Offers       11. Phones
 *   4. The banner   8. Continue     12. Less motion
 *                                   13. The feedback modal
 */

/* -- 1. Tokens --------------------------------------------------------------- */

/* Everything a site is likely to change, in one place. */
.event-page--light {
	--light-font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	--light-page: #fff;
	--light-ink: #0f172a;
	--light-soft: rgb(15 23 42 / 0.64);
	--light-faint: rgb(15 23 42 / 0.45);
	--light-line: #e8ebf0;
	--light-line-strong: #d7dce4;
	--light-danger: #be123c;

	--light-accent: #356fbc;
	--light-accent-deep: #2a5a9a;
	--light-accent-soft: #f1f5fb;
	--light-accent-ring: 0 0 0 3px rgb(53 111 188 / 0.14);

	/* A card: white, a hairline, and only just lifted off the page. */
	--light-card: #fff;
	--light-shadow: 0 1px 2px rgb(15 23 42 / 0.04);

	--light-radius: 12px;
	--light-radius-sm: 8px;

	/* The column: one, centred, every section up to 1000px with 1em inside.
	   The registration form keeps its own narrower measure inside its
	   section, and the feedback modal is narrower again. */
	--light-width: 1000px;
	--light-form: 37.25rem;
	--light-narrow: 32rem;
	--light-gap: 0.875rem;
	--light-pad: 1em;

	/* Where a section stops when a link jumps to it: under the admin bar. A
	   theme with a fixed header adds its height here. */
	--light-sticky-top: calc(var(--wp-admin--admin-bar--height, 0px) + 1rem);
}

/* -- 2. The page ------------------------------------------------------------- */

/* White behind the theme's header and footer too, not only behind the column. */
body:has(.event-page--light) {
	background: var(--light-page, #fff);
}

.event-page--light {
	max-width: none;
	margin: 0;
	padding: clamp(0.75rem, 2.5vw, 2rem) 1rem clamp(2.5rem, 6vw, 4rem);
	background: var(--light-page);
	color: var(--light-ink);
	font-family: var(--light-font);
	font-size: 0.9375rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.event-page--light *,
.event-page--light *::before,
.event-page--light *::after {
	box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.event-page--light) {
		scroll-behavior: smooth;
	}
}

/* -- 3. White ---------------------------------------------------------------- */

/* A section has no frame: white on white, set apart by the line under its title. */
.light-card,
.event-page--light .event-plan,
.event-page--light .event-reviews {
	background: var(--light-card);
	border: 0;
	box-shadow: none;
}

/* -- 4. The banner ----------------------------------------------------------- */

/* The picture, then the title on a white strip under it — one card. */
.light-hero {
	max-width: var(--light-width);
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid var(--light-line);
	border-radius: var(--light-radius);
	background: var(--light-card);
	box-shadow: var(--light-shadow);
}

.light-hero .event-hero {
	display: block;
	margin: 0;
}

.light-hero .event-hero img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 340px;
	margin: 0;
	aspect-ratio: 16 / 8;
	object-fit: cover;
	border-radius: 0;
}

.light-hero__pane {
	padding: 0.9rem var(--light-pad) 1rem;
}

.light-hero .event-hero + .light-hero__pane {
	border-top: 1px solid var(--light-line);
}

.light-hero__title {
	margin: 0;
	color: var(--light-ink);
	font-family: inherit;
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* Ended, or sold out. */
.light-status {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.2em 0.65em;
	border-radius: 999px;
	background: #f1f3f6;
	color: var(--light-soft);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.light-status--sold-out {
	background: #fdecef;
	color: var(--light-danger);
}

/* -- 5. The column ------------------------------------------------------------- */

/*
 * Register | Feedback, straight under the banner: one pill on one line at every
 * width, halved by a hairline. Either half is there only when its form is.
 */
.light-actions {
	display: flex;
	width: fit-content;
	max-width: var(--light-width);
	margin: var(--light-gap) auto 0;
	overflow: hidden;
	border: 1px solid var(--light-line-strong);
	border-radius: 999px;
	background: #fff;
}

.event-page--light .light-actions__link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 8.5rem;
	min-height: 2.5rem;
	padding: 0.55rem 1.25rem;
	color: var(--light-accent);
	font-size: 0.9375rem;
	font-weight: 620;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.event-page--light .light-actions__link + .light-actions__link {
	border-left: 1px solid var(--light-line-strong);
}

.event-page--light .light-actions__link:hover {
	background: var(--light-accent-soft);
	color: var(--light-accent-deep);
}

.event-page--light .light-actions__link:focus-visible {
	outline: 2px solid var(--light-accent);
	outline-offset: -3px;
}

/*
 * ONE column at every width: nothing sits beside anything else. Every section
 * is as wide as the banner, centred; the registration form inside its section
 * keeps a measure of its own.
 */
.light-column {
	display: grid;
	gap: var(--light-gap);
	margin: var(--light-gap) 0 0;
}

.light-column > * {
	justify-self: center;
	width: 100%;
	max-width: var(--light-width);
}

/* The registration form: no wider than a form reads well, in the middle of its section. */
.light-column > #register > .form-wrap {
	max-width: var(--light-form);
	margin: 0 auto;
}

/* What people said, before it arrives — or when there is nothing to say. */
.light-column > .ax-live:empty {
	display: none;
}

/* The page's own icons: line drawings in the colour of their text. Named, not
   every `svg` — the room and the form draw pictures of their own. */
.light-button svg,
.light-choose svg {
	width: 1.15rem;
	height: 1.15rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The page's main button: every Continue. */
.event-page--light .light-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.625rem;
	padding: 0.6rem 1.15rem;
	border-radius: 999px;
	background: var(--light-accent);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 620;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.16s ease;
}

.event-page--light .light-button:hover {
	background: var(--light-accent-deep);
	color: #fff;
}

.event-page--light .light-button:focus-visible {
	outline: 3px solid rgb(53 111 188 / 0.35);
	outline-offset: 2px;
}

.event-page--light .light-button svg {
	width: 1rem;
	height: 1rem;
}

/* -- 6. Sections ------------------------------------------------------------- */

.light-card {
	min-width: 0;
	padding: var(--light-pad);
	scroll-margin-top: var(--light-sticky-top);
}

/* Every section's title, with a line under it from edge to edge. */
.light-card__title,
.event-page--light .event-section__title {
	margin: 0 0 0.85rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--light-line);
	color: var(--light-ink);
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 680;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.light-card__lead {
	margin: 0 0 1.1rem;
	color: var(--light-soft);
	font-size: 0.9rem;
}

.light-card__lead:last-child {
	margin-bottom: 0;
}

/* The author's words. */
.light-card .event-description {
	color: rgb(15 23 42 / 0.84);
	font-size: 0.9375rem;
	line-height: 1.65;
}

.light-card .event-description :is(h2, h3, h4) {
	margin: 1.5em 0 0.4em;
	color: var(--light-ink);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 680;
}

.light-card .event-description a {
	color: var(--light-accent);
}

/* -- 7. Offers: passes and sponsorships ------------------------------------------ */

/* They need the script to work, so they wait for it (`light-js`, set inline). */
html:not(.light-js) .light-offers {
	display: none;
}

.light-offers__list {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* One card: the words on the left, the price and the control on the right. */
.light-offer {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		'name  price'
		'note  control'
		'terms control'
		'error error';
	align-items: center;
	gap: 0.2rem 1rem;
	padding: 0.8rem 0.85rem 0.8rem 1rem;
	border: 1px solid var(--light-line);
	border-radius: 10px;
	background: #fff;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

/* A name-your-price card's amounts need the width: a row of their own. */
.light-offer[data-kind='amount'] {
	grid-template-areas:
		'name    price'
		'note    note'
		'terms   terms'
		'control control'
		'error   error';
}

.light-offer:hover {
	border-color: var(--light-line-strong);
}

.light-offer.is-chosen {
	border-color: rgb(53 111 188 / 0.55);
	box-shadow: var(--light-accent-ring);
}

.light-offer.is-invalid {
	border-color: rgb(190 18 60 / 0.5);
	box-shadow: 0 0 0 3px rgb(190 18 60 / 0.1);
}

.light-offer[data-sold-out] {
	opacity: 0.6;
}

.light-offer__name {
	grid-area: name;
	margin: 0;
	color: var(--light-ink);
	font-family: inherit;
	font-size: 0.975rem;
	font-weight: 640;
	line-height: 1.3;
}

.light-offer__price {
	grid-area: price;
	justify-self: end;
	margin: 0;
	font-weight: 680;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.light-offer[data-sold-out] .light-offer__price {
	color: var(--light-danger);
}

.light-offer__note {
	grid-area: note;
	margin: 0;
	color: var(--light-soft);
	font-size: 0.875rem;
	line-height: 1.5;
}

.light-offer__terms {
	grid-area: terms;
	margin: 0;
	color: var(--light-faint);
	font-size: 0.8rem;
}

.light-offer__control {
	grid-area: control;
	justify-self: end;
}

.light-offer[data-kind='amount'] .light-offer__control {
	justify-self: start;
	margin-top: 0.45rem;
}

.light-offer__error {
	grid-area: error;
	margin: 0.25rem 0 0;
	color: var(--light-danger);
	font-size: 0.85rem;
	font-weight: 600;
}

/*
 * Two shapes of button: ROUND for a stepper's − and +, PILL for a choice — an
 * amount, Other, Choose. A pressed pill, and a round one under the pointer,
 * fill with the accent.
 */
.event-page--light :is(.light-round, .light-pill) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	min-height: 36px;
	margin: 0;
	border: 1px solid var(--light-line-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--light-accent);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 620;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.event-page--light .light-round {
	width: 32px;
	min-height: 32px;
	padding: 0;
	font-size: 1.05rem;
}

.event-page--light .light-pill {
	padding: 0.4rem 0.9rem;
}

.event-page--light .light-pill:hover {
	border-color: rgb(53 111 188 / 0.5);
}

.event-page--light .light-round:hover:not(:disabled),
.event-page--light .light-pill[aria-pressed='true'] {
	border-color: var(--light-accent);
	background: var(--light-accent);
	color: #fff;
}

.event-page--light .light-round:disabled {
	border-color: transparent;
	background: transparent;
	color: rgb(15 23 42 / 0.25);
	cursor: default;
}

.event-page--light :is(.light-round, .light-pill):focus-visible {
	outline: 2px solid var(--light-accent);
	outline-offset: 2px;
}

/* Quantity: − n + in a pill of its own. */
.light-stepper {
	display: inline-flex;
	align-items: center;
	gap: 0.1rem;
	padding: 3px;
	border: 1px solid var(--light-line);
	border-radius: 999px;
	background: #fff;
}

.light-stepper__value {
	min-width: 2.1em;
	font-size: 0.9375rem;
	font-weight: 680;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* Amount: the suggestion, Other, and the box Other opens. */
.light-amounts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.light-money {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: 36px;
	padding: 0 0.5rem 0 0.85rem;
	border: 1px solid var(--light-accent);
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--light-accent-ring);
}

.light-money[hidden] {
	display: none;
}

.light-money__symbol {
	color: var(--light-soft);
	font-weight: 620;
}

.event-page--light .light-money input {
	width: 6rem;
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--light-ink);
	font: inherit;
	font-size: max(16px, 0.9375rem); /* 16px stops iOS zooming into the box. */
	font-weight: 680;
	appearance: textfield;
}

.event-page--light .light-money input::-webkit-inner-spin-button {
	appearance: none;
}

/* Once: Choose, which reads Chosen while pressed. */
.light-choose__on,
.light-choose[aria-pressed='true'] .light-choose__off {
	display: none;
}

.light-choose[aria-pressed='true'] .light-choose__on {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.event-page--light .light-choose svg {
	width: 0.95rem;
	height: 0.95rem;
	stroke-width: 2.2;
}

/* -- 8. Continue ------------------------------------------------------------- */

/*
 * The foot of a section of cards, once anything is chosen: the way on,
 * centred. No total lives here — it is said once, at the end of the
 * registration form, beside the button that spends it. See `$next_step` in
 * template.php.
 */
.light-next {
	display: flex;
	justify-content: center;
	margin-top: 0.9rem;
}

.light-next[hidden] {
	display: none;
}

.light-next .light-button {
	min-width: 10rem;
}

/* -- 9. The form's frame ---------------------------------------------------- */

/*
 * The questions the cards stand for: still in the form, still counted and
 * sent — hidden by a class of the page's own, never by `hidden`, which Forms
 * reads as "not asked". A section left with nothing to show goes too, heading
 * and all.
 */
.event-page--light .field.light-mirrored,
.event-page--light .form__body > .section:not(:has(.field:not(.light-mirrored))) {
	display: none;
}

/* -- 10. Borrowed pieces: the room, and what people said ------------------------ */

.event-page--light :is(.event-plan, .event-reviews) {
	min-width: 0;
	margin: 0;
	padding: var(--light-pad);
}

/*
 * What people said: as wide as every other section, the cards in a row
 * with an arrow either side of them. Its markup is the Events plugin's — a
 * head (title, summary, the two buttons) and the track — so the head and the
 * buttons' box are dissolved (`display: contents`) and their pieces laid on
 * one grid: the title and the summary across the top, then ‹ cards ›.
 */
.event-page--light .event-reviews {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
}

.event-page--light :is(.event-reviews__head, .event-reviews__nav) {
	display: contents;
}

/* Nothing to scroll — every card already fits — and the arrows go. */
.event-page--light .event-reviews__nav[hidden] {
	display: none;
}

.event-page--light .event-reviews .event-section__title,
.event-page--light .event-reviews__summary {
	grid-column: 1 / -1;
}

.event-page--light .event-reviews .event-section__title {
	margin: 0 0 0.6rem;
}

.event-page--light .event-reviews__summary {
	margin: 0 0 1.1rem;
	color: var(--light-soft);
	font-size: 0.875rem;
}

.event-page--light .event-reviews__average {
	color: var(--light-ink);
}

.event-page--light .event-reviews__count {
	color: var(--light-faint);
}

.event-page--light .event-reviews__track {
	grid-column: 2;
	grid-row: 3;
	grid-auto-columns: calc((100% - 2rem) / 3);
	gap: 1rem;
	padding: 0;
}

/* The arrows do the scrolling once the script has wired them: no bar under the cards. */
.event-page--light .event-reviews[data-wired] .event-reviews__track {
	scrollbar-width: none;
}

.event-page--light .event-reviews[data-wired] .event-reviews__track::-webkit-scrollbar {
	display: none;
}

/* ‹ and ›: a plain circle each side, a drawn chevron in place of the glyph. */
.event-page--light .event-reviews__button {
	grid-row: 3;
	width: 36px;
	height: 36px;
	border: 1px solid var(--light-line);
	background: #fff;
	color: var(--light-ink);
	font-size: 0;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.event-page--light .event-reviews__button[data-scroll='-1'] {
	grid-column: 1;
	margin-inline-end: 0.75rem;
}

.event-page--light .event-reviews__button[data-scroll='1'] {
	grid-column: 3;
	margin-inline-start: 0.75rem;
}

.event-page--light .event-reviews__button::before {
	content: '';
	width: 7px;
	height: 7px;
	margin-inline-start: -3px;
	border: solid currentColor;
	border-width: 0 1.6px 1.6px 0;
	transform: rotate(-45deg);
}

.event-page--light .event-reviews__button[data-scroll='-1']::before {
	margin-inline-start: 3px;
	transform: rotate(135deg);
}

.event-page--light .event-reviews__button:hover:not(:disabled) {
	border-color: var(--light-ink);
	background: var(--light-ink);
	color: #fff;
}

.event-page--light .event-reviews__button:focus-visible {
	outline: 2px solid var(--light-accent);
	outline-offset: 2px;
}

.event-page--light .event-reviews__button:disabled {
	opacity: 0.3;
}

/* A card: no tile and no edge — the stars, the words, who said them. */
.event-page--light .event-review {
	gap: 0.7rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.event-page--light .event-review__stars {
	font-size: 0.875rem;
}

.event-page--light .event-review__star {
	color: rgb(15 23 42 / 0.14);
}

.event-page--light .event-review__star.is-on {
	color: #f59e0b;
}

.event-page--light .event-review__text {
	color: rgb(15 23 42 / 0.84);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.event-page--light .event-review__by {
	padding-top: 0;
	color: var(--light-faint);
	font-size: 0.8125rem;
}

.event-page--light .event-review__who {
	color: var(--light-ink);
}

/* Narrower: two cards in view. */
@media (max-width: 900px) {
	.event-page--light .event-reviews__track {
		grid-auto-columns: calc((100% - 1rem) / 2);
	}
}

/* A phone: one card in view, the arrows closer to it. */
@media (max-width: 640px) {
	.event-page--light .event-reviews__track {
		grid-auto-columns: 100%;
	}

	.event-page--light .event-reviews__button[data-scroll='-1'] {
		margin-inline-end: 0.5rem;
	}

	.event-page--light .event-reviews__button[data-scroll='1'] {
		margin-inline-start: 0.5rem;
	}
}

/* -- 11. Phones -------------------------------------------------------------- */

@media (max-width: 782px) {
	.event-page--light {
		--light-radius: 10px;
		--light-gap: 0.75rem;
	}

	/* The narrow crop is portrait: give it room, never the whole screen. */
	.light-hero .event-hero img {
		max-height: 52svh;
		aspect-ratio: 4 / 5;
	}

	/* A card: the name with its price under it and the control beside both,
	   then what it includes across the whole card. */
	.light-offer {
		grid-template-areas:
			'name  control'
			'price control'
			'note  note'
			'terms terms'
			'error error';
		gap: 0.1rem 0.75rem;
		padding: 0.75rem 0.75rem 0.75rem 0.9rem;
	}

	.light-offer[data-kind='amount'] {
		grid-template-areas:
			'name    name'
			'price   price'
			'note    note'
			'terms   terms'
			'control control'
			'error   error';
	}

	.light-offer__price {
		justify-self: start;
		color: var(--light-accent);
	}

	.light-offer__note {
		margin-top: 0.4rem;
	}

	.light-next .light-button {
		flex: 1 1 100%;
	}
}

/* -- 12. Less motion --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.event-page--light *,
	.event-page--light *::before {
		transition: none !important;
		animation: none !important;
	}
}

/* -- 13. The feedback modal ------------------------------------------------- */

/*
 * The feedback form in a `<dialog>`, opened by Feedback (`template.js`): a
 * white box in the middle of a dimmed page, its title and ✕ on top, and the
 * form scrolling under them when it is taller than the screen. On a phone it
 * is a sheet rising from the bottom edge.
 */
.light-modal {
	width: min(var(--light-narrow), calc(100% - 2rem));
	max-width: none;
	max-height: min(90dvh, 52rem);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 16px;
	background: var(--light-card);
	color: var(--light-ink);
	box-shadow: 0 24px 64px rgb(15 23 42 / 0.22), 0 2px 6px rgb(15 23 42 / 0.08);
}

.light-modal[open] {
	display: flex;
	flex-direction: column;
	animation: light-modal-in 0.2s ease-out;
}

.light-modal::backdrop {
	background: rgb(15 23 42 / 0.45);
	backdrop-filter: blur(2px);
}

/* The page under it stays where it is. */
html:has(.light-modal[open]) {
	overflow: hidden;
}

.light-modal__head {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1rem 0.9rem var(--light-pad);
	border-bottom: 1px solid var(--light-line);
}

.light-modal__title {
	flex: 1;
	margin: 0;
	color: var(--light-ink);
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 680;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.event-page--light .light-modal__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #f1f3f6;
	color: var(--light-soft);
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.event-page--light .light-modal__close:hover {
	background: #e6e9ee;
	color: var(--light-ink);
}

.event-page--light .light-modal__close:focus-visible {
	outline: 2px solid var(--light-accent);
	outline-offset: 2px;
}

.light-modal__close svg {
	width: 1.1rem;
	height: 1.1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.light-modal__body {
	padding: 1rem var(--light-pad) calc(var(--light-pad) + 0.75rem + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
}

@keyframes light-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
}

/* A phone: a sheet from the bottom, the full width. */
@media (max-width: 640px) {
	.light-modal {
		width: 100%;
		max-height: 92dvh;
		margin: auto 0 0;
		border-radius: 16px 16px 0 0;
	}
}

/* Without a script nothing opens it: drawn in the page, under the column. */
html:not(.light-js) .light-modal {
	position: static;
	display: block;
	width: auto;
	max-width: var(--light-width);
	max-height: none;
	margin: var(--light-gap) auto 0;
	border-radius: 0;
	box-shadow: none;
}

html:not(.light-js) .light-modal__close {
	display: none;
}
