body {
  margin: 0;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f5f5;
}

.pair {
  margin-bottom: 4rem;
}

.image-container {
  position: relative;
  max-width: 500px;
  margin: 2rem auto;
}

.image-container img {
  width: 100%;
  border-radius: 1rem;
  display: block;
}

.textbox {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%; /* FULL WIDTH over the image */
  background: #ffffff;
  border-radius: 1.75rem;
  padding: 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  color: #1e1e1e;
  text-align: left;
}

hr {
  border: none;
  border-top: 2px solid #ddd;
  margin: 3rem auto;
  width: 80%;
}

.textbox .arrow {
  position: absolute;
  bottom: 10px;
  right: 15px;
  width: 1.5rem; /* Standardized to 1rem for all screen sizes */
  height: auto;
}

/* If screen is small, push textbox *under* image */
@media (max-width: 1080px)  and (orientation: portrait) {
  body {
    padding: 0; /* Remove body padding on mobile */
  }

  .image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%; /* Full width on mobile */
    /* max-width: 500px; */

    /* margin-left: 0;
    margin-right: 0; */
    margin-left: auto;
    margin-right: auto;
  }

  .image-container img {
    border-radius: 0; /* Remove border radius to hug the edges */
  }

  .textbox {
    position: static;
    transform: none;
    margin-top: -1rem;
    width: 90%; /* looks a little nicer with slight margin on mobile */
    font-size: 1.25rem; /* Increased font size for mobile */
    line-height: 1.6; /* Slightly increased line height for better readability */
  }

  .pair {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}
