* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

spacer {
	display: flex;
	height: 64px;
	width: 100%;
}

section {
	display: block;
	width: 100%;
	max-width: var(--page-max-width);
	margin: 0 auto;
	margin-bottom: 200px;
}

.section-heading {
	font-size: var(--rem-4xl);
}

.align-left {
	text-align: left;
}

.align-center {
	text-align: center;
}

.link-arrow {
	width: 14px;
	height: 14px;
	background-image: url(/img/arrow-right-icon.svg);
	background-repeat: no-repeat;
	background-size: contain;
	translate: 0 1px;
}

#press-hero {
	width: calc(100% - var(--scale8-16));
	margin: 0 auto;
	height: auto;
	position: relative;
	display: flex;
	width: calc(100% - var(--scale8-16));
	margin: 0 auto;
	height: 40vh;
	height: 40dvh;
	border-radius: 8px;
	overflow: hidden;
	background-image: url('../../img/pressroom-hero-header.webp');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: bottom right;
	margin-bottom: var(--gutter-margin-s);
	font-family: var(--text-font-family);

	h1 {
		font-size: var(--rem-4xl);
	}

	.text-section {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 64px;
		width: 50%;
		height: 100%;
	}
}

#download {
	background-color: #FBF5E5;
	border-radius: 8px;
	width: calc(100% - var(--scale8-16));
	margin: 0 auto;
	padding: var(--gutter-margin-s);
	display: flex;
	flex-direction: column;
	justify-content: center;

	.download-block {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 80px 64px;
		gap: 24px;
		border-radius: 8px;
		background-color: var(--ml-alice);
		margin-top: var(--gutter-margin-s);
	}

	button {
		padding: 16px 42px;
		font-family: Poppins;
		font-size: var(--rem-s);
		font-weight: normal;
		background-color: var(--edge-color);
		color: white;
		border-radius: 4px;
		border:0;
		cursor: pointer;
	}

	button:active {
		scale: 0.98;
	}
}

#press-news {
	background-color: #FBF5E5;
	border-radius: 8px;
	width: calc(100% - var(--scale8-16));
	margin: 0 auto;
	padding: var(--gutter-margin-s);
	display: flex;
	flex-direction: column;
	justify-content: center;

	.news-block {
		display: flex;
		flex-direction: column;
		gap: 32px;
		padding: 80px 64px;
	}

	.press-items {
		display: flex;
		flex-direction: column;
		width: 100%;
		gap: 16px;
		margin: auto;
	}

	.press-logo {
		width: 100px;
		height: auto;
		margin-right: 16px;
	}

	.press-date {
		display: flex;
		flex-direction: column;
		justify-content: center;
		font-size: var(--rem-s);
		margin-left: auto;
		font-family: Poppins;
	}

	.press-item {
		display: flex;
		flex-direction: column;
		padding: 4px 22px;
		border: 1px solid #D5DCEA;
		background-color: #FFFCF4;
		border-radius: 8px;
		font-family: var(--text-font-family);
	}

	.press-item .title {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin: 16px 0;
		cursor: pointer;
	}

	.press-item .title h3 {
		display: block;
		font-family: Poppins;
		font-size: var(--rem-base);
		font-weight: normal;
		cursor: pointer;
		user-select: none;
	}

	.press-item p {
		display: none;
		text-align: left;
	}

	.press-item.show p {
		display: flex;
		width: 90%;
		margin: 16px auto;
	}

	.press-item .add,
	.press-item .remove {
		margin-left: 16px;
		font-size: 21px;
	}

	.press-item .remove {
		display: none;
	}

	.press-item.show .remove {
		display: flex;
	}

	.press-item.show .add {
		display: none;
	}

}

#media {
	background-color: #FBF5E5;
	border-radius: 8px;
	width: calc(100% - var(--scale8-16));
	margin: 0 auto;
	padding: var(--gutter-margin-s);
	display: flex;
	flex-direction: column;
	justify-content: center;

	.media-block {
		display: flex;
		flex-direction: column;
		gap: 32px;
		padding: 80px 64px;
	}

	.media-images {
		display: flex;
		flex-direction: row;
		justify-content: center;
		gap: 32px;
		width: 100%;
	}

	.media-image {
		flex-grow: 1;
		width: 30%;
		min-width: 300px;
		height: 500px;
		background-size: 102%;
		background-position: top;
		background-repeat: no-repeat;
		border: 1px solid #D5DCEA;
		border-radius: 8px;
		cursor: pointer;
		margin: 0 auto;
	}
}

#videos {
	background-color: #FBF5E5;
	border-radius: 8px;
	width: calc(100% - var(--scale8-16));
	margin: 0 auto;
	padding: var(--gutter-margin-s);
	display: flex;
	flex-direction: column;
	justify-content: center;

	.video-block {
		display: flex;
		flex-direction: column;
		gap: 32px;
		padding: 80px 64px;
	}


	.video-section {
		display: flex;
		flex-direction: row;
		width: 80%;
		margin: 0 auto;
		overflow: auto;
	}

	.video-row {
		display: flex;
		gap: 16px;
		justify-content: space-between;
	}

	.video-section video {
		outline: 8px solid var(--ml-alice);
		overflow-x: s;
		width: 100%;
		height: 100%;
		margin-left: auto;
		border-radius: 8px;
		cursor: pointer;
	}

	.video-section video.mobile {
		width: 175px;
		margin-left: unset;
	}

	.video-section video.mobile-wider {
		width: 250px;
		margin-left: unset;
	}


	.video-section iframe {
		margin-left: auto;
		display: flex;
		justify-content: flex-end;
		border-radius: 8px;
		outline: 8px solid var(--ml-alice);
	}

	.play-button {
		font-family: var(--text-font-family);
		cursor: pointer;
	}

	.play-button:active {
		scale: 0.98;
	}


	.play-button::part(icon) {
		scale: 1.5;
	}

	.video-section .text-section {
		display: flex;
		flex-direction: column;
		justify-content: center;
		width: 50%;
		gap: 24px;
	}

	.video-section .text-section h2,
	.video-section .text-section p {
		text-align: left;
		justify-content: left;
		margin: 0;
	}

	.social-media h3 {
		text-align: center;
		width: 100%;
		font-size: var(--rem-l);
	}

	.social-icon {
		width: 24px;
		height: 24px;
		background-size: contain;
		background-repeat: no-repeat;
		cursor: pointer;
	}
}

#images {
	background-color: #FBF5E5;
	border-radius: 8px;
	width: calc(100% - var(--scale8-16));
	margin: 0 auto;
	padding: var(--gutter-margin-s);
	display: flex;
	flex-direction: column;
	justify-content: center;

	.images-block {
		display: flex;
		flex-direction: column;
		gap: 32px;
		padding: 80px 64px;
		text-align: center;
	}

	.images-block p{
		text-align: left;
	}

	.image-examples {
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		gap: 32px;
		height: 200px;
	}

	.image-examples .image {
		width: 300px;
		height: 200px;
		border-radius: 8px;
		cursor: pointer;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
		gap: 64px;
	}

	.cta-button {
		margin: 0 auto;
		padding: 16px 42px;
		font-family: Poppins;
		font-size: var(--rem-s);
		font-weight: normal;
		background-color: var(--edge-color);
		color: white;
		border-radius: 4px;
		border:0;
		cursor: pointer;
	}
}


#questions {
	background-color: #FBF5E5;
	border-radius: 8px;
	width: calc(100% - var(--scale8-16));
	margin: 0 auto;
	padding: var(--gutter-margin-s);
	display: flex;
	flex-direction: column;
	justify-content: center;

	.questions-block {
		display: flex;
		flex-direction: column;
		gap: 24px;
		padding: 80px 64px;
		text-align: center;
	}

	.questions-block p{
		text-align: left;
        margin: 0 auto;
	}

	.cta-button {
		margin: 0 auto;
		padding: 16px 42px;
		font-family: Poppins;
		font-size: var(--rem-s);
		font-weight: normal;
		background-color: var(--edge-color);
		color: white;
		border-radius: 4px;
		border:0;
		cursor: pointer;
	}
}

.content-decoration {
	position: absolute;
	z-index: -1;
}

.content-decoration.cog {
	left: 0;
	top: 5%;
	transform-origin: left;
	scale: 0.6;
}

.content-decoration.triangle {
	right: 0;
	top: 50%;
	transform-origin: right;
	scale: 0.6;

}

 .social-media {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
}

 .social-media .icons {
	display: flex;
	justify-content: center;
	gap: 32px;
	color: var(--ml-lavender);
}

 .social-media .icons ml-icon {
	cursor: pointer;
}

 .social-media .icons ml-icon:active {
	scale: 0.98;
}

 .images .product,
 .images .media,
 .images .press {
	display: flex;
	flex-direction: row;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
}

 .images .press:after {
	content: '';
	flex-grow: 1;
	/* adjust width depending on how number of items on last row */
	width: 70%;
}

 .images .product-image {
	width: 30%;
	min-width: 300px;
	height: 300px;
	background-size: cover;
	background-repeat: no-repeat;
	border: 1px solid var(--ml-silk);
	border-radius: 8px;
	cursor: pointer;
}

 .images .media-image {
	width: 30%;
	min-width: 300px;
	height: 500px;
	background-size: cover;
	background-repeat: no-repeat;
	border: 1px solid var(--ml-silk);
	border-radius: 8px;
	cursor: pointer;
}

 .images .press-image {
	width: 30%;
	min-width: 200px;
	height: 200px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	border: 1px solid var(--ml-silk);
	border-radius: 8px;
	cursor: pointer;
}

 .product1 { background-image: url('../../img/product/content-library-ui.webp'); }
 .product2 { background-image: url('../../img/product/content-editor-ui.webp'); }
 .product3 { background-image: url('../../img/product/dashboard-class-ui.webp'); }
 .product4 { background-image: url('../../img/product/assignment-stats-ui.webp'); }
 .product5 { background-image: url('../../img/product/mlc-theory-ui.webp'); }
 .product6 { background-image: url('../../img/product/selftest-ui.webp'); }

 .media1 { background-image: url('../../img/media/nyteknik.webp'); }
 .media2 { background-image: url('../../img/media/school-article.webp'); }


 .press-image.press1 { 
	background-image: url('../../img/press/edge-logo.svg'); 
	background-size: 90%;
}
.press-image.press2 { 
	background-image: url('../../img/press/mathleaks-logo.svg'); 
	background-size: 75%;
}
.press-image.press3 { 
	background-image: url('../../img/press/knowgaps-logo.svg'); 
	background-size: 70%;
}
.press-image.press4 { 
	background-image: url('../../img/press/modus-logo.svg'); 
	background-size: 55%;
}
 .press5 { background-image: url('../../img/press/videoframe1.webp'); }
 .press6 { background-image: url('../../img/press/videoframe2.webp'); }
 .press7 { background-image: url('../../img/press/videoframe3.webp'); }
 .press8 { background-image: url('../../img/press/videoframe4.webp'); }
 .press9 { background-image: url('../../img/press/videoframe5.webp'); }
 .press10 { background-image: url('../../img/press/videoframe6.webp'); }
 .press11 { background-image: url('../../img/press/videoframe7.webp'); }
 .press12 { background-image: url('../../img/press/videoframe8.webp'); }
 .press13 { background-image: url('../../img/press/videoframe9.webp'); }
 .press14 { background-image: url('../../img/press/videoframe10.webp'); }
 .press15 { background-image: url('../../img/press/videoframe11.webp'); }
 .press16 { background-image: url('../../img/press/videoframe12.webp'); }
 .press17 { background-image: url('../../img/press/videoframe13.webp'); }
 .press18 { background-image: url('../../img/press/videoframe14.webp'); }
 .press19 { background-image: url('../../img/press/videoframe15.webp'); }
 .press20 { background-image: url('../../img/press/jesper.webp'); }
 .press21 { background-image: url('../../img/press/conny.webp'); }
 .press22 { background-image: url('../../img/press/edge-team.webp'); }

 .contact-dialog {
	translate: -50% -50%;
	transform-origin: center;
}

 .section-newsletter {
	display: flex;
	flex-direction: row;
}

 .section-newsletter .left-section {
	display: flex;
	flex-direction: column;
	justify-content: left;
	width: 50%;
	gap: 16px;
}

 .section-newsletter h2 {
	justify-content: left;
}

 .section-newsletter p {
	text-align: left;
	margin: 0;
	width: 100%;
}

 .section-newsletter .right-section {
	display: flex;
	flex-direction: column;
	justify-content: right;
	width: 50%;
	gap: 16px;
}

 .section-newsletter .input-row {
	display: flex;
	flex-direction: row;
	justify-content: right;
	gap: 16px;
}

 .section-newsletter .input-row button {
	margin: 0;
}

 .section-newsletter input {
	border-radius: 4px;
	border: 2px solid var(--ml-silk);
	width: 50%;
	font-family: var(--text-font-family);
	padding-left: 16px;
}

 .section-newsletter .right-section .input-description {
	font-family: var(--text-font-family);
	font-size: var(--rem-s);
	display: flex;
	justify-content: right;
}


.article-dialog,
.images-dialog {
	width: 90vw;
	height: 90vh;
	translate: -50% -50%;
	transform-origin: center;
	left: 50%;
	top: 50%;
	overflow: hidden;
	background-color: #f0f0f0;
	border: 2px solid #d6d6d6;
	border-radius: 8px;
}

.article-dialog[open],
.images-dialog[open] {
	transition:
			transform 0.3s ease,
			filter 0.5s ease,
			display 0.3s ease allow-discrete;

	transform: scaleX(1);
	filter: unset;

	@starting-style {
		transform: scaleX(0.3);
		filter: blur(8px);
	}

}

.article-dialog .image-wrap,
.images-dialog .image-wrap {
	display: flex;
	height: calc(100% - 100px);
	width: 100%;
	overflow: auto;
	padding: 64px;
}

.article-dialog .image-wrap div {
	display: flex;
	width: 100%;
	height: 100%;
	background-position: top center;
    background-size: 101%;
	background-repeat: no-repeat;
}

.images-dialog .image-wrap {
	flex-direction: column;
	gap: 16px;
}

.images-dialog h3 {
	text-align: center;
	margin: 16px 0 0 0;
	padding: 32px 0;
	font-size: var(--rem-xl);
}

.article-dialog .close-button,
.images-dialog .close-button {
	position: absolute;
	bottom: 0px;
	left: 50%;
	translate: -50% -50%;
	padding: 16px 32px;
	font-family: var(--text-font-family);
	font-size: var(--rem-base);
	font-weight: normal;
	background-color: var(--edge-color);
	color: white;
	border-radius: 4px;
	border: 0;
	cursor: pointer;
}

.article-dialog .close-button:active,
.images-dialog .close-button:active {
	scale: 0.98;
}	

.article-dialog .download-icon,
.images-dialog .download-icon {
	position: absolute;
	bottom: 16px;
	right: 16px;
	translate: -50% -50%;
	padding: 8px 16px;
	font-family: var(--text-font-family);
	font-size: var(--rem-s);
	font-weight: normal;
	background-color: var(--edge-color);
	color: white;
	border-radius: 4px;
	border: 0;
	cursor: pointer;	
}
.article-dialog .download-button:active,
.images-dialog .download-button:active {
	scale: 0.98;
}


@media all and (max-width: 1239px) {

	 header .text-section {
		width: 100%;
	}

	 .video-section {
		flex-direction: column-reverse;
		gap: 42px
	}

	 .video-section .text-section {
		width: 100%;
	}

	 .video-section video {
		width: 100%;
	}

	 .video-row {
		margin-left: unset;
		justify-content: unset;
	}

	 .video-section iframe {
		width: 100%;
	}

	.image-examples .image {
		min-width: 200px;
	}
}

@media all and (max-width: 904px) {

	 header .header-title {
		font-size: var(--rem-4xl);
	}

	#press-hero .text-section {
		width: 100%;
		padding: 24px;
	}

	 .section-news .press-items {
		width: 100%;
	}

	 .header.download ml-heading-typewriter::part(main-wrap),
	 .header.news ml-heading-typewriter::part(main-wrap) {
		flex-direction: column;
		gap: 8px;
	}

	 .header.news ml-heading-typewriter::part(suffix) {
		white-space: unset;
	}

	#media {
		.media-images {
			flex-direction: column;
		}
	}

}

@media all and (max-width: 599px) {

	 header {
		width: 100%;
		border-radius: 0;
	}

	.section-heading {
		font-size: var(--rem-2xl);
	}

	 content {
		padding: var(--gutter-margin-s);
		width: calc(100% - var(--gutter-margin-s));
	}

	 content p {
		width: 100%;
		text-align: left;
	}

	 content.images p {
		text-align: center;
	}

	#download .block,
	#press-news .block,
	#media .block,
	#videos .block,
	#images .block,
	#questions .block {
		padding: 42px 24px;
	}

	#images {

		.image-examples {
			flex-direction: column;
			height: 300px;
		}

		.image-examples .image {
			min-width: 160px;
		}
	}

	 .video-section {
		gap: 16px;
		width: 100%;
	}

	.ml ml-contact-form .submit-row {
		flex-direction: column;
	}
}

