/**
Theme Name: Sportsvogn
Author: Senson AS - Jarle Dahl Bergersen
Author URI: https://senson.no
Description: Child theme of Astra
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sportsvogn
Template: astra
*/

/* Terminliste */
body.single-terminliste h1.title.entry-title {
    margin-top: 1em;
}

.post-type-archive-terminliste .ast-archive-description,
.tax-terminliste_kategori .ast-archive-description {
    margin-bottom: 0;
    padding-bottom: 0;
} 
    
.termininfo {
    margin-bottom: 1em;
}

.forside-termin h2,
.forside-diskusjon h2,
.forside-galleri h2,
.ast-archive-description h1.ast-archive-title,
.termin-tittel h1,
h2.termin-tittel {
	margin-bottom: 1em;
	padding-bottom: .5em;
	border-bottom: 5px solid #61bbf0;
	font: normal 24px/1.2em 'Oswald', arial, sans-serif;
	color: #898989;
}

.ast-archive-description p {
    display: none;
}

html .ast-archive-description {
    border-bottom: 0;
}

.entry-content .forside-termin h2 a,
.entry-content .forside-galleri h2 a {
	color: #898989;
	text-decoration: none;
}

.entry-content .forside-termin h2 a:hover,
.entry-content .forside-galleri h2 a:hover {
	text-decoration: underline;
}


h2.termin-tittel.terminliste-kategori {
    margin-top: 1em;
}

.terminlistehovedbilde {
    margin-bottom: 2em;
}

.termin-bilde {
	position: relative;
	}

.termin-datoikon {
	background: rgb(0, 0, 0);
	background: rgba(0, 0, 0, 0.4);
	padding: 10px;
	font-size: 20px;
	font-family: Oswald, Helvetica, Arial, sans-serif;
	line-height: 1em;
}

.termin-datoikon {
	width: 45px;
	color: white;
	position: absolute;
	top: 5px;
	z-index: 9999;
}

.home .termin-datoikon {
	top: 0;
}

.termin-datoikon-mnd {
	font-size: 14px;
	text-transform: uppercase;
	text-align: center;
}

.termin-datoikon-dag {
	font-size: 20px;
	text-align: center;
}

/* Diskusjon */
.termin, .diskusjon {
	margin-bottom: 1em;
	padding-bottom: 1em;
	border-bottom: 1px solid #ccc;
}


/* gravity forms */
html .gform_wrapper ul li.gfield {
  margin-bottom: 5px;
}

.gform_wrapper input[type=text],
.gform_wrapper textarea {
	background: #f0f0f0;
	}


html .ngg-gallery-thumbnail a {
    margin: 0;
}

.forside-galleri {
    margin-bottom: 2em;
}


/* Galleri - forside */
.forside-nyligegalleri .ngg-galleryoverview {
    margin-top: 0;
}

/* Only desktop */
@media screen and (min-width: 768px) {
	
.post-type-archive .jet-listing-dynamic-image img,
.tax-terminliste_kategori .jet-listing-dynamic-image img,
.terminliste .jet-listing-dynamic-image img {
    height: 190px;
    width: 360px;
    object-fit: cover;
}	
	
.bildetekst span,
.termin-datoikon {
	background: rgb(0, 0, 0);
	background: rgba(0, 0, 0, 0.4);
	padding: 10px;
	font-size: 20px;
}

.home .termin-bilde {
    width: 60px;
}	
	
html a.bildelink {
	color: white;
}
	
/* Nextgen Gallery */
html .ngg-gallery-thumbnail-box {
    float: left;
    max-width: 33%!important;
}

html .home .ngg-gallery-thumbnail-box {
    max-width: 20% !important;
}	
	
/* Forsidegalleri */
.forside-galleri h2 {
	margin-bottom: .5em;
}

.forside-gallerier h3 {
	padding: .5em 0;
}

.forside-gallerier {
	background: #f5f5f5;
	padding: 0 20px 20px 20px;
	}

.forside-galleri1,
.forside-galleri2,
.forside-galleri3,
.forside-galleri4,
.forside-galleri5 {
	max-width: 20%;
	float: left;
}

.gbilde {
    margin: 5px;
}

.gtekst {
    margin: 0 5px;	
}
	
/* Imported images - top align right */
img.thumbnsk {
	width: 300px;
	margin-left: 1em;
	margin-bottom: 1em;
}
	
/* Terminliste */
.termin {
	display: table;
}

.termin-bilde, .termininformasjon {
	display: table-cell;
	vertical-align: top;
}

body.single-terminliste h1.title.entry-title,
body.single-terminliste .entry {
	width: 750px;
	margin-left: auto;
	margin-right: auto;
	}

.termin-bilde {
	width: 150px;
	height: 100px;
	float: left;
	overflow: hidden;
	position: relative;
	margin-right: 1em;
}

.termin-bilde img {
	width: auto;
	height: auto;
}
	
}

/* mobile */
@media screen and (max-width: 767px) {

	
img.custom-logo {
    width: 100%;
}	
	
html #portfolio .group.portfolio-img img,
.termin-bilde img,
.gbilde img {
	width: 100%;
	height: auto;
}

.termin-excerpt {
	margin-bottom: 2em;
}

.home .termin-datoikon {
    width: 25px;
    float: left;
    margin-right: .5em;
    margin-bottom: .5em;
    position: relative;
}	
	
.forside-gallerier {
	margin-top: 2em;
}

.forside-gallerier h3 {
	margin: 1em 0;
}

.forside-galleri1,
.forside-galleri2,
.forside-galleri3,
.forside-galleri4 {
	margin-bottom: 1em;
}	
	
}
