27. First, let's assume that M has three vertices on the sides of △ABC, or M has one vertex coinciding with a vertex of △ABC (for example, B), and another vertex of M is on the opposite side of B (as shown in the figure).
Let the initial state be ∠AC1B1=θ0. We rotate M clockwise and counterclockwise around C1. Let δ1 be the angle when M first has a side parallel to a side of △ABC when rotated clockwise, and δ2 be the angle when M first has a side parallel to a side of △ABC when rotated counterclockwise. For θ∈[θ1,θ2],θ1=θ0−δ1,θ2=θ0+δ2, let M first rotate to the corresponding θ angle around C1, and then perform homothetic transformations centered at A and B respectively, so that the corresponding two vertices of the image of M (denoted as Mθ) are repositioned on AC and BC respectively. Let C1B1=mf(θ),A1B1=nf(θ),f(θ0)=1, where m and n are the initial distances. Let φ=∠B+∠C1B1A1 (a constant), then AC=AB1+B1C=sin∠Amf(θ)sinθ+sin∠Cnf(θ)sin(φ−θ). Therefore, f(θ)= msinθ⋅sin∠C+nsin(φ−θ)⋅sin∠AACsin∠A⋅sin∠C=asin(θ+φ1)ACsin∠A⋅sin∠C, where a and φ1 are constants. Since sin(θ+φ1) is a convex function, it must achieve its minimum value at the endpoints. Hence, max{f(θ1),f(θ2)}⩾f(θ0)=1, so the similarity ratio of Mθ1 or Mθ2 to M is not less than 1, and they are located within △ABC, thus proving the conclusion. For the second case, a similar discussion can be made. Let BB2=mf(θ),f(θ0)=1, then AB2=sin∠ABB2⋅sinθ,CB2=sin∠CBB2⋅sin(∠B−θ). Therefore, AC=sin∠Amf(θ)sinθ+sin∠Cmf(θ)sin(∠B−θ)=sin∠A⋅sin∠Cf(θ)asin(θ+φ2), where a and φ2 are constants, hence f(θ)=asin(θ+φ2)ACsin∠A⋅sin∠C. The proof can be derived similarly to the previous case.