/* Elegant model pages (/dorrar/elegant/{modell}/). Builds on asken.css. */

.kf-em h1 {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
}

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

.kf-em-hero {
	background: var(--ak-navy);
	color: var(--ak-on-navy);
	padding-top: clamp(28px, 4vw, 48px);
}

.kf-em-hero .kf-asken-crumbs {
	margin-bottom: clamp(28px, 4vw, 48px);
}

.kf-em-hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}

.kf-em-hero h1 {
	margin: 0;
	font-size: clamp(48px, 6.4vw, 92px);
	font-weight: 500;
	line-height: 0.98;
	letter-spacing: -0.02em;
	color: var(--ak-on-navy);
}

.kf-em-hero h1 span {
	display: block;
	margin-top: 18px;
	font-size: clamp(19px, 1.9vw, 26px);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	color: var(--ak-on-navy-soft);
}

.kf-em-lead {
	max-width: 52ch;
	margin: 28px 0;
	font-size: 17px;
	line-height: 1.75;
	color: var(--ak-on-navy-soft);
}

.kf-em-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 34px;
	padding: 0;
	list-style: none;
}

.kf-em-chips li {
	margin: 0;
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	font-size: 13px;
	line-height: 1.3;
	color: var(--ak-on-navy);
}

.kf-em-hero-media {
	justify-self: end;
	width: 100%;
	max-width: 480px;
	margin: 0;
}

.kf-em-hero-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 6px;
	background: #e7e6e3;
	box-shadow: 0 30px 60px -30px rgba(5, 18, 30, 0.6);
}

/* ---------- 3D ---------- */

.kf-em-3d {
	background: var(--ak-navy-deep);
	color: var(--ak-on-navy);
}

.kf-em-3d-grid {
	display: grid;
	grid-template-columns: minmax(260px, 0.75fr) 2fr;
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}

.kf-em-3d h2 {
	margin: 0 0 16px;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 500;
	line-height: 1.15;
	color: var(--ak-on-navy);
}

.kf-em-3d p {
	margin: 0 0 20px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--ak-on-navy-soft);
}

.kf-em-3d strong {
	color: var(--ak-on-navy);
	font-weight: 600;
}

.kf-em-tips {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.kf-em-tips li {
	position: relative;
	margin: 0;
	padding: 12px 0 12px 22px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ak-on-navy-soft);
}

.kf-em-tips li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 20px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ak-gold);
}

.kf-em-3d-view .elegant-door-embed {
	height: min(720px, 82svh) !important;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.kf-em-3d-view > img {
	display: block;
	width: 100%;
	max-width: 560px;
	height: auto;
	margin: 0 auto;
	border-radius: 6px;
}

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

.kf-em-gallery {
	background: #fff;
}

.kf-em-gallery .kf-asken-h {
	margin-bottom: clamp(28px, 4vw, 44px);
}

.kf-em-photos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kf-em-photos li,
.kf-em-photos figure {
	margin: 0;
}

.kf-em-photos img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 4px;
	background: #e7e6e3;
}

.kf-em-photos figcaption {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ak-muted);
}

/* Two renders: wide frames in the render's own navy, so the door sits centred. */
.kf-em-photos.is-pair {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kf-em-photos.is-pair img {
	background: #032840;
	aspect-ratio: 4 / 3;
	object-fit: contain;
}

/* Three photos per row; four become 2 + 2 and five become 3 + 2. */
.kf-em-photos.is-wide {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kf-em-photos.is-wide > li {
	grid-column: span 2;
}

.kf-em-photos.is-wide > li:first-child:nth-last-child(4),
.kf-em-photos.is-wide > li:first-child:nth-last-child(4) ~ li,
.kf-em-photos.is-wide > li:nth-child(4):nth-last-child(2),
.kf-em-photos.is-wide > li:nth-child(5):last-child {
	grid-column: span 3;
}

.kf-em-photos.is-wide img {
	aspect-ratio: 4 / 3;
}

.kf-asken .kf-em-sub-h {
	margin: clamp(44px, 6vw, 72px) 0 24px;
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 500;
	color: var(--ak-navy);
}

.kf-em-zoom {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	cursor: zoom-in;
}

.kf-em-zoom img {
	transition: transform 0.4s ease;
}

.kf-em-zoom:hover img,
.kf-em-zoom:focus-visible img {
	transform: scale(1.03);
}

.kf-em-zoom::after {
	content: "";
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(13, 35, 57, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 18px no-repeat;
	opacity: 0.85;
}

.kf-em-lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(8, 22, 36, 0.94);
	color: #f6f9fb;
}

.kf-em-lightbox::backdrop {
	background: rgba(8, 22, 36, 0.6);
}

.kf-em-lightbox figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	height: 100%;
	margin: 0;
	padding: 56px 64px 32px;
	pointer-events: none;
}

.kf-em-lightbox img {
	max-width: 100%;
	max-height: calc(100% - 40px);
	object-fit: contain;
	border-radius: 4px;
	pointer-events: auto;
}

.kf-em-lightbox figcaption {
	font-size: 15px;
	color: rgba(246, 249, 251, 0.8);
}

.kf-em-lightbox button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(13, 35, 57, 0.6);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.kf-em-lightbox button:hover,
.kf-em-lightbox button:focus-visible {
	border-color: var(--ak-gold, #f2cf24);
	color: var(--ak-gold, #f2cf24);
}

.kf-em-lb-close {
	top: 14px;
	right: 14px;
}

.kf-em-lb-prev,
.kf-em-lb-next {
	top: 50%;
	transform: translateY(-50%);
}

.kf-em-lb-prev {
	left: 12px;
}

.kf-em-lb-next {
	right: 12px;
}

/* ---------- Weather protection ---------- */

.kf-em-weather {
	background: #fff;
}

.kf-em-weather-head {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: clamp(24px, 5vw, 80px);
	align-items: end;
	margin-bottom: clamp(32px, 4vw, 48px);
}

.kf-em-weather h2 {
	margin: 0;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 500;
	line-height: 1.15;
	color: var(--ak-navy);
}

.kf-em-weather-head p:not(.kf-asken-kicker) {
	margin: 0 0 12px;
	font-size: 17px;
	line-height: 1.7;
	color: #3e4a5a;
}

.kf-em-weather .kf-asken-kicker {
	color: #9a7b00;
}

.kf-em-weather-grid {
	display: grid;
	grid-template-columns: 0.75fr 1fr 1fr 0.75fr;
	gap: 16px;
	align-items: start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kf-em-weather-grid li,
.kf-em-weather-grid figure {
	margin: 0;
}

.kf-em-weather-grid img {
	display: block;
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: 4px;
	background: #f1f0ec;
}

.kf-em-weather-grid figcaption {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ak-muted);
}

/* ---------- Material and specs ---------- */

.kf-em-material {
	background: var(--ak-sand);
}

.kf-em-material-grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}

.kf-em-prose h2 {
	margin: 0 0 20px;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 500;
	line-height: 1.15;
	color: var(--ak-navy);
}

.kf-em-prose p:not(.kf-asken-kicker) {
	margin: 0 0 16px;
	font-size: 17px;
	line-height: 1.75;
	color: #3e4a5a;
}

.kf-em-material .kf-asken-kicker,
.kf-em-gallery .kf-asken-kicker,
.kf-em-care .kf-asken-kicker,
.kf-elegant-mount .kf-asken-kicker {
	color: #9a7b00;
}

.kf-asken .kf-em-dl-h {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ak-navy);
}

.kf-em-material .kf-asken-dl dd a {
	color: var(--ak-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Hardware ---------- */

.kf-em-details {
	padding-top: clamp(64px, 9vw, 120px);
}

.kf-em-details .kf-asken-kicker {
	text-align: center;
}

/* ---------- Care ---------- */

.kf-em-care-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kf-em-care-grid > li {
	grid-column: span 2;
}

.kf-em-care-grid > li:nth-child(n + 4) {
	grid-column: span 3;
}

.kf-em-care .kf-asken-card {
	padding: 30px 28px;
}

.kf-em-care-lead {
	max-width: 62ch;
	margin: 0 0 32px;
	font-size: 17px;
	line-height: 1.7;
	color: #3e4a5a;
}

.kf-em-care-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin: 32px 0 0;
}

.kf-em-textlink {
	font-size: 15px;
	font-weight: 600;
	color: var(--ak-navy) !important;
	text-decoration: none !important;
	border-bottom: 1px solid rgba(25, 58, 86, 0.35);
}

.kf-em-textlink:hover {
	border-bottom-color: var(--ak-navy);
}

/* ---------- FAQ ---------- */

.kf-em-faq {
	background: #fff;
}

.kf-em-faq-wrap {
	max-width: 880px;
}

.kf-em-qa {
	border-bottom: 1px solid var(--ak-line);
}

.kf-em-qa:first-of-type {
	border-top: 1px solid var(--ak-line);
}

.kf-em-qa summary {
	position: relative;
	padding: 22px 44px 22px 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--ak-navy);
	cursor: pointer;
	list-style: none;
}

.kf-em-qa summary::-webkit-details-marker {
	display: none;
}

.kf-em-qa summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	font-size: 26px;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-50%);
	color: var(--ak-navy);
}

.kf-em-qa[open] summary::after {
	content: "−";
}

.kf-em-qa p {
	margin: 0 0 24px;
	max-width: 70ch;
	font-size: 16px;
	line-height: 1.7;
	color: #3e4a5a;
}

/* ---------- Other models ---------- */

.kf-em-others {
	padding-top: clamp(64px, 9vw, 120px);
}

.kf-elegant-grid a:hover strong {
	color: var(--ak-gold);
}

/* ---------- Small screens ---------- */

@media (max-width: 1100px) {
	.kf-em-photos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kf-em-3d-grid {
		grid-template-columns: 1fr;
	}

	.kf-em-3d-text {
		max-width: 640px;
	}
}

@media (max-width: 900px) {
	.kf-em-hero-grid,
	.kf-em-material-grid {
		grid-template-columns: 1fr;
	}

	.kf-em-hero-media {
		justify-self: center;
		max-width: 420px;
	}

	.kf-em-care-grid {
		grid-template-columns: 1fr;
	}

	.kf-em-weather-head {
		grid-template-columns: 1fr;
	}

	.kf-em-weather-grid {
		grid-template-columns: 1fr 1fr;
	}

	.kf-em-weather-grid img {
		height: 240px;
	}

	.kf-em-care-grid > li,
	.kf-em-care-grid > li:nth-child(n + 4) {
		grid-column: auto;
	}
}

@media (max-width: 760px) {
	.kf-em-hero h1 {
		font-size: 52px;
	}

	.kf-em-lead {
		font-size: 16px;
	}

	/* Leaves a strip of page above and below, so a thumb can always scroll past. */
	.kf-em-3d-view .elegant-door-embed {
		width: auto !important;
		height: 72svh !important;
		margin: 0 calc(-1 * clamp(20px, 4vw, 40px));
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}

	.kf-em-photos {
		gap: 18px 12px;
	}

	.kf-em-photos.is-wide {
		grid-template-columns: 1fr;
	}

	.kf-em-photos.is-wide > li {
		grid-column: auto !important;
	}

	.kf-em-weather-grid img {
		height: 190px;
	}

	.kf-em-lightbox figure {
		padding: 64px 12px 24px;
	}

	.kf-em-lb-prev,
	.kf-em-lb-next {
		top: auto;
		bottom: 18px;
		transform: none;
	}

	.kf-em-qa summary {
		font-size: 16px;
	}
}