.trx-addons-image-accordion {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    /* aspect-ratio removed from here, height is calculated dynamically */
    transition: height 0.4s ease;
}

.trx-addons-image-accordion-item {
    position: relative;
    overflow: hidden;
    flex: 1 1 0%;
    transition: flex 0.4s ease;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.trx-addons-image-accordion-active {
    flex: 3 1 0%;
}

.trx-addons-image-accordion-shadow-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.trx-addons-image-accordion-item-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.trx-addons-image-accordion-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 2;
    transition: background-color 0.4s ease;
}

.trx-addons-image-accordion-active::before {
    background-color: rgba(0,0,0,0.1);
}

.trx-addons-image-accordion-below-content {
    position: relative;
    z-index: 5;
    padding: 30px;
    width: 100%;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.trx-addons-image-accordion-active .trx-addons-image-accordion-below-content {
    opacity: 1;
    transform: translateY(0);
}

.trx-addons-image-accordion-title {
    margin: 0 0 10px;
    font-size: 24px;
    color: #fff;
}

.trx-addons-image-accordion-description p {
    margin: 0;
    color: #fff;
}