.image-container {
  position: relative;
  overflow: hidden; /* Hide parts of the image outside the frame */
}

.static-image-container {
  position: relative;
  overflow: hidden;
}

/* Hero image dimensions */
#home-hero {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
}

#home-hero img {
  opacity: 0.85;
}

/* Test image dimensions */
.test-image {
  margin: 50vh auto; /* Center vertically in the viewport */
  width: 600px;
  height: 800px;
  z-index: 0;
}

/* Ensure all images fit their containers */
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Parallax effect - all images are zoomed in slightly for the effect */
.parallax-image {
  position: absolute;
  top: -25%;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintain aspect ratio */
  transform: scale(1.15); /* Slightly zoomed-in for the parallax effect */
}

/* Updated parallax styles for wrapper approach */
.parallax-text-container {
  position: relative;
  overflow: visible;
}

.parallax-text-wrapper {
  position: relative;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

#hero {
  display: flex;
  align-items: end;
  min-height: 100vh;
  position: relative;
}

#hero-content {
  width: 100%;
}

.parallax-element {
  position: relative;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
