.custom-banner {
  position: relative;
  margin-top: 2rem;
  margin-bottom: 2rem;
  /* Adjust as needed due to navbar height*/
  overflow: hidden;
  z-index: 0;
  display: flex;
}

.custom-banner img {
  width: 100%;
  height: auto;
}

.back-img {
  position: absolute;
  bottom: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
}

.flex-container {
  display: flex;
  /* flex-wrap: wrap; */
  justify-content: center;
  /* background-color: #f1f1f1; */
}

.flex-container>div {
  /* background-color: currentColor; */
  /* color: currentColor; */
  width: 100px;
  margin: 20px;
  line-height: 75px;
  font-size: 30px;
}

/*resize sponsor logo according screen */
.bi-sponsored {
  width: 30rem;
  fill: currentColor;
  margin-top: 0;
  margin-bottom: 1rem;
}

.sponsor-logo img {
  width: 4.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}


/* @media (min-aspect-ratio: 1/1) {
  .back-img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

@media (max-aspect-ratio: 1/1) {
  .back-img {
    width: auto;
    height: 100%;
    object-fit: cover;
  }
} 

@media (min-aspect-ratio: 9/16) {
  .back-img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-aspect-ratio: 9/16) {
  .back-img {
    width: auto;
    height: 100%;
    object-fit: contain;
  }
} 

@media (min-aspect-ratio: 16/9) {
  .back-img {
    width: 100%;
    height: auto;
    object-fit: fill;
  }
}

@media (max-aspect-ratio: 16/9) {
  .back-img {
    width: auto;
    height: 100%;
    object-fit: fill;
  }
}  */

/* RESPONSIVE CSS
-------------------------------------------------- */

/*Small screens (iPhones, 576px and down)  XS*/
@media (max-width: 576px) {

  /* .back-img {
    max-height: 100%;
    width: auto; 
  } */
  .flex-container>div {
    /* background-color: currentColor; */
    /* color: currentColor; */
    width: 40px;
    margin: 10px;
    line-height: 25px;
  }

  /*resize sponsor logo according screen */
  /*Fill background color sponsors logo according theme Color */
  .bi-sponsored {
    width: 12rem;
    vertical-align: -0.125em;
  }

  .sponsor-logo img {
    margin-top: 0;
    margin-bottom: 0.75rem;
    width: 1.5rem;
  }
}

/*Small screen (iPhones Vertical, 577px to 768) SM*/
@media (min-width: 577px) and (max-width: 768px) {

  /* .back-img {
    max-height: 100%;
    width: auto; 
  } */
  /*resize sponsor logo according screen */
  .bi-sponsored {
    width: 20rem;
  }

  .sponsor-logo img {
    margin-top: 0;
    margin-bottom: 1rem;
    width: 2rem;
  }
}

/*Small screen () MD*/
@media (min-width: 769px) and (max-width: 992px) {

  /* .back-img {
    max-height: 100%;
    width: auto; 
  } */
  /*resize sponsor logo according screen */
  .bi-sponsored {
    width: 25em;
  }

  .sponsor-logo img {
    margin-top: 0rem;
    margin-bottom: 1rem;
    width: 3rem;
  }
}

/* Ipad Pro screen LG-XL*/
@media (min-width: 993px) and (max-width: 1200px) {

  /* .back-img {
    max-height: 100%;
    width: auto; 
  } */
  /*resize sponsor logo according screen */
  .bi-sponsored {
    width: 30rem;
  }

  .sponsor-logo img {
    width: 4rem;
    margin-top: 0;
    margin-bottom: 1rem;
  }
}

/* Laptop Screen > XXL*/
@media (min-width: 1201px) and (max-width: 1400px) {

  /* .back-img {
    max-width: 100%; 
    height: auto; 
  } */
  /*resize sponsor logo according screen */
  .bi-sponsored {
    width: 20em;
  }

  .sponsor-logo img {
    width: 4.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
  }
}

/* PC Screen */
@media (min-width: 1401px) {
  /* .back-img {
    width: 100%;
    height: auto; 
  } */
}