﻿.item-square {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 25px;
}
    .item-square:hover,
    .item-square:focus-within {
        border: 1px solid #00ffd1;
        box-shadow: 0 0 6px #00ffd1;
    }

    .item-square .item-square-content {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: black;
        color: #00ffd1;
        transition: 0.3s all ease;
    }

        .item-square .item-square-content:active {
            background-color: #00ffd1;
            color: black;
        }

        .item-square .item-square-content .details .img img {
            border-radius: 25px;
            width: 100%;
            aspect-ratio: 1;
            background-color: black;
            object-fit: cover;
            transition: 0.3s aspect-ratio ease;
        }

        .item-square .item-square-content:hover .details .img img {
            object-fit: cover;
            border-bottom-left-radius: 0px;
            border-bottom-right-radius: 0px;
            aspect-ratio: 5/4;
        }

        .item-square .item-square-content .details .img .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            border-top-left-radius: 25px;
            border-top-right-radius: 25px;
            pointer-events: none;
            opacity: 0;
            transition: 0.3s all ease;
        }

        .item-square .item-square-content:hover .details .img .overlay,
        .item-square .item-square-content:focus-within .details .img .overlay {
            height: 80%;
            opacity: 1;
        }

    .item-square .item-square-content .details .name {
        padding-top: 4% !important;
        font-size: clamp(14px, 1.6vw, 20px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media only screen and (min-width: 768px) { /* Desktop View */
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
}

@media only screen and (max-width: 767px) { /* Mobile View */

}
