.blockgridimg {
    display: grid;
}

.image-block-item {
    text-decoration: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all .3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.image-block-item .block video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-block-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.5);
}

.image-block-item .block {
    display: flex;
    align-items: center;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.block.aspect-ratio-1-1 {
    aspect-ratio: 1/1;
}

.block.aspect-ratio-4-3 {
    aspect-ratio: 4/3;
}

.block.aspect-ratio-16-9 {
    aspect-ratio: 16/9;
}

.block.aspect-ratio-3-4 {
    aspect-ratio: 3/4;
}

.arrowright-block {
    position: absolute;
    bottom: 10px;
    right: 15px;
}

.arrowright-block i {
    color: white;
    font-size: 30px;
}

.image-block-content {
    padding: 30px;
    min-height: 300px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 2;
}

.image-block-content h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 700;
    font-size: 13px;
}

.image-block-content p {
    color: white;
}

.image-block-content h2 {
    margin-top: 0;
    color: white;
    font-size: 24px;
}

.image-block-item .block.primary-overlay:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--primary);
    opacity: .7;
}

.image-block-item .block.secondary-overlay:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--secondary);
    opacity: .4;
}

.image-block-item .block.tertiary-overlay:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--tertiary);
    opacity: .4;
}

.image-block-item .block.white-overlay:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: white;
    opacity: .4;
}

.image-block-item .block.black-overlay:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: black;
    opacity: .4;
}

.image-block-item .block.no-overlay:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: none;
    opacity: 0;
}

@media (max-width:1199px) {
    .blockgridimg {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .image-block-item {
        grid-column: span 1 !important;
    }
}

@media (max-width:767px) {
    .blockgridimg {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}