@import url('https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700');
@import url('https://fonts.googleapis.com/css?family=Cinzel');

li, ul {
    list-style-type: none;
}

body {
    overflow: hidden;
    width: 210mm;
    height: 297mm;
    box-shadow: 3px 3px 10px gray;
    padding: 10px;
    overflow: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
}

* {
    margin: 0;
    padding: 0;
}

.bold {
    font-weight: bold;
}

.uppercase {
    text-transform: uppercase;
}

.d1 {
    border: 1px solid brown;
    grid-column-start: 2;
}
.d2 {
    border: 1px solid red;
    grid-column-start: 2;
}
.d3 {
    border: 1px solid orange;
    grid-column-start: 2;
}
.d4 {
    border: 1px solid yellow;
    grid-column-start: 2;
}

/*PRINT*/
@page {
    size: A4;
    margin: 0;
}

@media print {
    
    html, body {
        width: 210mm;
        height: 297mm;
        padding: 10px;
        border: none;
        box-shadow: none;
        overflow: hidden;
    }
    
    * {
        -webkit-print-color-adjust: exact;
    }
    
}

.content {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 3fr;
    /*grid-template-rows: 150px 200px;*/
    grid-template-rows: auto 200px;
}

#map-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    grid-row-start: 2;
}

#map-container > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#name {
    background-color: #6E395E;
    width: 100%;
    display: grid;
    align-content: center;
    position: relative;
    grid-row-start: 1;
    grid-column-start: span 2;
    height: 4rem;
}

#name > h1 {
    color: white;
    /*padding: 0 10px;*/
    padding: 0 30px;
    font-size: 22pt;
}

#flag {
    position: absolute;
    bottom: -32px;
    right: 20px;
    z-index: 1;
    width: 60px;
    height: 60px;
    border: 4px solid #6E395E;
    border-radius: 50%;
    overflow: hidden;
    background-position: center;
}

#hero-img {
    grid-column-start: 2;
    /*grid-row-start: span 2;*/
    height: 100%;
}

#hero-img > img {
    width: 100%;
    /*height: 350px;*/
    height: 200px;
    object-fit: cover;
    object-position: top;
}

.galery-container {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 3;
    grid-row-end: 7;
    margin: 15px 0 0;
    padding-bottom: 6px;
    max-height: 700px;
}

.galery {
    max-height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 2%;
    grid-row-gap: 5px;
}

.galery > #logo {
    width: 100%;
    height: 200px;
    background-color: white;
    grid-column-start: span 2;
}

#logo > img {
    padding: 10px 5% 20px;
    width: 90%;
    height: 170px;
    object-fit: contain;
}

.galery > .img {
    width: 100%;
    height: 100px;
}

.galery > .img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.galery > .img:nth-of-type(3n+1) {
    grid-column-start: span 2;
    height: 140px;
}

.galery > .img:nth-of-type(n+8) {
    display: none;
}



.text {
    margin: 0 20px;
    font-family: 'Roboto', sans-serif;
}

.info-list {
    grid-column-start: 2;
    display: grid;
    grid-template-columns: 1fr 4fr;
    grid-gap: 5px;
    font-size: 8pt;
}

.info-list > p:nth-last-of-type(2n) {
    text-transform: uppercase;
}

.info-list:not(.contact) {
    grid-row-start: 3;
    padding-top: 10px;
}

.info-list.contact {
    grid-row-start: 4;
    padding: 4px 0 10px;
    border-bottom: 1px solid #6E395E;
}

.info-text {
    grid-column-start: 2;
    grid-row-start: 5;
    grid-row-end: 6;
    padding: 10px 0;
    text-align: justify;
}

.info-text h1 {font-size: 15pt;}
.info-text h2 {font-size: 13pt;}
.info-text h3 {font-size: 11pt;}
.info-text h4 {font-size: 9pt;}

.info-text p {
    margin-top: 10px;
    font-size: 9pt;
    line-height: 10pt;
}

.footer {
    width: 95%;
    text-align: center;
    position: absolute;
    bottom: 0;
    padding: 15px;
    color: #999;
    font-size: 8pt;
}


.import-logo {
    width: 60px;
    height: 60px;
    position: absolute;
    bottom: 50px;
    right: 30px;
}

.import-logo > img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.import-logo.gaia > img {
    content:url("https://gaiagruppen.no/r/images/logo/logo-gaia.png");
}

.import-logo.chaeos > img {
    content:url("https://gaiagruppen.no/r/images/logo/logo-chaeos.png");
}