
/* ==== HOME PAGE ==== */

/* Tweaks for mobile */
@media (max-width: 767px) {
  /* Section containers */
  .hp-homepage-details-section,
  .hp-homepage-details-section-fullwidth_code {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 63vh !important;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  /* Image container */
  #hp-bg-image-container {
    position: absolute; /* restore absolute positioning */
    top: 0;
    left: 0;
    width: 100%;
    height: 63vh;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
  }

  /* Background image */
  .hp-homepage-hero-bg {
    height: 100vh; /* reduce from full height */
    object-fit: cover;
    object-position: center center;
  }

  /* Overlay */
  .hp-homepage-hero-overlay {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-width: 75%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 2;
  }

  .hp-homepage-hero-overlay h1 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }

  .hp-homepage-hero-overlay p {
    font-size: 0.85rem;
    color: #ddd;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  }
	
  /* Reset inherited spacing from Divi */
  body,
  .et_pb_section,
  .et_pb_row,
  .et_pb_column {
    margin: 0;
    padding: 0;
  }
}