/* BFS Portfolio — page-specific CSS. Site header/footer remain untouched. */
.pf-page{font-family:Inter,system-ui,sans-serif;color:#0f172a;background:#f8fafc;overflow:hidden}.pf-page *{box-sizing:border-box}.pf-page a{text-decoration:none}.pf-intro{background:linear-gradient(130deg,#f8fafc 0%,#f8fafc 70%);padding:68px 24px 72px;border-bottom:1px solid #e8f6f1}.pf-intro-inner,.pf-feature-inner,.pf-gallery-inner,.pf-cta-inner{width:min(100%,1170px);margin:0 auto}.pf-kicker,.pf-eyebrow{font-size:10px;letter-spacing:.17em;font-weight:800;color:#217a66;display:flex;align-items:center;gap:10px}.pf-live-dot{height:7px;width:7px;background:#2b9d88;border-radius:50%}.pf-kicker-line{height:1px;width:28px;background:#64748b}.pf-hero-copy{display:flex;justify-content:space-between;align-items:end;gap:42px;margin-top:24px}.pf-hero-copy h2{font-size:clamp(48px,7.4vw,102px);line-height:1.015;letter-spacing:-.065em;margin:0;font-weight:800;color:#0f172a}.pf-hero-copy h2 em,.pf-heading-row h2 em,.pf-cta h2 em{font-family:Georgia,serif;font-weight:400;color:#2b9d88;letter-spacing:-.055em}.pf-intro-sub{max-width:550px;color:#64748b;font-size:15px;line-height:1.8;margin:26px 0 0}.pf-hero-side{border-left:1px solid #cfece5;padding:0 0 0 27px;min-width:200px;max-width:235px;display:grid;gap:8px}.pf-side-label,.pf-side-note{font-size:10px;letter-spacing:.13em;color:#64748b;font-weight:700}.pf-side-note{letter-spacing:normal;font-size:12px;font-weight:400;line-height:1.5}.pf-side-number{font-weight:800;font-size:48px;letter-spacing:-.055em;white-space:nowrap;color:#0f172a}.pf-side-plus{color:#2b9d88}.pf-feature{background:#0f172a;padding:48px 24px 43px}.pf-feature-meta{color:#e8f6f1;display:flex;justify-content:space-between;align-items:end;gap:18px;padding-bottom:22px}.pf-feature-meta>span:first-child{display:grid;gap:5px}.pf-feature-meta strong{font-weight:700;font-size:22px}.pf-feature-idx{font-size:10px;color:#2b9d88;letter-spacing:.15em;font-weight:700}.pf-feature-meta>span:last-child{font-size:10px;letter-spacing:.14em;color:#64748b}.pf-feature-image{position:relative;display:block;width:100%;padding:0;background:#0f172a;border:1px solid #217a66;border-radius:3px;overflow:hidden;cursor:zoom-in}.pf-feature-image img{width:100%;height:auto;max-height:680px;object-fit:contain;display:block}.pf-zoom-label{position:absolute;bottom:20px;right:20px;background:#fff;color:#0f172a;padding:12px 17px;font-size:10px;font-weight:800;letter-spacing:.11em}.pf-zoom-label span{margin-left:15px;font-size:16px}.pf-feature-bottom{display:flex;justify-content:space-between;gap:15px;align-items:center;color:#64748b;font-size:10px;letter-spacing:.13em;font-weight:700;padding-top:23px}.pf-feature-bottom a{color:#e8f6f1}.pf-feature-bottom a span{font-size:19px;margin-left:9px}.pf-gallery-section{padding:74px 24px 90px;background:#f8fafc}.pf-heading-row{display:flex;gap:35px;justify-content:space-between;align-items:end;margin-bottom:30px}.pf-heading-row h2{font-size:clamp(37px,4.8vw,60px);line-height:1.1;letter-spacing:-.05em;margin:12px 0 0;color:#0f172a}.pf-heading-row>p{max-width:285px;margin:0 0 5px;color:#697873;font-size:13px;line-height:1.7}.pf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #e8f6f1;border-bottom:1px solid #e8f6f1;padding:13px 0;margin-bottom:26px}.pf-filters{display:flex;flex-wrap:wrap;gap:7px}.pf-filter{font-family:inherit;border:none;background:transparent;color:#64748b;border-radius:99px;padding:9px 14px;font-size:12px;font-weight:700;cursor:pointer;transition:.2s}.pf-filter:hover{color:#217a66;background:#e8f6f1}.pf-filter.is-active{background:#0f172a;color:#fff}.pf-count{font-size:11px;color:#768780;white-space:nowrap}.pf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.pf-item{min-width:0}.pf-image-button{border:1px solid #e8f6f1;background:#e8f6f1;padding:0;width:100%;position:relative;display:flex;align-items:center;justify-content:center;cursor:zoom-in;overflow:hidden;aspect-ratio:1.32;border-radius:3px;transition:box-shadow .22s,border-color .22s}.pf-image-button img{width:100%;height:100%;object-fit:contain;transition:transform .4s}.pf-image-button:hover{border-color:#2b9d88;box-shadow:0 12px 30px #0a382514}.pf-image-button:hover img{transform:scale(1.035)}.pf-image-overlay{position:absolute;inset:auto 10px 10px auto;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#fff;color:#0f172a;font-size:18px;box-shadow:0 2px 10px #152c2224}.pf-item-caption{display:flex;justify-content:space-between;gap:8px;padding:12px 2px 0;align-items:center}.pf-item-caption strong{font-size:12px;color:#0f172a;font-weight:700}.pf-item-caption span{font-size:10px;color:#7b8983;text-transform:uppercase;letter-spacing:.05em}.pf-more-wrap{text-align:center;margin-top:38px}.pf-more{font-family:inherit;padding:15px 27px;color:#0f172a;background:transparent;border:1px solid #64748b;border-radius:6px;font-size:11px;font-weight:800;letter-spacing:.1em;cursor:pointer}.pf-more:hover{background:#e8f6f1}.pf-more span{font-size:17px;margin-left:12px}.pf-empty{padding:35px;text-align:center;color:#64748b}.pf-cta{background:linear-gradient(135deg,#0f172a,#217a66);color:white;padding:58px 24px}.pf-cta-inner{display:flex;justify-content:space-between;align-items:end;gap:30px}.pf-cta span{font-size:10px;letter-spacing:.14em;font-weight:700;color:#cfece5}.pf-cta h2{font-size:clamp(30px,4vw,49px);line-height:1.13;margin:14px 0 0;letter-spacing:-.04em}.pf-cta h2 em{color:#cfece5}.pf-cta-actions{display:grid;gap:10px;min-width:225px}.pf-cta-actions a{padding:14px 16px;display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.06em;font-weight:800;border-radius:6px}.pf-cta-primary{background:#fff;color:#0f172a}.pf-cta-secondary{border:1px solid #64748b;color:#fff}.pf-cta-actions a span{color:inherit;font-size:19px}.pf-lightbox[hidden],.pf-empty[hidden],.pf-more[hidden]{display:none!important}.pf-lightbox{position:fixed;inset:0;z-index:999;background:rgba(2,13,11,.97);display:flex;align-items:center;justify-content:center;overflow:hidden;padding:70px 80px}.pf-lightbox img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 16px 60px #0007}.pf-lightbox-bar{position:absolute;top:0;left:0;right:0;padding:15px 25px;display:flex;justify-content:space-between;align-items:center;color:#e8f6f1;font-size:11px;letter-spacing:.14em}.pf-lightbox-close,.pf-lightbox-nav{color:white;border:1px solid #ffffff44;background:#ffffff13;cursor:pointer;border-radius:50%;width:39px;height:39px}.pf-lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);font-size:29px}.pf-lightbox-prev{left:19px}.pf-lightbox-next{right:19px}.pf-lightbox-bottom{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;gap:20px;padding:18px 26px;color:#cfece5;font-size:10px;letter-spacing:.1em}.pf-lightbox-close:focus-visible,.pf-image-button:focus-visible,.pf-filter:focus-visible,.pf-more:focus-visible{outline:3px solid #2b9d88;outline-offset:3px}body.pf-modal-open{overflow:hidden}header .nav-links a[aria-current="page"]{color:#217a66;background:rgba(43,157,136,.09)}@media(max-width:900px){.pf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.pf-hero-side{display:none}.pf-feature-image img{max-height:520px}}@media(max-width:620px){.pf-intro{padding:42px 16px 45px}.pf-hero-copy h2{font-size:51px}.pf-intro-sub{font-size:13px;margin-top:20px}.pf-feature{padding:22px 12px 23px}.pf-feature-meta{padding-bottom:14px}.pf-feature-meta>span:last-child{display:none}.pf-feature-meta strong{font-size:17px}.pf-feature-bottom>span{display:none}.pf-feature-bottom{justify-content:flex-end;padding-top:15px}.pf-zoom-label{bottom:9px;right:9px;padding:9px;font-size:9px}.pf-gallery-section{padding:44px 13px 60px}.pf-heading-row{display:block}.pf-heading-row>p{margin-top:12px}.pf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.pf-item-caption{display:block}.pf-item-caption strong{font-size:11px}.pf-item-caption span{display:block;margin-top:3px}.pf-toolbar{align-items:start;flex-direction:column}.pf-filter{padding:8px 10px;font-size:11px}.pf-image-button{aspect-ratio:1/1}.pf-cta{padding:42px 17px}.pf-cta-inner{display:block}.pf-cta-actions{margin-top:25px}.pf-lightbox{padding:65px 12px 75px}.pf-lightbox-nav{top:auto;bottom:15px;transform:none;width:32px;height:32px}.pf-lightbox-prev{left:12px}.pf-lightbox-next{right:12px}.pf-lightbox-bottom{justify-content:center;text-align:center;bottom:15px;padding:0 52px}.pf-lightbox-bottom>span:last-child{display:none}}@media(prefers-reduced-motion:reduce){.pf-page *, .pf-lightbox *{transition:none!important;scroll-behavior:auto!important}}

/* Portfolio: gallery opens directly below BFS navigation */
.pf-page .pf-gallery-section{padding-top:42px;}
@media(max-width:620px){.pf-page .pf-gallery-section{padding-top:28px;}}

/* ===================================================
   GALLERY REPAIR — borderless, natural book proportions
   Scoped to portfolio only; no homepage changes.
   =================================================== */
.pf-page .pf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.pf-page .pf-item { min-width: 0; width: 100%; margin: 0; }
.pf-page .pf-image-button {
  appearance: none;
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  line-height: 0;
  text-align: left;
  cursor: pointer;
}
.pf-page .pf-image-button > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  transform: none;
  cursor: pointer;
}
.pf-page .pf-image-button:hover,
.pf-page .pf-image-button:focus-visible {
  border: 0;
  box-shadow: none;
}
.pf-page .pf-image-button:hover > img { transform: none; }
.pf-page .pf-image-overlay { cursor: pointer; }
.pf-page .pf-item-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
  padding: 12px 0 0;
  line-height: 1.35;
}
@media (max-width: 900px) {
  .pf-page .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 620px) {
  .pf-page .pf-grid { grid-template-columns: 1fr; gap: 23px; }
  .pf-page .pf-item-caption { display: flex; }
}


/* Requested BFS Portfolio refinements */
header .pf-home-brand { text-decoration: none; color: inherit; cursor: pointer; border-radius: 8px; }
header .pf-home-brand:hover h1 { color: #217a66; }
header .pf-home-brand:focus-visible { outline: 3px solid #2b9d88; outline-offset: 5px; }
.pf-page .pf-gallery-section {
  background: linear-gradient(160deg, #f8fafc 0%, #f8fafc 54%, #e8f6f1 100%);
  position: relative;
}
.pf-page .pf-heading-row { justify-content: flex-start; }
.pf-page .pf-toolbar { justify-content: flex-start; }
/* Keep the gallery stable while actual images load. */
.pf-page .pf-item[hidden] { display: none !important; }
.pf-page .pf-item.is-loading .pf-image-button { background: #e8f1ee; }
.pf-page .pf-item.is-loading .pf-image-button > img { opacity: 0; }
.pf-page .pf-image-button > img { color: transparent; }
