.yhb-card {
    &.is-style-icon-card {
        text-align: center;
    }

    @media (max-width: 781px) {
        text-align: center;
    }
}

.yhb-card__media {
    border-radius: 1em;
    overflow: hidden;
    position: relative;

    a,
    button {
        display: block;

        &:focus,
        &:hover {
            .yhb-card__link-icon::after {
                transform: rotate(45deg);
            }
        }
    }

    figure,
    img {
        display: block;
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .is-style-icon-card & {
        border-radius: 0;
        max-width: 125px;
        margin: auto;

        figure,
        img {
            height: auto;
            object-fit: contain;
            width: 100%;
        }
    }
}

.yhb-card__link {
    display: block;
}

.yhb-card__link-icon {
    align-items: center;
    justify-content: center;
    background: var(--wp--preset--color--white);
    display: flex;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border-top-left-radius: 1em;

    &::after {
        content: "";
        display: block;
        border-radius: 50px;
        width: 30px;
        height: 30px;
        background-color: var(--wp--preset--color--lime);
        background-image: url('../../../assets/images/arrow.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 10px;
        transition: transform 0.2s ease;
    }

    .is-style-dark & {
        background: var(--wp--preset--color--navy);
    }

    .is-style-midnight & {
        background: var(--wp--preset--color--midnight);
    }

    .is-style-icon-card & {
        display: none;
    }
}

.yhb-card__title {
    font-weight: 700;
}

.yhb-card__title-link {
    &:focus,
    &:hover {
        color: var(--wp--preset--color--lime);
    }

    @media (max-width: 781px) {
        .is-style-dark &,
        .is-style-midnight & {
            color: var(--wp--preset--color--lime);

            &:focus,
            &:hover {
                color: var(--wp--preset--color--teal);
            }
        }
    }
}