/* Native WordPress dialogs retain the current Site's dimensions and spacing. */
dialog.gallery-dialog{position:fixed;inset:0;margin:auto;transform:none;max-height:calc(100dvh - 3rem);color:white}
dialog.gallery-dialog:not([open]){display:none!important}
dialog.gallery-dialog::backdrop{background:#000b}
.unit-dialog-content{display:contents}
.floor-plan-dialog.has-unit-details .unit-dialog-content>img{display:block;width:var(--plan-content-width);max-width:100%;height:auto;max-height:min(68vh,40rem);margin-inline:auto;object-fit:contain}
.floor-plan-dialog.has-unit-details .unit-dialog-content>img+img{margin-top:var(--unit-detail-gap)}
.floor-plan-pdf{display:block;width:100%;height:70vh;border:0}
[hidden]{display:none!important}
.language-switcher .language-flag{display:block!important;width:24px!important;height:16px!important;max-height:16px!important;object-fit:cover}
.language-options a{color:white!important}
@media(max-width:620px){dialog.gallery-dialog{width:calc(100vw - 1rem)!important;max-height:calc(100dvh - 1rem)}}

/* Only the grouped availability table on the main offer page. */
.offer-table-wrap.is-grouped,
.offer-table-wrap.is-grouped .offer-project-group,
.offer-table-wrap.is-grouped .offer-table-scroll {
  min-width: 0;
  max-width: 100%;
}

.offer-table-wrap.is-grouped .offer-project-tables {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.offer-table-wrap.is-grouped .offer-table-scroll {
  overflow: visible;
}

.offer-table-wrap.is-grouped .offer-table {
  min-width: 0;
  table-layout: fixed;
}

.offer-table-wrap.is-grouped .offer-table caption {
  padding: 1rem;
  background: var(--ink);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
}

.offer-table-wrap.is-grouped .offer-table th,
.offer-table-wrap.is-grouped .offer-table td {
  overflow-wrap: anywhere;
}

.offer-table-wrap.is-grouped .offer-table th:nth-child(1) { width: 24%; }
.offer-table-wrap.is-grouped .offer-table th:nth-child(2) { width: 17%; }
.offer-table-wrap.is-grouped .offer-table th:nth-child(3) { width: 17%; }
.offer-table-wrap.is-grouped .offer-table th:nth-child(4) { width: 22%; }
.offer-table-wrap.is-grouped .offer-table th:nth-child(5) { width: 20%; }

@media (max-width: 620px) {
  .offer-table-wrap.is-grouped .offer-project-tables {
    gap: 1.25rem;
  }

  .offer-table-wrap.is-grouped .offer-filters > *,
  .offer-table-wrap.is-grouped .offer-filters select {
    min-width: 0;
    max-width: 100%;
  }

  .offer-table-wrap.is-grouped .offer-table caption {
    padding: 0.8rem 0.4rem;
    font-size: 0.84rem;
  }

  .offer-table-wrap.is-grouped .offer-table th,
  .offer-table-wrap.is-grouped .offer-table td {
    padding: 0.7rem 0.2rem;
  }

  .offer-table-wrap.is-grouped .offer-table th {
    font-size: 0.56rem;
    letter-spacing: 0.02em;
  }

  .offer-table-wrap.is-grouped .offer-table td {
    font-size: 0.68rem;
  }

  .offer-table-wrap.is-grouped .table-desktop-text {
    display: none;
  }

  .offer-table-wrap.is-grouped .table-mobile-text {
    display: inline;
  }

  .offer-table-wrap.is-grouped .unit-floor-plan-button {
    max-width: 100%;
    padding: 0.35rem 0.3rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .offer-table-wrap.is-grouped .unit-status {
    max-width: 100%;
    gap: 0.15rem;
    font-size: 0.64rem;
  }

  .offer-table-wrap.is-grouped .unit-status::before {
    flex-shrink: 0;
    width: 0.35rem;
    height: 0.35rem;
  }
}

