/* ==========================================================================
   Image Accordion structural & interactive styles for 426dc504
   ========================================================================== */

.ia-container-426dc504 {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.ia-item-426dc504 {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    will-change: flex;
}

/* Background image handling */
.ia-bg-wrapper-426dc504 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.ia-bg-426dc504 {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center center;
}

.ia-overlay-426dc504 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: background-color 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Fullscreen Trigger button overlay */
.ia-trigger-426dc504 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 5;
    cursor: pointer;
    outline: none;
}

.ia-trigger-426dc504:focus-visible {
    box-shadow: inset 0 0 0 3px var(--e-global-color-accent, #3b82f6);
}

/* Vertical titles for closed states */
.ia-title-closed-wrapper-426dc504 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ia-title-closed-wrapper-426dc504.dir-up {
    transform: translate(-50%, -50%) rotate(-90deg);
}

.ia-title-closed-wrapper-426dc504.dir-down {
    transform: translate(-50%, -50%) rotate(90deg);
}

.ia-item-426dc504.is-active .ia-title-closed-wrapper-426dc504 {
    opacity: 0;
    pointer-events: none;
}

/* Content Container */
.ia-content-426dc504 {
    position: relative;
    z-index: 4;
    width: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
}

.ia-content-inner-426dc504 {
    width: 100%;
    box-sizing: border-box;
}

.ia-item-426dc504.is-active .ia-content-426dc504 {
    opacity: 1;
    pointer-events: auto;
}

.ia-title-open-426dc504 a {
    color: inherit;
    text-decoration: none;
}

/* Description Animations */
.ia-description-426dc504 {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ia-item-426dc504.is-active .ia-description-426dc504 {
    opacity: 1;
    transform: none !important;
}

/* Animations configs */
.ia-description-426dc504.anim-fade {
    transform: none;
}
.ia-description-426dc504.anim-fade-up {
    transform: translateY(15px);
}
.ia-description-426dc504.anim-fade-down {
    transform: translateY(-15px);
}
.ia-description-426dc504.anim-slide-left {
    transform: translateX(20px);
}
.ia-description-426dc504.anim-slide-right {
    transform: translateX(-20px);
}
.ia-description-426dc504.anim-zoom {
    transform: scale(0.95);
}

/* Overlay behaviors */
.hide-overlay-open .ia-item-426dc504.is-active .ia-overlay-426dc504 {
    background-color: transparent !important;
}

/* Responsive configurations (Tablets / Laptops down) */
@media (max-width: 767px) {
    /* Vertical mobile layout */
    .ia-container-426dc504.ia-mobile-vertical {
        flex-direction: column;
        height: auto !important;
    }

    .ia-container-426dc504.ia-mobile-vertical .ia-item-426dc504 {
        width: 100% !important;
        flex: 0 0 80px !important;
        height: 80px; /* Base collapsed height */
        transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .ia-container-426dc504.ia-mobile-vertical .ia-item-426dc504.is-active {
        flex: 0 0 320px !important;
        height: 320px !important; /* Expanded height */
    }

    .ia-container-426dc504.ia-mobile-vertical .ia-title-closed-wrapper-426dc504 {
        transform: translate(-50%, -50%) !important; /* Horizontal title on mobile vertical accordion */
    }

    /* Horizontal scroll mobile layout */
    .ia-container-426dc504.ia-mobile-scroll {
        overflow-x: auto;
        white-space: nowrap;
        scroll-snap-type: x mandatory;
    }

    .ia-container-426dc504.ia-mobile-scroll .ia-item-426dc504 {
        scroll-snap-align: center;
        flex: 0 0 85% !important;
        width: 85% !important;
    }
}

/* Accessibility: prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ia-item-426dc504,
    .ia-bg-426dc504,
    .ia-overlay-426dc504,
    .ia-description-426dc504,
    .ia-title-closed-wrapper-426dc504 {
        transition: none !important;
    }
}
