/* -------------------------------------------------------------------
General Styles - FlexSlider
------------------------------------------------------------------- */

.flex-direction-nav a,
.flex-control-nav > li > a {
	-webkit-transition: all 0.3s ease-in-out 0s;
	   -moz-transition: all 0.3s ease-in-out 0s;
		-ms-transition: all 0.3s ease-in-out 0s;
		 -o-transition: all 0.3s ease-in-out 0s;
			transition: all 0.3s ease-in-out 0s;
}

.flex-direction-nav a {
	position: absolute;
	display: block;
	height: 100%;
	width: 50%;
	top: 0;
	z-index: 10;
	overflow: hidden;
	opacity: 0;
	margin:0;
	  pointer-events: none;
	
}

.flex-direction-nav .flex-prev {
	opacity: 0;
	left: 0;
	cursor: url(../images/prev-light.png), e-resize;
}

.flex-direction-nav .flex-next {
	opacity: 0;
	right: 0;
	cursor: url(../images/next-light.png), e-resize;
}

.flex-control-nav {
	position: absolute;
	width: auto;
	left: 50%;
	bottom: 20px;
	z-index: 11;
	text-align: center;
	-webkit-transform: translateX(-50%);
	   -moz-transform: translateX(-50%);
	    -ms-transform: translateX(-50%);
	     -o-transform: translateX(-50%);
	        transform: translateX(-50%);

}

.flex-control-nav > li {
	display: inline-block;
	margin: 5px 3px;
}

.flex-control-nav > li > a {
	background: transparent;
	border: 1px solid #fff;
	display: block;
	height: 6px;
	width: 6px;
	-webkit-border-radius: 6px;
	   -moz-border-radius: 6px;
	        border-radius: 6px;
}

.flex-control-nav > li > a:hover,
.flex-control-nav > li > a.flex-active {
	background: #fff;
}

/* -------------------------------------------------------------------
Hero Slider
------------------------------------------------------------------- */

.hero-slider {
	margin: 0!important;
  background-size: cover;
  background-position: center;	
}

.hero-slider .slides > li {
	display: none;
	-webkit-backface-visibility: hidden;
}

.hero-slider,
.hero-slider .flex-viewport {
	height: 100% !important;
	width: 100%;
	padding: 0;
	margin: 0;
}

.hero-slider .slides {
	height: 100% !important;
	-webkit-transition-delay: 1s;
	   -moz-transition-delay: 1s;
	        transition-delay: 1s;
}

.hero-slider .flex-direction-nav a {
	width: 15%;
}

.hero-slider .slides li {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	height: 100% !important;
	width: 100%;
	padding: 0;
	margin: 0;
	-webkit-background-size: cover;
	   -moz-background-size: cover;
	     -o-background-size: cover;
}

/* Caption */

.hs-caption {
	position: relative;
	display: table;
	height: 100%;
	width: 70%;
	margin: 0 auto;
}

.hs-caption {
	position: relative;
	display: table;
	height: 100%;
	width: 100%;
	margin: 0 auto;
}

.caption-content {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
}


/* -------------------------------------------------------------------
General Styles - Owlcarousel
------------------------------------------------------------------- */

.owl-controls {
	margin-top: 40px;
}

.owl-pagination div {
	display: inline-block;
}

.owl-controls .owl-page span {
	background: transparent;
	border: 1px solid #111;
	display: block;
	height: 6px;
	width: 6px;
	margin: 0 3px 5px;
	-webkit-border-radius: 6px;
	   -moz-border-radius: 6px;
	        border-radius: 6px;
	-webkit-transition: all 0.3s ease-in-out 0s;
	   -moz-transition: all 0.3s ease-in-out 0s;
		-ms-transition: all 0.3s ease-in-out 0s;
		 -o-transition: all 0.3s ease-in-out 0s;
			transition: all 0.3s ease-in-out 0s;
}

.owl-controls .owl-page.active span,
.owl-controls.clickable .owl-page:hover span {
	background: #111;
}

.owl-controls .owl-buttons > div {
	display: inline-block;
	margin: 5px;
	font-size: 14px;
	color: #111;
}

/* -------------------------------------------------------------------
RJHA Portfolio and Horizontal Scroll Gallery (FINAL STABLE VERSION)
------------------------------------------------------------------- */

/* Portfolio Summary controls */



/* Main container */
.horizontal-scroll {
  display: flex;
  overflow-x: scroll;

  gap: 20px;
  padding: 20px 2%;

  width: 100vw;
  margin-left: calc(-50vw + 50%); 

   scroll-snap-type: none; 
  -webkit-overflow-scrolling: touch;
	
  will-change: scroll-position;

  cursor: grab;
  align-items: flex-start;
}

.horizontal-scroll.dragging {
  cursor: grabbing;
}

/* Items */
.scroll-item {
  flex: 0 0 45vw;
  scroll-snap-align: center;	
}

.scroll-item img {
  transition: transform 0.3s ease;
}

.scroll-item:hover img {
  transform: scale(1.01);
}

/* Portrait items */
.scroll-item.portrait {
  flex: 0 0 25vw;
}

/* Image wrapper */
.image-wrap {
  width: 100%;
}

/* Images (desktop) */
.image-wrap img {
  width: 100%;
  height: 55vh;
  object-fit: cover;
  display: block;
	  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
	
	border-radius: 5px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Caption */
.image-caption {
  min-height: 10px;
	  font-size: 0.85em;
  line-height: 1.4;
  color: inherit;
}

/* Fix Bootstrap constraints */
.row,
.col-sm-12 {
  overflow: visible !important;
}

/* Hide scrollbar */
.horizontal-scroll::-webkit-scrollbar {
  display: none; 
} 
.horizontal-scroll {
  scrollbar-width: none;
}

 


/* LIGHTBOX */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.95);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: 95%;
  max-height: 95%;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  color: white;
  cursor: pointer;
}

.lightbox-nav span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  padding: 20px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* -------------------------------------------------------------------
FINAL RESPONSIVE FIX STABLE IMAGES (ALL DEVICES + ORIENTATIONS)
------------------------------------------------------------------- */

@media (max-width: 1024px) {

  /* All items same width */
  .horizontal-scroll .scroll-item{
    flex: 0 0 90vw;
    display: block;
  }
	
	  .horizontal-scroll .scroll-item.portrait{
    flex: 0 0 55vw;
    display: block;
  }
	

  /* Use aspect ratio instead of vh (fixes iPhone issues) */
 /* .horizontal-scroll img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
	  display: block;
  }*/

  /* Remove portrait-specific behaviour completely */
  /*.scroll-item.portrait img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
  }*/ 

  /* Layout spacing */
  .horizontal-scroll {
    gap: 10px;
    padding: 30px 5%;
    align-items: flex-start;
  }

}

	/* -------------------------------------------------------------------
BRING NAVBAR TO FRONT
------------------------------------------------------------------- */
	
.navbar {
  z-index: 10000;
}
