#home-link {
    position: absolute;
    top: 1.75rem;
    right: 1.6rem;
    z-index: 49;
    font-size: 1.8rem;
    line-height: 1rem;
    font-weight: 300;
    text-decoration: none;
    cursor: pointer;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s, transform 0.6s;
    border-radius: 50%;
    padding-top: 3px;
    width: 24px;
    height: 24px;
    text-align: center;
    display: block;
    color: var(--foreround);
}

#back-top {
    color: var(--background);
}

#back-top {
    position: fixed;
    bottom: 3.5rem;
    left: 2.57rem;
    z-index: 49;
    font-size: 3.4rem;
    line-height: 2;
    font-weight: 300;
    text-decoration: none;
    cursor: pointer;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s, transform 0.6s, bottom 0.6s ease, font-size 0.6s ease, width-size 0.6s ease, height 0.6s ease, line-height 0.6s ease;
    width: 2rem;
    height: 3rem;
    text-align: center;
    display: block;
    font-weight: bold;
}

.at-bottom #back-top {
    bottom: 3.1rem;
    font-size: 5rem;
    line-height: 5rem;
    width: 3rem;
    height: 6rem;
}



#home-link-bottom {
    right: 2.2rem;
}

#home-link.visible,
#home-link-bottom.visible,
#back-top.visible {
    opacity: 1;
    pointer-events: auto;
}

h1 {
    padding-right: 1.7rem;
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 380px) {
    h1 {
        font-size: 1.4rem !important;
    }

    #home-link {
        top: 1.45rem;
    }
}


/* IMAGE COUNT AND HOVER ARROW */
.project-image-container {
    position: relative;
    overflow: hidden;
}

.project-image-container img {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.project-image-container::after {
    content: "↗";
    position: absolute;
    top: 0.7rem;
    left: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.image-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    pointer-events: none;
}

.image-count-badge,
.project-image-container::after {
    color: rgba(0, 0, 0, 0.8);
    background: #fff;
}

.project-image-container::after,
.project-image-container:hover::after {
    opacity: 1;
}

@media (max-width: 48rem) {
    .project-image-container::after {
        opacity: 1;
    }

    #back-top {
        left: 2.55rem;
    }

    #home-link-bottom {
        right: 2.2rem;
    }
}

@media (prefers-color-scheme: dark) {

    .image-count-badge,
    .project-image-container::after {
        background: rgba(0, 0, 0, 0.8);
        color: #fff;
    }
}