.hero-container {
    height: auto; 
    min-height: 50vh;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    margin-bottom: 0.5%;  /* Updated to 50% of the current value */
    padding-bottom: 2%;
    box-sizing: border-box;
  }
  
  .hero {
    background: url('https://cdn11.bigcommerce.com/s-cj1hz3pz46/images/stencil/original/image-manager/black-truffles.jpg?t=1694156530') no-repeat center center;
    background-size: cover;
    height: 50%;
    width: 100%;
    min-width: 300px;
    padding: 40px;
    transition: transform 2s;
    border: 10px solid #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  .hero:hover {
    transform: scale(1.15);
  }
  
  .hero-stuff {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    transition: transform 2s;
  }
  
  .hero-stuff h1 {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    color: #fff;
  }
  
  .hero-caption {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    width: 100%;
    text-align: center;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    animation: fadeIn 2s forwards 1.5s;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  

  /* Extra Large Desktops and TVs */
  @media (min-width: 1441px) {
    .hero-container {
      height: 50vh;
      margin-bottom: -10%; /* Updated to 50% of the original value */
    }
    .hero-stuff h1 {
      font-size: 1.75rem;
    }
    .hero {
      height: 45%;
    }
    .hero-caption {
      font-size: 1rem;
      bottom: -30px;
    }
  }


        /* Large Desktops */
      @media (min-width: 1201px) and (max-width: 1440px) {
      .hero-container {
      height: 50vh;
      margin-bottom: -20%; /* Updated to 50% of the original value */
    }
    .hero-stuff h1 {
      font-size: 1.75rem;
    }
    .hero {
      height: 45%;
    }
    .hero-caption {
      font-size: 1rem;
      bottom: -30px;
    }
  }


  /* Media Queries for Responsiveness */
  @media (max-width: 1200px) {
    .hero-container {
      height: 50vh;
      margin-bottom: -25%; /* Updated to 50% of the original value */
    }
    .hero-stuff h1 {
      font-size: 1.75rem;
    }
    .hero {
      height: 45%;
    }
    .hero-caption {
      font-size: 1rem;
      bottom: -30px;
    }
  }
  
  
  @media (max-width: 1024px) {
    .hero-container {
      height: 50vh;
      margin-bottom: -25%; /* Updated to 50% of the original value */
    
    }
    .hero-stuff h1 {
      font-size: 1.75rem;
    }
    .hero {
      height: 45%;
    }
    .hero-caption {
      font-size: 1rem;
      bottom: -30px;
    }
  }
  
  @media (max-width: 992px) {
    .hero-container {
      height: 50vh;
      margin-bottom: -25%; /* Updated to 50% of the original value */
    }
    .hero-stuff h1 {
      font-size: 1.75rem;
    }
    .hero {
      height: 45%;
    }
    .hero-caption {
      font-size: 0.7rem;
      bottom: -30px;
    }
  }
  
  @media (max-width: 912px) {
    .hero-container {
      height: 50vh;
      margin-bottom: -25%; /* Updated to 50% of the original value */
    }
    .hero-stuff h1 {
      font-size: 1.75rem;
    }
    .hero {
      height: 45%;
    }
    .hero-caption {
      font-size: 0.7rem;
      bottom: -30px;
    }
  }

  @media (max-width: 820px) {
    .hero-container {
      height: 50vh;
      margin-bottom: -25%; /* Updated to 50% of the original value */
    }
    .hero-stuff h1 {
      font-size: 1.8rem;
    }
    .hero-caption {
      font-size: 0.7rem;
      bottom: -30px;
    }
  }
  
  @media (max-width: 768px) {
    .hero-container {
      height: 50vh;
      margin-bottom: -20%; /* Updated to 50% of the original value */
    }
    .hero-stuff h1 {
      font-size: 1.8rem;
    }
    .hero-caption {
      font-size: 0.7rem;
      bottom: -30px;
    }
  }
  
  @media (max-width: 576px) {
    .hero-container {
      height: 50vh;
      margin-bottom: -25%; /* Updated to 50% of the original value */
    }
    .hero-stuff h1 {
      font-size: 1.5rem;
    }
    .hero-caption {
      font-size: 0.5rem;
      bottom: -30px;
    }
  }
  
  @media (max-width: 540px) {
    .hero-container {
      height: 50vh;
      margin-bottom: -25%; /* Updated to 50% of the original value */
    }
    .hero-stuff h1 {
      font-size: 1.5rem;
    }
    .hero-caption {
      font-size: 0.5rem;
      bottom: -30px;
    }
  }
  
  @media (max-width: 414px) {
    .hero-container {
      height: 55vh;
      margin-bottom: -50%; /* Updated to 50% of the original value */
    }
    .hero {
      height: 35%;
    }
    .hero-caption {
      font-size: 0.4rem;
      bottom: -30px;
    }
  }
  
  @media (max-width: 390px) {
    .hero-container {
      height: 50vh;
      margin-bottom: -50%; /* Updated to 50% of the original value */
    }
    .hero-stuff h1 {
      font-size: 1.5rem;
    }
    .hero-caption {
      font-size: 0.5rem;
      bottom: -30px;
    }
  }
  
  @media (max-width: 375px) {
    .hero-container {
      height: 55vh;
      margin-bottom: -55%; /* Updated to 50% of the original value */
      width: 99%;
    }
    .hero {
      height: 35%;
    }
    .hero-caption {
      font-size: 0.4rem;
      bottom: -30px;
    }
  }


    @media (max-width: 280px) {
    .hero-container {
      height: 55vh;
      margin-bottom: -90%; /* Updated to 50% of the original value */
      width: 270px;


    }
    .hero {
      height: 0%;
    }
    .hero-caption {
      font-size: 0.4rem;
      bottom: -30px;
    }
  }
  blogcssmediaquery
  /* assets/custom/css/customcss/blogcssmediaquery.css 
<link rel="stylesheet" href="{{cdn 'assets/custom/css/customcss/blogcssmediaquery.css '}}">
