/*
 Theme Name:   Twenty seventeen Child
 Theme URI:    http://example.com/twenty-fifteen-child/
 Description:  Twenty Seventeen Child Theme
 Author:       M boks
 Author URI:   http://example.com
 Template:     twentyseventeen
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  License
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  Twentyseventeen-child
*/


/* Front page slider */
.metaslider, #metaslider_container_139, #metaslider_139 {
	height: 100%; /* to prevent the navigation from sticking to the top */
}
.metaslider .flex-control-nav {
	bottom: 100px !important;
}

/* Styling */
body.colors-dark, .colors-dark .site-content-contain, .colors-dark .navigation-top, .colors-dark .main-navigation ul {
	background: #111 !important;
}

/* Custom layout Gallery */
.wrap {
	max-width: 1280px;
}
.gallery-header-top-padding {
	padding-top: 0.5em !important;
}
.gallery-header-bottom-padding {
	padding-bottom: 0.5em !important;
}
.portfolio-item {
	background-size: auto;
	background-position:  center !important;
	padding: 0; /* this controls the white space between gallery items */
	cursor: pointer;
}
.entry-title a:hover {
	color: #fff;
}
.page-header {
	display: none;
}




/* Gallery Hover effect */
.grid-item {
  line-height: 0;
  overflow: hidden;
  position: relative;
  margin-bottom: 0em;
  font-size: 0;
}

.portfolio-title {
  padding: 0 0 1em 0;
  text-align: center;
  display: none;
}
.snip1577 {
  color: #fff;
  text-align: left;
  font-size: 16px;
  background: #000;
  padding: 0;
  margin: 0;
}

.snip1577 *,
.snip1577:before,
.snip1577:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

.snip1577:before,
.snip1577:after {
  position: absolute;
  top: 35px;
  right: 35px;
  content: '';
  background-color: #fff;
  z-index: 1;
  opacity: 0;
}

.snip1577:before {
  width: 0;
  height: 1px;
}

.snip1577:after {
  height: 0;
  width: 1px;
}

.snip1577 figcaption {
  position: absolute;
  left: 3em; /* postion of hover entry-title */
  bottom: 1em;
  padding: 0;
  display: inline-block;
  line-height: 1;
}

.snip1577 h3 {
  margin: 0;
  font-size: 2em;
  font-weight: normal;
  opacity: 0;
  display: inline-block;
  text-transform: uppercase;
  white-space: pre-wrap;
  text-overflow: ellipsis;
}

.snip1577 a {
  color: #fff;
}

.snip1577:hover {
    -webkit-filter: brightness(70%);
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    -ms-transition: all .4s ease;
    transition: all .4s ease;
}

.snip1577:hover:before,
.snip1577.hover:before,
.snip1577:hover:after,
.snip1577.hover:after {
  opacity: 1;
  -webkit-transition-delay: 0.25s;
  transition-delay: 0.25s;
}

.snip1577:hover:before,
.snip1577.hover:before {
  width: 40px;
}

.snip1577:hover:after,
.snip1577.hover:after {
  height: 40px;
}

.snip1577:hover h3,
.snip1577.hover h3 {
  opacity: 1;
  -webkit-transition-delay: 0.3s;
  transition-delay: 0.3s;
}









/* Grid CSS */

[class*='grid'],
[class*='col-'],
[class*='mobile-'],

.grid:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;	
}

[class*='col-'] {
	float: left;
  	min-height: 1px;
	padding-right: 20px; /* column-space */
}

[class*='col-'] [class*='col-']:last-child {
	padding-right: 0;
}

.grid {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
}
.grid-wide {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
}
.grid-mid {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 1em 0;
}
.grid:after {
	content: "";
	display: table;
	clear: both;
}
.grid-wide:after {
	content: "";
	display: table;
	clear: both;
}
.grid-pad {
	padding-top: 20px;
	padding-left: 20px; /* grid-space to left */
	padding-right: 0; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-20px=0 */
}

.push-right {
	float: right;
}

/* Content Columns */

.col-1-1 {
	width: 100%;
}


.col-4-12 {
	width: 33.33%;
	height: 20em; /* height on desktop, was 30em */
}
.col-4-12-frontpage {
	width: 33.33%;
	height: 20em;
}


@media handheld, only screen and (max-width: 767px) {
	.grid {
		width: 100%;
		min-width: 0;
		margin-left: 0;
		margin-right: 0;
		padding-left: 20px; /* grid-space to left */
		padding-right: 10px; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-10px=10px */
	}

	[class*='col-'] {
		width: auto;
		float: none;
		margin: 10px 0;
		padding-left: 0;
		padding-right: 10px; /* column-space */
	}

	[class*='col-'] [class*='col-'] {
		padding-right: 0;
	}

	/* Mobile Layout */

	[class*='mobile-col-'] {
		float: left;
		margin: 0 0 10px;
		padding-left: 0;
		padding-right: 10px; /* column-space */
		padding-bottom: 0;
	}

	.mobile-col-1-1 {
		width: 100%;
		height: 25em;
	}
	.hide-on-mobile {
		display: none !important;
		width: 0;
		height: 0;
	}
}
