/* Base accordion wrapper */
.ia-accordion {
    display: flex;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

/* Direction */
.ia-horizontal {
    flex-direction: row;
}
.ia-vertical {
    flex-direction: column;
}

/* Each item */
.ia-accordion .ia-item {
    flex: 1;
    min-width: 40px;
    min-height: 40px;
    cursor: pointer;
    transition: flex 0.45s ease;
    will-change: flex;
}

/* Active item expands */
.ia-accordion .ia-item.is-active {
    flex: 4;
}

/* Inner wrapper */
.ia-accordion .ia-item-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

/* Image wrapper */
.ia-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;

    background-repeat: no-repeat;
    background-position: center center;

    /* Enable overlay absolute positioning */
    position: relative;

    /* Image opacity (per item) */
    opacity: var(--ia-image-opacity, 1);
    transition: opacity 0.25s ease;
}

/* Background sizing */
.ia-horizontal .ia-item .ia-image {
    background-size: auto 100%;
}
.ia-vertical .ia-item .ia-image {
    background-size: 100% auto;
}

/* Focus classes */
.ia-item.ia-focus-center       .ia-image { background-position: center center; }
.ia-item.ia-focus-top          .ia-image { background-position: center top; }
.ia-item.ia-focus-bottom       .ia-image { background-position: center bottom; }
.ia-item.ia-focus-left         .ia-image { background-position: left center; }
.ia-item.ia-focus-right        .ia-image { background-position: right center; }
.ia-item.ia-focus-top_left     .ia-image { background-position: left top; }
.ia-item.ia-focus-top_right    .ia-image { background-position: right top; }
.ia-item.ia-focus-bottom_left  .ia-image { background-position: left bottom; }
.ia-item.ia-focus-bottom_right .ia-image { background-position: right bottom; }

/* Overlay (FULL image coverage now) */
.ia-overlay {
    position: absolute;
    inset: 0; /* top:0; left:0; right:0; bottom:0 */
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    /* You selected B → overlay content vertical center */
    justify-content: center;

    padding: 16px;
    box-sizing: border-box;

    /* Allow clicking (your choice A) */
    pointer-events: auto;
}

/* Horizontal alignment – text-align only */
.ia-item.ia-text-left  .ia-overlay { text-align: left; }
.ia-item.ia-text-center .ia-overlay { text-align: center; }
.ia-item.ia-text-right .ia-overlay { text-align: right; }

/* Typography */
.ia-accordion .ia-title {
    font-weight: 600;
    margin-bottom: 6px;
}
.ia-accordion .ia-desc {
    font-size: 0.9em;
}

/* Empty state */
.ia-accordion.ia-empty {
    display: block;
    height: auto;
    min-height: 40px;
}
