.heroBs5 {
    background-color: #111;
    color: #fff;
}

.heroBs5-image {
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-image: var(--hero-img);
    position: relative;
}

/*
    Left-edge alignment: .section-wide (ci-bootstrap5-overrides.css) centers a 1650px-capped
    box with a fixed padding-left, so on viewports wider than ~1700px its content edge drifts
    right of a simple fixed-padding column. The hero text is full-bleed (no max-width), so to
    keep its left edge tracking .section-wide's left edge at every viewport width - not just
    the breakpoint this used to be tuned for - both use the same
    max(fixed-padding, centered-offset + padding) formula below instead of a flat value.
*/
.storeBs5Page .section-wide {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.storeBs5Page .heroBs5-text {
    padding-left: max(3rem, calc((100vw - 1650px) / 2 + 1.5rem)) !important;
}

@media (min-width: 992px) {
    .heroBs5-image {
        min-height: 520px;
    }

    .storeBs5Page .section-wide {
        padding-left: 6rem;
        padding-right: 6rem;
    }

    .storeBs5Page .heroBs5-text {
        padding-left: max(6rem, calc((100vw - 1650px) / 2 + 6rem)) !important;
    }
}

    /* A separate overlay layer (rather than stacking the gradient into the same
       background-image as the photo) avoids the visible seam that multi-layer
       background-size:cover produces at the gradient's endpoint. */
    .heroBs5-image::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, #111 0%, rgba(17, 17, 17, 0) 25%);
    }

.featureIcon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Extra breathing room between stacked sections, and a taller grey panel so the
   brands/staff section doesn't feel cramped against its own content. */
.storeBs5Page section.py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.storeBs5Page section.ci-grey-panel.py-5 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.storeBlurb p:first-child {
    margin-top: 0;
}

/* Brand logos: auto-width, wrapping, left-aligned with the section label above. */
.brandLogos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2rem;
}

.brandLogoImg {
    display: block;
    max-height: 60px;
    max-width: 120px;
    width: auto;
    height: auto;
}

/* Checkmark bullet list admins insert via the "Checklist" button in the About tab's editor
   (js/tinymce-store-about-editor.js) - this used to be a hardcoded C# list on this page, now
   it's just CMS content, styled to look the same as before. Kept in sync with that file's
   matching content_style. */
.storeBlurb ul.checklist {
    list-style: none;
    padding-left: 0;
    margin: 0;
    column-count: 2;
    column-gap: 2rem;
}

.storeBlurb ul.checklist li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 2px;
    break-inside: avoid;
}

@media (max-width: 575.98px) {
    .storeBlurb ul.checklist {
        column-count: 1;
    }
}

.storeBlurb ul.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #000;
}

#storeMapBs5 {
    height: 260px;
    width: 100%;
}

.storeGalleryImg {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.optometristPhoto, .staffModalPhoto {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.staffLearnMore {
    margin-top: 0.75rem;
}

/* The whole card is clickable (the Learn More link's stretched-link covers it). */
.staffCard {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.staffCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.staffCard:hover .staffLearnMore {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .staffCard {
        transition: none;
    }

    .staffCard:hover {
        transform: none;
    }
}
