/* Hero Section */
.interactive-hero-wrapper {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
}

.interactive-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  background-image: url("projectimages/hero-wayz.JPG");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-content {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 900px;
  color: white;
  z-index: 2;
}

/* Intro section */
.interactive-intro {
  background: white;
  padding: clamp(2rem, 5vw, 4rem) 1.5rem;
  position: relative;
  z-index: 3;
}

/* Gallery */
.interactive-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1.5rem 5rem;
  position: relative;
  z-index: 3;
  background: black;
}

.interactive-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.interactive-item img {
  width: 100%;
  display: block;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.interactive-caption {
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #ffffff;
  transition: color 0.25s ease;
}

.interactive-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.interactive-item:hover .interactive-caption {
  color: #0077ff; /* swap for your brand accent */
}

.interactive-item:hover img {
  opacity: 0.85;
}



/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.8);
}


.modal-content {
  display: flex;
  justify-content: center;
  align-items: center; /* vertically center video */
  overflow: hidden;
  position: relative;  /* ensure close button stays on top */
  padding: 0;          /* remove extra padding that pushes video down */
}

.modal-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}




.modal-content {
  position: relative;
  margin: 5% auto;
  max-width: 900px;
  background: white;
  padding: 1rem;
  border-radius: 12px;
}

.modal-content iframe,
.modal-content video {
  width: 100%;
  height: auto;
}




.close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  color: black;
  cursor: pointer;
}





/* Back to Top */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 9999;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}



.cta-buttons a {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #000;
  color: #000;
  transition: all 0.2s ease;
}

.cta-buttons a.primary {
  background: #000;
  color: #fff;
}

.cta-buttons a.pop {
  background: orange;
  color: blue;
}

.cta-buttons a:hover {
  transform: translateY(-2px);
}