.hg-ae648a54-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.hg-ae648a54-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    z-index: 2;
}

.hg-ae648a54-item-title {
    cursor: pointer;
    font-size: 2.5rem;
    font-weight: 600;
    color: #888;
    margin: 0;
    padding: 10px 0;
    line-height: 1.2;
    transition: color 0.4s ease, transform 0.4s ease;
    transform-origin: left center;
    position: relative;
    display: inline-block;
    align-self: flex-start;
}

/* Underline structure */
.hg-ae648a54-item-title::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom left;
    transition: transform 0.35s ease-out;
}

.hg-ae648a54-item-title.active::after,
.hg-ae648a54-item-title:hover::after {
    transform: scaleX(1);
}

.hg-ae648a54-item-title.active,
.hg-ae648a54-item-title:hover {
    color: #111;
    transform: translateX(15px);
}

.hg-ae648a54-images {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Updated 2x2 Grid container for desktop */
.hg-ae648a54-img-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.6s;
}

.hg-ae648a54-img-grid.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

.hg-ae648a54-grid-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hg-ae648a54-grid-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Shutter Effect Overrides (Slider Style) */
.hg-transition-shutter .hg-ae648a54-images {
    overflow: hidden;
}

/* We override opacity/visibility here so they are always visible for sliding */
.hg-transition-shutter .hg-ae648a54-img-grid {
    opacity: 1; 
    visibility: visible;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base positions */
.hg-transition-shutter .hg-ae648a54-img-grid {
    transform: translateY(150%); /* Default hide below */
}

/* The actively entering grid needs to be on top of the exiting one */
.hg-transition-shutter .hg-ae648a54-img-grid.active {
    z-index: 2; 
    transform: translateY(0);
}

/* The exiting grid needs to be below the entering one */
.hg-transition-shutter .hg-ae648a54-img-grid.was-active {
    z-index: 1;
}

/* 
 * 1. Snapping classes (no transition)
 */
.hg-transition-shutter .hg-ae648a54-img-grid.snap-below {
    transform: translateY(150%);
    transition: none !important;
}

.hg-transition-shutter .hg-ae648a54-img-grid.snap-above {
    transform: translateY(-150%);
    transition: none !important;
}

/* 
 * 2. Moving Up
 */
.hg-transition-shutter .hg-ae648a54-img-grid.active.slide-in-up {
    transform: translateY(0);
}
.hg-transition-shutter .hg-ae648a54-img-grid.was-active.slide-out-up {
    transform: translateY(-150%); 
}

/* 
 * 3. Moving Down
 */
.hg-transition-shutter .hg-ae648a54-img-grid.active.slide-in-down {
    transform: translateY(0);
}
.hg-transition-shutter .hg-ae648a54-img-grid.was-active.slide-out-down {
    transform: translateY(150%); 
}

/* Initial Load Center */
.hg-transition-shutter .hg-ae648a54-img-grid.initial {
    transform: translateY(0);
    z-index: 2;
    transition: none;
}


/* Dark mode fallback for active states inside Elementor editor */
.elementor-editor-active .hg-ae648a54-item-title.active {
    color: #000;
}

/* Mobile Accordion Container */
.hg-ae648a54-mobile-container {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 15px;
}

.hg-ae648a54-mobile-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 15px;
}

.hg-ae648a54-mobile-item:last-child {
    border-bottom: none;
}

.hg-ae648a54-mobile-title {
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
    color: #888;
    margin: 0;
    padding: 15px 0;
    line-height: 1.2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.hg-ae648a54-mobile-title.active {
    color: #111;
}

.hg-ae648a54-mobile-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.hg-ae648a54-mobile-icon::before,
.hg-ae648a54-mobile-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.hg-ae648a54-mobile-icon::before {
    width: 14px;
    height: 2px;
}

.hg-ae648a54-mobile-icon::after {
    width: 2px;
    height: 14px;
}

.hg-ae648a54-mobile-title.active .hg-ae648a54-mobile-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.hg-ae648a54-mobile-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
    overflow: hidden;
}

.hg-ae648a54-mobile-content.active {
    grid-template-rows: 1fr;
}

/* Mobile Image Grid */
.hg-ae648a54-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 0;
    transition: margin-top 0.4s ease;
}

.hg-ae648a54-mobile-content.active .hg-ae648a54-mobile-grid {
    margin-top: 15px;
}

.hg-ae648a54-mobile-img-wrapper {
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.hg-ae648a54-mobile-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Ensure editor displays mobile layout nicely if needed */
@media (max-width: 767px) {
    .hg-ae648a54-container {
        display: none !important;
    }
    .hg-ae648a54-mobile-container {
        display: flex !important;
    }
}