.card--type--horizontal {
    box-shadow: var(--theme--box-shadow);
    background: rgba(255,255,255, 1);
}

.card--type--horizontal .card__image {
    position: relative;
}

.card--type--horizontal:not(.card--image-overlay--none) .card__image:before {
    content: '';
    background: url(../../images/card-horizontal-triangles.png);
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0;
    padding-top: 30%;
    background-size: cover;
    pointer-events: none;
}

.card--type--horizontal .card__image a {
    display: block;
    height: 100%;
}

.card--type--horizontal .card__image img {
    min-width: 100%;
}

.card--type--horizontal .card__image .flag {
    position: absolute;
    bottom: 1em;
    left: -0.5em;
    z-index: 1;
    padding: 0.5em 0.75em 0.5em 2.5em;
    border-radius: 0 1em 1em 0;
    background: rgba(255,255,255, 1);
    transition: all 0.3s ease;
}
    .card--type--horizontal.card--style--none .card__image .flag {
        color: var(--theme--color--dark);
    }
    .card--type--horizontal.card--style--first .card__image .flag {
        color: var(--theme--color--primary-85);
    }
    .card--type--horizontal.card--style--second .card__image .flag {
        color: var(--theme--color--primary);
    }
    .card--type--horizontal.card--style--third .card__image .flag {
        color: var(--theme--color--primary-65);
    }
    .card--type--horizontal.card--style--fourth .card__image .flag {
        color: var(--theme--color--primary-50);
    }
    .card--type--horizontal .card__image a:hover .flag {
        color: rgba(255,255,255, 1);
    }
        .card--type--horizontal.card--style--none .card__image a:hover .flag {
            background: var(--theme--color--dark);
        }
        .card--type--horizontal.card--style--first .card__image a:hover .flag {
            background: var(--theme--color--primary-75);
        }
        .card--type--horizontal.card--style--second .card__image a:hover .flag {
            background: var(--theme--color--primary);
        }
        .card--type--horizontal.card--style--third .card__image a:hover .flag {
            background: var(--theme--color--primary-65);
        }
        .card--type--horizontal.card--style--fourth .card__image a:hover .flag {
            background: var(--theme--color--primary-25);
            color: var(--theme--color--text);
        }

.card--type--horizontal .card__image .flag i {
    font-size: var(--theme--font-size--large);
}

.card--type--horizontal .card__content {
    padding: 2em;
}

.card--type--horizontal.card--style--none .card__content h3 {
    color: var(--theme--color--primary);
}
.card--type--horizontal.card--style--first .card__content h3 {
    color: var(--theme--color--primary-85);
}
.card--type--horizontal.card--style--second .card__content h3 {
    color: var(--theme--color--primary);
}
.card--type--horizontal.card--style--third .card__content h3 {
    color: var(--theme--color--primary-65);
}
.card--type--horizontal.card--style--fourth .card__content h3 {
    color: var(--theme--color--primary-50);
}

.card--type--horizontal .card__readmore {
    margin-bottom: 0;
}

.card--type--horizontal .card__readmore .button {
    padding-top: 0;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .card--type--horizontal {
        display: flex;
    }
    
    .card--type--horizontal .card__image {
        width: 50%;
    }
        .card--type--horizontal.card--image-alignment--right .card__image {
            order: 2;
        }
    
    .card--type--horizontal .card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .card--type--horizontal .card__content {
        width: 50%;
        display: flex;
        flex-direction: column;
    }
    
    .card--type--horizontal .card__readmore {
        margin-top: auto;
    }
}