/*
Theme Name: Onokaa
Author: Onokaa
Author URI: https://www.onokaa.com
Description: Main Theme Onokaa
Version: 1.8.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onokaa
*/

@charset "UTF-8";

/*--------------------------------------------------------------
	0. Global
--------------------------------------------------------------*/
* {box-sizing: border-box}
html, body{margin: 0; padding: 0; }

@media (max-width: 767px) {
	.grid{display: inline-block; width: 100%;}
	.grid > div{width: 100%; margin-left: 0;}
	.grid.has-gutter-xl > * + *, .grid--reverse.has-gutter-xl > * + *{ margin-left: 0;}
}

@media (min-width: 576px){
	.grid.has-gutter-xl > .item-first {
		margin-left: 0;
	}
	.grid.has-gutter-xl > .onk_img.img-right{margin-left: calc(4rem - 0.01px)};
}

section{display: inline-block; width: 100%}
a{
	outline: 0;
    transition: background-color .3s ease, border .3s ease, color .3s ease, opacity .3s ease-in-out, box-shadow .3s ease, text-shadow .3s ease;
}


.btn, button{
	display: inline-block;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
	margin-bottom: 0.5rem;
	padding: 0.75rem 2.1875rem;
	border-radius: 3px;
	-webkit-transition: all .3s ease-in-out;
	-moz-transition: all .3s ease-in-out;
	transition: all .3s ease-in-out;
	text-decoration: none;
}

.inner {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 544px) {
  .inner {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .inner {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .inner {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .inner {
    max-width: 1140px;
  }
}

.aligncenter{text-align:center;}
.alignright{float: right; margin-left: 20px;}
.alignleft{float: left; margin-right: 20px;}


/*--------------------------------------------------------------
	ACF Elements
--------------------------------------------------------------*/
.onk_section_withbg, .with_bg, .onk_section_img_txt .full_size .onk_img{ background-position: center center; background-size: cover; height: 100%; background-repeat: no-repeat;}
.slick-list, .slick-track{height: 100%;}

/* Tableau */
.onk_table table.table + .description{font-style: italic;}

/* Map */
.acf-map { width: 100%; height: 400px;}
/* fixes potential theme css conflict */
.acf-map img {max-width: inherit !important;}


#onk_google_map #direction-form{ display: inline-block; width: 100%; margin: 20px 0}
#onk_google_map #direction-map{ display: inline-block; width: 100%}

/*--------------------------------------------------------------
	Parallax
--------------------------------------------------------------*/
.has_parallax{}
.has_parallax .fixed-background{
	position: absolute;
    top: 0;
    left: 0;
    clip: rect(auto auto auto auto);
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.has_parallax .fixed-background > div{
	background-position: center top;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
}
.has_parallax .parallax-content{position: relative;}



/*--------------------------------------------------------------
	Contact Form
--------------------------------------------------------------*/
.frm_hidden{display: none;}


/*--------------------------------------------------------------
	Galerie d'images
--------------------------------------------------------------*/
#photo-gallery .lightboxgallery-gallery[data-columns]::before {
	content: '4 .column.size-1of4';
}
.lightboxgallery-gallery .column { float: left; }
.lightboxgallery-gallery .size-1of4 { width: 100%; float: left;}

.lightboxgallery-gallery {
  display: block;
  margin: 60px -10px;
}
.lightboxgallery-gallery-item {
  cursor: zoom-in;
  /*display: block;
  float: left;
  width: 25%;*/
}

@media (min-width: 768px){
	.lightboxgallery-gallery .size-1of4{ width: 50%;}
	.lightboxgallery-gallery .size-1of4:nth-child(3){clear: both;}
	/*.lightboxgallery-gallery-item {	width: 33.3333%;}*/
}

/*@media (min-width: 992px){
	.lightboxgallery-gallery .size-1of4{ width: 33.3333%;}
	.lightboxgallery-gallery .size-1of4:nth-child(3){clear: none;}
}*/
@media (min-width: 1200px){
	.lightboxgallery-gallery .size-1of4{ width: 25%;}
	.lightboxgallery-gallery .size-1of4:nth-child(3){clear: none;}
}

.lightboxgallery-gallery-item img {
  width: 100%;
}

.lightboxgallery-gallery-item > div {
  position: relative;
  margin: 10px;
}

.lightboxgallery-gallery-item > div:after {
  content: " ";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,.3) 100%);
  background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 100%);
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 100%);
  opacity: 0;
  -webkit-transition: opacity 400ms;
  transition: opacity 400ms;
}

.lightboxgallery-gallery-item:hover > div:after {
  opacity: 1;
}

.lightboxgallery-gallery-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  z-index: 2;
  opacity: 0;
  -webkit-transition: opacity 400ms;
  transition: opacity 400ms;
}

.lightboxgallery-gallery-item:hover .lightboxgallery-gallery-item-content {
  opacity: 1;
}

.lightboxgallery-gallery-item-title {
  display: block;
  color: #fff;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.2;
  font-weight: bold;
  letter-spacing: 1px;
}



/*--------------------------------------------------------------
	Footer
--------------------------------------------------------------*/
footer{padding: 40px 0; display: inline-block; width: 100%;}
