/* Delta Projects — the single project page.
   Sizes, weights and spacing are taken from the reference design and
   expressed as clamps so the same page holds together from 360px up. */

.dp-page {
	/* Falls through to Flatsome's own primary colour unless a theme or a
	   dp_accent_color filter sets --dp-accent on this element. */
	--dp-accent: var(--primary-color, #446084);
	--dp-ink: #000;
	--dp-body: #0a0a0a;
	--dp-wrap: 1120px;
	--dp-gutter: 20px;
	/* The rule is narrower than the content row, as in the design. */
	--dp-rule-width: 1020px;

	color: var(--dp-body);
}

.dp-wrap {
	width: 100%;
	max-width: var(--dp-wrap);
	margin-inline: auto;
	padding-inline: var(--dp-gutter);
}

@media (min-width: 1024px) {
	.dp-page { --dp-gutter: 15px; }
}

.dp-sec { padding-block: 0; }

/* The theme's own page padding would double up on a full-bleed hero. */
.dp-single .dp-page > :first-child { margin-top: 0; }

/* Hero ------------------------------------------------------------------ */

.dp-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: clamp(340px, 35vw, 560px);
	overflow: hidden;
	background: #1a1a1a;
}

.dp-hero__bg,
.dp-hero__overlay {
	position: absolute;
	inset: 0;
}

.dp-hero__bg {
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.dp-hero__overlay { background: rgba(0, 0, 0, 0.5); }

.dp-hero--plain { height: clamp(220px, 24vw, 340px); }

.dp-hero__inner {
	position: relative;
	width: 100%;
	max-width: var(--dp-wrap);
	margin-inline: auto;
	padding: 0 var(--dp-gutter) clamp(26px, 4.5vw, 52px);
	color: #fff;
	text-align: left;
}

.dp-hero__eyebrow {
	margin: 0 0 -0.7em;
	font-size: clamp(15px, 1.9vw, 21.4px);
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}

.dp-hero__title {
	margin: 0;
	font-size: clamp(30px, 5.5vw, 62.2px);
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	text-transform: none;
	letter-spacing: normal;
}

/* Intro ----------------------------------------------------------------- */

.dp-sec--intro { padding-block: clamp(30px, 5vw, 61px) clamp(18px, 2.5vw, 26px); }

.dp-intro {
	max-width: 50%;
	margin-inline: auto;
	text-align: center;
}

.dp-intro p {
	margin: 0 0 1.3em;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--dp-body);
}

.dp-intro p:last-child { margin-bottom: 0; }

/* Rules ----------------------------------------------------------------- */

.dp-rule {
	width: 100%;
	max-width: min(var(--dp-rule-width), calc(100% - var(--dp-gutter) * 2));
	height: 2px;
	margin: 0 auto;
	border: 0;
	background: var(--dp-ink);
}

/* Facts ----------------------------------------------------------------- */

.dp-sec--facts { padding-block: clamp(32px, 6vw, 65px) clamp(26px, 3.5vw, 35px); }

.dp-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 15px;
	margin: 0;
	text-align: center;
}

.dp-facts--1 { grid-template-columns: minmax(0, 1fr); }
.dp-facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dp-facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.dp-fact { margin: 0; }

.dp-fact__label {
	margin: 0;
	font-size: 13.6px;
	font-weight: 500;
	letter-spacing: 0.68px;
	text-transform: capitalize;
	line-height: 1.4;
	color: var(--dp-ink);
}

.dp-fact__value {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: capitalize;
	color: var(--dp-ink);
}

/* Description ----------------------------------------------------------- */

.dp-sec--body { padding-block: clamp(32px, 5vw, 56px) 0; }

.dp-body {
	max-width: 760px;
	margin-inline: auto;
	font-size: 16px;
	line-height: 1.75;
}

.dp-body > :first-child { margin-top: 0; }
.dp-body > :last-child { margin-bottom: 0; }

/* Video ----------------------------------------------------------------- */

.dp-sec--video { padding-block: clamp(32px, 5vw, 56px) 0; }

.dp-video__frame {
	position: relative;
	padding-top: 56.25%;
	overflow: hidden;
	background: #000;
}

.dp-video__frame iframe,
.dp-video__frame embed,
.dp-video__frame object,
.dp-video__frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.dp-video__link { margin: 0; }

/* Gallery grid ---------------------------------------------------------- */

.dp-sec--gallery { padding-block: clamp(42px, 10vw, 115px) clamp(36px, 6vw, 50px); }

.dp-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dp-grid__item { margin: 0; }

.dp-grid__link {
	position: relative;
	display: block;
	overflow: hidden;
	line-height: 0;
	background: #efefef;
}

.dp-grid__link img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.dp-grid__tint {
	position: absolute;
	inset: 0;
	background: var(--dp-accent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.dp-grid__link:hover img,
.dp-grid__link:focus-visible img { transform: scale(1.04); }

.dp-grid__link:hover .dp-grid__tint,
.dp-grid__link:focus-visible .dp-grid__tint { opacity: 0.25; }

/* Other Projects -------------------------------------------------------- */

.dp-sec--related { padding-block: clamp(44px, 7vw, 77px); }

.dp-related__heading {
	margin: 0 0 clamp(22px, 3vw, 34px);
	font-size: clamp(24px, 3vw, 33px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--dp-ink);
}

.dp-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(26px, 3vw, 30px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dp-card { margin: 0; }

.dp-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	margin-bottom: 14px;
	line-height: 0;
	background: #efefef;
}

.dp-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 5 / 3;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.dp-card__tint {
	position: absolute;
	inset: 0;
	background: var(--dp-accent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.dp-card:hover .dp-card__media img,
.dp-card:focus-within .dp-card__media img { transform: scale(1.04); }

.dp-card:hover .dp-card__tint,
.dp-card:focus-within .dp-card__tint { opacity: 0.25; }

.dp-card__title {
	margin: 0 0 6px;
	font-size: clamp(20px, 2.3vw, 25.6px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--dp-ink);
}

.dp-card__title a {
	color: inherit;
	text-decoration: none;
}

.dp-card__title a:hover .dp-card__accent,
.dp-card__title a:focus-visible .dp-card__accent { text-decoration: underline; }

.dp-card__accent { color: var(--dp-accent); }

.dp-card__label {
	margin: 0;
	font-size: 13.6px;
	font-weight: 500;
	letter-spacing: 0.68px;
	text-transform: capitalize;
	line-height: 1.4;
	color: var(--dp-ink);
}

.dp-card__value {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--dp-ink);
}

.dp-card__button {
	display: inline-flex;
	align-items: center;
	height: 33px;
	padding-inline: 15.4px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 0;
	background: var(--dp-accent);
	color: #fff;
	font-size: 12.8px;
	font-weight: 600;
	letter-spacing: 0.384px;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	transition: filter 0.2s ease;
}

.dp-card__button:hover,
.dp-card__button:focus-visible {
	color: #fff;
	filter: brightness(0.9);
}

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

.dp-lb {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 48px);
	background: rgba(0, 0, 0, 0.96);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.dp-lb[hidden] { display: none; }
.dp-lb.is-open { opacity: 1; }

.dp-lb__figure {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	text-align: center;
}

.dp-lb__img {
	display: block;
	max-width: 100%;
	max-height: 78vh;
	margin-inline: auto;
	object-fit: contain;
}

.dp-lb__caption {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.75);
}

.dp-lb__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.dp-lb__btn:hover,
.dp-lb__btn:focus-visible { background: rgba(255, 255, 255, 0.28); }

.dp-lb__btn svg { width: 24px; height: 24px; }

.dp-lb__close { top: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px); }
.dp-lb__prev { left: clamp(10px, 2vw, 26px); top: 50%; transform: translateY(-50%); }
.dp-lb__next { right: clamp(10px, 2vw, 26px); top: 50%; transform: translateY(-50%); }

.dp-lb__counter {
	position: absolute;
	bottom: clamp(12px, 2vw, 24px);
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	font-size: 13px;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.7);
}

.dp-lb--single .dp-lb__prev,
.dp-lb--single .dp-lb__next,
.dp-lb--single .dp-lb__counter { display: none; }

body.dp-lb-open { overflow: hidden; }

/* Breakpoints ----------------------------------------------------------- */

@media (max-width: 849px) {
	.dp-intro { max-width: 80%; }
	.dp-grid,
	.dp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dp-facts,
	.dp-facts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 549px) {
	/* The title is small enough here that the design's overlap would
	   collide with it rather than tuck under it. */
	.dp-hero__eyebrow { margin-bottom: -0.2em; }
	.dp-intro { max-width: 100%; }
	.dp-grid,
	.dp-cards { grid-template-columns: minmax(0, 1fr); }
	.dp-facts,
	.dp-facts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dp-facts--1 { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.dp-grid__link img,
	.dp-card__media img,
	.dp-grid__tint,
	.dp-card__tint,
	.dp-lb,
	.dp-card__button { transition: none; }

	.dp-grid__link:hover img,
	.dp-card:hover .dp-card__media img { transform: none; }
}
