.footer-gallery {
    width: min(100% - 24px, 1100px);
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.footer-card {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    background: #fff;
}

.footer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.footer-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.footer-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 74px;
    background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 28px 12px 12px;
    box-sizing: border-box;
    text-shadow: 0 1px 3px rgba(0,0,0,0.65);
}

.footer-card:hover .footer-overlay {
    opacity: 1;
}

/* Lightbox */
.footer-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.footer-lightbox.active {
    display: flex;
}

.footer-lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
}

.footer-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.footer-lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: #fff;
    color: #000;
    line-height: 40px;
    text-align: center;
}

.footer-lightbox-close:hover {
    opacity: 0.9;
}

.usrr-footer-brand {
    width: min(100% - 24px, 1100px);
    box-sizing: border-box;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 10px;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.usrr-footer-logo {
    width: 120px;
}

.usrr-footer-logo img {
    height: 60px;
    width: auto;
    max-width: 100%;
}

.usrr-footer-logo-right {
    text-align: right;
}

.usrr-footer-title-wrap {
    flex: 1;
    text-align: center;
}

.usrr-footer-title-inner {
    display: inline-block;
    background: #f2f2f2;
    padding: 8px 15px;
    border-radius: 6px;
    color: #000;
}

.usrr-footer-title {
    font-size: 30px;
    font-weight: bold;
}

@media (max-width: 900px) {
    .footer-gallery {
        width: min(100% - 18px, 1100px);
    }

    .footer-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 10px;
    }

    .footer-overlay {
        opacity: 1;
    }
}

@media (max-width: 560px) {
    .footer-row {
        grid-template-columns: 1fr;
    }

    .footer-card {
        aspect-ratio: 5 / 6;
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }

    .usrr-footer-brand {
        width: min(100% - 18px, 1100px);
        padding: 6px 8px;
        gap: 8px;
    }

    .usrr-footer-logo {
        width: 50px;
        flex: 0 0 50px;
    }

    .usrr-footer-logo img {
        height: auto;
        width: 50px;
    }

    .usrr-footer-logo-right {
        display: none;
    }

    .usrr-footer-title-inner {
        padding: 6px 8px;
    }

    .usrr-footer-title {
        font-size: 16px;
        line-height: 1.2;
    }
}

/* ===== OPTION A COMMUNITY GALLERY AND FOOTER ===== */
.option-a-community {
    background: #ffffff;
    border-top: 1px solid #e1e7ee;
    box-sizing: border-box;
    padding: 48px 20px 58px;
    text-align: center;
}

.option-a-community-title {
    color: #071a2d;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: clamp(29px, 3vw, 39px);
    font-weight: 900;
    margin: 0 0 32px;
}

.option-a-community-title::after {
    background: #ed1c2e;
    content: "";
    display: block;
    height: 3px;
    margin: 14px auto 0;
    width: 44px;
}

.option-a-community .footer-gallery {
    margin: 0 auto;
    max-width: 1180px;
    width: 100%;
}

.option-a-community .footer-row {
    gap: 18px;
    margin: 0;
}

.option-a-community .footer-card {
    align-self: start;
    aspect-ratio: auto;
    background: #ffffff;
    border: 1px solid #d7dfe8;
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(7, 26, 45, .08);
    display: flex;
    flex-direction: column;
}

.option-a-community .footer-card:hover,
.option-a-community .footer-card:focus-within {
    box-shadow: 0 12px 26px rgba(7, 26, 45, .16);
    transform: translateY(-3px);
}

.option-a-community .footer-photo-frame {
    aspect-ratio: 4 / 5;
    background: #eef3f8;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.option-a-community .footer-photo-frame img {
    height: 100%;
    object-position: center 38%;
}

.option-a-community .footer-overlay {
    align-items: flex-end;
    background: linear-gradient(to top, rgba(3, 18, 32, .82), rgba(3, 18, 32, 0));
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    min-height: 82px;
    opacity: 0;
    padding: 32px 12px 13px;
    text-shadow: 0 1px 3px rgba(0,0,0,.65);
    text-transform: uppercase;
}

.option-a-community .footer-community-story {
    color: #263442;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    padding: 15px 16px 17px;
    text-align: left;
}

.option-a-community .footer-card:focus {
    outline: 3px solid rgba(0, 58, 112, .3);
    outline-offset: 3px;
}

.footer-lightbox-caption {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    margin: 13px auto 0;
    max-width: 760px;
    text-align: center;
}

.usrr-footer-brand.option-a-footer {
    background: #061f37;
    border: 0;
    border-radius: 0;
    border-top: 4px solid #ed1c2e;
    box-shadow: none;
    box-sizing: border-box;
    color: #ffffff;
    display: block;
    margin: 0;
    max-width: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

.option-a-footer-main {
    box-sizing: border-box;
    display: grid;
    gap: clamp(26px, 4vw, 56px);
    grid-template-columns: 1.15fr .8fr .8fr 1.2fr .65fr;
    margin: 0 auto;
    max-width: 1320px;
    padding: 42px 28px 36px;
}

.option-a-footer-column {
    min-width: 0;
}

.option-a-footer-brand-logo {
    display: block;
    margin-bottom: 14px;
    width: 132px;
}

.option-a-footer-brand-logo img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.option-a-footer p {
    color: #c7d4e1;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.option-a-footer h2 {
    color: #ffffff;
    font-size: 13px;
    letter-spacing: .04em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.option-a-footer-links {
    display: grid;
    gap: 7px;
}

.option-a-footer a,
.option-a-footer a:visited {
    color: #d9e4ef !important;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
}

.option-a-footer a:hover,
.option-a-footer a:focus {
    color: #ffffff !important;
    text-decoration: underline;
}

.option-a-footer-cta,
.option-a-footer-cta:visited {
    align-items: center;
    background: #ed1c2e;
    border-radius: 5px;
    color: #ffffff !important;
    display: inline-flex;
    font-size: 12px !important;
    font-weight: 900;
    margin-top: 16px;
    min-height: 42px;
    padding: 0 15px;
    text-transform: uppercase;
}

.option-a-social-links {
    display: flex;
    gap: 9px;
}

.option-a-social-links a {
    align-items: center;
    border: 1px solid #6d8398;
    border-radius: 50%;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    text-decoration: none !important;
    width: 36px;
}

.option-a-social-links svg {
    color: currentColor;
    display: block;
    height: 19px;
    width: 19px;
}

.option-a-footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.20);
    box-sizing: border-box;
    color: #adbdcc;
    display: flex;
    font-size: 12px;
    gap: 18px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1320px;
    padding: 15px 28px 18px;
}

.option-a-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

@media (max-width: 980px) {
    .option-a-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .option-a-footer-brand-column {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .option-a-community {
        padding-left: 14px;
        padding-right: 14px;
    }

    .option-a-community .footer-row {
        grid-template-columns: 1fr;
    }

    .option-a-community .footer-card {
        aspect-ratio: auto;
        max-width: 360px;
    }

    .option-a-community .footer-photo-frame {
        aspect-ratio: 5 / 6;
    }

    .option-a-footer-main {
        grid-template-columns: 1fr;
        padding: 34px 20px 28px;
    }

    .option-a-footer-brand-column {
        grid-column: auto;
    }

    .option-a-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 20px 20px;
    }
}

@media (max-width: 900px) {
    .option-a-community .footer-overlay {
        opacity: 1;
    }
}
