.collection {
    height: 60dvh;
    min-height: 450px;
    position: relative;
    transition: all ease 300ms;
}

.collection img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0px solid transparent;
    transition: border-radius ease-in-out 0.3s;
}

.collection:hover img {
    border-width: 1px;
    border-radius: 10rem 10rem 0 0;
}

.collection .category-title {
    text-align: center;
    position: absolute;
    width: 100%;
    color: var(--light-text);
    opacity: 0;
    bottom: 2rem;
    padding: 1rem;
    z-index: 1;
    transition: all ease 300ms;
}

.collection .category-title::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    z-index: -1;
    background-color: var(--c1);
    opacity: 0.85;
}

.collection:hover .category-title {
    bottom: 0;
    opacity: 1;
}

.collection-mobile {
    padding: 1rem 0!important;
    display: inline-block;
    width: 100px;
    padding: 0 0.5rem;
    text-align: center;
    color: var(--c7);
}

.collection-mobile img {
    width: inherit;
}

.collection-mobile small {
    margin: -0.5rem 0 2rem!important;
}



@media screen and (min-width: 768px) {
    .collection-mobile {
        width: 200px;
    }

    .collection-mobile small {
        margin: -1rem 0 2rem!important;
    }

    .collection {
    flex-grow: 1;
    flex-shrink: 1;
    height: 60dvh;
    min-height: 450px;
    position: relative;
    transition: all ease 300ms;
}

.collection:hover {
    flex-shrink: 0;
}

.collection img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0px solid transparent;
    transition: border-radius ease-in-out 0.3s;
}

.collection:hover img {
    border-width: 1px;
    border-radius: 10rem 10rem 0 0;
}

.collection .category-title {
    text-align: center;
    position: absolute;
    width: 100%;
    color: var(--light-text);
    opacity: 0;
    bottom: 2rem;
    padding: 1rem;
    z-index: 1;
    transition: all ease 300ms;
}

.collection .category-title::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    z-index: -1;
    background-color: var(--c1);
    opacity: 0.85;
}

.collection:hover .category-title {
    bottom: 0;
    opacity: 1;
}
}