/**
* Back to Top
*/

.back-to-top-link {
    position: fixed;
    right: 1.2rem;
    bottom: 4.2rem;
    z-index: 350;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--white, $white);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.17);
    color: var(--gray-800);
    font-size: 1rem;
    opacity: 0;
    text-decoration: none;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateX(100%);
    transition: all 0.25s ease;

    &.visible {
        opacity: 0.9;
        transform: none;
        pointer-events: visible;
    }

    &:hover,
    &:focus {
        color: var(--gray-800);
        background-color: var(--white, $white);
    }

    &:hover {
        opacity: 1;
    }
}

@include media-breakpoint-up(lg) {
    .back-to-top-link {
        width: 4.2rem;
        height: 4.2rem;
        bottom: 1.2rem;
        font-size: 1.2rem;
    }
}