.gsap-cloth-wave-gallery-widget {
    width: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: transparent !important;
    font-family: inherit;
    position: relative;
    display: inline-block;
    line-height: 0;
    font-size: 0;
    vertical-align: top;
}


.gsap-cloth-wave-gallery-file-input {
    display: none;
}

.gsap-cloth-wave-gallery-canvas {
    width: auto;
    height: auto;
    min-height: inherit;
    position: relative;
    overflow: visible;
    background: transparent !important;
}

.gsap-cloth-wave-gallery-canvas canvas {
    display: block;
    width: auto;
    height: auto;
    background: transparent !important;
}

.gsap-cloth-wave-gallery-widget .lil-gui.root {
    position: absolute;
    top: auto !important;
    bottom: 10px;
    right: 10px;
}


/* Remove Elementor/widget baseline and bottom whitespace around the WebGL canvas. */
.elementor-widget-gsap-cloth-wave-gallery,
.elementor-widget-gsap-cloth-wave-gallery .elementor-widget-container,
.gsap-cloth-wave-gallery-widget,
.gsap-cloth-wave-gallery-canvas {
    line-height: 0 !important;
    font-size: 0 !important;
    min-height: 0 !important;
    height: auto;
    vertical-align: top !important;
}

.elementor-widget-gsap-cloth-wave-gallery,
.elementor-widget-gsap-cloth-wave-gallery .elementor-widget-container,
.gsap-cloth-wave-gallery-widget {
    display: inline-block !important;
    width: auto !important;
}

.gsap-cloth-wave-gallery-canvas,
.gsap-cloth-wave-gallery-canvas canvas {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    vertical-align: top !important;
}

/* Elementor editor static preview for Cloth Wave. The WebGL canvas is left for frontend output only. */
.gsap-cloth-wave-editor-preview {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px dashed rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    line-height: normal !important;
    font-size: 13px !important;
}

.gsap-cloth-wave-editor-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.gsap-cloth-wave-editor-preview-label {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 12px !important;
    line-height: 1.35 !important;
    text-align: center;
    font-family: inherit;
}

.elementor-editor-active .gsap-cloth-wave-gallery-widget,
.elementor-editor-preview .gsap-cloth-wave-gallery-widget {
    display: block !important;
    width: 100% !important;
    line-height: normal !important;
    font-size: 13px !important;
}

.elementor-editor-active .gsap-cloth-wave-gallery-widget .gsap-cloth-wave-gallery-canvas,
.elementor-editor-preview .gsap-cloth-wave-gallery-widget .gsap-cloth-wave-gallery-canvas {
    display: none !important;
}

.elementor-editor-active .gsap-cloth-wave-gallery-widget .gsap-cloth-wave-editor-preview,
.elementor-editor-preview .gsap-cloth-wave-gallery-widget .gsap-cloth-wave-editor-preview {
    display: flex !important;
}
