.alt-gitem__wrap {
    position: relative;
    padding: 1em 1.5em;
    box-sizing: border-box;
    background-color: #fff;
    max-width: 360px;
    margin: 3.5em auto 2em;
    margin-top: 72px;
    box-shadow: 0 0 5px 0 hsla(0, 0%, 55.7%, .5);
    border: 6px solid rgba(0, 0, 0, 0);
}

.alt-gitem__wrap::after {
    border: 11px inset rgba(0, 0, 0, 0);
    border-top: 11px solid #fff;
    content: "";
    position: absolute;
    display: block;
    height: 0;
    width: 0;
    left: 23px;
    bottom: -21px;
}

.alt-gitem__arrow {
    position: absolute;
    width: 40px;
    height: 40px;
    overflow: hidden;
    left: 12px;
    bottom: -46px;
}

.alt-gitem__arrow::after {
    background-color: #fff;
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    -webkit-transform: rotate(225deg);
    -ms-transform: rotate(225deg);
    transform: rotate(225deg);
    top: -10px;
    left: 12px;
    box-shadow: -1px -1px 5px -2px rgba(0, 0, 0, .5);
}

.alt-gitem__wrap_border {
    box-shadow: 0 0 5px 0 #7e9dff;
    border: 6px solid #6085ff;
}
.alt-gitem__wrap_border--sky-blue {
    box-shadow: 0 0 5px 0 #006952;
    border: 6px solid #1c809d;
}

.alt-gitem__wrap_border .alt-gitem__arrow::after {
    background-color: #6085ff;
}

.alt-gitem__wrap_border--sky-blue .alt-gitem__arrow::after {
    background-color: #1c809d;
}

.alt-gitem__label {
    font-size: 1.25rem;
    line-height: 1.25rem;
    font-weight: 700;
    display: inline-block;
    position: absolute;
    top: -25px;
    left: -16px;
    margin: 0;
    padding: 9px 16px 8px 14px;
    color: #fff;
    background-color: #3358d5;
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, .14);
}

.rich-text.block-editor-rich-text__editable.alt-gitem__label {
    margin: 0;
    color: #fff;
}

.alt-gitem__label::after {
    content: " ";
    display: block;
    position: absolute;
    left: -10px;
    bottom: -7px;
    border-color: rgba(0, 0, 0, 0) #133091 rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
    border-style: inset solid inset inset;
    border-width: 0 10px 7px;
}


.alt-gitem__wrap_border--sky-blue .alt-gitem__label {
    color: #000;
    background-color: #7fd99e;
}

.alt-gitem__wrap_border--sky-blue .rich-text.block-editor-rich-text__editable.alt-gitem__label {
    color: #000;
}

.alt-gitem__wrap_border--sky-blue .alt-gitem__label::after {
    border-color: rgba(0, 0, 0, 0) #1c809d rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
}

.alt-gitem__inner {
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    justify-content: center;
}

.alt-gitem__in {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.alt-gitem__in-left {
    /* -webkit-align-self: center;
    -ms-flex-item-align: center;
    align-self: center; */
    margin-top: 0;
    order: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.alt-gitem__in-left button,
.alt-gitem__in-left img {
    max-width: 100%;
    height: auto;
}
.alt-gitem__in-left figure {
    margin-top: auto;
    margin-bottom: auto;
}

.alt-gitem__toplink {
    font-size: 1.25rem;
    line-height: 1.625rem;
    margin: 0 0 6px;
    border: none;
    padding-top: 0;
}

.alt-gitem__toplink a {
    color: #ef3737;
    font-weight: 700;
    line-height: normal;
    text-decoration: underline;
    -ms-touch-action: manipulation;
    touch-action: manipulation
}
.alt-gitem__toplink a:hover {
    color: #ef3737;
}

.alt-gitem__headlink {
    font-size: 1.1875rem;
    line-height: 1.5rem;
    margin: 0 0 22px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    font-weight: 600;
    color: #333;
}

.alt-gitem__headlink a {
    color: #000;
    text-decoration: none;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}
.alt-gitem__headlink a:hover {
    color: #000;
}
.alt-gitem__in-right {
    order: 2;
}

.alt-gitem__toplink {
    order: -2;
}
.alt-gitem__headlink {
    order: -1;
}

@media (min-width: 30em) {
    .alt-gitem__wrap {
        max-width: 100%;
        margin-left: .5em;
        margin-right: .5em;
    }

    .alt-gitem__in-right {
        padding-left: 1.5em;
        display: flex;
        flex-direction: column;
    }

    .alt-gitem__inner {
        display: flex;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}