@import '../../../../globals/variables';
@import '../../../../globals/mixins';
@import '../../../../globals/breakpoints';

body {
  margin: 0;
  padding: 0;
}

.hero-banner {
  position: relative;
}

.hero-banner__img {
  aspect-ratio: 16/9;
  background-attachment: fixed;
  background-size: cover;
  height: 266px;
  object-fit: cover;
  object-position: center;
  width: 100%;

  @include respond-to('small') {
    height: 140px;
  }

  @include respond-to('medium') {
    height: 266px;
  }

  @include respond-to('large') {
    height: 300px;
  }
}

.imgclearfix::after {
  background-position: top;
  box-sizing: border-box;
  clear: both;
  display: table;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  object-fit: cover;
  object-position: bottom;
}

.overlay {
  align-items: center;
  border: 10px solid rgb(0 0 0 / 10%);
  box-sizing: border-box;
  display: flex;
  height: auto;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

// Example usage of the HeroBanner component
// File Path: src/ui/components/atoms/hero-banner/index.js
// Note: Remove this code once the component is fully implemented
.hero-banner__content {
  align-items: center;
  bottom: 0;
  color: $ads-color-main;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 20px;
  right: 0;
  width: 60%;
}
