/* Layout supplements for the editable WordPress page and property templates. */
.page-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin-top:28px}
.section>.contact-grid{padding-block:0}
.section>.property-detail-grid{padding-bottom:0}
.section>.team-grid{margin-top:0}
.about-copy{padding-top:0}
.contact-editor-content{padding-top:0}
.aside-portraits{display:flex;gap:10px;margin-bottom:23px}
.aside-portraits img{width:78px;height:94px;object-fit:cover;object-position:50% 23%;border-radius:5px}
.aside-links{display:flex;flex-direction:column;gap:12px;margin-top:22px;font-size:12px;font-weight:700}
.aside-links a{display:inline-flex;align-items:center;gap:9px;overflow-wrap:anywhere}
.aside-links a:hover{text-decoration:underline;text-underline-offset:4px}
.aside-links .icon{width:17px;height:17px}
.content-aside .eyebrow{margin-bottom:12px;font-size:10px}
.contact-link span{display:block;min-width:0}
.contact-link small{display:block;font-size:11px;font-weight:600;color:var(--muted);margin-bottom:3px}
.contact-link strong{display:block;font-size:clamp(20px,2.4vw,31px);line-height:1.45;letter-spacing:-.035em;overflow-wrap:anywhere}
.contact-link[href^="mailto:"] strong{font-size:clamp(17px,1.8vw,22px)}
.contact-links{gap:23px}
.contact-region{display:flex;align-items:center;gap:9px;margin-top:30px}
.contact-region .icon{width:18px;height:18px}
.contact-people{flex-direction:column;align-items:flex-start;gap:22px}
.contact-person{display:flex;align-items:center;gap:17px}
.contact-person>img{width:68px;height:82px;object-fit:cover;object-position:50% 22%;border-radius:5px}
.contact-person h3{font-size:18px;letter-spacing:-.025em;line-height:1.4;margin-bottom:5px}
.contact-person p{font-size:12px;font-weight:500;color:var(--muted)}
.contact-company{margin-top:32px;padding-top:25px;border-top:1px solid var(--line)}
.contact-company h3{font-size:17px;margin-bottom:12px}
.contact-company p{font-size:12px;color:var(--muted)}
.contact-company p+p{margin-top:6px}
.contact-form-card>.eyebrow{font-size:10px;margin-bottom:12px}
.contact-form-card>p:not(.eyebrow){font-size:14px;color:var(--muted);margin-bottom:24px}
.contact-form-card h2{line-height:1.3}
.team-card{margin:0}
.team-photo{aspect-ratio:1.1;overflow:hidden;background:var(--paper)}
.team-photo>img{width:100%;height:100%;object-fit:cover;object-position:50% 24%}
.archive-result-count{margin:0 0 25px;font-size:12px;color:var(--muted)}
.post-type-archive-tyto_property .property-card{border:1px solid var(--line)}
.empty-state h2{font-size:clamp(26px,3vw,36px);max-width:820px;line-height:1.3}
.property-heading-top{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:40px;align-items:center}
.property-heading-top>div:only-child{grid-column:1/-1}
.property-heading-top .eyebrow{margin-bottom:10px}
.property-heading-meta{display:flex;align-items:center;flex-wrap:wrap;gap:16px 23px;margin-top:22px}
.property-heading-meta>span:not(.status-pill){display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}
.property-heading-meta .icon{width:18px;height:18px}
.property-price-block{border-left:1px solid var(--line);padding-left:25px}
.property-price-block .property-price{line-height:1.35;margin:0 0 12px}
.property-price-block .button{margin-top:22px;width:100%;font-size:12px;gap:12px}
.property-archive-note{font-size:13px;color:var(--muted);margin-top:26px;padding:13px 18px;background:#fff;border-left:3px solid var(--yellow);max-width:900px}
.property-contact-person{display:flex;align-items:center;gap:15px;margin-bottom:22px}
.property-contact-person>img{width:72px;height:88px;object-fit:cover;object-position:50% 22%;border-radius:5px}
.property-contact-person .eyebrow{font-size:9px;margin-bottom:5px}
.property-contact-person h2{font-size:21px;margin:0 0 5px;line-height:1.3}
.property-contact-person p:last-child{font-size:11px}
.property-contact-box .aside-links{font-size:12px;gap:14px}
.property-extra{margin-top:38px}
.property-extra h2{font-size:27px;margin-bottom:23px}
.property-floorplan img{max-width:100%;max-height:560px;width:auto;margin-bottom:17px;object-fit:contain}
.property-enquiry{background:var(--paper)}
.property-enquiry>.content-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:start;gap:70px}
.property-enquiry .prose h2{font-size:36px;margin:0 0 22px}
.property-enquiry .contact-form-card{background:white}
.property-enquiry .prose>.eyebrow{font-size:10px;margin-bottom:14px}
.property-enquiry .prose>p{font-size:14px}

/* Five visible tiles fit into two rows; remaining images belong to the lightbox. */
.property-gallery{grid-template-columns:2fr 1fr 1fr;grid-template-rows:repeat(2,clamp(150px,19vw,235px));margin-top:28px;margin-bottom:0}
.property-gallery>.gallery-button{min-width:0;min-height:0;height:100%;max-height:none;aspect-ratio:auto}
.property-gallery>.gallery-button:first-child{grid-column:1;grid-row:1/span 2;max-height:none;aspect-ratio:auto}
.property-gallery>.gallery-button:not(:first-child){max-height:none;aspect-ratio:auto}
.property-gallery>.gallery-button[hidden]{display:none!important}
.property-gallery>.gallery-button img{width:100%;height:100%;max-height:none;object-fit:cover}
.property-gallery[data-count="3"]>.gallery-button:nth-child(2),
.property-gallery[data-count="3"]>.gallery-button:nth-child(3){grid-column:2/span 2}
.property-gallery[data-count="4"]>.gallery-button:nth-child(2){grid-column:2/span 2}
.property-gallery[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:clamp(230px,33vw,480px);max-height:none}
.property-gallery[data-count="2"]>.gallery-button{grid-column:auto;grid-row:auto;max-height:none}
.property-gallery[data-count="1"]{grid-template-columns:1fr;grid-template-rows:auto}
.property-gallery[data-count="1"]>.gallery-button{grid-column:1;grid-row:auto;aspect-ratio:2.1;max-height:570px}
.property-gallery[data-count="0"]{display:block}
.gallery-empty{min-height:250px;background:var(--paper);padding:35px}
.gallery-hint{display:flex;align-items:center;gap:7px;pointer-events:none}
.gallery-hint .icon{width:15px;height:15px}
.gallery-more{position:absolute;inset:0;display:grid;place-items:center;background:#0c28397d;color:#fff;font-weight:800;font-size:15px;pointer-events:none}

/* The root stylesheet owns dialog colors, controls and their positions. */
.property-lightbox{margin:auto;overflow:hidden}
.property-lightbox .lightbox-stage{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0}
.property-lightbox .lightbox-stage figure{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0;max-width:100%;height:100%}
.property-lightbox .lightbox-image{min-height:0;max-height:calc(100vh - 145px);max-height:calc(100dvh - 145px);width:auto;max-width:100%;object-fit:contain}
.property-lightbox .lightbox-caption{flex:none;max-width:800px;text-align:center;line-height:1.5;margin-top:15px}
.property-lightbox button{z-index:2}
.blog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}
.post-card{border:1px solid var(--line);border-radius:5px;overflow:hidden}
.post-card-image{display:block;aspect-ratio:1.7;overflow:hidden;background:var(--paper)}
.post-card-image img{width:100%;height:100%;object-fit:cover}
.post-card-body{padding:27px}
.post-card h2{font-size:27px;line-height:1.4;margin-bottom:15px}
.post-card h2 a:hover{text-decoration:underline;text-underline-offset:4px}
.post-meta{font-size:11px;color:var(--muted);margin-bottom:12px}
.post-card-body>p:not(.post-meta){font-size:14px;color:var(--muted);margin-bottom:22px}
.page-hero .post-meta{margin-top:22px}
.error-page .page-hero{padding-block:90px}

@media(max-width:940px){
    .property-heading-top{grid-template-columns:minmax(0,1fr) 230px;gap:25px}
    .property-price-block{padding-left:20px}
    .property-price-block .property-price{font-size:25px}
    .property-contact-person{gap:12px}
    .property-contact-person>img{width:57px;height:73px}
    .property-contact-person h2{font-size:18px}
    .property-enquiry>.content-grid{gap:40px}
    .property-enquiry .prose h2{font-size:32px}
}
@media(max-width:720px){
    .section>.contact-grid{padding-block:0}
    .contact-link strong{font-size:29px}
    .contact-link[href^="mailto:"] strong{font-size:22px}
    .contact-people{gap:20px;margin-top:30px}
    .contact-person>img{width:62px;height:77px}
    .team-photo{aspect-ratio:1.05}
    .aside-portraits img{width:72px;height:88px}
    .page-hero-actions{align-items:flex-start;gap:17px}
    .page-hero-actions .button{max-width:100%;text-align:left;justify-content:space-between}
    .property-heading-top{grid-template-columns:1fr;gap:24px}
    .property-price-block{border-left:0;border-top:1px solid var(--line);padding:22px 0 0}
    .property-price-block .button{width:auto}
    .property-heading-meta{gap:12px 17px;margin-top:19px}
    .property-heading-meta>span:not(.status-pill){font-size:11px}
    .property-archive-note{font-size:12px;padding:12px 14px;margin-top:23px}
    .property-gallery{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:clamp(220px,58vw,340px) clamp(105px,28vw,165px);gap:7px;margin-top:20px}
    .property-gallery>.gallery-button:first-child{grid-column:1/-1;grid-row:1;max-height:none;aspect-ratio:auto}
    .property-gallery>.gallery-button:nth-child(2),
    .property-gallery>.gallery-button:nth-child(3){grid-column:auto;grid-row:2;max-height:none;aspect-ratio:auto}
    .property-gallery>.gallery-button:nth-child(n+4){display:none}
    .property-gallery[data-count="3"]>.gallery-button:nth-child(2),
    .property-gallery[data-count="3"]>.gallery-button:nth-child(3),
    .property-gallery[data-count="4"]>.gallery-button:nth-child(2){grid-column:auto}
    .property-gallery[data-count="2"]{grid-template-columns:1fr;grid-template-rows:clamp(220px,58vw,340px) clamp(150px,40vw,240px)}
    .property-gallery[data-count="2"]>.gallery-button{grid-column:1;grid-row:auto;max-height:none}
    .property-gallery[data-count="1"]{grid-template-columns:1fr;grid-template-rows:auto}
    .property-gallery[data-count="1"]>.gallery-button{grid-column:1;grid-row:auto;aspect-ratio:1.4;max-height:420px}
    .gallery-hint{max-width:calc(100% - 24px);font-size:10px;gap:6px}
    .property-contact-person>img{width:70px;height:86px}
    .property-contact-person h2{font-size:22px}
    .property-enquiry>.content-grid{grid-template-columns:1fr;gap:27px}
    .property-enquiry .prose h2{font-size:31px}
    .property-lightbox .lightbox-image{max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px)}
    .property-lightbox .lightbox-caption{font-size:11px;max-width:100%}
    .blog-grid{grid-template-columns:1fr;gap:24px}
    .post-card-body{padding:23px}
    .post-card h2{font-size:25px}
    .error-page .page-hero{padding-block:60px}
}
