“cabinet / pavilion” in Japanese is 閣, read kaku (かく). It is a Grade 6 Kyōiku kanji, taught in year 6 of Japanese elementary school, and appears in words such as 内閣 (cabinet).
What does 閣 mean?
金閣寺を見た。
Same sound, different character — the classic trap. Compare them side by side: