@use 'variables' as *;
@use 'functions' as *;

@mixin visually-hidden {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  white-space: nowrap;
}

@mixin text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@mixin clearfix {
  &::after {
    content: '';
    display: block;
    clear: both;
  }
}

@mixin real-vh-height($vh: 100) {
  height: calc(var(--vh, 1vh) * $vh) !important;
}

@mixin flex-center {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

@mixin absolute-100 {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
}

@mixin bg-contain {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}
@mixin bg-cover {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
}

@mixin object-fit-contain {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
}
@mixin object-fit-cover {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

@mixin scroll-lock {
  overflow: hidden;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  touch-action: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}
