/* FSR single project template helpers: work type labels, project gallery layout, previous/next navigation.
   Uses the site's brand tokens with safe fallbacks. Buttons/links set !important where the theme restyles them. */

/* Featured project image (top of the single project page): natural proportions, never cropped */
.fsr-pf{margin:0;width:100%}
.fsr-pf--empty{display:none}
.fsr-pf-img{display:block;width:100%;height:auto;max-height:72vh;object-fit:contain}

/* Before & after pairs: equal frames side by side, natural proportions (never cropped), clear Before / After tags */
.fsr-ba--empty{display:none}
.fsr-ba{display:flex;flex-direction:column;gap:clamp(1.5rem,1.25rem + 1vw,2.25rem);font-family:var(--fsr-font-body,Inter,system-ui,sans-serif)}
.fsr-ba-pair{margin:0}
.fsr-ba-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.fsr-ba-item{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:var(--fsr-light-stone,#E9EAE5);border-radius:2px;overflow:hidden}
.fsr-ba-img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.fsr-ba-tag{position:absolute;top:.75rem;left:.75rem;z-index:2;padding:.3rem .65rem;font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;line-height:1.2;color:#fff;background:var(--fsr-forest-deep,#0F3A2C);border-radius:2px}
.fsr-ba-cap{font-style:normal;display:flex;flex-direction:column;gap:.25rem;margin-top:.9rem}
.fsr-ba-label{font-style:normal;font-family:var(--fsr-font-heading,Newsreader,Georgia,serif);font-size:1.25rem;line-height:1.3;color:var(--fsr-text,#1C2220)}
.fsr-ba-caption{font-style:normal;max-width:40rem;font-size:.9375rem;line-height:1.6;color:var(--fsr-text-muted,#646A66)}
@media(max-width:700px){
	.fsr-ba-grid{grid-template-columns:minmax(0,1fr);gap:.75rem}
	.fsr-ba-tag{top:.5rem;left:.5rem;padding:.25rem .5rem;font-size:.6875rem}
	.fsr-ba-item{aspect-ratio:4/3}
}

/* Project location (map pin + town, state): small, muted, secondary to the overview label */
.fsr-pl{display:flex;align-items:center;gap:.45rem;margin:0;font-family:var(--fsr-font-body,Inter,system-ui,sans-serif);font-size:.875rem;line-height:1.4;color:var(--fsr-text-muted,#646A66)}
.fsr-pl-icon{flex:0 0 auto;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fsr-pl .screen-reader-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Work type labels: understated, not buttons */
.fsr-pt{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
.fsr-pt li{margin:0;padding:.3rem .75rem;font-family:var(--fsr-font-body,Inter,system-ui,sans-serif);font-size:.75rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;line-height:1.3;color:var(--fsr-text-muted,#646A66);border:1px solid var(--fsr-line,#D9D5CC);border-radius:2px;background:transparent}

/* Project gallery: same masonry as Our Work, fewer and larger columns (a project has fewer photos) */
.fsr-gal--project{max-width:none}
.fsr-gal--project.fsr-gal--empty{display:none}
.fsr-gal--project .fsr-gal-grid{column-count:3;column-gap:1rem}
.fsr-gal--project .fsr-gal-item{margin:0 0 1rem}
@media(max-width:1100px){.fsr-gal--project .fsr-gal-grid{column-count:2}}
@media(max-width:700px){.fsr-gal--project .fsr-gal-grid{column-count:2;column-gap:.5rem}.fsr-gal--project .fsr-gal-item{margin-bottom:.5rem}}

/* Previous / next */
.fsr-pn{display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:1.5rem;font-family:var(--fsr-font-body,Inter,system-ui,sans-serif)}
.fsr-pn-side--next{text-align:right}
.fsr-pn-link{display:inline-flex;flex-direction:column;gap:.35rem;max-width:22rem;min-height:44px;color:var(--fsr-text,#1C2220)!important;text-decoration:none!important}
.fsr-pn-side--next .fsr-pn-link{align-items:flex-end}
.fsr-pn-label{font-size:.75rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--fsr-text-muted,#646A66)}
.fsr-pn-title{font-family:var(--fsr-font-heading,Newsreader,Georgia,serif);font-size:1.25rem;line-height:1.3;color:var(--fsr-text,#1C2220)}
.fsr-pn-link:hover .fsr-pn-title{text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--fsr-taupe,#A99A89)}
.fsr-pn-back{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--fsr-forest-deep,#0F3A2C)!important;text-decoration:none!important;border-bottom:1px solid var(--fsr-forest-deep,#0F3A2C)}
.fsr-pn-back:hover{border-bottom-color:transparent}
.fsr-pn-link:focus-visible,.fsr-pn-back:focus-visible{outline:3px solid var(--fsr-forest-deep,#0F3A2C);outline-offset:3px}
@media(max-width:700px){
	.fsr-pn{grid-template-columns:1fr 1fr;grid-template-areas:"prev next" "mid mid";gap:1.25rem 1rem}
	.fsr-pn-side--prev{grid-area:prev}
	.fsr-pn-side--next{grid-area:next}
	.fsr-pn-mid{grid-area:mid;text-align:center}
	.fsr-pn-title{font-size:1.0625rem}
}


/* Completed year (Project overview, under the location): same look as the location line, calendar icon instead of the map pin.
   Prints nothing when blank; the empty marker lets the widget wrapper collapse so no extra spacing is left. */
.fsr-pc{display:flex;align-items:center;gap:.45rem;margin:0;font-family:var(--fsr-font-body,Inter,system-ui,sans-serif);font-size:.875rem;line-height:1.4;color:var(--fsr-text-muted,#646A66)}
.fsr-pc-icon{flex:0 0 auto;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fsr-pc-empty{display:none}
.elementor-widget-shortcode:has(.fsr-pc-empty){display:none}
/* the overview column spaces its items 1rem apart; tuck the year a little closer under the location so the pair reads as one group */
#fsr-project-location:has(.fsr-pl) + .elementor-widget-shortcode .fsr-pc{margin-top:-.5rem}
