/* Real office photography, shared by the homepage and about page. */
.home-design .xf-about-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 52px; }
.xf-office-preview { margin: 0; min-width: 0; }
.xf-office-preview > a { display: block; border-radius: 12px; overflow: hidden; background: #eee7de; border: 1px solid #e1d6ca; }
.xf-office-preview img { display: block; width: 100%; height: auto; }
.xf-office-preview figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 14px; color: #77716b; font-size: 13px; }
.xf-office-preview figcaption a { color: #9a5e38; }
.about-office { background: #f3ede6; scroll-margin-top: 80px; }
.office-gallery { display: grid; grid-template-columns: 1fr 1.14fr; gap: 24px; }
.office-photo { position: relative; min-width: 0; margin: 0; overflow: hidden; border-radius: 12px; background: #ded6cc; }
.office-photo:nth-child(2) { grid-column: 1; grid-row: 2; }
.office-photo-portrait { grid-column: 2; grid-row: 1 / span 2; }
.office-photo-link { position: relative; display: block; height: 100%; cursor: zoom-in; }
.office-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1706 / 1279; object-fit: cover; }
.office-photo-portrait img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: center; }
.office-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 48px 24px 22px; color: #fff; pointer-events: none; background: linear-gradient(transparent, #10100fd9); }
.office-photo figcaption strong { display: block; font-size: 16px; font-weight: 500; }
.office-photo figcaption small { display: block; margin-bottom: 4px; color: #efe5d8; font-size: 11px; letter-spacing: .08em; }
.office-photo figcaption > span:last-child { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid #ffffff66; border-radius: 50%; font-size: 20px; }
.office-photo-link:hover + figcaption > span:last-child { background: #ffffff24; }
.office-photo-link:focus-visible { outline: 3px solid #f4b986; outline-offset: -5px; }
.office-location-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #ded2c6; color: #7a6e63; font-size: 13px; line-height: 1.8; }
.office-location-note address { font-style: normal; }
.office-location-note p { margin: 0; }
.office-location-note a { color: #925b37; white-space: nowrap; }
.office-photo-dialog { width: min(1200px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #49443f; border-radius: 14px; color: #fff8ef; background: #1c1d1e; box-shadow: 0 24px 100px #0008; }
.office-photo-dialog::backdrop { background: #0b0c0ee8; }
.office-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; border-bottom: 1px solid #ffffff20; }
.office-dialog-header p { margin: 0; font-size: 15px; }
.office-dialog-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff40; border-radius: 50%; background: transparent; color: #fff8ef; cursor: pointer; }
.office-dialog-button:hover { background: #ffffff18; }
.office-dialog-close { font-size: 28px; }
.office-dialog-button svg { width: 20px; height: 20px; }
.office-dialog-button:focus-visible, .xf-office-preview a:focus-visible, .office-location-note a:focus-visible { outline: 3px solid #e9b083; outline-offset: 4px; }
.office-dialog-image { display: block; width: 100%; height: auto; max-height: min(70vh, 820px); max-height: min(70dvh, 820px); object-fit: contain; padding: 16px; }
.office-dialog-footer { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 12px 20px 16px; }
.office-dialog-counter { min-width: 60px; margin: 0; color: #d5c8bc; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
  .home-design .xf-about-grid { gap: 32px; }
  .office-gallery { gap: 16px; }
  .office-photo figcaption { padding: 40px 18px 16px; }
}
@media (max-width: 760px) {
  .home-design .xf-about-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 650px) {
  .office-gallery { grid-template-columns: 1fr; gap: 18px; }
  .office-photo:nth-child(2), .office-photo-portrait { grid-column: auto; grid-row: auto; }
  .office-photo-portrait img { position: static; height: auto; aspect-ratio: 1279 / 1706; }
  .office-photo figcaption { padding: 44px 18px 18px; }
  .office-location-note { display: block; }
  .office-location-note p { margin-top: 12px; }
  .office-dialog-header { padding: 10px 14px; gap: 12px; }
  .office-dialog-image { padding: 8px; max-height: 64vh; max-height: 64dvh; }
  .office-dialog-footer { padding: 8px 14px 14px; }
}
