:root { --gallery-ink: #1e2522; --gallery-paper: #faf9f6; --gallery-line: #e5e2da; }
.mobile-photo-nav, .contact-mobile { display: none; }
.tour-container { width: min(100%, 1280px); margin-inline: auto; }
.house-gallery, .house-tour { padding: 80px 40px; color: var(--gallery-ink); }
.house-gallery { background: var(--gallery-paper); }
.gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.gallery-heading h2, .tour-heading h2 { font-family: Newsreader, Georgia, serif; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.gallery-heading h2 em { font-weight: 400; color: #53625a; }
.gallery-heading p, .tour-heading p { max-width: 540px; margin-top: 20px; color: #434845; line-height: 1.75; }
.gallery-open { display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex-shrink: 0; min-height: 48px; padding: 12px 18px; border: 1px solid #747875; font-size: 13px; font-weight: 600; transition: background .2s, color .2s; }
.gallery-open:hover { background: var(--gallery-ink); color: var(--gallery-paper); }
.gallery-open .material-symbols-outlined { font-size: 20px; }
.gallery-overview { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; }
.overview-main { grid-row: span 2; }
.tour-photo { min-width: 0; margin: 0; }
.photo-link { display: block; position: relative; overflow: hidden; background: #e9e8e5; }
.photo-link picture { display: block; height: 100%; }
.photo-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.photo-link:hover img { transform: scale(1.025); }
.photo-expand { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 36px; height: 36px; background: var(--gallery-paper); color: var(--gallery-ink); }
.photo-expand span { font-size: 19px; }
.tour-photo figcaption { padding-top: 12px; font-size: 13px; color: #434845; }
.gallery-overview .photo-link { aspect-ratio: 1.6; }
.gallery-overview .overview-main .photo-link { height: calc(100% - 32px); aspect-ratio: auto; }
.gallery-hint { display: flex; gap: 8px; align-items: center; margin-top: 24px; font-size: 12px; color: #53625a; }
.gallery-hint span { font-size: 16px; }
.house-tour { background: #f4f3f1; }
.tour-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; margin-bottom: 36px; }
.tour-heading p { margin: 0; justify-self: end; }
.tour-social { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.tour-side { display: grid; gap: 24px; }
.tour-side .photo-link { aspect-ratio: 1.65; }
.social-main .photo-link { height: calc(100% - 32px); }
.intimate-tour { background: var(--gallery-paper); }
.tour-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tour-rooms .photo-link { aspect-ratio: 1.5; }
.rooms-main { grid-column: span 2; }
.rooms-main .photo-link { aspect-ratio: 2; }
.gallery-end { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--gallery-line); }
.gallery-end p { font-family: Newsreader, Georgia, serif; font-size: 26px; }
.location-note { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px; background: #efeeeb; }
.location-note h3 { font-family: Newsreader, Georgia, serif; font-size: 26px; }
.location-note p { margin-top: 8px; color: #434845; }
.location-note a { display: inline-flex; align-items: center; gap: 12px; text-decoration: underline; text-underline-offset: 5px; min-height: 44px; }
.location-map { display: block; width: 100%; height: 420px; border: 0; }
.house-gallery :focus-visible, .house-tour :focus-visible, .photo-gallery-dialog :focus-visible { outline: 2px solid #b4623c; outline-offset: 4px; }
#espacos, #manifesto, #localizacao, #condominio { scroll-margin-top: 160px; }
.photo-gallery-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 24px 32px; border: 0; background: #131715; color: #faf9f6; overflow: auto; }
.photo-gallery-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.photo-gallery-dialog::backdrop { background: #131715; }
html:has(.photo-gallery-dialog[open]) { overflow: hidden; }
.viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; }
.viewer-header h2 { font-family: Newsreader, Georgia, serif; font-size: 28px; }
.viewer-close, .viewer-arrow { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; background: #2f312f; color: #faf9f6; border: 1px solid #747875; cursor: pointer; }
.viewer-close:hover, .viewer-arrow:hover { background: #434845; }
.gallery-filters { display: flex; gap: 8px; overflow-x: auto; flex-shrink: 0; padding: 4px; }
.gallery-filters button { min-height: 44px; padding: 8px 16px; color: #c3c7c4; white-space: nowrap; border-bottom: 2px solid transparent; }
.gallery-filters button[aria-pressed="true"] { color: #fff; border-bottom-color: #cb744d; }
.viewer-stage { display: flex; align-items: center; gap: 24px; min-height: 0; flex: 1; }
.viewer-figure { width: 100%; height: 100%; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 16px; }
.viewer-figure picture { display: block; flex: 1; min-height: 0; }
.viewer-figure img { width: 100%; height: 100%; object-fit: contain; touch-action: pan-y; }
.viewer-figure figcaption { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-shrink: 0; }
.viewer-figure h3 { font-family: Newsreader, Georgia, serif; font-size: 25px; }
.viewer-figure p { font-size: 13px; color: #c3c7c4; margin-top: 4px; }
#viewerCount { padding-top: 6px; white-space: nowrap; color: #c3c7c4; font-size: 13px; font-variant-numeric: tabular-nums; }
.gallery-thumbnails { display: flex; gap: 10px; overflow-x: auto; flex-shrink: 0; padding: 6px; scrollbar-width: thin; scrollbar-color: #747875 #131715; }
.gallery-thumb { width: 100px; flex-shrink: 0; padding: 4px; text-align: left; border: 1px solid transparent; }
.gallery-thumb[aria-current="true"] { border-color: #cb744d; }
.gallery-thumb img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.gallery-thumb span { display: block; margin-top: 6px; color: #c3c7c4; font-size: 10px; line-height: 1.4; }
.gallery-thumb[hidden] { display: none; }
.viewer-error { color: #ffdbcd; font-size: 13px; }
.viewer-error a { text-decoration: underline; }
@media (max-width: 767px) {
  .mobile-photo-nav { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; }
  .contact-desktop { display: none; }
  .contact-mobile { display: inline; }
  header a[target="_blank"] { min-height: 44px; padding-inline: 12px; }
  .conversion-dock { display: none; }
  #espacos, #manifesto, #localizacao, #condominio { scroll-margin-top: 96px; }
  .house-gallery, .house-tour { padding: 48px 20px; }
  .gallery-heading, .tour-heading { display: block; margin-bottom: 28px; }
  .gallery-heading .gallery-open { margin-top: 24px; }
  .gallery-heading p, .tour-heading p { margin-top: 16px; font-size: 14px; }
  .gallery-overview, .tour-social, .tour-rooms { grid-template-columns: 1fr; gap: 28px; }
  .overview-main, .rooms-main { grid-column: auto; grid-row: auto; }
  .gallery-overview .photo-link, .gallery-overview .overview-main .photo-link, .social-main .photo-link, .tour-side .photo-link, .tour-rooms .photo-link { height: auto; aspect-ratio: 2 / 3; }
  .tour-side { gap: 28px; }
  .gallery-end, .location-note { align-items: flex-start; flex-direction: column; }
  .location-map { height: 320px; }
  .gallery-end p { font-size: 24px; }
  .photo-gallery-dialog { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .photo-gallery-dialog[open] { gap: 8px; }
  .viewer-header h2 { font-size: 24px; }
  .viewer-stage { position: relative; gap: 0; }
  .viewer-arrow { position: absolute; top: 40%; z-index: 1; width: 44px; height: 44px; background: #131715cc; }
  .viewer-prev { left: 0; }
  .viewer-next { right: 0; }
  .viewer-figure { gap: 10px; }
  .viewer-figure h3 { font-size: 21px; }
  .viewer-figure p { font-size: 12px; line-height: 1.5; }
  .gallery-thumb { width: 76px; }
  .gallery-thumb span { display: none; }
  .gallery-filters button { padding-inline: 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-link img, .gallery-open { transition: none; }
  .photo-link:hover img { transform: none; }
}
