/* Real Permahaven photography, December 2026. */
.photoHero{position:relative;isolation:isolate;overflow:hidden;background:var(--ink)}
.photoHero .heroPhoto{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center 56%}
.photoHero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(9,8,7,.65),rgba(9,8,7,.48) 90px,rgba(9,8,7,.08) 240px,rgba(9,8,7,.78) 100%)}
.hero.photoHero:after{z-index:-1;background:linear-gradient(90deg,rgba(15,11,8,.32),transparent 75%);pointer-events:none}
.hero.photoHero{min-height:92svh;min-height:clamp(690px,92svh,1000px)}
.hero.photoHero h1{max-width:850px;font-size:clamp(58px,7.4vw,100px);line-height:.96}
.hero.photoHero p{max-width:620px;font-size:21px}
.hero.photoHero .heroInner{padding-top:220px;padding-bottom:105px}
.heroPhotoLink{display:inline-flex;gap:9px;align-items:center;margin-top:24px;color:#fff;font-size:14px;font-weight:650;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.6);padding-bottom:4px}
.heroPhotoLink:hover{border-bottom-color:white}
.pagehero.photoHero{min-height:590px;display:flex;align-items:flex-end;padding:190px 0 78px}
.pagehero.photoHero:before{background:linear-gradient(180deg,rgba(9,8,7,.12),rgba(9,8,7,.12) 22%,rgba(9,8,7,.78))}
.pagehero.photoHero .heroPhoto{object-position:center 54%}
.pagehero.photoHero h1{max-width:850px}
.pagehero.photoHero p{max-width:670px}
.photoStack.realPhotos{height:560px;grid-template-columns:1fr 1fr;grid-template-rows:1.2fr 1fr;gap:12px}
.photoStack.realPhotos a{display:block;position:relative;overflow:hidden;border-radius:22px;background:#ded3c2;padding:0;color:#fff}
.photoStack.realPhotos .main{grid-column:1/-1;grid-row:auto;background:none}
.photoStack.realPhotos .smalltop,.photoStack.realPhotos .smallbot{background:none}
.photoStack.realPhotos img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.photoStack.realPhotos a:hover img{transform:scale(1.025)}
.photoStack.realPhotos span{position:absolute;bottom:14px;left:16px;right:16px;font-size:13px;font-weight:750;text-shadow:0 1px 10px #000;z-index:1}
.photoStack.realPhotos a:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.5));pointer-events:none}
.photoPreviewSection{padding-top:0}
.photoHeading{display:flex;justify-content:space-between;gap:32px;align-items:flex-end;margin-bottom:30px}
.photoHeading h2{margin-bottom:0;max-width:740px}
.photoHeading .btn{flex:none}
.photoPreview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.photoPreview figure{margin:0;min-width:0}
.photoPreview a{display:block;border-radius:20px;overflow:hidden;background:#e4d9c7}
.photoPreview img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transition:transform .3s ease}
.photoPreview a:hover img{transform:scale(1.025)}
.photoPreview figcaption{font-size:14px;font-weight:650;padding:13px 3px 0}
.photoGallerySection{background:var(--cream);scroll-margin-top:90px}
.galleryIntro{max-width:680px;margin:20px 0 32px;font-size:19px}
.photoGrid{columns:3;column-gap:20px}
.photoCard{display:inline-block;vertical-align:top;width:100%;margin:0 0 20px;break-inside:avoid;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff}
.photoCard a{display:block;position:relative;overflow:hidden;text-decoration:none}
.photoCard img{display:block;width:100%;height:auto;transition:transform .3s ease}
.photoCard a:hover img{transform:scale(1.02)}
.photoCard a:after{content:"↗";position:absolute;right:12px;bottom:12px;display:grid;place-items:center;background:rgba(23,21,18,.75);color:white;width:32px;height:32px;border-radius:50%;font-size:19px;opacity:0;transition:opacity .2s}
.photoCard a:hover:after,.photoCard a:focus-visible:after{opacity:1}
.photoCard figcaption{padding:15px 17px 17px;font-size:14px;font-weight:650;line-height:1.4}
.photoCard a:focus-visible,.photoPreview a:focus-visible,.photoStack.realPhotos a:focus-visible{outline:3px solid var(--clay);outline-offset:4px}
.galleryFooter{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:20px;padding-top:24px;border-top:1px solid var(--line)}
.galleryFooter p{margin:0;max-width:650px;font-size:17px}
.gatherPhotoStrip{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-top:38px}
.gatherPhotoStrip figure{margin:0;min-width:0}
.gatherPhotoStrip img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:22px;display:block}
.gatherPhotoStrip figcaption{font-size:14px;padding:12px 3px 0}
.photoDialog{border:0;padding:0;max-width:none;max-height:none;width:min(1220px,calc(100vw - 32px));height:min(900px,calc(100dvh - 32px));background:#15130f;color:#fff;border-radius:20px;box-shadow:0 30px 100px #0008;overflow:hidden}
.photoDialog::backdrop{background:rgba(8,7,5,.92);backdrop-filter:blur(8px)}
.photoDialogInner{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.photoDialogTop{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:14px 20px;border-bottom:1px solid #ffffff20}
.photoDialogTop p{margin:0;font-size:14px;letter-spacing:.02em}
.photoDialog button{border:1px solid #ffffff50;background:#ffffff0d;color:#fff;border-radius:999px;min-width:46px;min-height:46px;padding:10px 16px;cursor:pointer;font:inherit;font-size:14px}
.photoDialog button:hover{background:#ffffff20}
.photoDialog button:focus-visible{outline:3px solid var(--sand);outline-offset:3px}
.photoDialogImageWrap{min-height:0;padding:16px;display:flex;align-items:center;justify-content:center}
.photoDialogImage{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
.photoDialogBottom{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding:4px 20px 18px}
.photoDialogCaption{text-align:center;font-size:15px;line-height:1.4;margin:0}
.photoDialogCount{display:block;margin-top:4px;font-size:12px;color:#ffffffb0}
body.photo-viewer-open{overflow:hidden}
@media(max-width:930px){
 .hero.photoHero{min-height:760px}.hero.photoHero h1{max-width:740px}
 .photoHeading{align-items:flex-start;flex-direction:column;gap:23px}
 .photoStack.realPhotos{height:620px;grid-template-rows:1.4fr 1fr}
 .photoGrid{columns:2}
 .photoPreview{gap:12px}.photoPreview figcaption{font-size:13px}
 .pagehero.photoHero{min-height:610px}
}
@media(max-width:640px){
 /* Keep the real landscape photo intact on phones; place copy on solid ink. */
 .hero.photoHero,.pagehero.photoHero{display:block;min-height:0;padding:78px 0 0}
 .photoHero .heroPhoto,.pagehero.photoHero .heroPhoto{position:relative;inset:auto;z-index:0;display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;object-position:center}
 .photoHero:before,.hero.photoHero:after{display:none}
 .hero.photoHero .heroInner{padding-top:30px;padding-bottom:76px}
 .hero.photoHero h1{font-size:clamp(47px,12.4vw,68px);line-height:.98;letter-spacing:-.04em}
 .hero.photoHero p{font-size:18px;max-width:32ch}
 .hero.photoHero .actions{gap:9px;margin-top:24px}
 .hero.photoHero .btn{padding:13px 17px;font-size:14px}
 .heroPhotoLink{margin-top:20px;font-size:13px}
 .pagehero.photoHero>.wrap{padding-top:30px;padding-bottom:64px}
 .pagehero.photoHero h1{font-size:clamp(48px,12vw,68px)}
 .photoStack.realPhotos{height:480px;grid-template-rows:1.3fr 1fr;gap:9px}
 .photoStack.realPhotos a{border-radius:17px}
 .photoStack.realPhotos span{left:12px;bottom:12px;font-size:12px}
 .photoHeading{margin-bottom:24px}
 .photoPreview{grid-template-columns:1fr;gap:24px}
 .photoPreview img{aspect-ratio:4/3}
 .photoPreview figcaption{font-size:15px}
 .photoGrid{columns:1;column-gap:0}
 .photoCard{margin-bottom:22px}
 .galleryIntro{font-size:18px}
 .galleryFooter{align-items:flex-start;flex-direction:column}
 .galleryFooter .btn{width:100%}
 .gatherPhotoStrip{grid-template-columns:1fr;gap:24px}
 .photoDialog{width:100vw;height:100dvh;border-radius:0}
 .photoDialogTop{padding:max(12px,env(safe-area-inset-top)) 14px 12px}
 .photoDialogImageWrap{padding:8px}
 .photoDialogBottom{gap:8px;padding:10px 12px max(18px,env(safe-area-inset-bottom))}
 .photoDialogBottom button{padding:10px;min-width:44px;font-size:0}
 .photoDialogPrev:before{content:"←";font-size:24px}
 .photoDialogNext:after{content:"→";font-size:24px}
 .photoDialogCaption{font-size:14px}
 .footer{padding-bottom:100px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}.photoCard img,.photoPreview img,.photoStack.realPhotos img{transition:none}
}
