/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

@media (min-width: 1023px) {
	.sticky-cta {
    position: sticky;
    top: 120px;
    z-index: 222;
}
}

input#gform_submit_button_2 {
    background-color: var(--global-color-8);
    color: var(--base-3);
    display: inline-flex;
    border-radius: 8px;
    padding: 10px 20px;
	font-size: 16px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5),transparent);
    pointer-events: none
}

.home-hero-container {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: #fff;
    width: 100%;
	max-width: var(--gb-container-width);
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero-buttons {
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
	padding-top: 20px;
}

.button01 {
	background-color: var(--global-color-8);
    color: var(--base-3);
    display: inline-flex;
    border-radius: 8px;
    padding: 10px 20px;
	font-size: 16px;
	transition: all 0.5s 
ease 0s;
}

.button01:hover {
    background-color: #bc1844;
    color: var(--base-3);
    transition: all 0.5s ease 0s;
}

/* shortcode breadcum */
.breadcrumbs ol { list-style:none; display:flex; gap:.2rem; padding:0; margin:0; flex-wrap:wrap;}
.breadcrumbs li::after { content: "»"; margin: 0.5rem; opacity:.6; }
.breadcrumbs li:last-child::after { content:""; }
.breadcrumbs a { text-decoration:none; }

/* tour gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr; /* big left, two small right */
  grid-auto-rows: 220px;              /* tile height; adjust to taste */
  gap: 5px;
}

.gallery-grid > .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-grid > .gallery-item:nth-child(1) {
  grid-column: 1;
  grid-row: span 2;                   /* tall first tile on the left */
}

/* keep collage to 5 items (1 big + 4 small); remove if you want more rows */
.gallery-grid > .gallery-item:nth-child(n+6) {
  display: none;
}

/* make the <img> fill its tile */
.gallery-grid > .gallery-item > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  transition: transform .35s ease;
}

.gallery-grid > .gallery-item > img:hover {
  transform: scale(1.04);
}


/* Lightbox overlay */

.lightbox-container{
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.7);
  z-index: 99999;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}

.lightbox-container.active { opacity: 1; pointer-events: auto; }

.lightbox-image-wrapper{
  max-width: 90vw; max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.lightbox-image{
  max-width: 90vw; max-height: 90vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Controls (SVG buttons) */
.lightbox-btn,
#lb-close {
  position: absolute;
  z-index: 100000;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.9); /* light bg to show dark SVG strokes */
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* arrows: vertically centered, offset from edges */
.lightbox-btn {
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
}
.lightbox-btn.left  { left: 10px; }
.lightbox-btn.right { right: 10px; }

/* close: pinned top-right */
#lb-close {
  top: 20px;
  right: 10px;
  width: 32px;
  height: 32px;
}

/* SVG sizing */
.lightbox-btn svg,
#lb-close svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* hover only (no focus/active color jump) */
.lightbox-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
#lb-close:hover {
  background: #fff;
  transform: scale(1.06);
}

/* neutralize focus/active visuals */
.lightbox-btn:focus,
.lightbox-btn:active,
.lightbox-btn:focus-visible,
#lb-close:focus,
#lb-close:active,
#lb-close:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%);
}
#lb-close:focus,
#lb-close:active,
#lb-close:focus-visible {
  transform: none;
}

/* mobile tweaks */
@media (max-width: 680px) {
  .lightbox-btn { width: 26px; height: 26px; }
  #lb-close     { width: 26px; height: 26px; }
  .lightbox-btn svg,
  #lb-close svg { width: 24px; height: 24px; }
}

/* optional: respect iOS safe areas (notch) */
@supports (padding: max(0px)) {
  .lightbox-btn.left  { left:  max(10px, env(safe-area-inset-left)); }
  .lightbox-btn.right { right: max(10px, env(safe-area-inset-right)); }
  #lb-close {
    top:   max(20px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
  }
}