/* Composition only. Promark owns fonts, colours, controls, panels and media rendering. */
.foresta-project .pm-projects__heading { padding-block: clamp(2rem,4vw,3.5rem) clamp(1.5rem,3vw,3rem); }
.foresta-project-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.73fr); gap:clamp(1.5rem,4vw,3.5rem); align-items:center; }
.foresta-project-hero--plain { grid-template-columns:minmax(0,1fr); }
.foresta-project-hero > *, .foresta-project-split > *, .foresta-project-request__layout > * { min-width:0; }
.foresta-project .foresta-project-hero h1 { margin-block:1rem 1.5rem; }
.foresta-project-context > :first-child { margin-top:0; }
.foresta-project-context > :last-child { margin-bottom:0; }
.foresta-project .foresta-project-facts dl { gap:.5rem; }
.foresta-project .foresta-project-facts dl > div { display:inline-flex; align-items:center; padding:.4rem .75rem; }
.foresta-project-photos { position:relative; }
.foresta-project .foresta-project-gallery { padding-block:0; margin-block:0; }
.foresta-project-gallery .pm-gallery-block__grid { grid-template-columns:minmax(0,2fr) minmax(0,1fr); grid-template-rows:repeat(2,minmax(0,1fr)); }
.foresta-project-gallery.pm-gallery-block .pm-gallery-block__item { margin:0; min-height:0; aspect-ratio:auto; }
.foresta-project-gallery .pm-gallery-block__item:first-child { grid-row:span 2; }
.foresta-project-gallery .pm-gallery-block__item:nth-child(n+4) { display:none; }
.foresta-project-gallery--1 .pm-gallery-block__item:nth-child(n+2), .foresta-project-gallery--2 .pm-gallery-block__item:nth-child(n+3) { display:none; }
.foresta-project-gallery .pm-gallery-block__trigger { display:block; height:100%; }
.foresta-project-gallery .pm-gallery-block__item img { aspect-ratio:auto; height:100%; }
.foresta-project-gallery--3 .pm-gallery-block__grid { height:clamp(22rem,38.3vw,34.5rem); }
.foresta-project-gallery--1 .pm-gallery-block__grid { grid-template-columns:minmax(0,1fr); grid-template-rows:auto; }
.foresta-project-gallery--1 .pm-gallery-block__item img { height:auto; max-height:70vh; object-fit:contain; }
.foresta-project-gallery--2 .pm-gallery-block__grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto; }
.foresta-project-gallery--2 .pm-gallery-block__item:first-child { grid-row:auto; }
.foresta-project-gallery--2 .pm-gallery-block__item img { height:auto; aspect-ratio:4/3; }
.foresta-project-photos__action { position:absolute; inset-inline:0; bottom:1rem; display:flex; justify-content:flex-end; pointer-events:none; }
.foresta-project-photos__action button { margin-inline-end:1rem; pointer-events:auto; }
.foresta-project-split { display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:clamp(2rem,6vw,5.5rem); align-items:start; }
.foresta-project .foresta-project-story { padding-block:clamp(3rem,7vw,6.5rem); }
.foresta-project-split h2 { margin-top:0; }
.foresta-project-story__body > :first-child { margin-top:0; }
.foresta-project-story__rows { margin:0; }
.foresta-project-story__rows > div { display:grid; grid-template-columns:6rem minmax(0,1fr); gap:1.5rem; padding-block:1rem; }
.foresta-project-story__rows dd, .foresta-project-story__rows p { margin:0; }
.foresta-project .foresta-project-specs { padding-block:clamp(3rem,5vw,5rem); background:var(--pm-surface); }
.foresta-project .foresta-project-specs .wp-block-table { margin:0; }
.foresta-project-specs__table { width:100%; table-layout:fixed; border-collapse:collapse; }
.foresta-project .foresta-project-specs__table th, .foresta-project .foresta-project-specs__table td { padding:.875rem 0; border:0; border-bottom:1px solid var(--pm-border); vertical-align:top; text-align:start; overflow-wrap:anywhere; }
.foresta-project-specs__label { width:32%; }
.foresta-project-specs__value { width:68%; }
.foresta-project .foresta-project-specs__table th { padding-inline-end:1.25rem; }
.foresta-related-pages { display:flex; flex-wrap:wrap; align-items:baseline; gap:.5rem 1rem; margin-top:1.5rem; }
.foresta-project .foresta-project-detail-photos { padding-block:clamp(3rem,6vw,6.5rem); }
.foresta-project-detail-photos .pm-gallery-block__grid { display:block; column-count:2; }
.foresta-project-detail-photos.pm-gallery-block .pm-gallery-block__item { display:flex; flex-direction:column; margin:0; min-height:0; height:auto; aspect-ratio:auto; }
.foresta-project-detail-photos.pm-gallery-block .pm-gallery-block__item { break-inside:avoid; margin-bottom:1.5rem; }
.foresta-project-detail-photos .pm-gallery-block__trigger { display:block; flex:none; height:auto; aspect-ratio:auto; }
.foresta-project-detail-photos .pm-gallery-block__item img { display:block; width:100%; height:auto; aspect-ratio:auto; }
.foresta-project-detail-photos figcaption { position:static; background:none; color:inherit; }
.foresta-project-video .pm-gallery-block__grid { grid-template-columns:minmax(0,1fr); }
.foresta-project-video .pm-gallery-block__item { margin:0; min-width:0; aspect-ratio:auto; }
.foresta-project-video .pm-gallery-block__trigger { display:block; width:100%; aspect-ratio:16/9; }
.foresta-project-video .pm-gallery-block__trigger img { width:100%; height:100%; aspect-ratio:auto; object-fit:cover; }
.foresta-project-video__media { display:block; width:100%; aspect-ratio:16/9; border:0; }
.foresta-project-video video.foresta-project-video__media { height:auto; }
.foresta-project-video iframe.foresta-project-video__media { height:auto; min-height:clamp(12rem,48vw,48rem); }
.foresta-project-video[hidden] { display:none; }
.foresta-project-request__layout { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:clamp(2rem,6vw,6rem); align-items:center; }
.foresta-project-request__form > .pm-block-section { margin:0; padding-block:0; }
.foresta-project-request__form > .pm-block-section > .pm-container { width:100%; margin:0; padding-inline:0; }
.foresta-project .foresta-project-nav { display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; padding-block:clamp(2rem,4vw,4rem); }
@media (max-width:800px) {
    .foresta-project-hero, .foresta-project-split, .foresta-project-request__layout { grid-template-columns:minmax(0,1fr); gap:1.5rem; }
    .foresta-project .pm-projects__heading { padding-block:2rem 1.5rem; }
    .foresta-project-gallery--3 .pm-gallery-block__grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:20rem 9rem; height:auto; }
    .foresta-project-gallery--3 .pm-gallery-block__item:first-child { grid-column:1/-1; grid-row:auto; }
    .foresta-project .foresta-project-story { padding-block:4rem 2rem; }
    .foresta-project-story__rows > div { grid-template-columns:minmax(0,1fr); gap:.5rem; }
    .foresta-project-detail-photos .pm-gallery-block__grid { column-count:1; }
    .foresta-project-photos__action { bottom:.75rem; }
    .foresta-project-photos__action button { margin-inline-end:.75rem; max-width:calc(50% - 2rem); white-space:normal; }
    .foresta-project-specs__label { width:45%; }
    .foresta-project-specs__value { width:55%; }
    .foresta-project .foresta-project-specs__table th { padding-inline-end:.75rem; }
}
