/* About and gallery: the existing Onest/Caveat and garden palette. */
.estate-shell { width: min(76rem, calc(100% - 3rem)); margin-inline: auto; }
.estate-intro { padding: 9.5rem 0 3.75rem; }
.estate-intro-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.estate-intro h1, .estate-gallery-heading h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.estate-intro p { max-width: 35rem; margin-top: 1.15rem; }
.estate-intro .estate-lead { font-size: 1.15rem; line-height: 1.65; }
.estate-intro .btn-green { margin-top: 1.75rem; }
.estate-house { aspect-ratio: 3 / 2; }
.estate-house img { width: 100%; height: 100%; object-fit: cover; }
.estate-shell figcaption { margin-top: .65rem; color: var(--text-light); font-size: .82rem; line-height: 1.5; }
.estate-intro figure figcaption { text-align: center; }
.estate-story { display: grid; grid-template-columns: minmax(15rem, .75fr) 1.25fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: 2rem; align-items: center; border-radius: 1.5rem; background: var(--sage-soft); }
.estate-story > img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 1rem; }
.estate-story h2, .estate-garden h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.estate-story p { margin-top: .9rem; font-size: .95rem; }
.estate-garden { padding-block: 4rem 4.5rem; }
.estate-garden-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; margin-bottom: 2rem; }
.estate-garden-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.estate-garden-photos img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: .75rem; }
.estate-gallery-end { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.estate-text-link { color: var(--forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; font-weight: 600; }
.estate-photo-credit { color: var(--text-light); font-size: .78rem; }
.estate-gallery-heading { padding: 9.5rem 0 1.5rem; }
.estate-gallery-heading p { margin-top: .85rem; }
.estate-gallery { padding-bottom: 4rem; }
.estate-gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 1.75rem; }
.estate-gallery-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.estate-gallery-filters[hidden] { display: none; }
.estate-gallery-filters button { padding: .5rem 1rem; border: 1px solid var(--sage); border-radius: 1.5rem; background: transparent; color: var(--forest); font-size: .9rem; cursor: pointer; }
.estate-gallery-filters button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: white; }
.estate-gallery-filters button:hover { border-color: var(--forest); }
.estate-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem 1.25rem; }
.estate-photo-grid figure { min-width: 0; }
.estate-photo-grid figure[hidden] { display: none; }
.estate-photo-open { display: block; overflow: hidden; border-radius: .75rem; cursor: zoom-in; }
.estate-photo-open img { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; transition: transform .2s ease; }
.estate-photo-open:hover img { transform: scale(1.025); }
.estate-photo-grid figcaption { padding-inline: .1rem; }
.estate-gallery-count { margin-top: 2rem; text-align: right; color: var(--text-light); font-size: .82rem; }
.estate-lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 3.5rem 4.5rem 1.5rem; background: rgba(14, 23, 12, .97); color: white; border: 0; }
.estate-lightbox[open] { display: grid; grid-template-columns: 1fr; align-content: center; }
.estate-lightbox::backdrop { background: rgba(14, 23, 12, .96); }
.estate-lightbox-figure { width: 100%; max-width: 88rem; margin: auto; text-align: center; }
.estate-lightbox-figure img { display: block; max-height: calc(100dvh - 11rem); width: auto; max-width: 100%; height: auto; margin-inline: auto; object-fit: contain; }
.estate-lightbox .estate-lightbox-figure figcaption { color: #fff; margin-top: 1rem; font-size: .9rem; }
.estate-lightbox-figure p { font-size: .75rem; color: rgba(255, 255, 255, .7); margin-top: .25rem; }
.estate-lightbox button { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; background: transparent; color: white; font-family: Arial, sans-serif; cursor: pointer; line-height: 1; }
.estate-lightbox-close { top: .75rem; right: 1rem; font-size: 2.25rem; }
.estate-lightbox-prev { left: .5rem; top: calc(50% - 1.5rem); font-size: 3rem; }
.estate-lightbox-next { right: .5rem; top: calc(50% - 1.5rem); font-size: 3rem; }
.estate-gallery button:focus-visible, .estate-gallery a:focus-visible, .estate-text-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.estate-lightbox button:focus-visible { outline-color: white; }
@media (max-width: 800px) {
  .estate-intro { padding: 8rem 0 2.5rem; }
  .estate-intro-grid { gap: 1.75rem; }
  .estate-intro .estate-lead { font-size: 1rem; }
  .estate-story { grid-template-columns: 1fr 1.4fr; padding: 1.5rem; gap: 1.5rem; }
  .estate-story > img { aspect-ratio: 4 / 5; }
  .estate-garden-intro { gap: 1.75rem; grid-template-columns: 1fr 1.5fr; }
  .estate-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .estate-shell { width: calc(100% - 2rem); }
  .estate-intro-grid { grid-template-columns: 1fr; }
  .estate-intro .btn-green { margin-top: 1.25rem; }
  .estate-story { grid-template-columns: 1fr; padding: 1.25rem; }
  .estate-story > img { aspect-ratio: 3 / 2; }
  .estate-garden { padding-block: 2.75rem 3rem; }
  .estate-garden-intro { display: block; }
  .estate-garden-intro p { margin-top: 1rem; }
  .estate-garden-photos { grid-template-columns: 1fr; gap: 1.25rem; }
  .estate-gallery-heading { padding-top: 8rem; }
  .estate-gallery-toolbar { align-items: flex-start; }
  .estate-gallery-filters { gap: .35rem; }
  .estate-gallery-filters button { padding: .45rem .85rem; font-size: .85rem; }
  .estate-photo-grid { gap: 1.25rem .65rem; }
  .estate-photo-grid figcaption { font-size: .72rem; }
  .estate-lightbox { padding: 4rem .75rem 5rem; }
  .estate-lightbox-figure img { max-height: calc(100dvh - 14rem); }
  .estate-lightbox-prev, .estate-lightbox-next { top: auto; bottom: 1.2rem; }
  .estate-lightbox-prev { left: calc(50% - 4rem); }
  .estate-lightbox-next { right: calc(50% - 4rem); }
}
@media (prefers-reduced-motion: reduce) { .estate-photo-open img { transition: none; } }
