A は B と同じくらい
と同じぐらい (variant of くらい)
The structure と同じくらい is used to express that two things are approximately equal in some quality, quantity, or degree. It translates to "about the same as," "about as … as," or "just as … as" in English.
The typical pattern is A は B と同じくらい + Adjective/Verb, meaning "A is about as [adjective] as B" or "A does [verb] about as much as B."
The particle くらい (also written ぐらい) adds the nuance of approximation – the two things are roughly the same, not necessarily exactly identical. Without くらい, using とおなじ同じ alone means "the same as" (exact equality).
と同じくらい can also be used with verbs to compare how much or how often someone does something.
You can place a noun after と同じくらい to express that something is at the same level or amount as something else.
Here, の connects と同じくらい to the following noun.