/*
 Theme Name:   Milano Child - FX Airguns
 Theme URI:    http://www.rodeopark.se/
 Description:  Milano Child theme
 Author:       Rodeopark Communication AB
 Author URI:   http://www.rodeopark.se/
 Template:     milano
 Version:      1.0.0
 License:      
 License URI:  
 Tags:         
 Text Domain:  milano-child
*/

/*-------------------*/
/* ----- FONTS ---- */
/*-------------------*/

@import url("https://use.typekit.net/kyp8qvv.css");


body #site-title, body .site-title, body h1, body h2, body h3, body h4, body h5, body h6, .header--main .nav__list a {
	font-family: handel-gothic,sans-serif;
	font-weight: 500;
	font-style: normal;
}

.footer__content.text, div.site__info {
	font-size: 0.8em;
}

/*-------------------*/
/* ----- Header ---- */
/*-------------------*/

@media only screen and (min-width: 1024px) {
	/* Hide on scroll */
	header.header--main {
	  height: 55px;
	  position: fixed;
	  top: 0;
	  transition: top 0.4s ease-in-out;
	  width: 100%;
	  z-index: 2000;
	}

	body div.site__header .site__name-container {
   	 	width: 200px !important;
	}

	header.header--main.nav-up {
	  top: -80px!important;
	}

	div.site__header {
	    margin-bottom: 0.2rem;
	}

	/* --- HEADER --- */ 
	header#header--main.nav-down {
   		background: #000;
	}

	header#header--main, header#header--main nav.nav--all {
    	background-color: transparent;
	}

	header#header--main {
		padding: 0.75em 2em;
	}

	.nav--all {
	  width: 70%;
	  float: right;
	}

	nav.nav--all .row {
		margin: 0rem;
	}

	#site__header {
	  width: 15%;
	  float: left;
	}

	.nav--all .nav__list {
	  float: right;
	}

}
	/* Social */ 
	span.fa.fa-facebook-official.fa-fw {
    	background: #333;
	}

	span.fa.fa-youtube-play.fa-fw {
    	background: #555;
	}

/*-------------------*/
/* ----- Global -----*/
/*-------------------*/

	/* CAROUSEL */ 

	div.modules div.carousel:first-of-type .cell__content {
		top: 50%;
	}

	div.modules div.carousel .cell__content {
	    top: 40px;
	}

	/* Pilar bildspel */ 

	div.modules .carousel:first-of-type .flickity-prev-next-button {
	    top: 50%;
	}

	div.modules .flickity-prev-next-button .arrow {
		fill: #1a1a1a;
	}

	body.page-id-2 div.modules .carousel .flickity-prev-next-button .arrow {
		fill: #fff;
	}

	body.page-id-2 div.modules .carousel .flickity-prev-next-button {
	    width: 3rem;
	    height: 3rem;
	}

	div.modules .carousel .flickity-page-dots .dot {
	    border: 1px solid #888888;
		width: 0.8rem;
	    height: 0.8rem;
	}

	div.modules .carousel .flickity-page-dots .dot.is-selected {
	    background: #888888;
	}

	div.modules .carousel .flickity-prev-next-button {
	    top: 40px;
	}

	/* --- TEASERS START --- */

	body.page-id-2 .row.gutter {
	    max-width: 100%;
	    width: 100%;
	    margin: 0%;
	    padding: 0%;
	}

	body.page-id-2 .teaser.boxed.col--6-12 {
	    margin: 0%;
	    padding: 0%;
	    width: 50%;
	    background-color: transparent!important;
	}

	body.page-id-2 .module {
		padding: 0%;
	}

	body.page-id-2 .teaser__sub-heading {
		font-size: 4.8rem;
		text-align: center; 
		width: 100%;
		z-index: 200;
		position: absolute;
	    top: 50%;
	  	-ms-transform: translateY(-50%);
	  	transform: translateY(-50%);
		color: rgba(999,999,999,0.7);
	}

	body.page-id-2 .teaser.boxed.col--6-12 .teaser__content, body.page-id-2 .teaser__content {
		padding: 0;
		margin-bottom: -1px;
	}

	.teaser.col--6-12.boxed:hover {
    	transition: 0.5s;
	}

	.teaser.col--6-12.boxed:hover {
    	opacity: 0.8;
	}

	/* PRODUCTS */ 

	div.modules .carousel .cell__heading {
		color: rgba(999,999,999,0.7)!important;
    	font-size: 5.5rem;
	  	text-shadow: #000 8px 4px 50px;
	}
	
	a.product-link div.product p, div.teaser:hover div.product p  {
		transition: 0.6s;
	    -webkit-transition: 0.6s;
	}

	a.product-link:hover div.product p, 
	div.teaser:hover div.product p {
	 	margin-left: 15px;
	}


/*-------------------*/
/* ----- Custom Select ---- */
/*-------------------*/

.custom-select-wrapper {
	position: relative;
	height: 50px;
}

.custom-select {
	line-height: 1;
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	right: 0;
	border-radius: 5px;
	overflow: hidden;
	cursor: pointer;
}

.custom-select:hover {
	box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.custom-select-option.current {
	font-weight: bold;
}

.custom-select-option {
	padding: 15px 20px;
	border-bottom: 1px solid #e4e4e4;
}

.custom-select-dropdown .custom-select-option:last-child {
	border: 0;
}

.custom-select-option.selected {
	background: #000 url('/wp-content/uploads/2019/03/footer-bkg.jpg') center center;
	color: #fff;
	border-radius: 5px;
}

.custom-select-option.selected:after {
	content: '\f107';
	display: inline-block;
	float: right;
	font-family: 'FontAwesome';
}

.custom-select-dropdown .custom-select-option:hover {
	background: #fff;
}

.custom-select-dropdown {
	background: #f1ede8;
	display: none;
}


body .text .support-download-files {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.support-download-description {
	font-size: 14px;
	font-style: italic;
	display: none;
}

.support-download-files li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding: 6px 0;
}

.support-download-files li:before {
	content: '\f1c1';
	display: inline-block;
	margin-right: 5px;
	font-family: 'FontAwesome';
}

#loginform label {
	display: block;
	font-size: 1em;
}

#loginform input[type="text"],
#loginform input[type="password"] {
	width: 250px;
}

#loginform input[type="submit"] {
	font-size: 1.2em;
}

#loginform p {
	margin-bottom: 20px;
}

.af-navigation {
	margin-top: 20px;
}

.af-navigation a {
	font-size: 1.2em;
	padding: 8px 0;
	display: block;
	line-height: 1;
}

.product_search input[type="submit"] {
	font-size: 0.9em;
}

.product_search_results_list {
	list-style-type: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.product_search_results_list strong {
	display: inline-block;
	width: 155px;
}

.product_search_results {
	margin-top: 30px;
}

.media_bank_breadcrumbs {
	padding: 15px 0;
	margin: 15px 0;
	border-top: 1px solid #e4e4e4;
	border-bottom: 1px solid #e4e4e4;
	font-size: 18px;
}

.media_bank {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: repeat(5, 1fr);
	text-align: center;
	font-size: 13px;
}

.media_bank .item {
	border: 1px solid transparent;
	border-radius: 8px;
}

.media_bank .item:hover {
	border-color: #d3d3d3;
}

.media_bank .item a {
	display: block;
	padding: 10px 5px;
	line-height: 1.2;
}

.media_bank .item.no-thumbnail a:before {
	content: '';
	display: block;
	height: 90px;
	background: url('/wp-content/themes/milano-child/img/folder.png') top center no-repeat;
	background-size: auto 100%;
	margin-bottom: 10px;
}

.media_bank .item.files.no-thumbnail a:before {
	background-image: url('/wp-content/themes/milano-child/img/file.png');
}

.media_bank .item.files.no-thumbnail.pdf a:before {
	background-image: url('/wp-content/themes/milano-child/img/file_pdf.png');
}

.media_bank .item.files.no-thumbnail.eps a:before {
	background-image: url('/wp-content/themes/milano-child/img/file_eps.png');
}

.media_bank .item.files.no-thumbnail.ai a:before {
	background-image: url('/wp-content/themes/milano-child/img/file_ai.png');
}

.media_bank .item.files.no-thumbnail.zip a:before {
	background-image: url('/wp-content/themes/milano-child/img/file_zip.png');
}

.media_bank .item.files.has-thumbnail .thumbnail {
	height: 90px;
	margin-bottom: 10px;
}

.media_bank .item.files.has-thumbnail .thumbnail img {
	object-fit: contain;
	object-position: center;
	height: 100%;
	width: 100%;
}

/*.media_bank .item.files.has-thumbnail .thumbnail img {
	display: block;
	width: auto;
	height: 90px;
	margin: 0 auto 10px auto;
}*/


/*--------------------*/
/* ----- Footer ------ */ 
/*--------------------*/




	.footer--main .nav, .footer__contact, .footer .list--social-media   {
		display: none;
	} 

	.col--3-12:nth-child(4n) {
	    width: 100%;
	}

	div.footer--main {
		background-image: url('https://fxairguns.com/wp-content/uploads/2019/03/footer-bkg.jpg');
		background-size: contain;
	}

/*-----------------------------*/
/* ----- MEDIA QUERIES ------ */
/*---------------------------*/

@media only screen and (min-width: 1024px) {
	
	button.flickity-prev-next-button {
		width: 7rem;
	}

	.flickity-prev-next-button.next:before {
		content:"Next";
		color: #888888;
		font-weight: 600; 
		position: relative;
	    left: -30px;
	}

	.flickity-prev-next-button.previous:after {
		content:"Previous";
		color: #888888;
		font-weight: 600; 
		position: relative;
	  	left: 40px;
	}

	div.modules div.carousel:first-of-type .flickity-prev-next-button:before, div.modules div.carousel:first-of-type .flickity-prev-next-button:after {
		content: "";
	}
}

/* MAX 1400px */ 
@media only screen and (max-width: 1400px) {
	
	body.page-id-2 .col--6-12 .teaser__sub-heading {
	  font-size: 3.5rem;
	}
		
	div.modules .carousel .cell__heading {
	   font-size: 4.5rem;
	}
}

/* MAX 1024px */ 
@media only screen and (max-width: 1024px) {

	body.page-template-template-modules {
		background: url('http://fxairguns.rodeowp.se/wp-content/uploads/2018/12/Bakgrund_1024x683.jpg');
		background-repeat: repeat-y;
	}
	
	body.page-id-2 .col--6-12 .teaser__sub-heading {
  		font-size: 2.7rem;
	}
	
	div.modules .carousel .cell__heading {
	   font-size: 3.5rem;
	}

	/* Hide on scroll */
	header.header--main {
	  height: 60px;
	  position: fixed;
	  top: 0;
	  left: 0;
	  transition: top 0.4s ease-in-out;
	  width: 100%;
	  z-index: 2000;
	}

	header.nav-up {
	  top: -60px;
	}

	a#site__name.site__name.image-replacement {
	  max-width: 70%;
	}

	ul.list--social-media.list {
		display: none;
	}

}

/* MAX 840px */ 
@media only screen and (max-width: 840px) {
	
	.carousel div.cell.wide {
		padding-bottom: 370px!important;
	}
		
	div.modules .carousel .cell__heading {
	    font-size: 2rem;
	}
		
	body.page-id-2 .col--6-12 .teaser__sub-heading {
	  font-size: 2rem;
	}
	
}

/* MIN 768px */ 
@media only screen and (min-width: 768px) {

	div#footer--bottom div.site__info {
	    float: none;
		margin: 0 auto;
		text-align: center;
	}
	
}

/* MAX 568px */ 
@media only screen and (max-width: 568px) {
	
	.cell__heading {
	   font-size: 2rem;
	}
		
	body.page-id-2 .modules:first-of-type .cell.wide {
		padding-bottom: 70vh!important;
	}


	body.page-id-2 .teaser.col--6-12.boxed.no-icon.no-image.has-text {
		width: 100%;
	}
		
	.carousel div.cell.wide {
		padding-bottom: 270px!important;
	}
		
	body.page-id-2 .col--6-12 .teaser__sub-heading {
	  font-size: 2.2rem;
	}
	
}