





.agent-directory-block .mrp-agent-list.format-grid .mrp-agent .photo-inner img, 
.agent-directory-block .mrp-agent-list.format-expanded .mrp-agent .photo-inner img, 
.agent-directory-block .mrp-agent-list.format-line .mrp-agent .photo-inner img {
    /* object-fit: contain; */
}



.agent-directory-block .mrp-agent-list.format-grid .mrp-agent {
    gap: var(--col-gap-1);
}

.agent-directory-block .mrp-agent-list.format-grid .mrp-agent-outer {
    padding: 20px;
}

.agent-directory-block .mrp-agent-list.format-grid .mrp-agent-outer:hover {
    scale: initial;
    transition: ease all 0.25s;
}

.agent-directory-block .mrp-agent-outer:hover .photo-outer img {
    opacity: 0.35 !important;
}

.agent-directory-block .mrp-agent-outer .photo-outer .custom-hover {
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    -webkit-transform: translate(15px, 15px);
    -moz-transform: translate(15px, 15px);
    -ms-transform: translate(15px, 15px);
    transform: translate(15px, 15px);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: flex-end;
    -webkit-box-align: flex-end;
    -ms-flex-align: flex-end;
    align-items: flex-end;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 10px;
    border-color: var(--g-accent-color);
}
.agent-directory-block .mrp-agent-outer:hover .photo-outer .custom-hover {
    opacity: 1;
}
.agent-directory-block .mrp-agent-outer .photo-outer .custom-hover:before, 
.agent-directory-block .mrp-agent-outer .photo-outer .custom-hover:after {
    content: ' ';
    position: absolute;
    border: 2px solid transparent;
    width: 0;
    height: 0;
}
.agent-directory-block .mrp-agent-outer:hover .photo-outer .custom-hover:before {
    border-top-color: inherit;
    border-right-color: inherit;
    -webkit-transition: width 0.25s ease-out, height 0.25s ease-out 0.25s;
    transition: width 0.25s ease-out, height 0.25s ease-out 0.25s;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.agent-directory-block .mrp-agent-outer:hover .photo-outer .custom-hover:after {
    border-bottom-color: inherit;
    border-left-color: inherit;
    -webkit-transition: width 0.25s ease-out 0.5s, height 0.25s ease-out 0.75s, border-color 0.01s ease-out 0.5s;
    transition: width 0.25s ease-out 0.5s, height 0.25s ease-out 0.75s, border-color 0.01s ease-out 0.5s;
        width: 100%;
    height: 100%;
        bottom: 0;
    right: 0;
}

.agent-directory-block .mrp-agent-outer .photo-outer .custom-hover .custom-btn {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    padding: 1rem;
    border: 2px solid var(--g-accent-color);
    color: #FFF;
    background: rgba(141,14,26,0.45);
    transition: all 0.5s ease;
}
.agent-directory-block .mrp-agent-outer .photo-outer .custom-hover .custom-btn:hover {
    background: rgba(141,14,26,0.9);
}

.agent-directory-block .mrp-agent-outer .mrp-agent .photo-inner {
    overflow: visible;
}
.agent-directory-block .mrp-agent-outer .photo-outer img {
    transition: all 0.25s ease;
}