For nearly four centuries, a massive stone fortress stood just off India’s western coast and refused to bend to any empire that came for it. The Marathas launched 13 separate attempts to capture it.