@media not all and (min-width: 1024px) {
    .showroom .wrapper-card-agency{
        max-width: 100% !important;
        padding-bottom: 0px !important;
        padding-top: 0px !important;
    }
}

@media not all and (min-width: 768px) {
    .card-agency:hover .agency-content-wrapper{
        grid-template-rows: 0fr !important;
    }

    .card-agency:hover .agency-content-wrapper *{
        opacity: 0 !important;
    }

    .card-agency:hover .button-agency-wrapper{
        grid-template-rows: 1fr !important;
        opacity: 1 !important;
    }

    .card-agency.visible .agency-content-wrapper{
        grid-template-rows: 1fr !important;
    }

    .card-agency.visible .agency-content-wrapper *{
        opacity: 1 !important;
    }

    .card-agency.visible .button-agency-wrapper{
        grid-template-rows: 0fr !important;
        opacity: 0 !important;
    }

}

.card-agency .agency-content-wrapper{
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.8s ease-out,
                opacity 0.8s ease-out;
}

.card-agency:hover .agency-content-wrapper, 
.admin-agency-content-wrapper{
    grid-template-rows: 1fr;
}

.card-agency .agency-content-wrapper a,
.card-agency .agency-content-wrapper p{
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.card-agency:hover .agency-content-wrapper a,
.card-agency:hover .agency-content-wrapper p{
    opacity: 1;
}

.card-agency .button-agency-wrapper {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    transition: grid-template-rows 0.8s ease-out,
    opacity 0.5s ease-out;
}

.card-agency:hover .button-agency-wrapper{
    grid-template-rows: 0fr;
    opacity: 0;
}

.showroom .wrapper-card-agency{
    max-width: 660px;
    padding-bottom: 120px;
    padding-top: 40px;
    z-index: 10;
}

.showroom .card-agency{
	height: 100%;
	height: -webkit-fill-available;
    min-height: 600px;
}

.showroom .card-agency > div{
	height: 100% !important;
	height: -webkit-fill-available !important;
}