/* Gallery-only styling. The shared site stylesheet is unchanged. */
.pg-section{padding-top:clamp(40px,5vw,76px)}.pg-toolbar{display:flex;align-items:end;justify-content:space-between;gap:28px;flex-wrap:wrap;margin-bottom:30px}.pg-toolbar .major{max-width:700px}.pg-filters{display:flex;gap:8px;flex-wrap:wrap}.pg-filter{border:1px solid #a4786459;background:transparent;color:inherit;border-radius:100px;padding:10px 16px;font:600 12px Montserrat,sans-serif;cursor:pointer}.pg-filter.active,.pg-filter:hover{background:#a47864;color:#fff;border-color:#a47864}.pg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.pg-tile{margin:0;min-width:0;overflow:hidden;aspect-ratio:4/3;background:#e7e9e4}.pg-tile[hidden]{display:none}.pg-view{display:block;width:100%;height:100%;padding:0;border:0;position:relative;cursor:zoom-in;background:transparent;color:#fff;text-align:left}.pg-view img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}.pg-view:hover img{transform:scale(1.035)}.pg-meta{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:24px 16px 13px;background:linear-gradient(transparent,rgba(0,0,0,.65));font:600 12px Montserrat,sans-serif}.pg-meta span{font-size:22px}.pg-footnote{font-size:12px;opacity:.7;margin-top:18px}.pg-lightbox:not([hidden]){position:fixed;inset:0;z-index:10000;background:rgba(15,20,28,.94);display:flex;align-items:center;justify-content:center;flex-direction:column;padding:62px 24px 35px}.pg-lightbox img{max-width:100%;max-height:calc(100vh - 135px);object-fit:contain}.pg-lightbox p{color:white;text-align:center;font-size:13px}.pg-close{position:absolute;top:12px;right:22px;color:white;background:none;border:0;font-size:42px;cursor:pointer}@media(max-width:900px){.pg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.pg-grid{gap:9px}.pg-meta{padding:20px 9px 10px;font-size:9px}.pg-filter{font-size:11px;padding:9px 12px}.pg-toolbar{gap:18px}}@media(prefers-reduced-motion:reduce){.pg-view img{transition:none}}
/* Gallery hero only — no shared page/component changes */
@media (min-width: 901px){
.page-gallery .page-hero{padding-block:24px!important;}
.page-gallery .page-hero-grid{min-height:245px!important;grid-template-columns:minmax(0,1fr) minmax(260px,.5fr);gap:34px!important;}
.page-gallery .page-hero h1{font-size:clamp(2.7rem,3.3vw,3.5rem)!important;line-height:1.03;}
.page-gallery .page-hero .lead{margin-top:12px!important;font-size:clamp(.94rem,1vw,1.05rem)}
}
.page-gallery .page-hero{background:linear-gradient(90deg,rgba(244,241,235,.97) 0%,rgba(244,241,235,.93) 49%,rgba(244,241,235,.52) 78%,rgba(244,241,235,.15) 100%),url('../images/portfolio/gallery-pc2-017.webp') right center/cover no-repeat!important;color:#27323c;}
.page-gallery .page-hero .eyebrow,.page-gallery .page-hero .breadcrumbs,.page-gallery .page-hero h1,.page-gallery .page-hero p{color:#27323c;}
.page-gallery .page-hero-aside{background:rgba(255,255,255,.4);backdrop-filter:blur(7px);border-color:rgba(164,120,100,.35)}
@media(max-width:900px){.page-gallery .page-hero-grid{min-height:0!important;gap:16px!important}.page-gallery .page-hero{padding-block:28px!important;background-position:65% center!important}.page-gallery .page-hero-aside{display:none}.page-gallery .page-hero h1{font-size:clamp(2.2rem,7.5vw,3.2rem)}}

/* 2026-10-10 gallery hero contrast + compact fix */
body.page-gallery .page-hero{padding:0!important;background-image:linear-gradient(90deg,rgba(247,246,242,.98) 0%,rgba(247,246,242,.94) 40%,rgba(247,246,242,.60) 72%,rgba(247,246,242,.2) 100%),url('../images/portfolio/gallery-pc2-017.webp')!important;background-size:cover!important;background-position:center 48%!important;background-repeat:no-repeat!important;color:#26313d!important}
body.page-gallery .page-hero .page-hero-grid{min-height:260px!important;padding-top:24px!important;padding-bottom:24px!important;grid-template-columns:minmax(0,1fr) minmax(220px,.45fr)!important;gap:24px!important;align-items:center!important}
body.page-gallery .page-hero h1{font-size:clamp(2.2rem,3vw,3.4rem)!important;color:#26313d!important;line-height:1.05!important;margin:10px 0 0!important;text-shadow:none!important}
body.page-gallery .page-hero h1 em{color:#a47864!important}
body.page-gallery .page-hero .lead{color:#3a4550!important;font-size:clamp(.92rem,1.05vw,1.04rem)!important;line-height:1.55!important;margin:12px 0 0!important;max-width:640px!important}
body.page-gallery .page-hero .eyebrow{color:#805d4c!important}
body.page-gallery .page-hero .breadcrumbs,body.page-gallery .page-hero .breadcrumbs a,body.page-gallery .page-hero .breadcrumbs span{color:#46525a!important}
body.page-gallery .page-hero .page-hero-aside{background:rgba(255,255,255,.72)!important;border:1px solid rgba(164,120,100,.22)!important;padding:18px 20px!important;border-radius:8px!important;backdrop-filter:blur(4px)}
body.page-gallery .page-hero .page-hero-aside p{color:#37434a!important;font-size:.94rem!important}
@media(max-width:900px){body.page-gallery .page-hero .page-hero-grid{min-height:0!important;display:block!important;padding-top:30px!important;padding-bottom:32px!important}body.page-gallery .page-hero .page-hero-aside{display:none!important}body.page-gallery .page-hero{background-position:65% center!important}body.page-gallery .page-hero h1{font-size:clamp(2.1rem,7vw,3rem)!important}}
@media(max-width:540px){body.page-gallery .page-hero .page-hero-grid{padding-top:22px!important;padding-bottom:26px!important}body.page-gallery .page-hero{background-image:linear-gradient(90deg,rgba(247,246,242,.96),rgba(247,246,242,.80)),url('../images/portfolio/gallery-pc2-017.webp')!important}}


/* Gallery hero final: scoped override of shared full-screen image-led hero. */
body.page-gallery .page-hero:has(.page-hero-grid) {
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  padding:0 !important;
  background:#e7e9e4 !important;
  background-image:linear-gradient(115deg,#f8f6f2 0%,#e7e9e4 58%,#dcc8b9 100%) !important;
  color:#24313c !important;
  overflow:visible !important;
}
body.page-gallery .page-hero:has(.page-hero-grid)::after,
body.page-gallery .page-hero:has(.page-hero-grid)::before {content:none !important;display:none !important;}
body.page-gallery .page-hero .page-hero-grid {
  display:block !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  padding:0 !important;
  width:min(100% - 48px,1200px) !important;
  margin:0 auto !important;
}
body.page-gallery .page-hero .page-hero-grid>div:first-child {
  height:auto !important;
  width:100% !important;
  max-width:850px !important;
  display:block !important;
  padding:33px 0 35px !important;
  color:#24313c !important;
}
body.page-gallery .page-hero .page-hero-grid>.page-hero-aside {display:none !important;}
body.page-gallery .page-hero .breadcrumbs {color:#46515b !important;margin:0 0 12px !important;}
body.page-gallery .page-hero .breadcrumbs a,
body.page-gallery .page-hero .breadcrumbs span {color:#46515b !important;}
body.page-gallery .page-hero .eyebrow {color:#815e4c !important;margin-bottom:8px !important;}
body.page-gallery .page-hero:has(.page-hero-grid) h1,
body.page-gallery .page-hero h1 {font-size:clamp(2.1rem,3.2vw,3.15rem) !important;line-height:1.06 !important;max-width:780px !important;margin:8px 0 10px !important;color:#24313c !important;text-shadow:none !important;}
body.page-gallery .page-hero h1 em {color:#945f49 !important;}
body.page-gallery .page-hero:has(.page-hero-grid) .lead,
body.page-gallery .page-hero .lead {color:#35434d !important;font-size:clamp(.88rem,1vw,1rem) !important;line-height:1.5 !important;margin:0 !important;max-width:710px !important;}
@media(max-width:820px){
  body.page-gallery .page-hero .page-hero-grid {width:calc(100% - 40px) !important;}
  body.page-gallery .page-hero .page-hero-grid>div:first-child {padding:29px 0 31px !important;}
}
@media(max-width:540px){
  body.page-gallery .page-hero .page-hero-grid {width:calc(100% - 32px) !important;}
  body.page-gallery .page-hero .page-hero-grid>div:first-child {padding:23px 0 26px !important;}
  body.page-gallery .page-hero h1 {font-size:clamp(2rem,9vw,2.65rem) !important;}
}
