/* Vere Models components. Colours and fonts come from the theme, with fallbacks. */
:root {
	--vere-ink: var(--wp--preset--color--ink, #0e0e0e);
	--vere-paper: var(--wp--preset--color--paper, #f4f2ee);
	--vere-stone: var(--wp--preset--color--stone, #8c8984);
	--vere-graphite: var(--wp--preset--color--graphite, #232323);
	--vere-line: rgba(244, 242, 238, 0.14);
	--vere-serif: var(--wp--preset--font-family--heading, "Cormorant Garamond", Garamond, serif);
	--vere-sans: var(--wp--preset--font-family--body, "Instrument Sans", system-ui, sans-serif);
	--vere-gutter: clamp(16px, 4vw, 56px);
	--vere-header-h: 72px;
	--vere-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

.vere-no-scroll,
.vere-no-scroll body {
	overflow: hidden;
}

/* ---------- Type helpers ---------- */

.vere-eyebrow {
	margin: 0 0 14px;
	color: var(--vere-stone);
	font-family: var(--vere-sans);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* ---------- Image fade-in over a placeholder colour ---------- */

img.vere-fade {
	transition: opacity 0.6s var(--vere-ease), transform 1.2s var(--vere-ease);
}

/* Set by vere.js only on photos still downloading; cached photos are never hidden. */
img.vere-fade.is-pending {
	opacity: 0;
}

/* ---------- Buttons & links ---------- */

.vere-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 1.4em;
	border: 1px solid rgba(244, 242, 238, 0.5);
	background: transparent;
	color: var(--vere-paper);
	font-family: var(--vere-sans);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s var(--vere-ease), color 0.25s var(--vere-ease), border-color 0.25s var(--vere-ease);
}

/* :hover, :focus and :active styled together so iOS sticky-hover never hides a tapped button. */
.vere-btn:hover,
.vere-btn:focus,
.vere-btn:active {
	border-color: var(--vere-paper);
	background: var(--vere-paper);
	color: var(--vere-ink);
}

.vere-btn--solid {
	border-color: var(--vere-paper);
	background: var(--vere-paper);
	color: var(--vere-ink);
}

.vere-btn--solid:hover,
.vere-btn--solid:focus,
.vere-btn--solid:active {
	background: transparent;
	color: var(--vere-paper);
}

.vere-link {
	color: var(--vere-paper);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid var(--vere-line);
	padding-bottom: 3px;
	transition: border-color 0.25s var(--vere-ease);
}

.vere-link:hover,
.vere-link:focus,
.vere-link:active {
	border-bottom-color: var(--vere-paper);
}

.vere-btn:focus-visible,
.vere-link:focus-visible,
.vere-tabs button:focus-visible,
.vere-units button:focus-visible {
	outline: 1px solid var(--vere-paper);
	outline-offset: 4px;
}

/*
 * Photos never get a box. Browsers put focus back on the card you opened when you
 * return to a board, and a white frame around a photo looks like a glitch. Focus
 * shows the way hover does instead: the photo eases in and the name is underlined.
 */
.vere-card:focus,
.vere-card:focus-visible,
.vere-gallery__item:focus,
.vere-gallery__item:focus-visible,
.vere-hero__slide:focus,
.vere-hero__slide:focus-visible,
.vere-pager__link:focus,
.vere-pager__link:focus-visible {
	outline: none;
}

.vere-card:focus-visible .vere-card__name,
.vere-pager__link:focus-visible .vere-pager__name {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}

.vere-card:focus-visible .vere-card__img,
.vere-gallery__item:focus-visible img {
	transform: scale(1.015);
}

.vere-gallery__item:focus-visible {
	opacity: 0.85;
}

/* ---------- Filters above the women's boards ---------- */

.vere-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	max-width: 1440px;
	margin: 0 auto 24px;
	padding: 0 var(--vere-gutter);
	box-sizing: border-box;
}

.vere-filters a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	color: var(--vere-stone);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
}

.vere-filters a:hover,
.vere-filters a:focus,
.vere-filters a:active,
.vere-filters a[aria-current] {
	color: var(--vere-paper);
}

.vere-filters a[aria-current] {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

@media (max-width: 419px) {
	.vere-filters {
		gap: 0 20px;
	}

	.vere-filters a {
		min-height: 34px;
	}
}

/* ---------- Model grid ---------- */

.vere-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px 10px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 var(--vere-gutter);
}

@media (min-width: 700px) {
	.vere-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 48px 16px;
	}
}

@media (min-width: 1100px) {
	.vere-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 56px 20px;
	}
}

.vere-card {
	display: block;
	color: var(--vere-paper);
	text-decoration: none;
}

.vere-card__media {
	position: relative;
	display: block;
	/* 2:3 is the shape of almost every model photo, so boards show them (nearly) whole. */
	aspect-ratio: 2 / 3;
	overflow: hidden;
}

.vere-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Boards stay a uniform 3:4; keep the crop high so heads are never cut. */
	object-position: center 20%;
}

.vere-card__img--alt {
	opacity: 0;
	transition: opacity 0.6s var(--vere-ease);
}

.vere-card__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-top: 12px;
}

.vere-card__name {
	font-family: var(--vere-serif);
	font-weight: 500;
	font-size: clamp(1.15rem, 1.6vw, 1.45rem);
	line-height: 1.1;
}

/* Tap feedback on touch screens: buttons, cards and links dim briefly under the finger. */
.vere-btn:active,
.vere-link:active,
.vere-back a:active,
.vere-pager__link:active,
.vere-hero__nav a:active {
	opacity: 0.6;
}

.vere-card:active .vere-card__media,
.vere-gallery__item:active {
	opacity: 0.8;
}

.vere-card__media,
.vere-gallery__item {
	transition: opacity 0.15s ease;
}

/* Second photo on hover only where a real pointer exists, so taps on iPhone go straight to the profile. */
@media (hover: hover) and (pointer: fine) {
	.vere-card:hover .vere-card__img--alt:not(.is-pending),
	.vere-card:focus .vere-card__img--alt:not(.is-pending) {
		opacity: 1;
	}

	.vere-card:hover .vere-card__img,
	.vere-card:focus .vere-card__img {
		transform: scale(1.015);
	}
}

/* ---------- Sections (homepage) ---------- */

.vere-section {
	margin: clamp(72px, 12vw, 160px) 0 0;
}

.vere-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px 32px;
	max-width: 1440px;
	margin: 0 auto 36px;
	padding: 0 var(--vere-gutter);
}

.vere-section__title {
	margin: 0;
	font-family: var(--vere-serif);
	font-size: clamp(2.4rem, 5vw, 4rem);
	font-weight: 500;
	line-height: 1;
}

.vere-section__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
}

/* ---------- Become-a-model band ---------- */

.vere-band {
	display: grid;
	max-width: 1440px;
	margin: clamp(72px, 12vw, 160px) auto 0;
	padding: 0 var(--vere-gutter);
	gap: 32px;
}

@media (min-width: 900px) {
	.vere-band {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: clamp(40px, 6vw, 96px);
	}
}

.vere-band__media {
	aspect-ratio: 4 / 5;
	max-height: calc(100svh - 120px);
	overflow: hidden;
}

.vere-band__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
}

.vere-band__title {
	margin: 0 0 20px;
	font-family: var(--vere-serif);
	font-size: clamp(2.6rem, 6vw, 5rem);
	font-weight: 500;
	line-height: 0.98;
}

.vere-band__text {
	max-width: 30em;
	margin: 0 0 28px;
	color: #c9c6c0;
	line-height: 1.7;
}

/* ---------- Homepage hero ---------- */

.vere-hero {
	position: relative;
	display: flex;
	gap: 2px;
	height: 100svh;
	/* Low enough that a phone turned sideways still shows the logo and links. */
	min-height: 340px;
	overflow: hidden;
	background: var(--vere-ink);
}

.vere-hero__col {
	position: relative;
	flex: 1 1 0;
	overflow: hidden;
}

/* Phones: one column, the full screen. svh = the height with the browser bars
   showing, so the logo and links are never hidden behind Safari's toolbar. */
@media (max-width: 899px) {
	.vere-hero__col:not(:first-child) {
		display: none;
	}

	.vere-hero__nav {
		gap: 10px 20px;
	}
}

.vere-hero__slide {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	color: var(--vere-paper);
	text-decoration: none;
	transition: opacity 1.8s var(--vere-ease);
	pointer-events: none;
}

.vere-hero__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.vere-hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	filter: grayscale(1) contrast(1.04);
	transform: scale(1.04);
	transition: transform 7s linear, filter 0.8s var(--vere-ease);
}

.vere-hero__slide.is-active img {
	transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
	.vere-hero__slide:hover img,
	.vere-hero__slide:focus img {
		filter: grayscale(0);
	}
}

.vere-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(14, 14, 14, 0.62) 0%, rgba(14, 14, 14, 0.34) 16%, rgba(14, 14, 14, 0) 32%),
		linear-gradient(0deg, rgba(14, 14, 14, 0.85) 0%, rgba(14, 14, 14, 0) 45%);
	pointer-events: none;
}

.vere-hero__caption {
	position: absolute;
	z-index: 2;
	top: calc(var(--vere-header-h) + 16px);
	left: 16px;
	display: grid;
	gap: 4px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.8s 0.6s var(--vere-ease), transform 0.8s 0.6s var(--vere-ease);
}

.vere-hero__slide.is-active .vere-hero__caption {
	opacity: 1;
	transform: none;
}

.vere-hero__name,
.vere-hero__cat {
	text-shadow: 0 1px 12px rgba(14, 14, 14, 0.75), 0 0 2px rgba(14, 14, 14, 0.5);
}

.vere-hero__name {
	font-family: var(--vere-serif);
	font-weight: 500;
	font-size: 1.35rem;
	line-height: 1;
}

.vere-hero__cat {
	color: var(--vere-paper);
	font-size: 0.625rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.vere-hero__brand {
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 40px;
	padding: 0 var(--vere-gutter) max(clamp(28px, 6vh, 64px), env(safe-area-inset-bottom));
	color: var(--vere-paper);
	pointer-events: none;
}

.vere-hero__title {
	/* The logo lockup, large: Bodoni Moda in spaced capitals. The size is computed from
	   the screen width so "VERE MODELS" always fits on one line, down to 280px phones. */
	margin: 0 -0.2em 0 0;
	font-family: var(--wp--preset--font-family--logo, "Bodoni Moda", Didot, serif);
	font-size: min(6.4rem, calc((100vw - 2 * var(--vere-gutter)) / 10.8));
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	white-space: nowrap;
}

.vere-hero__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	padding-bottom: 0.6em;
	pointer-events: auto;
}

.vere-hero__nav a {
	color: var(--vere-paper);
	font-size: clamp(0.6875rem, 2.9vw, 0.75rem);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid rgba(244, 242, 238, 0.4);
	padding-bottom: 4px;
}

.vere-hero__nav a:hover,
.vere-hero__nav a:focus,
.vere-hero__nav a:active {
	border-bottom-color: var(--vere-paper);
}

/* ---------- Model profile ---------- */

.vere-profile {
	display: grid;
	gap: 32px;
	max-width: 1440px;
	margin: 0 auto;
	/* Padding, not margin: core flow-layout rules reset the first child's top margin. */
	padding: clamp(24px, 4vw, 56px) var(--vere-gutter) 0;
}

@media (min-width: 1000px) {
	.vere-profile {
		grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
		gap: clamp(48px, 5vw, 96px);
		align-items: start;
	}
}

/* The info column follows the photos only when it fits the screen height; on short
   laptop screens it scrolls normally so the Book button is never cut off. */
@media (min-width: 1000px) and (min-height: 760px) {
	.vere-profile__info {
		position: sticky;
		top: calc(var(--vere-header-h) + 24px);
	}
}

.vere-profile__name {
	margin: 0 0 28px;
	font-family: var(--vere-serif);
	font-size: clamp(3.2rem, 7vw, 6rem);
	font-weight: 500;
	line-height: 0.92;
	letter-spacing: -0.01em;
}

.vere-measure {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 16px;
	margin: 0;
	border-top: 1px solid var(--vere-line);
}

.vere-measure div {
	display: grid;
	gap: 2px;
	padding: 11px 0;
	border-bottom: 1px solid var(--vere-line);
}

@media (min-width: 1000px) {
	.vere-measure {
		grid-template-columns: 1fr;
	}

	.vere-measure div {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		padding: 8px 0;
	}
}

.vere-measure dt {
	color: var(--vere-stone);
	font-size: 0.625rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.vere-measure dd {
	margin: 0;
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

.vere-units {
	display: flex;
	gap: 4px;
	margin: 14px 0 0;
}

.vere-units button {
	min-width: 44px;
	min-height: 32px;
	padding: 0 10px;
	border: 1px solid transparent;
	background: none;
	color: var(--vere-stone);
	font: inherit;
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	cursor: pointer;
}

.vere-units button[aria-pressed="true"] {
	border-color: var(--vere-line);
	color: var(--vere-paper);
}

.vere-units button:hover,
.vere-units button:focus,
.vere-units button:active {
	color: var(--vere-paper);
}

.vere-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}

/* "← Back to Fashion" above the name and under the pager. */
.vere-back {
	margin: 0 0 18px;
}

.vere-back a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--vere-paper);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
}

.vere-back a span {
	border-bottom: 1px solid var(--vere-line);
	padding-bottom: 2px;
}

.vere-back a:hover span,
.vere-back a:focus span,
.vere-back a:active span {
	border-bottom-color: var(--vere-paper);
}

.vere-back--bottom {
	max-width: 1440px;
	margin: 8px auto 0;
	padding: 0 var(--vere-gutter);
	text-align: center;
}

@media (max-width: 999px) {
	.vere-back {
		margin-bottom: 6px;
	}

	.vere-back a {
		min-height: 36px;
	}
}

.vere-profile__boards a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.vere-profile__boards a:hover,
.vere-profile__boards a:focus,
.vere-profile__boards a:active {
	color: var(--vere-paper);
	border-bottom-color: var(--vere-line);
}

/*
 * Phones: the model's photos must be on the first screen. Name, then measurements as
 * a compact run of text, then photos. Book / Comp card live in the bottom bar.
 */
@media (max-width: 999px) {
	.vere-profile {
		gap: 18px;
		padding-top: 18px;
	}

	.vere-profile__info .vere-profile__boards {
		display: none;
	}

	.vere-profile__name {
		margin-bottom: 12px;
		font-size: clamp(2.6rem, 12vw, 3.4rem);
	}

	.vere-measure-wrap {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 6px 14px;
	}

	.vere-measure {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 14px;
		border-top: 0;
	}

	.vere-measure div {
		display: flex;
		align-items: baseline;
		gap: 5px;
		padding: 0;
		border-bottom: 0;
	}

	.vere-measure dt {
		font-size: 0.5625rem;
	}

	.vere-measure dd {
		font-size: 0.8125rem;
	}

	.vere-units {
		margin: 0;
	}

	.vere-units button {
		min-height: 28px;
		min-width: 36px;
		padding: 0 6px;
		font-size: 0.625rem;
	}

	.vere-profile__info .vere-actions {
		display: none;
	}

	/* Keep the footer clear of the bottom bar. */
	.single-model .vere-footer {
		padding-bottom: calc(96px + env(safe-area-inset-bottom));
	}
}

/* Phones: Book / Comp card follow you at the bottom while you browse the photos. */
.vere-actionbar {
	position: fixed;
	z-index: 40;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px var(--vere-gutter) max(10px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--vere-line);
	background: rgba(14, 14, 14, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transform: translateY(110%);
	transition: transform 0.35s var(--vere-ease);
}

.vere-actionbar.is-visible {
	transform: none;
}

.vere-actionbar__name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-family: var(--vere-serif);
	font-weight: 500;
	font-size: 1.35rem;
	line-height: 1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vere-actionbar .vere-btn {
	flex: none;
	padding: 0 1.1em;
}

/* Very narrow phones: the two buttons need the whole width. */
@media (max-width: 359px) {
	.vere-actionbar__name {
		display: none;
	}

	.vere-actionbar .vere-btn {
		flex: 1 1 0;
		padding: 0 0.6em;
		letter-spacing: 0.1em;
	}
}

/* Desktop keeps the info column (with the buttons) on screen, so no bar. */
@media (min-width: 1000px) {
	.vere-actionbar {
		display: none;
	}
}

.vere-tabs {
	display: flex;
	gap: 28px;
	margin: 0 0 20px;
	border-bottom: 1px solid var(--vere-line);
}

.vere-tabs button {
	position: relative;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vere-stone);
	font: inherit;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
}

.vere-tabs button span {
	margin-left: 4px;
	opacity: 0.6;
}

.vere-tabs button[aria-selected="true"],
.vere-tabs button:hover,
.vere-tabs button:focus,
.vere-tabs button:active {
	color: var(--vere-paper);
}

.vere-tabs button[aria-selected="true"]::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: var(--vere-paper);
}

/*
 * Portfolio photos are shown whole, in their own proportions (most are 2:3, some
 * landscape), as a two-column wall. Nothing is cropped; the lightbox shows them large.
 */
.vere-gallery {
	columns: 2;
	column-gap: 6px;
}

.vere-gallery__item {
	display: block;
	margin: 0 0 6px;
	overflow: hidden;
	break-inside: avoid;
	cursor: zoom-in;
}

/* Phones: lead photo across the full width. */
.vere-gallery__item:first-child {
	column-span: all;
}

@media (min-width: 700px) {
	.vere-gallery {
		column-gap: 12px;
	}

	.vere-gallery__item {
		margin-bottom: 12px;
	}

	.vere-gallery__item:first-child {
		column-span: none;
	}
}

.vere-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
	/* Never taller than the screen, even for a very tall photo in a wide column. */
	max-height: calc(100svh - var(--vere-header-h) - 32px);
	object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
	.vere-gallery__item:hover img,
	.vere-gallery__item:focus img {
		transform: scale(1.015);
	}
}

.vere-pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 1440px;
	margin: clamp(56px, 8vw, 120px) auto 0;
	padding: 0 var(--vere-gutter);
}

.vere-pager__link {
	display: grid;
	gap: 6px;
	padding: 28px 0;
	border-top: 1px solid var(--vere-line);
	color: var(--vere-paper);
	text-decoration: none;
}

.vere-pager__link--next {
	text-align: right;
}

.vere-pager__link .vere-eyebrow {
	margin: 0;
}

.vere-pager__name {
	font-family: var(--vere-serif);
	font-weight: 500;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1;
	transition: opacity 0.25s;
}

.vere-pager__link:hover .vere-pager__name,
.vere-pager__link:focus .vere-pager__name,
.vere-pager__link:active .vere-pager__name {
	opacity: 0.6;
}

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

.vere-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: rgba(8, 8, 8, 0.97);
	/* vere.js handles swipe, pinch and pan itself. */
	touch-action: none;
}

.vere-lightbox[hidden] {
	display: none;
}

.vere-lightbox__img {
	max-width: calc(100vw - 32px);
	max-height: calc(100dvh - 120px);
	object-fit: contain;
	user-select: none;
}

.vere-lightbox__count {
	position: absolute;
	bottom: max(16px, env(safe-area-inset-bottom));
	left: 0;
	right: 0;
	margin: 0;
	color: var(--vere-stone);
	font-size: 0.6875rem;
	letter-spacing: 0.2em;
	text-align: center;
}

.vere-lightbox__btn {
	position: absolute;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--vere-paper);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.75;
}

.vere-lightbox__btn:hover,
.vere-lightbox__btn:focus,
.vere-lightbox__btn:active {
	opacity: 1;
}

.vere-lightbox__close {
	top: max(8px, env(safe-area-inset-top));
	right: 8px;
}

.vere-lightbox__prev,
.vere-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
	font-size: 2.6rem;
}

.vere-lightbox__prev {
	left: 4px;
}

.vere-lightbox__next {
	right: 4px;
}

/* On phones you swipe; arrows would cover the photo. */
@media (max-width: 699px) {
	.vere-lightbox__prev,
	.vere-lightbox__next {
		display: none;
	}
}

/* ---------- Become a model form ---------- */

.vere-apply {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 var(--vere-gutter);
	scroll-margin-top: 96px;
}

.vere-apply__lead {
	margin: 0 0 40px;
	color: #c9c6c0;
	font-size: 1.0625rem;
	line-height: 1.7;
}

.vere-apply__error {
	margin: 0 0 24px;
	padding: 14px 16px;
	border: 1px solid #b4483c;
	color: #f0b8b0;
}

.vere-form__grid {
	display: grid;
	gap: 0 24px;
}

.vere-apply__send {
	display: grid;
	gap: 6px;
	margin: 0 0 36px;
	padding: 18px 0;
	border-top: 1px solid var(--vere-line);
	border-bottom: 1px solid var(--vere-line);
	color: #c9c6c0;
	font-size: 0.9375rem;
	list-style: none;
}

.vere-apply__send li {
	margin: 0;
}

.vere-apply__send strong {
	color: var(--vere-paper);
	font-weight: 500;
}

.vere-form__date {
	display: grid;
	grid-template-columns: 1fr 1.6fr 1.2fr;
	gap: 10px;
}

.vere-form select {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 0 12px;
	border: 0;
	border-bottom: 1px solid #3a3a3a;
	border-radius: 0;
	background: transparent;
	color: var(--vere-paper);
	font: inherit;
	font-size: 16px;
	color-scheme: dark;
}

.vere-form select:focus {
	outline: none;
	border-bottom-color: var(--vere-paper);
}

@media (min-width: 700px) {
	.vere-form__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.vere-form__field {
	display: grid;
	gap: 6px;
	margin: 0 0 26px;
}

.vere-form label {
	color: var(--vere-stone);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.vere-form__label {
	color: var(--vere-stone);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.vere-form__label span,
.vere-form label span {
	letter-spacing: 0.04em;
	text-transform: none;
}

.vere-form input:not([type="checkbox"]),
.vere-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 0 12px;
	border: 0;
	border-bottom: 1px solid #3a3a3a;
	border-radius: 0;
	background: transparent;
	color: var(--vere-paper);
	font: inherit;
	font-size: 16px; /* 16px stops iOS Safari from zooming into the field. */
	color-scheme: dark;
	transition: border-color 0.25s var(--vere-ease);
}

/* Photo picker: the native input stays (for validation and accessibility) but is visually replaced. */
.vere-form__file-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding: 6px 0 12px;
	border-bottom: 1px solid #3a3a3a;
}

.vere-form .vere-form__file-row label.vere-btn {
	color: var(--vere-paper);
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
}

.vere-form .vere-form__file-row label.vere-btn:hover,
.vere-form .vere-form__file-row label.vere-btn:focus,
.vere-form .vere-form__file-row label.vere-btn:active {
	color: var(--vere-ink);
}

.vere-form__file-input {
	position: absolute;
	width: 1px !important;
	height: 1px;
	padding: 0 !important;
	border: 0 !important;
	opacity: 0;
	overflow: hidden;
	clip-path: inset(50%);
}

.vere-form__file-input:focus-visible + label {
	outline: 1px solid var(--vere-paper);
	outline-offset: 4px;
}

.vere-form__file-count {
	color: #c9c6c0;
	font-size: 0.875rem;
}

.vere-form input:focus,
.vere-form textarea:focus {
	outline: none;
	border-bottom-color: var(--vere-paper);
}

.vere-form__check label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	color: #c9c6c0;
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.6;
	text-transform: none;
}

.vere-form__check a {
	color: var(--vere-paper);
}

.vere-form__check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--vere-paper);
}

.vere-form .vere-btn {
	margin-top: 12px;
}

.vere-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* =========================================================================
 * Motion. Short, soft and optional: everything below is switched off for
 * visitors who ask their device to reduce motion.
 * ====================================================================== */

/* ---------- Skeleton: a soft sheen passes over a photo's place while it loads ---------- */

.vere-gallery__item {
	position: relative;
}

.vere-card__media:has(img.is-pending)::after,
.vere-gallery__item:has(img.is-pending)::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(244, 242, 238, 0.09) 50%, transparent 70%);
	background-size: 250% 100%;
	animation: vere-sheen 1.6s ease-in-out infinite;
	pointer-events: none;
}

@keyframes vere-sheen {
	from {
		background-position: 120% 0;
	}

	to {
		background-position: -120% 0;
	}
}

/* ---------- Scroll reveal (vere.js adds .vere-reveal only below the fold) ---------- */

.vere-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.8s var(--vere-ease), transform 0.8s var(--vere-ease);
}

.vere-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ---------- Loading line at the top while the next page is on its way ---------- */

.vere-loadbar {
	position: fixed;
	z-index: 100001;
	top: 0;
	left: 0;
	height: 2px;
	width: 0;
	background: var(--vere-paper);
	box-shadow: 0 0 8px rgba(244, 242, 238, 0.5);
	opacity: 0;
	pointer-events: none;
}

.vere-loadbar.is-loading {
	opacity: 1;
	animation: vere-loadbar 2.4s cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
}

@keyframes vere-loadbar {
	from {
		width: 0;
	}

	to {
		width: 88%;
	}
}

/* ---------- Homepage: the wordmark "tracks in", then the links ---------- */

.vere-hero__title {
	animation: vere-track-in 1.6s var(--vere-ease) both;
}

.vere-hero__nav {
	animation: vere-rise 0.9s 0.9s var(--vere-ease) both;
}

@keyframes vere-track-in {
	from {
		opacity: 0;
		letter-spacing: 0.42em;
		filter: blur(6px);
	}

	to {
		opacity: 1;
		letter-spacing: 0.2em;
		filter: blur(0);
	}
}

@keyframes vere-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Profile: name, measurements and buttons arrive one after another ---------- */

.vere-profile__info > * {
	animation: vere-rise 0.7s var(--vere-ease) both;
}

.vere-profile__info > :nth-child(2) {
	animation-delay: 0.06s;
}

.vere-profile__info > :nth-child(3) {
	animation-delay: 0.12s;
}

.vere-profile__info > :nth-child(4) {
	animation-delay: 0.18s;
}

.vere-profile__info > :nth-child(n + 5) {
	animation-delay: 0.24s;
}

/* ---------- Photo viewer: thin spinner while the big photo loads, then a soft fade ---------- */

.vere-lightbox__img {
	transition: opacity 0.35s var(--vere-ease), transform 0.35s var(--vere-ease);
}

.vere-lightbox.is-loading .vere-lightbox__img {
	opacity: 0;
	transform: scale(0.985);
}

.vere-lightbox.is-loading::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	border: 1px solid rgba(244, 242, 238, 0.2);
	border-top-color: var(--vere-paper);
	border-radius: 50%;
	animation: vere-spin 0.8s linear infinite;
}

@keyframes vere-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.vere-card__media:has(img.is-pending)::after,
	.vere-gallery__item:has(img.is-pending)::after,
	.vere-hero__title,
	.vere-hero__nav,
	.vere-profile__info > * {
		animation: none;
	}

	.vere-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.vere-loadbar.is-loading {
		animation: none;
		width: 60%;
	}
}

/* ---------- Photo viewer zoom ---------- */

.vere-lightbox .vere-lightbox__img {
	cursor: zoom-in;
	transform-origin: center center;
	transition: opacity 0.35s var(--vere-ease), transform 0.3s var(--vere-ease);
	-webkit-user-drag: none;
	will-change: transform;
}

.vere-lightbox.is-zoomed .vere-lightbox__img {
	cursor: grab;
}

.vere-lightbox .vere-lightbox__img.is-dragging {
	transition: none;
}

.vere-lightbox.is-zoomed .vere-lightbox__count,
.vere-lightbox.is-zoomed .vere-lightbox__prev,
.vere-lightbox.is-zoomed .vere-lightbox__next {
	opacity: 0;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.vere-lightbox .vere-lightbox__img {
		transition: none;
	}
}
