@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

@import "./vendor/fontawesome6/pro/css/fontawesome.min.css";
@import "./vendor/fontawesome6/pro/css/solid.min.css";
@import "./vendor/fontawesome6/pro/css/brands.min.css";

@import "reset.css";
@import "variable.css"; 
@import "typography.css";

@import "./layout/layout.css";
@import "./layout/header.css";
@import "./layout/footer.css";
@import "./layout/navigation.css";
@import "./layout/textmedia.css";
@import "./components/form/form.css";

/* ---------- Components ---------- */

*[data-link] { cursor: pointer; }
.button,
.readmore {
	transition: all var(--transition-speed);
}

/* ---------- icon before ---------- */

.icon-before {
	position: relative;
	padding-left: 25px;
}

.icon-before:before {
	transition: all var(--transition-speed); 
	position: absolute;
	display: inline-block;
	font-family: var(--font-awesome);
	content: "\f105"; 
	left: 0px;
}

/* ---------- button ---------- */
.button {
	display: inline-grid; 
	grid-template-columns: auto auto;
	grid-template-rows: 1fr;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	color: white;
	align-items: center;
	gap: 5px;
	padding: var(--button-padding);
	border-radius: calc(var(--button-size) / 2);
}

.button[data-color="pink"] { background: var(--color-pink); }
.button[data-color="yellow"] { background: var(--color-yellow); }
.button:hover { background: var(--color-black); }

/* ---------- readmore ---------- */

.readmore {
	display: flex;
	justify-content: center;
	align-items: center;
	width: var(--readmore-size);
	height: var(--readmore-size); 
	background: var(--color-pink);
	color: white;
	border-radius: var(--readmore-radius) 0 var(--readmore-radius) 0;
}

.readmore:hover { background: var(--color-black); }

/* ---------- date ---------- */
.date {
	width: 56px;
	font-size: 14px;
	line-height: 22px;
	color: white;
	background: var(--gradient-pink-yellow);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--offset-tiny) 0;
	border-radius: 15px 0; 
}

.date > span:nth-child(1) { font-size: 30px; font-weight: 700;}
.date > span:nth-child(2) { font-size: 18px; text-transform: uppercase; line-height: 20px; margin-top: 2px; }
.date > span:nth-child(3) { line-height: 18px; font-weight: 700; }


/* ---------- text ---------- */

*[data-text-align="center"] {
    text-align: center;
}
*[data-text-align=""],
*[data-text-align="left"] {
    text-align: left;
}

*[data-text-align="right"] {
    text-align: right;
}

.text[data-text-size="small"],
.text[data-text-size="small"] p {
	--font-size: 14px;
	--line-height: 26px;
	font-size: var(--font-size); 
	line-height: var(--line-height);
}

.text > * + *,
[data-interactive="1"] .text > * + * {
	margin-top: var(--line-height); 
}

.text h3 + p {
	margin-top: 15px; 
}

.text-large p {
	font-size: 1.4em;
	line-height: 1.4em;
	font-weight: 400;
}

.text ul li,
.text ol li {
	padding-left: var(--offset-small); 
}

.text ul li:before,
.text ol li:before {
	font-family: "Font Awesome 6 Pro";
	content: "\f105";
	color: var(--color-primary);
	position: absolute; 
	margin-left: -20px;
}

.text ol li:before { font-family: var(--font-family); font-weight: 700; }
.text ol li:nth-child(1):before { content: "1"; }
.text ol li:nth-child(2):before { content: "2"; }
.text ol li:nth-child(3):before { content: "3"; }
.text ol li:nth-child(4):before { content: "4"; }
.text ol li:nth-child(5):before { content: "5"; }
.text ol li:nth-child(6):before { content: "6"; }
.text ol li:nth-child(7):before { content: "7"; }
.text ol li:nth-child(8):before { content: "8"; }
.text ol li:nth-child(9):before { content: "9"; }
.text ol li:nth-child(10):before { content: "10"; }

.text p a,
.text ul a {
	color: var(--color-primary); 
	transition: all var(--transition-speed); 
}

.text p a:hover,
.text ul a:hover {
	color: var(--color-secondary);
} 

.image.media img,
.text figure img {
	max-width: 100%;
}

/* ---------- media portrait ---------- */
.media.image[data-type="portrait"] {
	display: grid; 
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: 1fr;
	gap: var(--offset); 
	align-items: center;
}

.media.image[data-type="portrait"][data-box-position="hide"] { grid-template-columns: 1fr; }
.media.image[data-type="portrait"][data-box-position="hide"] .box { display: none;  }

.media.image[data-type="portrait"] figure { grid-column: 2 / span 4; grid-row: 1; line-height: 0; font-size: 0; }
.media.image[data-type="portrait"] .box { grid-column: 1 /  span 3; grid-row: 1; z-index: 100;}
.media.image[data-type="portrait"][data-box-position="right"] figure { grid-column: 1 / span 4; }
.media.image[data-type="portrait"][data-box-position="right"] .box { grid-column: 3 / span 3; }

.media.image .box .standard {
	padding: var(--offset-small);
	background: linear-gradient(140deg, var(--color-yellow), var(--color-pink)); 
	color: white;
	border-radius: 30px 0 30px 0;
}

.media.image .box .standard > .icon { 
	display: flex;
	justify-content: center;
	font-size: 50px; 
}

.media.image .box .standard > .content > * + * { margin-top: var(--offset-small); }

.media.image .box .standard h4 {
	font-weight: 700;
	font-size: 30px;
	line-height: 36px;
}

.media.image .box .standard a {
	display: inline-block;
	color: white;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	font-weight: 700;
	font-size: 18px;
	transition: all var(--transition-speed); 
}

.media.image .box .standard a:hover { color: var(--color-black); }

.media.image figure img { max-width: 100%; }

/* ---------- media cube ---------- */

.media.image[data-type="cube"] {
	display: grid;
	grid-template-columns: auto var(--offset) auto;
	grid-template-rows: auto var(--offset) auto;
}

.media.image[data-type="cube"] > figure:first-child {
	grid-column: 1 / 3;
	grid-row: 1 / 3;
	z-index: 100; 
	display: flex;
	place-content: end;
}

.media.image[data-type="cube"] > figure:last-child {
	grid-column: 2 / -1;
	grid-row: 2 / -1;
	display: flex;
	place-content: start;
}

.media.image[data-type="cube"] > figure img {
	transition: all var(--transition-speed); 
	box-shadow: var(--shadow-default);
	max-width: 100%;
}

/* ---------- media query ---------- */

@media screen and (max-width: 1023px) {




	.media.image[data-type="portrait"] { 
		grid-template-columns: var(--offset) 1fr var(--offset); 
		grid-template-rows: minmax(350px, 1fr) 60px auto;
		gap: 0 ;
		align-items: start;
	}
	.media.image[data-type="portrait"] figure { 
		grid-column: 1 / -1; 
		grid-row: 1 / 3; 
		text-align: center; 
	}
	.media.image[data-type="portrait"] .box { grid-column: 2; grid-row: 2 / 4; }
}

/* ---------- General animations ---------- */
@keyframes fade-in {
	0% { opacity: 0; }
	100% { opacity: 1; }
}
@keyframes fade-out {
	0% { opacity: 1; }
	100% { opacity: 0; }
}

@keyframes bounce-in {
	0% { transform: scale(1) }
	20% { transform: scale(1.4) }
 	40% { transform: scale(.8) }
	60% { transform: scale(1.2) }
	80% { transform: scale(.9) }
	100% { transform: scale(1) }
}