/*!
Theme Name: Skoleveien Nevlunghavn
Theme URI: http://underscores.me/
Author: Insite Media AS
Author URI: https://insitemedia.no
Description: Custom boilerplate for Skoleveien Nevlunghavn
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: im-skoleveien-nevlunghavn
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Skoleveien Nevlunghavn is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

:root {
	--var-white: #F4F4F5;
	--var-lightblue: #BBBCCB;
	--var-darkblue: #092938;
	--var-mainfont: "ivyora-display", serif;
	--var-breadfont : "din-2014", sans-serif;
}

html {
	font-size: 100%;
	box-sizing: border-box;
}



.button-wrapper {
    margin-top: 35px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.button-wrapper a.button {
    margin-top: 0 !important;
}

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

.boligvelger.boligvelger_taxonomy-bygg .row-equal .btn.back {
    display: none !important;
}

@media screen and (max-width: 1200px) {
    .boligvelger .flex-buttons a {
        margin-top: 0 !important;
    }
    
    .boligvelger .icon-wrapper {
        margin-bottom: 0 !important;
    }
    
    .boligvelger .more-details {
        padding: 75px 35px !important;
    }
    
    .boligvelger h2 {
        font-size: 2.25rem !important;
    }
}

.boligvelger .bolig-list-table {
    margin-bottom: 20px !important;
}

.container {
	width: 1340px;
	max-width: 1340px;
	margin: 0 auto;
}

#colophon {
	background: var(--var-darkblue);
	padding-top: 60px;
	padding-bottom: 60px;
}

.center {
	text-align: center;
}

.right {
	text-align: right;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--var-mainfont);
	font-weight: 400;
	line-height: 1.2;
	color: var(--var-darkblue);
}

h4, h5, h6 {
	text-transform: uppercase;
}

h1 {
	font-size: 55px;
}

h2 {
	font-size: 55px;
}

h6 {
	font-size: 16px;
	font-weight: 700;
}

h3 {
	font-size: 28px;
	font-weight: 500;
}

p {
	font-family: var(--var-mainfont);
	opacity: 0.8;
	color: var(--var-darkblue);
	font-size: 22px;
	line-height: 1.5;
}

#masthead {
	background: var(--var-darkblue);
	height: 80px;
}

.home #masthead {
	background: transparent;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	height: 225px;
}

.logged-in.home #masthead {
	top: 32px;
}

.custom-logo {
	max-width: 180px;
}

#mobOverlay {
	position: fixed;
	right: -200vw;
	height: 100%;
	top: 0;
	background: var(--var-darkblue);
	transition: all 0.25s;
	z-index: 999;
	width: 100%;
}

.logged-in #mobOverlay {
	top: 46px;
}

#mobOverlay ul {
	list-style: none;
	margin: 20px 0;
	padding: 0;
	display: flex;
	gap: 8px;
	flex-direction: column;
}

#mobOverlay ul li a {
	color: var(--var-white);
	font-size: 1.5rem;
	font-family: var(--var-mainfont);
	text-decoration: none;
}

#closeMenu {
	position: absolute;
	top: 35px;
	right: 25px;
}

#closeMenu .line {
	width: 36px;
	border-radius: 5px;
	height: 4px;
	position: relative;
	background: var(--var-white);
}

#closeMenu .line.left {
	transform: rotate(45deg);
}

#closeMenu .line.right {
	transform: rotate(-45deg);
	top: -4px;
}

#mobOverlay.active {
	right: 0;
}

.light {
	background: var(--var-white);
	padding-bottom: 75px;
}

.grid-container {
	display: grid;
	grid-template-columns: 75% 25%;
	grid-template-rows: 60% 40%;
	gap: 10px;
	width: 100%;
	max-width: 1200px;
	height: 500px;
}

.item-AA {
	grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.item-B {
	grid-column: 2 / 3;
    grid-row: 1 / 2;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.item-C {
	grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.intro {
	background: var(--var-white);	
}

.intro .container {
    position: relative;
    z-index: 20;
    top: -50px;
    margin-bottom: -50px;
    background: var(--var-white);
    max-width: 1365px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.intro-block {
	padding: 38px 155px;
}

#colophon p {
	color: var(--var-white);
}

#colophon p a {
	color: inherit;
}

a.button {
	font-family: var(--var-breadfont);
	font-size: 16px;
	font-weight: 400;
	text-transform: uppercase;
	background: var(--var-darkblue);
	color: var(--var-white);
	padding: 12px 30px;
	border-radius: 5px;
	text-decoration: none;
	display: inline-flex;
	margin-top: 40px;
	transition: all 0.25s;
	border: 2px solid var(--var-darkblue);
}

a.button:hover {
	cursor: pointer;
	background: transparent;
	color: var(--var-darkblue);
}

.blue {
	padding-top: 75px;
	padding-bottom: 75px;
	background: var(--var-darkblue);
	min-height: 100vh;
	height: 100vh;
}

.h100 {
	min-height: 100vh;
	height: 100vh;
}

.blue p,
.blue h2,
.blue h6 {
	color: var(--var-white);
}

.custom-progress {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-top: 75px;
}

.custom-progress .prog {
	flex: 1;
    text-align: center;
}

.custom-progress .prog p {
	line-height: 1.2;
}

.custom-progress .circle {
	width: 60px;
    height: 60px;
    border-radius: 100%;
    background: var(--var-white);
    opacity: 0.7;
    margin: 0 auto;
    position: relative;
}

.circle .line {
	position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 133px;
    height: 1px;
    background: var(--var-white);
	opacity: 0.4;
	transition: all 0.25s;
}

.custom-progress h3 {
	color: var(--var-white);
    margin-bottom: 0;
    margin-top: 15px;
	margin-bottom: 5px;
}

.custom-progress .circle.active {
	outline: 1px solid var(--var-white);
    outline-offset: 5px;
    transition: all 0.25s;
    animation: pulse-animation 2s infinite;
}

.icon-wrapper {
	display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 100px;
    gap: 68px;
}

.icon-wrapper .icon {
	max-width: calc(25% - 51.6667px);
    width: calc(25% - 51.6667px);
    flex: 1 0 25%;
}

.icon i {
	font-size: 62px;
	color: var(--var-darkblue);
}

.icon p.toptext {
	margin-top: 22px;
    font-size: 28px;
    font-weight: 500;
	opacity: 1;
	margin-bottom: 0;
}

.icon p.bottomtext {
	margin-bottom: 0;
}

.inline-gallery {
	position: relative;
    margin-bottom: 74px;
}

.inline-gallery .arrow {
	position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 67px;
    height: 67px;
    opacity: 0.75;
    z-index: 20;
    background: var(--var-white);
    border-radius: 100%;
    transition: 0.25s;
}

.inline-gallery .arrow:hover {
	cursor: pointer;
	opacity: 1;
}

.inline-gallery .arrow.arrow-left {
	left: 34px;
}

.inline-gallery .arrow.arrow-right {
	right: 34px;
}

.inline-gallery .images {
	display: flex;
    aspect-ratio: 16 / 9;
    justify-content: flex-start;
    scroll-behavior: smooth;
    gap: 0px;
    list-style: none;
    margin: 0px;
    padding: 0px;
    overflow: scroll;
	aspect-ratio: unset;
    height: 50vh;
    gap: 20px;
}

.inline-gallery .images .image {
	max-width: calc(20% + 100px);
    width: calc(20% + 100px);
    opacity: 0.25;
    flex: 1 0 20%;
    transition: 0.25s;
    border-radius: 5px;
}

.inline-gallery .images .image.active {
	opacity: 1;
}

.inline-gallery .images::-webkit-scrollbar {
	display: none;
}

.inline-gallery .images .image a div {
	border-radius: 15px;
}

.arrow i {
	font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--var-darkblue);
}

.blueauto {
	background: var(--var-darkblue);
	padding-top: 75px;
	padding-bottom: 75px;
}

.blueauto p,
.blueauto h2,
.blueauto h6 {
	color: var(--var-white);
}

.custom-progress .prog:last-child .line {
	display: none;
}

.agents {
	display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 60px;
    flex-wrap: wrap;
    gap: 35px;
}

.agent {
	text-align: left;
    max-width: calc(33.333% - 23.5px);
    flex: 1 0 33.3333%;
}

.agent a {
	color: var(--var-darkblue);
	opacity: 1;
	transition: all 0.25s;
	font-size: 1.25rem;
	text-decoration: none;
}

.agent a:hover {
	padding-left: 5px;
}

.nf-field-element textarea {
	height: 100px !important;
}

@keyframes pulse-animation {
	0% {
		box-shadow: 0 0 0 0px rgba(232, 227, 221, 0.2);
	}
	100% {
		box-shadow: 0 0 0 20px rgba(232, 227, 221, 0);
	}
}

.circle .line.done {
	opacity: 1;
}

.custom-progress .circle.coming {
	opacity: 0.4;
}

.nf-field-label label {
	display: none !important;
}

.nf-field-element input,
.nf-field-element textarea {
	background: transparent !important;
	border: none !important;
	border-bottom: 1px solid var(--var-white) !important;
	padding: 15px !important;
	box-sizing: border-box;
	color: var(--var-white) !important;
}

.nf-field-element input::placeholder,
.nf-field-element textarea::placeholder {
	font-size: 16px;
	color: var(--var-white);
	opacity: 0.5;
}

.form-text a {
	color: inherit;
}

.nf-field-element #nf-field-4 {
	background: var(--var-white) !important;
	color: var(--var-darkblue) !important;
	border: 2px solid var(--var-white) !important;
	border-radius: 5px !important;
	padding: 12px 30px !important;
	font-family: var(--var-breadfont) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	transition: all 0.25s !important;
	height: auto !important;
}

.nf-field-element #nf-field-4:hover {
	background: transparent !important;
	color: var(--var-white) !important;
	cursor: pointer;
}

#pop {
	position: fixed;
    bottom: 5%;
    right: 2%;
    width: 475px;
    background: var(--var-darkblue);
    border-radius: 5px;
    text-align: center;
    padding: 30px 50px;
    z-index: 100;
}

#pop #closePop {
	background: transparent;
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--var-white);
    font-family: var(--var-mainfont);
    border: none;
    font-size: 1.75rem;
}

#pop h2 {
	font-size: 2rem;
	color: var(--var-white);
}

#pop p {
	color: var(--var-white);
	font-size: 1rem;
}

#pop a.button {
	margin-top: 20px;
	background: var(--var-lightblue);
	color: var(--var-darkblue);
	border: 2px solid var(--var-lightblue);
}

#pop a.button:hover {
	background: transparent;
	color: var(--var-white);
}

#hero {
	position: relative;
}

#hero .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgb(0,0,0);
	background: linear-gradient(0deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.60) 100%);
}

#masthead ul {
	list-style: none;
	margin: 25px 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 35px;
	justify-content: flex-end;
}

#masthead ul li a {
	color: var(--var-white);
	font-weight: 500;
	font-family: var(--var-mainfont);
	text-decoration: none;
	font-size: 20px;
}

#masthead ul li.header-btn a {
	background: var(--var-lightblue);
	color: var(--var-darkblue);
	padding: 11px 22px;
	text-transform: uppercase;
	font-weight: 500;
	transition: all 0.25s;
	font-family: var(--var-breadfont);
	border-radius: 5px;
	font-size: 14px;
	border: 2px solid var(--var-lightblue);
	white-space: nowrap;
}

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

.boligvelger h1,
.boligvelger h2,
.boligvelger h3,
.boligvelger h4,
.boligvelger h5,
.boligvelger h6 {
	font-family: var(--var-mainfont) !important;
}

#masthead ul li.header-btn a:hover {
	cursor: pointer;
	background: var(--var-darkblue);
	color: var(--var-white);
}

.footer-logo {
	margin-top: 110px;
	margin-bottom: 40px;
}

#colophon ul {
	list-style: none;
	margin: 36px 0 20px 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

#colophon ul li a {
	text-decoration: none;
	color: var(--var-white);
	font-family: var(--var-mainfont);
	font-weight: 700;
	font-size: 20px;
}

@media screen and (max-width: 1380px) {
	.container {
		width: 90%;
		max-width: 90%;
	}
}

@media screen and (max-width: 900px) {
	.logged-in.home #masthead {
		top: 46px;
	}
}

#openMenu {
	display: none;
}

#openMenu .line {
	width: 36px;
	border-radius: 5px;
	background: var(--var-white);
	height: 4px;
	margin: 6px auto;
}

@media screen and (max-width: 1200px) {
	.col-1,
	.col-2,
	.col-3,
	.col-4,
	.col-5,
	.col-6,
	.col-7,
	.col-8,
	.col-9,
	.col-10,
	.col-11,
	.col-12 {
		flex: 1 0 100%;
		max-width: 100%;
	}

	#masthead nav {
		display: none;
	}

	#masthead {
		height: 90px;
	}

	#openMenu {
		display: block;
		float: right;
	}

	#masthead .col-4,
	#masthead .col-8 {
		flex: 1 0 50%;
		max-width: 50%;
		width: 50%;
		margin-top: auto;
		margin-bottom: auto;
	}

	#masthead .col-8 {
		text-align: right;
	}

	.custom-logo {
		max-width: 100%;
		height: auto;
		width: 100px;
	}

	.intro-block {
		padding: 38px 20px;
	}

	.inline-gallery .images {
		scroll-snap-type: x mandatory;
        scroll-padding: 0;
	}

	h1 {
		font-size: 35px;
	}

	.grid-container {
		height: 295px;
		grid-template-columns: 60% 40%;
		grid-template-rows: 60% 40%;
	}

	.custom-progress,
	.icon-wrapper {
		flex-wrap: wrap;
		gap: 0;
	}

	.custom-progress .prog,
	.icon-wrapper .icon {
		flex: 1 0 50%;
        margin-bottom: 25px;
		max-width: calc(50%);
		width: calc(50%);
	}

	.h100 {
		height: auto;
		padding-top: 75px;
		padding-bottom: 75px;
		min-height: 100vh;
	}

	.custom-progress .prog:nth-child(2) .line {
		display: none;
	}

	.inline-gallery .images .image {
		flex: 1 0 80%;
        max-width: 80%;
        width: 80%;
        opacity: 0.5;
        scroll-snap-align: center;
	}

	.agents {
		flex-wrap: wrap;
	}

	.agents .agent {
		flex: 1 0 100%;
        text-align: center;
		max-width: 100%;
	}

	#colophon ul {
		flex-wrap: wrap;
	}

	#pop {
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 50px 25px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
	}

	#page {
		overflow: hidden;
	}
}

@media screen and (max-width: 1000px) {
    .blue {
        height: auto;
    }
}

