.elementor-widget-v1a-director-profile,
.elementor-widget-v1a-director-profile > .elementor-widget-container {
	width: 100%;
}

.v1a-directors-single-shell {
	--v1a-director-edge: clamp(20px, 4vw, 56px);
	isolation: isolate;
	gap: 0 !important;
	width: 100%;
	padding: 0 !important;
	background: transparent;
	color: #fff;
}

.v1a-directors-single-shell,
.v1a-directors-single-shell * {
	box-sizing: border-box;
}

.v1a-director-profile {
	position: relative;
	width: 100%;
	margin: 0;
	background: transparent;
	color: #fff;
	font-family: "Roboto Flex", sans-serif;
}

.v1a-director-profile--hero {
	padding: clamp(48px, 11vh, 130px) var(--v1a-director-edge) clamp(30px, 6vh, 64px);
	background: transparent;
}

.v1a-director-profile__hero {
	position: relative;
	z-index: 1;
	display: grid;
	gap: clamp(16px, 2.4vh, 26px);
	justify-items: center;
	width: min(100%, 1680px);
	margin: 0 auto;
	text-align: center;
}

.v1a-director-profile.v1a-director-profile--hero h1.v1a-director-profile__title {
	max-width: none;
	margin: 0;
	color: #fff;
	font-family: var(--font-heading, "Anton"), sans-serif;
	font-size: clamp(2.8rem, 8.4vw, 8rem) !important;
	font-weight: 400;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase;
	text-wrap: balance;
}

.v1a-director-profile__role {
	margin: 0;
	color: rgba(255, 255, 255, 0.58);
	font-family: "Roboto Flex", sans-serif;
	font-size: clamp(12px, 1.05vw, 15px);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	text-wrap: balance;
}

.v1a-director-selected-work {
	--display: flex;
	--flex-direction: column;
	--gap: 0;
	gap: 0 !important;
	width: 100%;
	padding: clamp(20px, 4vh, 48px) 20px clamp(60px, 10vh, 120px) !important;
	background: transparent !important;
	color: #fff;
}

.v1a-director-selected-work .elementor-widget-peportfolio {
	width: 100%;
}

.v1a-director-selected-work .portfolio--controls {
	display: none !important;
}

/* The grid closes with the native full-width end line (owner 2026-11-20); it was hidden here until 1.4.8. */

.v1a-director-profile--about {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 0 0 clamp(60px, 10vh, 120px);
	border-top: 0;
	background: transparent;
}

/* Farah's site header is z-index 999999; keep only Director video modals above it. */
.dialog-widget[id^="elementor-lightbox-v1a-director-video-"] {
	z-index: 1000001;
}

/* Vertical and square films get the same rounded corners the site gives wide lightbox videos. */
.dialog-widget[id^="elementor-lightbox-v1a-director-video-"] .elementor-video-container .elementor-video-portrait video,
.dialog-widget[id^="elementor-lightbox-v1a-director-video-"] .elementor-video-container .elementor-video-portrait iframe,
.dialog-widget[id^="elementor-lightbox-v1a-director-video-"] .elementor-video-container .elementor-video-square video,
.dialog-widget[id^="elementor-lightbox-v1a-director-video-"] .elementor-video-container .elementor-video-square iframe {
	overflow: clip;
	border-radius: var(--space-m);
}

.v1a-director-profile__about {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: clamp(40px, 6vw, 90px);
	width: min(100%, 1680px);
	margin: 0 auto;
	padding: clamp(40px, 4vw, 56px) var(--v1a-director-edge) 0;
}

.v1a-director-profile__portrait {
	position: relative;
	margin: 0;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: 18px;
	background: #181818;
}

.v1a-director-profile__portrait:focus-visible {
	outline: 2px solid var(--e-global-color-accent, #f14a58);
	outline-offset: 0.35rem;
}

.v1a-director-profile__image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: opacity 600ms cubic-bezier(0.2, 0.75, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.v1a-director-profile__image--night {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.v1a-director-profile__portrait.has-night:hover .v1a-director-profile__image--day,
.v1a-director-profile__portrait.has-night:focus .v1a-director-profile__image--day,
.v1a-director-profile__portrait.has-night:focus-within .v1a-director-profile__image--day {
	opacity: 0;
	transform: scale(1.04);
}

.v1a-director-profile__portrait.has-night:hover .v1a-director-profile__image--night,
.v1a-director-profile__portrait.has-night:focus .v1a-director-profile__image--night,
.v1a-director-profile__portrait.has-night:focus-within .v1a-director-profile__image--night {
	opacity: 1;
	transform: scale(1.04);
}

.v1a-director-profile__tag {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	background: var(--e-global-color-accent, #f14a58);
	color: #0a0a0a;
	font-family: "Roboto Flex", sans-serif;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.v1a-director-profile__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.v1a-director-profile__about-title {
	display: none;
	margin: 0;
	font-family: var(--font-heading, "Anton"), sans-serif;
	font-size: clamp(2.8rem, 5vw, 5rem) !important;
	font-weight: 400;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase;
}

.v1a-director-profile__bio,
.v1a-director-profile__bio p {
	max-width: 38ch;
	color: rgba(255, 255, 255, 0.8);
	font-family: "Roboto Flex", sans-serif !important;
	font-size: clamp(1.1rem, 1.5vw, 1.65rem);
	font-weight: 400 !important;
	line-height: 1.6 !important;
}

.v1a-director-profile__bio > :first-child {
	margin-top: 0;
}

.v1a-director-profile__bio > :last-child {
	margin-bottom: 0;
}

.v1a-director-profile__back {
	display: inline-flex;
	align-self: center;
	width: max-content;
	margin: clamp(70px, 10vh, 120px) auto 0;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid currentColor;
	color: #fff;
	font-family: var(--font-heading, "Anton"), sans-serif;
	font-size: clamp(20px, 2.4vw, 34px);
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 180ms ease, transform 180ms ease;
}

.v1a-director-profile__back:hover,
.v1a-director-profile__back:focus-visible {
	color: var(--e-global-color-accent, #f14a58);
	transform: translate3d(3px, -3px, 0);
}

.v1a-director-profile__back:focus-visible {
	outline: 2px solid var(--e-global-color-accent, #f14a58);
	outline-offset: 0.3rem;
}

.v1a-director-profile__empty {
	margin: 0;
	padding: 2rem;
	border: 1px dashed currentColor;
}

@media (max-width: 860px) {
	.v1a-director-profile--hero {
		padding-top: clamp(58px, 10vh, 86px);
	}

	.v1a-director-profile.v1a-director-profile--hero h1.v1a-director-profile__title {
		font-size: clamp(2.8rem, 13vw, 5rem) !important;
	}

	.v1a-director-profile__about {
		grid-template-columns: 1fr;
		gap: 0;
		padding-top: var(--v1a-director-edge);
	}

	.v1a-director-profile__portrait {
		aspect-ratio: 4 / 5;
	}

	.v1a-director-profile__copy {
		padding: clamp(40px, 10vw, 70px) 0 0;
	}

	.v1a-director-profile__bio {
		font-size: clamp(1rem, 4.4vw, 1.2rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.v1a-director-profile *,
	.v1a-director-profile *::before,
	.v1a-director-profile *::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* --------------------------------------------------------------------------
 * Selected Work video cards: hover / keyboard actions
 *
 * Markup comes from V1A_Directors_Core::add_director_video_lightboxes():
 *   article > a.v1a-director-video-lightbox + .v1a-reel-actions > a.v1a-reel-action
 * The long selectors are deliberate: pe-core and the child theme style every
 * `article a` in the grid (size, overflow, `transform: none !important`).
 * ----------------------------------------------------------------------- */

.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article {
	position: relative;
}

/* Dim only the media so both actions stay legible over a bright loop. */
.pe--portfolio.v1a-has-reel-actions .v1a-director-video-lightbox .project--image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 950002; /* one above the child theme's preview-video layer */
	background: rgba(8, 8, 8, 0.55);
	opacity: 0;
	pointer-events: none;
	transition: opacity 260ms ease;
}

.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article .v1a-reel-actions {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 950003;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(16px, 2.6vh, 26px);
	/* Set per card by director-reel-actions.js; the fallback is the title strip. */
	height: var(--v1a-reel-media-height, calc(100% - 47px));
	padding: 12px;
	pointer-events: none;
}

.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article .v1a-reel-actions a.v1a-reel-action {
	display: inline-flex;
	flex-direction: row;
	width: auto;
	height: auto;
	overflow: visible;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid currentColor;
	color: #fff;
	font-family: var(--font-heading, "Anton"), sans-serif;
	font-size: clamp(17px, 1.55vw, 24px);
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	translate: 0 10px;
	transition:
		opacity 220ms ease,
		translate 340ms cubic-bezier(0.2, 0.75, 0.2, 1),
		transform 180ms ease,
		color 180ms ease;
}

/* Revealed: pointer over the card, or keyboard focus on the card / an action. */
@media (hover: hover) and (pointer: fine) {
	.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article:hover .v1a-director-video-lightbox .project--image::after {
		opacity: 1;
	}

	.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article:hover .v1a-reel-actions a.v1a-reel-action {
		opacity: 1;
		pointer-events: auto;
		translate: 0 0;
	}

	.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article:hover .v1a-reel-actions a.v1a-reel-action--project {
		transition-delay: 70ms, 70ms, 0ms, 0ms;
	}
}

.pe--portfolio.v1a-has-reel-actions .v1a-director-video-lightbox:focus-visible .project--image::after {
	opacity: 1;
}

.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article .v1a-director-video-lightbox:focus-visible + .v1a-reel-actions a.v1a-reel-action,
.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article .v1a-reel-actions a.v1a-reel-action:focus-visible {
	opacity: 1;
	pointer-events: auto;
	translate: 0 0;
}

/* Kept apart: a browser without :has() drops only these two rules. */
.pe--portfolio.v1a-has-reel-actions .portfolio--project article:has(.v1a-reel-action:focus-visible) .v1a-director-video-lightbox .project--image::after {
	opacity: 1;
}

.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article:has(.v1a-reel-action:focus-visible) .v1a-reel-actions a.v1a-reel-action {
	opacity: 1;
	pointer-events: auto;
	translate: 0 0;
}

/* Same hover as every other link on the site, the "All Directors" link
   included: accent colour plus the site-wide 6% lift (WPCodeBox global CSS,
   `a:hover { transform: scale(1.06) !important }`). The child theme switches
   that lift off for grid cards (`article a:hover { transform: none !important }`),
   so the two actions opt back in. */
.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article .v1a-reel-actions a.v1a-reel-action:hover {
	color: var(--e-global-color-accent, #f14a58);
	transform: scale(1.06) !important;
}

.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article .v1a-reel-actions a.v1a-reel-action:focus-visible {
	color: var(--e-global-color-accent, #f14a58);
}

/* Enter on a focused card plays it, so the play action carries the cue. */
.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article .v1a-director-video-lightbox:focus-visible + .v1a-reel-actions a.v1a-reel-action--play {
	color: var(--e-global-color-accent, #f14a58);
}

.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article .v1a-reel-actions a.v1a-reel-action:focus-visible {
	outline: 2px solid var(--e-global-color-accent, #f14a58);
	outline-offset: 0.3rem;
}

/* --------------------------------------------------------------------------
 * Director video lightbox: project link beneath the video
 *
 * director-reel-actions.js adds .v1a-reel-modal--linked and the link each time
 * Elementor rebuilds the lightbox content.
 * ----------------------------------------------------------------------- */

.v1a-reel-modal-link-wrap {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	display: flex;
	justify-content: center;
	padding-top: clamp(10px, 2vh, 22px);
	pointer-events: none;
}

.v1a-reel-modal-link {
	display: inline-flex;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid currentColor;
	color: #fff;
	font-family: var(--font-heading, "Anton"), sans-serif;
	font-size: clamp(18px, 1.8vw, 26px);
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: auto;
	transition: color 180ms ease, transform 180ms ease;
}

/* Declared like .v1a-director-profile__back, so both links keep matching:
   today the site-wide `a:hover` lift (scale 1.06, !important) wins on each. */
.v1a-reel-modal-link:hover,
.v1a-reel-modal-link:focus-visible {
	color: var(--e-global-color-accent, #f14a58);
	transform: translate3d(3px, -3px, 0);
}

.v1a-reel-modal-link:focus-visible {
	outline: 2px solid var(--e-global-color-accent, #f14a58);
	outline-offset: 0.3rem;
}

/* Size the wide lightbox frame from the window height as well as its width, so
   it stays vertically centred: Elementor's own rule lets the frame overflow its
   box in wide, short windows, which pushed films without a project link low.
   With a link, the larger reserve keeps the frame clear of it (above and below). */
.dialog-widget[id^="elementor-lightbox-v1a-director-video-"] .elementor-video-container .elementor-video-landscape {
	--v1a-reel-modal-reserve: clamp(24px, 5vh, 48px);
	--v1a-reel-modal-fit: 85vw;
	--v1a-reel-modal-height: 100vh;
	width: min(var(--v1a-reel-modal-fit), calc((var(--v1a-reel-modal-height) - 2 * var(--v1a-reel-modal-reserve)) * var(--video-aspect-ratio, 1.77777)));
	max-height: none;
}

.dialog-widget[id^="elementor-lightbox-v1a-director-video-"] .elementor-video-container.v1a-reel-modal--linked .elementor-video-landscape {
	--v1a-reel-modal-reserve: clamp(68px, 9vh, 84px);
}

/* Where the dynamic viewport unit exists, measure against it so mobile browser
   bars cannot push the link off screen. */
@supports (height: 100dvh) {
	.dialog-widget[id^="elementor-lightbox-v1a-director-video-"] .elementor-video-container .elementor-video-landscape {
		--v1a-reel-modal-height: 100dvh;
	}
}

@media (max-width: 1024px) {
	.dialog-widget[id^="elementor-lightbox-v1a-director-video-"] .elementor-video-container .elementor-video-landscape {
		--v1a-reel-modal-fit: 95vw;
	}
}

/* Short windows and phone landscape: a compact link and a tighter reserve
   keep the video as large as the height allows. */
@media (max-height: 560px) {
	.dialog-widget[id^="elementor-lightbox-v1a-director-video-"] .elementor-video-container.v1a-reel-modal--linked .elementor-video-landscape {
		--v1a-reel-modal-reserve: 46px;
	}

	.v1a-reel-modal-link-wrap {
		padding-top: 0;
	}

	.v1a-reel-modal-link {
		padding-top: 10px;
		padding-bottom: 0.25rem;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pe--portfolio.v1a-has-reel-actions .v1a-director-video-lightbox .project--image::after,
	.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article .v1a-reel-actions a.v1a-reel-action,
	.v1a-reel-modal-link {
		transition-duration: 0.001ms !important;
		transition-delay: 0ms !important;
	}

	.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article .v1a-reel-actions a.v1a-reel-action {
		translate: 0 0;
	}

	.pe--portfolio.v1a-has-reel-actions .portfolio--projects--wrapper .portfolio--project article .v1a-reel-actions a.v1a-reel-action:hover,
	.v1a-reel-modal-link:hover,
	.v1a-reel-modal-link:focus-visible {
		transform: none !important;
	}
}
