/* Make the archived galleries usable with a keyboard and on touch screens. */
.section_portfolio .portfolio__item__img:focus-within .portfolio__item__img__mask,
.section_portfolio .portfolio__item__img:focus-within .portfolio__item__img__mask > * {
    opacity: 1;
    transform: none;
}

@media (hover: none), (max-width: 767px) {
    .section_portfolio .portfolio__item__img__mask {
        position: static;
        background: #222;
        opacity: 1;
        transform: none;
    }

    .section_portfolio .portfolio__item__img__mask > * {
        opacity: 1;
        transform: none;
    }
}

#modal_portfolio__img {
    max-width: 100%;
    height: auto;
}

:root {
    --precix-green: #476d21;
    --precix-ink: #242d20;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 12px 18px;
    color: #fff;
    background: #222;
}

.skip-link:focus { top: 12px; }

.service-page, .page-intro { padding-top: 145px; }
.service-page { padding-bottom: 64px; }
.page-intro { padding-bottom: 32px; }
.page-breadcrumb { margin-bottom: 28px; font-size: 14px; }
.page-breadcrumb span { margin-left: 8px; }
.service-eyebrow { color: var(--precix-green); font-weight: 700; }
.service-heading { margin-bottom: 40px; max-width: 940px; }
.service-page h1, .page-intro h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.15; }
.service-lead { font-size: 18px; line-height: 1.7; color: #475047; }
.service-copy h2 { font-size: 25px; margin-top: 28px; }
.service-copy p { line-height: 1.8; }
.service-photo { margin: 0 0 24px; }
.service-photo img { width: 100%; height: auto; border-radius: 6px; }
.service-photo figcaption { margin-top: 12px; font-size: 14px; line-height: 1.6; color: #596159; }
.service-checklist { padding: 24px; background: #f2f6ee; border-radius: 6px; }
.service-checklist h2 { margin-top: 0; font-size: 25px; }
.service-checklist li { margin-bottom: 12px; }
.service-checklist .btn { display: block; white-space: normal; margin: 20px 0; }
.service-checklist p { margin-bottom: 0; }
.service-related { padding-top: 32px; margin-top: 32px; border-top: 1px solid #e3e8df; }
.service-related-links, .footer-services { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; list-style: none; }
.service-directory { padding-top: 30px; padding-bottom: 64px; }
.service-directory > h2 { text-align: center; margin-bottom: 32px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { padding: 24px; border: 1px solid #dce4d5; border-radius: 6px; background: #fafcf8; }
.service-card h3 { font-size: 23px; margin-top: 0; }
.service-card h3 a, .service-text-link { color: var(--precix-green); }
.service-card p { line-height: 1.7; }
.service-text-link { text-decoration: underline; font-weight: 700; }
.footer-services { padding-bottom: 28px; }
.footer-services a { color: #d5e5c8; }
.gallery-section { padding-top: 0; padding-bottom: 64px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery-card { margin: 0; overflow: hidden; border: 1px solid #dce4d5; border-radius: 6px; background: #fff; }
.gallery-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #f2f4ef; }
.gallery-card figcaption { padding: 20px; }
.gallery-card h2 { margin: 0 0 12px; font-size: 23px; }
.gallery-card p { font-size: 15px; line-height: 1.65; color: #4d554b; }
.gallery-open { display: inline-block; padding: 8px 0; color: var(--precix-green); font-weight: 700; text-decoration: underline; }
.gallery-pagination { margin-top: 36px; text-align: center; }
.gallery-pagination .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gallery-pagination li { display: block; }
.gallery-pagination a, .gallery-pagination span { display: block; padding: 10px 14px; }
.gallery-pagination li.disabled { opacity: .5; pointer-events: none; }

@media (max-width: 991px) {
    .service-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-photo { margin-top: 24px; }
}

@media (max-width: 639px) {
    .service-grid, .gallery-grid { grid-template-columns: minmax(0, 1fr); }
    .service-page, .page-intro { padding-top: 125px; }
    .service-checklist { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.interior-page .navbar { background: #222; }
.banner__carousel__img { background-position: center; background-size: cover; }
.section_banner .item.active [class*="animate-"] { animation: none; opacity: 1; transform: none; }
