.andras_3d {
    position: relative;
    height: 3000px !important;
    min-height: 3000px !important;
    overflow: visible !important;
}

.andras_3d,
.andras_3d>.elementor-container,
.andras_3d>.elementor-container>.elementor-column,
.andras_3d>.elementor-container>.elementor-column>.elementor-widget-wrap,
.andras_3d .elementor-widget-container {
    overflow: visible !important;
}

.andras_3d_sticky_wrapper {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 100;
    background: inherit;
}

.andras_3d_sticky_wrapper * {
    box-sizing: border-box;
}

.andras_3d_grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
    align-items: center;
    /* justify-items: center removed to allow specific alignment per item */
}

.andras_side_text {
    opacity: 0;
    transition: opacity 0.4s ease-out;
    width: 100%;
    max-width: 345px;
}

#andras_left_text {
    text-align: right;
    justify-self: end;
}

#andras_right_text {
    text-align: left;
    justify-self: start;
}

.andras_side_text h2 {
    margin-bottom: 16px;
    font-size: 2rem;
    font-weight: 600;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    hyphens: none !important;
}

.andras_side_text p {
    font-size: 1.1rem;
    line-height: 1.6;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    hyphens: none !important;
}

.andras_3d_image_container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: calc(min(60vh, 30vw, 500px) * var(--andras-zoom, 1));
    height: calc(min(60vh, 30vw, 500px) * var(--andras-zoom, 1));
    margin: 0 auto;
    flex-shrink: 0;
}

.andras_buffer_img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: none;
}

.andras_buffer_img.andras_buffer_active {
    opacity: 1;
}

.andras_img_error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    text-align: center;
    z-index: 10;
}

#andras_preload_container {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 1280px) {
    .andras_side_text h2 {
        font-size: 1.6rem;
    }

    .andras_side_text p {
        font-size: 1rem;
    }

    .andras_3d_grid {
        gap: 15px;
        padding: 0 30px;
    }

    .andras_3d_image_container {
        width: calc(min(55vh, 28vw, 450px) * var(--andras-zoom, 1));
        height: calc(min(55vh, 28vw, 450px) * var(--andras-zoom, 1));
    }
}

@media (max-width: 1200px) {
    .andras_side_text h2 {
        font-size: 45px !important;
    }
}

@media (max-width: 1024px) {
    .andras_side_text h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
        white-space: normal;
    }

    .andras_side_text p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .andras_3d_image_container {
        width: calc(min(50vh, 25vw, 400px) * var(--andras-zoom, 1));
        height: calc(min(50vh, 25vw, 400px) * var(--andras-zoom, 1));
    }

    .andras_side_text {
        min-width: 200px;
    }
}