/* Center Bottom Image Banner (Mobile Offset) */
.cbib-wrapper{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  margin: 0;
}

.cbib-link{
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  overflow: hidden;
  max-width: min(90vw, 680px);
}

.cbib-image{
  display: block;
  width: 100%;
  height: auto;
}

/* Make it full-width on mobile, but keep a small offset from the bottom */
@media (max-width: 768px){
  .cbib-wrapper{
    bottom: 12px;         /* slight offset above bottom */
  }
  .cbib-link{
    max-width: 100vw;     /* allow full viewport width */
    width: 100vw;         /* force full width */
    border-radius: 8px;   /* small rounding now that it's not flush */
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  .cbib-image{
    width: 100vw;
    height: auto;
  }
}

/* Extra-tight phones */
@media (max-width: 420px){
  .cbib-wrapper{ bottom: 10px; } /* a hair tighter on very small devices */
}
