.block-mansory .card {
    border: none !important;
    height: 100% !important;
    box-shadow: 0 4px 4px 0 #00000040;
}

.block-mansory .card-radius {
    margin-bottom: 2rem;
    border-radius: 25px;
}

.block-mansory .card-text {
    color: #888888;
    font-size: 20px;
}

.block-mansory .card-title {
    color: #0768B3;
    font-weight: 400;
    font-size: 24px;
}

.block-mansory .header {
    font-weight: 300;
    font-size: 48px;
    color: #888888;
}

.block-mansory .sub-header {
    color: #888888;
    font-size: 25px;
}

.block-mansory .img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

/* Main CSS */
.block-mansory .grid-wrapper > div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.block-mansory .grid-wrapper > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 4px 4px 0 #00000040;
}

.block-mansory .grid-wrapper {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(121px, 1fr));
    grid-auto-rows: 145px;
    grid-auto-flow: dense;
}

.block-mansory .grid-wrapper .wide {
    grid-column: span 4;
    grid-row: span 2;
    position: relative;
}

.block-mansory .grid-wrapper .tall {
    grid-column: span 2;
    grid-row: span 3;
    position: relative;
}

.block-mansory .grid-wrapper .tall p, .tall a, .block-mansory .grid-wrapper .wide p, .wide a {
    position: absolute;
    top: 0px;
    font-size: 20px;
    color: white;
    width: 100%;
    height: 100%;
    padding: 20px;
    text-shadow: 0 0 2px gray;
    border-radius: 25px;
}

.block-mansory .grid-wrapper .tall p, .tall a:hover, .block-mansory .grid-wrapper .wide p, .wide a:hover {
    text-decoration: none;
}

@media only screen and (max-width: 1400px) {
    .block-mansory .grid-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
        grid-auto-rows: 90px;
    }
}

@media only screen and (max-width: 992px) and (max-width: 1299.98px) {
    .block-mansory .grid-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
        grid-auto-rows: 90px;
    }
}

@media (max-width: 767.98px) {
    .block-mansory .grid-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }
}
