To make this elderberry pie gluten-free, substitute the traditional pie crust with a gluten-free pie dough made from a blend of gluten-free all-purpose flour, xanthan gum, butter, and a touch of cold water. Additionally, ensure the cornstarch used for thickening is labeled gluten-free, as some brands may have cross-contamination risks. The rest of the ingredients remain naturally gluten-free, preserving the authentic taste and texture of the pie.