/* Ensure the navbar is responsive */
.navbar-container {
  width: 100%;
}

/* Adjust the hero container for mobile view */
.craniosacral-hero-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0; /* Remove padding to maximize space on small screens */
  box-sizing: border-box;
}

/* Hero image should always be 100% width of its container */
.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile-specific adjustments for the text overlay */
.text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 5%; /* Keep responsive padding */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Align content to the bottom */
  box-sizing: border-box;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  ); /* Add a gradient for better text readability */
}

.text-overlay h1 {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.text-overlay p {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(0.8rem, 2vw, 1.125rem);
  line-height: 1.5;
  max-width: 90%; /* Increase max-width for better readability on smaller screens */
  padding-bottom: 30px; /* Add some space at the bottom to prevent text from touching the edge */
}

/* Photographer credit adjustments for mobile */
.photographer-credit {
  position: absolute;
  bottom: 10px; /* Adjust based on desired position on mobile */
  right: 10px; /* Adjust based on desired position on mobile */
  font-size: clamp(0.7rem, 1.5vw, 0.875rem);
  font-family: "Times New Roman", Times, serif;
  color: white;
}

/* Media query for larger screens (e.g., tablets and desktops) */
@media (min-width: 768px) {
  .text-overlay p {
    max-width: 60%; /* Revert to the original max-width on larger screens */
  }
}
