/* Updated exterior images: readable captions and compact, wrapping view controls. */
body.dr-brand .architecture .image-caption {
  color: var(--dr-ink, #242424);
  background: rgba(255, 255, 255, .94);
  width: auto;
  max-width: calc(100% - 160px);
  padding: 14px 20px;
  border-radius: 0 8px 0 0;
}
.architecture-controls .segmented {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
}
.architecture-controls .segmented button { min-height: 44px; }
@media (max-width: 440px) {
  .architecture-controls .segmented { display: grid; grid-template-columns: 1fr; width: 100%; }
  .architecture-controls .segmented button { width: 100%; text-align: center; }
  body.dr-brand .architecture .image-caption {
    position: static;
    max-width: none;
    border-radius: 0;
    padding: 12px 16px;
  }
}

/* Supplied architectural images: preserve the complete geometry and native aspect ratio. */
.source-building-actions {display:flex;align-items:center;flex-wrap:wrap;gap:24px;margin:0 0 32px;}
body.dr-brand.reference-companion .source-building-cta {display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:48px;padding:14px 24px;border-radius:8px;background:var(--dr-red,#c4003b);color:#fff;text-decoration:none;font-weight:600;}
.source-building-cta:hover {filter:brightness(.92);}
.source-building-gallery {display:grid;gap:32px;margin-bottom:56px;}
.source-building-gallery figure {margin:0;overflow:hidden;border:1px solid var(--line,#ddd);border-radius:8px;background:var(--surface,#fff);}
.source-building-gallery figure a {display:block;}
.source-building-gallery img {display:block;width:100%;height:auto;}
.source-building-gallery figcaption {padding:16px 20px;color:var(--dr-ink,#242424);font-weight:600;}
@media (max-width:600px) {.source-building-actions {align-items:stretch;gap:16px;}.source-building-cta {width:100%;}.source-building-gallery {gap:24px;}.source-building-gallery figcaption {padding:12px 16px;}}

.building-selection-mode {grid-template-columns:repeat(2,minmax(0,1fr));}
@media(max-width:380px) {body.reference-redesign .building-picker .floor-buttons{grid-template-columns:repeat(2,minmax(0,1fr));}body.reference-redesign #byty .layout-filter .segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}body.reference-redesign #byty .layout-filter .segmented button{min-width:0;}}

.source-project-overview {max-width:1440px;margin:0 auto;padding:0 var(--gutter,24px);}
.source-project-overview>section {margin-bottom:56px;}
.source-gallery-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
.source-gallery-grid figure {align-self:start;}
.source-gallery-grid img {max-height:600px;object-fit:contain;}
.source-reels-page>.hero {display:block;}
.source-reels-page>.hero>p:not(.eyebrow) {max-width:680px;margin:24px 0;}
.source-single-film {width:min(100%,420px);margin:32px auto 0;}
.source-supplied-architecture {padding:48px var(--gutter,24px);}
.source-download-links {display:flex;flex-wrap:wrap;gap:16px 24px;}
.source-download-links a {display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px;}
@media(max-width:600px){.source-gallery-grid{grid-template-columns:1fr;}.source-project-overview>section{margin-bottom:40px;}.source-supplied-architecture{padding-block:32px;}}

.source-project-overview .story {position:relative;}
.source-project-overview .story>span[id] {position:absolute;top:0;width:0;height:0;}
