 .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6); /* Darkens content behind */
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      
      /* Hidden by default, activated via JS */
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Class added via JS to display overlay */
    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

     /* 2. Popup Box (Desktop First Layout) */
    .modal-box {
      background: #f7f6eb;
      width: 80%;
      max-width: 1024px; /* Ensures it doesn't get ridiculously wide on huge screens */
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
      position: relative;
      transform: translateY(-20px);
      transition: transform 0.3s ease;
      overflow: hidden; /* Keeps image corner rounded */
      .modal-content h2, .modal-content h3, .modal-content h4 {text-align: center !important;}
      .modalh3 {font-size: 1.7rem; line-height: 2.2rem; margin-bottom: 0.75rem !important; color: #f28123 !important;}
      .modal-content h2 {margin-top: 1rem !important; margin-bottom: 0.15rem !important;}
      
      /* Split into two columns */
      display: grid;
      grid-template-columns: 40% 60%;
    }

    /* Column 1: Image Background */
    .modal-image {
      background-image: url('img/popup-dog.webp'); /* Replace with your image URL */
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      min-height: 400px; /* Ensures there's a base height for the image */
    }

    /* Column 2: Text Content Container */
    .modal-content {
      padding: 2.5rem 2rem 2rem 2rem; /* Extra top padding to clear the 'X' button */
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    /* Smooth slide-in effect when active */
    .modal-overlay.active .modal-box {
      transform: translateY(0);
    }

    /* Close Button (X) */
    .close-btn {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: #f7f6eb; 
      border: none;
      cursor: pointer;
      color: #114232;
      line-height: 1;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      font-size: 3rem;
      font-family: 'InterThin', Helvetica, Arial, sans-serif;
    }

    .close-btn:hover {
      color: #f28123 !important;
      background: #f7f6eb;
      cursor: pointer;
    }

    /* Modal Content & Buttons */
    .modal-content h2 {
      margin-top: 0;
    }

    .modal-actions {
      margin-top: 1.5rem;
      text-align: right;
    }

    .btn-action {
      background-color: #f7f6eb;
      color: white;
      border: none;
      padding: 0.6rem 1.2rem;
      border-radius: 6px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .btn-action:hover {
      background-color: #114232;
      color: #f7f6eb;
    }

    /* --- MOBILE STYLES (Screen widths below 768px) --- */
    @media (max-width: 960px) {
      .modal-box {
        width: 85%;
        grid-template-columns: 1fr; /* Switch to a single column stack */
      }

      .modal-image {
        min-height: 30vh; /* Shorter image height on mobile stack */
      }

      .modal-content {
        padding: 1.5rem;
      }
    }

    @media screen and (min-width: 1280px){
      .modal-box {
        width: 66.667%;}
    }