.ahvr-circle {
  position: relative;
  padding: $ahvr-border-width;

  .image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%;
    z-index: 10;
  }

  .spinner {
    border-width: $ahvr-border-width;
    border-color: $ahvr-primary-color;
    border-style: solid;
    border-right-color: $ahvr-secondary-color;
    border-bottom-color: $ahvr-secondary-color;
    transition: all 0.8s ease-in-out;
    z-index: 11;
    background-color: rgba(0, 0, 0, 0.25);
  }

  &:hover .spinner {
    background-color: rgba(0, 0, 0, 0.6);
  }

  .spinner,
  .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }

  .overlay {
    z-index: 12;
  }

  .middle {
    color: $ahvr-white;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 1rem;
  }
}

.ahvr-circle.effect-rotate,
.ahvr-circle.effect-opacity {
  &:hover .spinner {
    background-clip: content-box;
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
  }
}

.ahvr-circle.effect-opacity {
  .spinner {
    background-color: transparent !important;
  }

  .overlay {
    background: rgba(0, 0, 0, 0.6); // transform: scale(0);
    transition: all 0.5s ease-in-out;
    opacity: 0;
    // border: $ahvr-border-width solid transparent;
    border-width: $ahvr-border-width;
    border-color: transparent;
    border-style: solid;
    background-clip: padding-box;
  }

  &:hover .overlay {
    opacity: 1;
  }
}

