/* -------------------------------- 

Primary style

-------------------------------- */
html * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/*.tours-gallery-container {
  font-size: 100%;
  font-family: "Jura", sans-serif;
  color: black;
  background-color: #ebe9d7;
}

a {
  color: black;
  
}*/

img {
  max-width: 100%;
}

/* -------------------------------- 

Modules - reusable parts of our design

-------------------------------- */
.tours-container {
  width: 90%;
  max-width: 1350px;
  margin: 0 auto;
}
.tours-container::after {
  /* clearfix */
  content: '';
  display: table;
  clear: both;
}

/* -------------------------------- 

Main components 

-------------------------------- */
.tours-gallery-container {
  margin: 1em auto;
}
@media only screen and (min-width: 1200px) {
  .tours-gallery-container {
    margin: 1em auto;
  }
}

.tours-filters {
  position: relative;
  height: 40px;
  width: 170px;
  margin: 0 auto;
  cursor: pointer;
  z-index: 10;
}
.tours-filters::after {
  /* small arrow icon */
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  bottom: auto;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("../img/icon-small-arrow.svg") no-repeat center center;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  pointer-events: none;
}
.tours-filters ul {
  position: absolute;
  top: 0;
  left: 0;
  background: #FFF;
  border-radius: 0.25em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.tours-filters li {
  display: none;
}
.tours-filters li:first-child {
  display: block;
  /* this way the placehodler is alway visible */
}
.tours-filters li:last-child a {
  border-radius: 0 0 .25em .25em;
}
.tours-filters a {
  display: block;
  height: 40px;
  width: 160px;
  line-height: 40px;
 /* padding-left: 14px;*/
  text-decoration: none;
  color:black;
  /*font-size: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;*/
}
.tours-filters a.f-selected {
  background: #da0006;
  color: #FFF;
}
.no-touch .tours-filters a.f-selected:hover {
  background: #da0006;
}
.tours-filters.is-open::after {
  -webkit-transform: translateY(-50%) rotate(-180deg);
  -moz-transform: translateY(-50%) rotate(-180deg);
  -ms-transform: translateY(-50%) rotate(-180deg);
  -o-transform: translateY(-50%) rotate(-180deg);
  transform: translateY(-50%) rotate(-180deg);
  /* small arrow rotation */
}
.tours-filters.is-open ul li {
  display: block;
}
.tours-filters.is-open .placeholder a {
  opacity: .4;
  /* reduces the opacity of the placeholder on mobile when the menu is open */
}
@media only screen and (min-width: 800px) {
  #divider {display:none;}
  
  .tours-filters {
    height: auto;
    width: auto;
  }
  
  .tours-filters a{
	color:white;
  }
  
  .tours-filters::after {
    display: none;
  }
  .tours-filters ul {
    background: transparent;
    position: static;
    box-shadow: none;
    text-align: center;
  }
  .tours-filters li {
    display: inline-block;
    margin: 0 .4em;
  }
  .tours-filters li:first-child {
    display: inline-block;
  }
  .tours-filters li.placeholder {
    display: none !important;
  }
  .tours-filters li.placeholder a {
    display: none;
  }
  .tours-filters a {
    display: inline-block;
    padding: 1em 2em;
    height: auto;
    width: auto;
    line-height: 1;
    /*border-radius: 50em !important;*/
	border-radius: 5px !important;
  }
  .no-touch .tours-filters a:hover {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  }
  .tours-filters a.f-selected:hover {
    box-shadow: none;
    /* removes the hover effect from the selected item */
  }
  .tours-filters.is-open ul li {
    display: inline-block;
  }
}

/* -------------------------------- 

xgallery 

-------------------------------- */
.tours-gallery {
  margin-top: 2em;
  position: relative;
  z-index: 5;
}
.tours-gallery > li {
  position: relative;
  margin-bottom: 1em;
}

.tours-gallery .tours-item-wrapper > li a{
	color:white;
}
.tours-gallery .tours-item-wrapper > li p{
	line-height:1.2;
}
.tours-gallery .tours-item-wrapper {
  /* this is the item that rotates */
  position: relative;
}
.touch .tours-gallery .tours-item-wrapper {
  /* fix a bug on IOS8 - rotating elements dissapear*/
  -webkit-perspective: 800px;
  -moz-perspective: 800px;
  perspective: 800px;
}
.tours-gallery .tours-item-wrapper.is-switched .is-visible {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
  -webkit-animation: cd-rotate 0.5s;
  -moz-animation: cd-rotate 0.5s;
  animation: cd-rotate 0.5s;
}
.tours-gallery .tours-item-wrapper.is-switched .is-hidden {
  -webkit-transform: rotateY(0);
  -moz-transform: rotateY(0);
  -ms-transform: rotateY(0);
  -o-transform: rotateY(0);
  transform: rotateY(0);
  -webkit-animation: cd-rotate-inverse 0.5s;
  -moz-animation: cd-rotate-inverse 0.5s;
  animation: cd-rotate-inverse 0.5s;
  opacity: 0;
}
.tours-gallery .tours-item-wrapper.is-switched .is-selected {
  opacity: 1;
}
.tours-gallery .tours-item-wrapper > li {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 0.25em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border:1px solid white;
}
.tours-gallery .tours-item-wrapper > li img {
  display: block;
  width: 100%;
  /*border-radius: 0.25em;*/
  border-radius: 0.25em 0.25em 0 0;
}
.tours-gallery li.is-visible {
  /* the front item, visible by default */
  position: relative;
  z-index: 5;
}
.tours-gallery li.is-hidden {
  /* the hidden items, right behind the front one */
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
.tours-gallery li.is-selected {
  /* the next item that will be visible */
  z-index: 3 !important;
}
@media only screen and (min-width: 480px) {
  .tours-gallery > li {
    width: 48%;
    float: left;
    margin-right: 4%;
    margin-bottom: 1.2em;
  }
  .tours-gallery > li:nth-of-type(2n) {
    margin-right: 0;
  }
}
/*@media only screen and (min-width: 768px) {
  .tours-gallery > li {
    width: 22%;
    float: left;
  }
  .tours-gallery > li:nth-of-type(2n) {
    margin-right: 4%;
  }
  .tours-gallery > li:nth-of-type(4n) {
    margin-right: 0;
  }
}*/
@media only screen and (min-width: 768px) {
  .tours-gallery > li {
    width: 30%;
    float: left;
	margin-right: 4%;
  }
  .tours-gallery > li:nth-of-type(2n) {
    margin-right: 4%;
  }
  .tours-gallery > li:nth-of-type(3n) {
    margin-right: 0;
  }
}

/*@media only screen and (min-width: 768px) {
  .tours-gallery > li {
    width: 22%;
    float: left;
  }
  .tours-gallery > li:nth-of-type(2n) {
    margin-right: 4%;
  }
  .tours-gallery > li:nth-of-type(4n) {
    margin-right: 0;
  }
}*/

@media only screen and (min-width: 1200px) {
  .tours-gallery {
    margin-top: 2.5em;
	
  }
  .tours-gallery > li {
    width: 22%;
    float: left;
	margin-right: 4%;
  }
  .tours-gallery > li:nth-of-type(2n) {
    margin-right: 4%;
  }
  .tours-gallery > li:nth-of-type(3n) {
    margin-right: 4%;
  }  
  .tours-gallery > li:nth-of-type(4n) {
    margin-right: 0;
  }  
  
}

/* -------------------------------- 

xkeyframes 

-------------------------------- */
@-webkit-keyframes cd-rotate {
  0% {
    -webkit-transform: perspective(800px) rotateY(0);
  }
  70% {
    -webkit-transform: perspective(800px) rotateY(200deg);
    /* this creates the bounce effect */
  }
  100% {
    -webkit-transform: perspective(800px) rotateY(180deg);
  }
}
@-moz-keyframes cd-rotate {
  0% {
    -moz-transform: perspective(800px) rotateY(0);
  }
  70% {
    -moz-transform: perspective(800px) rotateY(200deg);
    /* this creates the bounce effect */
  }
  100% {
    -moz-transform: perspective(800px) rotateY(180deg);
  }
}
@keyframes cd-rotate {
  0% {
    -webkit-transform: perspective(800px) rotateY(0);
    -moz-transform: perspective(800px) rotateY(0);
    -ms-transform: perspective(800px) rotateY(0);
    -o-transform: perspective(800px) rotateY(0);
    transform: perspective(800px) rotateY(0);
  }
  70% {
    -webkit-transform: perspective(800px) rotateY(200deg);
    -moz-transform: perspective(800px) rotateY(200deg);
    -ms-transform: perspective(800px) rotateY(200deg);
    -o-transform: perspective(800px) rotateY(200deg);
    transform: perspective(800px) rotateY(200deg);
    /* this creates the bounce effect */
  }
  100% {
    -webkit-transform: perspective(800px) rotateY(180deg);
    -moz-transform: perspective(800px) rotateY(180deg);
    -ms-transform: perspective(800px) rotateY(180deg);
    -o-transform: perspective(800px) rotateY(180deg);
    transform: perspective(800px) rotateY(180deg);
  }
}
@-webkit-keyframes cd-rotate-inverse {
  0% {
    -webkit-transform: perspective(800px) rotateY(-180deg);
  }
  70% {
    -webkit-transform: perspective(800px) rotateY(20deg);
    /* this creates the bounce effect */
  }
  100% {
    -webkit-transform: perspective(800px) rotateY(0);
  }
}
@-moz-keyframes cd-rotate-inverse {
  0% {
    -moz-transform: perspective(800px) rotateY(-180deg);
  }
  70% {
    -moz-transform: perspective(800px) rotateY(20deg);
    /* this creates the bounce effect */
  }
  100% {
    -moz-transform: perspective(800px) rotateY(0);
  }
}
@keyframes cd-rotate-inverse {
  0% {
    -webkit-transform: perspective(800px) rotateY(-180deg);
    -moz-transform: perspective(800px) rotateY(-180deg);
    -ms-transform: perspective(800px) rotateY(-180deg);
    -o-transform: perspective(800px) rotateY(-180deg);
    transform: perspective(800px) rotateY(-180deg);
  }
  70% {
    -webkit-transform: perspective(800px) rotateY(20deg);
    -moz-transform: perspective(800px) rotateY(20deg);
    -ms-transform: perspective(800px) rotateY(20deg);
    -o-transform: perspective(800px) rotateY(20deg);
    transform: perspective(800px) rotateY(20deg);
    /* this creates the bounce effect */
  }
  100% {
    -webkit-transform: perspective(800px) rotateY(0);
    -moz-transform: perspective(800px) rotateY(0);
    -ms-transform: perspective(800px) rotateY(0);
    -o-transform: perspective(800px) rotateY(0);
    transform: perspective(800px) rotateY(0);
  }
}
.tours-item-wrapper p {
	padding:10px;text-align:center;
	background:#222222;
	
	border-radius:0 0 0.25em 0.25em;
}
.tours-item-wrapper .main-cards:hover img{
  -webkit-filter: sepia(100%);
  filter: sepia(100%);
}
.tours-item-wrapper .main-cards:hover{
   border:1px solid #da0006;
}
a {outline:none;
text-decoration: none !important;}