/* Our Portfolio page (design `isPortfolio`) */
.pm-pf-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--pm-line); }
.pm-pf-filter[hidden] { display: none; }
.pm-pf-filter__label { font-size: 12px; letter-spacing: 0.1em; font-weight: 600; text-transform: uppercase; color: var(--pm-muted); }
.pm-body .pm-pf-filter .pm-pill { padding: 8px 18px; font-family: inherit; line-height: 16px; color: var(--pm-ink); transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease; }
.pm-body .pm-pf-filter .pm-pill:hover { border-color: var(--pm-red); color: var(--pm-red); }
.pm-body .pm-pf-filter .pm-pill[aria-pressed="true"] { background: var(--pm-red-soft); border-color: var(--pm-red); color: var(--pm-red); }
.pm-pf-filter .pm-pill:focus-visible { outline: 2px solid var(--pm-red); outline-offset: 3px; }

.pm-pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.pm-pf-item[hidden] { display: none; }
.pm-pf-item__media { position: relative; aspect-ratio: 4 / 3; margin-bottom: 14px; border-radius: var(--pm-radius-card); overflow: hidden; background: var(--pm-well); }
.pm-pf-item__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--pm-ease); }
.pm-pf-item:hover .pm-pf-item__media img { transform: scale(1.03); }
.pm-pf-item__tag { position: absolute; top: 10px; left: 10px; background: rgba(28, 27, 27, 0.72); color: var(--pm-white); font-size: 10px; letter-spacing: 0.1em; font-weight: 600; text-transform: uppercase; padding: 5px 10px; border-radius: 9999px; }
.pm-pf-item__title { font-family: var(--pm-serif); font-size: 22px; line-height: 30px; font-weight: 500; color: var(--pm-ink); margin: 0 0 4px; }
.pm-pf-item__meta { font-size: 13px; line-height: 20px; color: var(--pm-muted); margin: 0; }

/* Wide red CTA banner (same component as about.css) */
.pm-cta-wide { margin-top: 56px; background: var(--pm-red); border-radius: var(--pm-radius-panel); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.pm-cta-wide h2 { font-family: var(--pm-serif); font-size: 36px; line-height: 44px; font-weight: 500; color: var(--pm-white); margin: 0 0 8px; }
.pm-cta-wide p { font-size: 15px; line-height: 24px; color: var(--pm-white); margin: 0; opacity: 0.92; }
.pm-body .pm-cta-wide .pm-btn--white { padding: 14px 28px; }
.pm-body .pm-cta-wide .pm-btn--white:hover { background: var(--pm-page); color: var(--pm-red-hover); }
.pm-cta-wide .pm-btn:focus-visible { outline-color: var(--pm-white); }

@media (max-width: 1100px) {
    .pm-pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones (design mobile block): one project per row, red banner padded 24/20. */
@media (max-width: 900px) {
    .pm-pf-grid { grid-template-columns: minmax(0, 1fr); }
    .pm-cta-wide { padding: 24px 20px; }
    /* Design metrics: filter chips (33px) and photo tags (23px) use line-height normal. */
    .pm-body .pm-pf-filter .pm-pill, .pm-pf-filter__label, .pm-pf-item__tag { line-height: normal; }
}

/* Real installation photos (approved + featured in Marketing -> Installation photos) */
a.pm-pf-item__media { display: block; }
a.pm-pf-item__media:focus-visible { outline: 2px solid var(--pm-red); outline-offset: 3px; }
.pm-pf-item__title a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.pm-pf-item__title a:hover, .pm-pf-item__title a:focus-visible { color: var(--pm-red); }
.pm-pf-item__caption { font-size: 14px; line-height: 22px; color: var(--pm-body); margin: 8px 0 0; }
.pm-pf-share { margin: 32px 0 0; font-size: 14px; line-height: 22px; color: var(--pm-muted); text-align: center; }
.pm-pf-share__link { color: var(--pm-red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pm-pf-share__link:hover { color: var(--pm-red-hover); }

/* Honest empty state until real photos are published */
.pm-pf-empty { max-width: 760px; margin: 8px auto 0; padding: 56px 40px; }
.pm-pf-empty p { font-size: 15px; line-height: 24px; color: var(--pm-body); margin: 0 auto 12px; max-width: 560px; }
.pm-pf-empty .pm-btn { margin-top: 12px; }
@media (max-width: 900px) {
    .pm-pf-empty { padding: 40px 20px; }
}
/* Phones/tablets: the design pads every main section 20px at any width up to 900px
   (the global gutter clamps to 34px at 768). */
@media (max-width: 900px) {
    main { --pm-gutter: 20px; }
}
