.g12-ia {
    display: flex;
    gap: 0.4rem;
    height: var(--g12-ia-height, 420px);
    position: relative;
    overflow: hidden;
}

.g12-ia__item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    transition: flex 320ms ease, transform 320ms ease;
}

.g12-ia__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.28) 40%, rgba(0, 0, 0, 0.6) 100%);
    transition: opacity 240ms ease;
}

.g12-ia__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.4rem;
    color: #ffffff;
    text-align: left;
}

.g12-ia__text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
}

.g12-ia__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 240ms ease, opacity 240ms ease;
}

.g12-ia__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: transform 240ms ease, opacity 240ms ease, max-height 240ms ease;
    max-height: 0;
    overflow: hidden;
}

.g12-ia__item.is-active,
.g12-ia__item:hover {
    flex: 1.4 1 0;
}

.g12-ia__item.is-active .g12-ia__overlay,
.g12-ia__item:hover .g12-ia__overlay {
    opacity: 1;
}

.g12-ia__item.is-active .g12-ia__title,
.g12-ia__item:hover .g12-ia__title {
    opacity: 1;
    transform: translateY(0);
}

.g12-ia__item .g12-ia__desc {
    min-height: 44px;
}

.g12-ia__item.is-active .g12-ia__desc,
.g12-ia__item:hover .g12-ia__desc {
    opacity: 0.95;
    transform: translateY(0);
    max-height: 8rem;
    margin-top: 0.45rem;
}

.g12-ia:has(.g12-ia__item:hover) .g12-ia__item:not(:hover) {
    flex: 0.9 1 0;
}

@media (max-width: 1024px) {
    .g12-ia {
        height: var(--g12-ia-height-tablet, var(--g12-ia-height, 360px));
    }
}

@media (max-width: 767px) {
    .g12-ia {
        flex-direction: column;
        height: auto;
    }

    .g12-ia__item,
    .g12-ia:has(.g12-ia__item:hover) .g12-ia__item,
    .g12-ia__item.is-active,
    .g12-ia__item:hover {
        flex: 1 1 auto;
        min-height: var(--g12-ia-height-mobile, 220px);
    }
}