@use "sass:map";
@use "../../../styles/tokens/color";
@use "../../../styles/tools/generate";
@use "./config";

@mixin base {
  position: relative;
  overflow: hidden;
}

@mixin content-base {
  position: relative;
  transform: translate3d(0, 0, 0);
  z-index: 1;
  width: 100%;
}

@mixin content-size($size, $config: config.$sizes) {
  @include generate.responsive-css-map(map.get($config, $size));
}

@mixin content-spacing($config: config.$spacing) {
  @include generate.responsive-css-map($config);
}

@mixin image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@mixin image-position($position, $config: config.$positions) {
  object-position: map.get($config, $position);
}
