.dark-img {
    display: inline-block !important;
    position: relative;
    line-height: 0;
}

.dark-img::after {
    border-radius: 10px;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
    transform: rotate(-180deg);
    opacity: 0.8;
}