/**
 * gallery-nav.css
 */

/* Component: Gallery Nav */
.gallery-nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-grey-light);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-black);
  transform: translateY(-50%);
  transition: var(--global-transition);
  cursor: pointer;

  &::after {
    content: '';
    width: 22px;
    height: 22px;
    background: currentColor;
    mask: url('../../images/icons/icon-chevron-right-48x48.png') no-repeat center / contain;
    -webkit-mask: url('../../images/icons/icon-chevron-right-48x48.png') no-repeat center / contain;
  }

  &.is-prev {
    left: 8px;

    &::after {
      transform: rotate(180deg);
    }
  }

  &.is-next {
    right: 8px;
  }

  &[disabled] {
    visibility: hidden;
    transition: none;
  }

  &:hover,
  &:focus-visible {
    background: var(--color-white-dark);
  }
}

/* Mobile: Gallery Nav */
@media (max-width: 767px) {
  .gallery-nav {
    width: 48px;
    height: 48px;

    &::after {
      width: 28px;
      height: 28px;
    }
  }
}
