
.top-space {
    height: 40px;
}

  .image-background-container {
    /* 1. Set the background image and size */
    background-image: url("../images/wide-shot-site-across-chatham-1200w.jpg");
    background-image: image-set(
      url("../images/wide-shot-site-across-chatham-1200w.webp") type("image/webp"),
      url("../images/wide-shot-site-across-chatham-1200w.jpg") type("image/jpeg")
    );

    background-size: cover; /* This makes the image cover the entire container */
    background-position: center; /* This centers the image within the container */

    /* 2. Define dimensions and positioning context */
    height: 350px;  /*Set a specific height for the container */
    width: 100%;
    position: relative; /* This is crucial for positioning the text relative to this container */

    /* 3. Optional: Add an overlay to improve text readability */
    background-color: rgba(0, 0, 0, 0.1);
    background-blend-mode: overlay;  /* Blends the color with the image */
  }

   /* 6. Optional: Style the actual text elements */
.text-overlay-top {
    /* 4. Center the text within the container */
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%); /* This translates the element back by half its own width/height */

    /* 5. Style the text */
    color: white; /* Ensures the text is visible against a dark background */
    text-align: center;
    padding: 20px;
    margin:10px;
    width: 98%;  /* Optional: control the width of the text block */
  }

  .text-overlay-bottom {
    font-weight: bold;
    color: white;
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 15px;
    width: 90%;
  }

  /* .text-overlay-bottom p {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin: 0;
  } */

  .button-style {
    display: inline-block;
    font-size: 18px;
    padding: 15px 25px;
    margin: 10px;
    color:white;
    background-color: #3495f0;
    border-radius: 5px;
    /* border:none; */
    text-decoration: none;
    width: 200px;
  }

  .button-style:active {
    background-color: yellow; /* A yellow color when depressed */
    /* You can also add other effects like a slight transform */
    transform: translateY(2px);
    /* box-shadow: 0 5px #666; */
  }

@media (min-width: 768px) {
  .image-background-container {
    background-image: url("../images/wide-shot-site-across-chatham-1200w.jpg");
    background-image: image-set(
      url("../images/wide-shot-site-across-chatham-1200w.webp") type("image/webp"),
      url("../images/wide-shot-site-across-chatham-1200w.jpg") type("image/jpeg")
    );
  }
}

  /* For now, just target larger sizes than a smartphone */
@media (min-width: 875px) {
  .image-background-container {
    height: 550px;
    background-image: url("../images/wide-shot-site-across-chatham-1920w.jpg");
    background-image: image-set(
      url("../images/wide-shot-site-across-chatham-1920w.webp") type("image/webp"),
      url("../images/wide-shot-site-across-chatham-1920w.jpg") type("image/jpeg")
    );
  }

  .button-style {
    font-size: 32px;
    width: 300px;
  }
}
