<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0206</schemaVersion>

    <documentType>3</documentType>

    <periodOfReport>2019-01-02</periodOfReport>

    <noSecuritiesOwned>0</noSecuritiesOwned>

    <issuer>
        <issuerCik>0000912562</issuerCik>
        <issuerName>GIBRALTAR INDUSTRIES, INC.</issuerName>
        <issuerTradingSymbol>ROCK</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001675953</rptOwnerCik>
            <rptOwnerName>Bosway William T</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>3556 LAKE SHORE ROAD</rptOwnerStreet1>
            <rptOwnerStreet2>P.O. BOX 2028</rptOwnerStreet2>
            <rptOwnerCity>BUFFALO</rptOwnerCity>
            <rptOwnerState>NY</rptOwnerState>
            <rptOwnerZipCode>14219-0228</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>true</isDirector>
            <isOfficer>true</isOfficer>
            <isTenPercentOwner>false</isTenPercentOwner>
            <isOther>false</isOther>
            <officerTitle>President and CEO</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Special Restricted Stock Units (1/02/2019)</value>
                <footnoteId id="F1"/>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>28027.00</value>
                    <footnoteId id="F1"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes>
        <footnote id="F1">Represents special restricted stock units awarded to Reporting Person.  One-third (1/3) of the total units awarded vest and are payable, solely in shares of common stock of the Company, on January 2nd, 2020, and on each January 2nd thereafter through January 2nd, 2022.</footnote>
    </footnotes>

    <remarks></remarks>

    <ownerSignature>
        <signatureName>/s/ Paul J. Schulz, Attorney in Fact for William T. Bosway</signatureName>
        <signatureDate>2019-01-11</signatureDate>
    </ownerSignature>
</ownershipDocument>
