/* ==========================================================
   GRUNDLÆGGENDE STYLES
   Nulstilling, layout-gitter og projektsider.
   Farver ligger i colors.css, skrifter i fonts.css,
   og hver sektion har sin egen fil (header.css, hero.css osv.).
   ========================================================== */


/* ---------- Nulstilling ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
	:root {
		scroll-behavior: smooth;
	}
}

body {
	position: relative;
	margin: 0;
	line-height: 1.6;
	color: var(--ink);
	background-color: var(--bg);
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}

h1, .h1,
h2, h3, h4 {
	margin-top: 0;
	margin-bottom: 0.5rem;
	line-height: 1.2;
}

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

ul {
	margin-top: 0;
	margin-bottom: 1rem;
	padding-left: 2rem;
}

blockquote {
	margin: 0 0 1rem;
}

a {
	color: var(--ink);
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}


/* ---------- Overskriftsstørrelser ---------- */

h1, .h1 {
	font-size: 30px;
	color: var(--ink);
}

h2 { font-size: 24px; }
h3 { font-size: 20px; }

@media (min-width: 576px) {
	h1, .h1 { font-size: 32px; }
	h2 { font-size: 26px; }
	h3 { font-size: 22px; }
}

@media (min-width: 768px) {
	h1, .h1 { font-size: 36px; }
	h2 { font-size: 28px; }
}

@media (min-width: 992px) {
	h1, .h1 { font-size: 40px; }
	h2 { font-size: 30px; }
	h3 { font-size: 24px; }
}

@media (min-width: 1200px) {
	h1, .h1 { font-size: 48px; }
}


/* ---------- Side-layout (footer i bunden) ---------- */

.d-flex        { display: flex !important; }
.flex-column   { flex-direction: column !important; }
.h-100         { height: 100% !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.mt-auto       { margin-top: auto !important; }

.wrapper {
	overflow: hidden;
}


/* ---------- Container ---------- */

.container {
	width: 100%;
	max-width: 1100px;
	margin-right: auto;
	margin-left: auto;
	padding-right: 20px;
	padding-left: 20px;
}

@media (min-width: 576px) {
	.container {
		padding-right: 40px;
		padding-left: 40px;
	}
}


/* ---------- Gitter (portfolio) ---------- */

.row {
	display: flex;
	flex-wrap: wrap;
}

.row > * {
	flex-shrink: 0;
	width: 100%;
	max-width: 100%;
}

.col-6 {
	flex: 0 0 auto;
	width: 50%;
}

@media (min-width: 768px) {
	.col-md-4 {
		flex: 0 0 auto;
		width: 33.3333%;
	}
}

/* 10px mellemrum mellem kolonnerne */
.row.gutter10 {
	margin-right: -5px;
	margin-left: -5px;
}

.row.gutter10 > [class*="col-"] {
	padding-right: 5px;
	padding-left: 5px;
}


/* ---------- Sektioner på forsiden ---------- */

.section {
	padding-bottom: 70px;
	background-color: var(--bg);
}

.frontpagehero {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: var(--bg);
}

.portfoliosection {
	padding-top: 70px;
}

.portfolio-item {
	position: relative;
	display: block;
	margin-bottom: 10px;
}


/* ---------- Projektsider ---------- */

.project-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 70vh;
	margin-bottom: 40px;
	padding-top: 80px;
	padding-bottom: 40px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	color: var(--on-image);
}

@media (min-width: 576px) {
	.project-hero {
		min-height: 80vh;
		margin-bottom: 55px;
	}
}

@media (min-width: 768px) {
	.project-hero {
		margin-bottom: 70px;
	}
}

.project-hero .project-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0.85;
}

.project-hero .project-hero-content {
	position: relative;
	z-index: 2;
	width: 650px;
	max-width: 85vw;
	text-align: center;
}

.project-hero .project-hero-text a {
	color: var(--on-image);
}

.project-image {
	margin-bottom: 40px;
}

@media (min-width: 576px) {
	.project-image {
		margin-bottom: 55px;
	}
}

@media (min-width: 768px) {
	.project-image {
		margin-bottom: 70px;
	}
}


/* ---------- Footer (farver i footer.css) ---------- */

.footer {
	padding: 30px 0;
	text-align: center;
}
