.gallery-card,
.gallery-card.tall {
    aspect-ratio: 16/9;
    grid-row: auto
}

.gallery-card img,
.featured-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain
}

.home-review,
.gallery-card,
.featured-img-wrap {
    transition: transform .28s ease, box-shadow .28s ease
}

@media(hover:hover) and (prefers-reduced-motion:no-preference) {

    .home-review:hover,
    .gallery-card:hover,
    .featured-img-wrap:hover {
        position: relative;
        z-index: 3;
        transform: translateY(-5px) scale(1.045);
        box-shadow: var(--shadow)
    }

    .gallery-card:hover img {
        transform: none
    }
}

@media(prefers-reduced-motion:no-preference) {
    .reveal.visible>.container {
        animation: home-appear .65s ease backwards
    }

    @keyframes home-appear {
        from {
            opacity: 0;
            transform: translateY(18px)
        }

        to {
            opacity: 1;
            transform: none
        }
    }
}

@media(max-width:820px) {
    .hero-stats {
        flex-wrap: wrap
    }

    .hero-content {
        min-width: 0
    }
}

.gallery-card img {
    opacity: 1
}

.compare-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.compare-card>p:last-of-type {
    margin-bottom: 16px
}

.compare-card>.btn-ghost,
.compare-card>.glass-btn {
    margin-top: auto
}