
.custom-bg-button {
  display: inline-block;
  padding: 1rem 3rem;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  background-image: url('../img/button-bg.png');
  background-size: cover;
  background-position-x: 40%;
  background-repeat: no-repeat;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  cursor: pointer;
  border: none;
  user-select: none;
  transition: filter 0.3s ease;
  width: 350px;
}
.custom-bg-button:hover,
.custom-bg-button:focus {
  filter: brightness(1.1);
  outline: none;
}

.custom-bg-button::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.image-container {
    position: relative;
    cursor: pointer;
    border-radius: 0.375rem; /* same as img rounding */
    overflow: hidden;
  }
  .image-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: filter 0.3s ease;
    border-radius: inherit;
  }
  .image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    font-size: 1rem;
    border-radius: inherit;
    text-align: center;
    padding: 1rem;
  }
  .image-container:hover img {
    filter: brightness(0);
  }
  .image-container:hover .image-overlay {
    opacity: 1;
  }

  @media (max-width: 719px) {
          .hero-video {
            width: 80vw !important;
            height: 56vh !important;
            margin-top: 0.1rem;
            height: auto !important;

          }
          .description {max-width: 100vw; margin-top: 6rem;}
        }


  @media (min-width:720px) and (max-width: 920px) {
          .hero-video {
            width: 50vw !important;
            height: 56vh !important;
            margin-top: 0.1rem;
            height: auto !important;

          }
          .description {max-width: 100vw; margin-top: 6rem;}
        }

  
  @media (min-width: 1025px) {
          .hero-video {
            width: 20vw !important;
            height: 54vh !important;
          }
          section {
          margin-top: 0 !important;

          }
          .description {max-width:60vw;}
        }


  @media (min-width: 920px) and (max-width: 1025px) {
          .hero-video {
            width: 27vw !important;
            height: 54vh !important;
            height: auto !important;
          }
          section {
          margin-top: 0 !important;

          }
          .description {max-width:60vw;}
        }


  @media (max-width: 399px) {
  section h1 {
    font-size: 1.8rem !important;
  }
  section h4 {
    font-size: 1rem !important;
  }
  }


  @media (max-width: 600px) and (max-height: 720px) {
  section h1 {
    font-size: 1.8rem !important;
  }
  section h4 {
    font-size: 1rem !important;
  }
  }