and activities that are allocated by subsections (a)(1) and (a)(2) of this section: Provided, That in any fiscal year, the matter preceding this proviso shall not apply to the allocation of amounts for continuing administration of programs allocated funds from the National Parks and Public Land Legacy Restoration Fund or the Land and Water Conservation Fund, which may be allocated only in amounts that are no more than the allocation for such purposes in subsections (a)(1) and (a)(2) of this section. (c) The Secretary of the Interior and the Secretary of Agriculture may reallocate amounts from each agency’s Contingency Fund line in the table titled Allocation of Funds: National Parks and Public Land Legacy Restoration Fund Fiscal Year 2024 to any project funded by the National Parks and Public Land Legacy Restoration Fund within the same agency, from any fiscal year, that experienced a funding deficiency due to unforeseen cost overruns, in accordance with the following requirements: (1) Contingency Fund amounts may only be reallocated if there is a risk to project completion resulting from unforeseen cost overruns