/* An open photo composition. Published properties and projects remain visible without JavaScript. */
.public-body #propiedades.property-editorial {
  overflow: clip;
  padding-top: clamp(64px, 8vw, 128px);
  padding-bottom: clamp(72px, 9vw, 144px);
  color: var(--ink);
}
.public-body .property-editorial .section-heading {
  margin-bottom: clamp(36px, 5vw, 80px);
}
.public-body .property-editorial .section-heading h2 {
  max-width: 16ch;
}
.public-body .property-editorial .terra-section-aside > p {
  color: var(--muted);
}
.public-body .property-editorial .terra-inventory-count {
  border-color: var(--line-strong);
}
.property-editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.3vw, 36px);
  row-gap: clamp(52px, 7vw, 112px);
  align-items: start;
}
.property-editorial-card {
  min-width: 0;
  grid-column: span 6;
}
.property-editorial-card:nth-child(6n + 1) { grid-column: 1 / span 7; }
.property-editorial-card:nth-child(6n + 2) {
  grid-column: 9 / span 4;
  margin-top: clamp(52px, 8vw, 128px);
}
.property-editorial-card:nth-child(6n + 3) { grid-column: 2 / span 4; }
.property-editorial-card:nth-child(6n + 4) {
  grid-column: 7 / span 6;
  margin-top: clamp(40px, 6vw, 96px);
}
.property-editorial-card:nth-child(6n + 5) { grid-column: 1 / span 6; }
.property-editorial-card:nth-child(6n + 6) {
  grid-column: 8 / span 5;
  margin-top: clamp(48px, 7vw, 112px);
}
.property-editorial-image {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.38;
  border-radius: 3px;
  background: var(--paper);
  color: #fff;
  text-decoration: none;
}
.property-editorial-card:nth-child(6n + 2) .property-editorial-image,
.property-editorial-card:nth-child(6n + 3) .property-editorial-image {
  aspect-ratio: .86;
}
.property-editorial-card:nth-child(6n + 6) .property-editorial-image {
  aspect-ratio: 1.12;
}
.property-editorial-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2, .6, .2, 1);
}
.property-editorial-grid[data-gallery-motion="1"] .property-editorial-image > img { transition: none; }
.property-editorial-grid[data-gallery-motion="1"] .property-editorial-card { will-change: transform; }
.property-editorial-grid[data-gallery-motion="1"] [data-gallery-frame] { will-change: clip-path; }
.property-editorial-image > .terra-property-placeholder { width: 100%; height: 100%; }
.property-editorial-image .terra-property-placeholder > img {
  width: clamp(84px, 12vw, 160px);
  height: auto;
  object-fit: contain;
}
.property-editorial-image .terra-property-placeholder > span { color: var(--ink); }
.property-editorial-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #00000025 0%, transparent 30%, transparent 60%, #00000070 100%);
}
.property-editorial-number {
  position: absolute;
  top: clamp(16px, 2vw, 28px);
  left: clamp(16px, 2vw, 28px);
  z-index: 1;
  padding: 5px 8px;
  border: 1px solid #ffffff65;
  border-radius: 2px;
  background: #15211270;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.property-editorial-image-action {
  position: absolute;
  inset: auto clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
}
.property-editorial-image-action > span:last-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  font-size: 1rem;
}
.property-editorial-caption {
  padding-top: clamp(18px, 2vw, 28px);
}
.property-editorial-kind {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  color: var(--ink);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.5;
}
.property-editorial-price { display: block; }
.public-body .property-editorial-caption .property-location {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.6;
  text-transform: uppercase;
}
.public-body .property-editorial-caption h3 {
  margin: 0;
  max-width: 28ch;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.045em;
}
.property-editorial-caption h3 > a { color: inherit; text-decoration: none; }
.public-body .property-editorial-description {
  margin: 12px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.75;
}
.property-editorial-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.6;
}
.property-editorial-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line-strong);
}
.property-editorial-footer > strong {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  letter-spacing: -.03em;
  line-height: 1.4;
}
.property-editorial-footer > a {
  color: var(--accent);
  font-size: .73rem;
  font-weight: 800;
  line-height: 1.6;
  text-underline-offset: 5px;
}
.is-secondary-photo .property-editorial-caption h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
}
.property-editorial-grid[data-gallery-count="1"] .property-editorial-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  margin: 0;
}
.property-editorial-grid[data-gallery-count="1"] .property-editorial-caption {
  padding-top: 0;
}
.property-editorial-grid[data-gallery-count="3"] .property-editorial-card:nth-child(3) {
  grid-column: 4 / span 7;
}
.property-editorial-grid[data-gallery-count="3"] .property-editorial-card:nth-child(3) .property-editorial-image {
  aspect-ratio: 1.5;
}
.property-editorial a:focus-visible {
  outline: 3px solid var(--accent-2, var(--accent));
  outline-offset: 6px;
}
.property-editorial-caption h3 > a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .property-editorial-image:hover > img { transform: scale(1.035); }
}
@media (max-width: 1000px) {
  .property-editorial-card:nth-child(6n + 1),
  .property-editorial-card:nth-child(6n + 3),
  .property-editorial-card:nth-child(6n + 5) { grid-column: 1 / span 6; }
  .property-editorial-card:nth-child(6n + 2),
  .property-editorial-card:nth-child(6n + 4),
  .property-editorial-card:nth-child(6n + 6) {
    grid-column: 7 / span 6;
    margin-top: 64px;
  }
  .property-editorial-grid[data-gallery-count="3"] .property-editorial-card:nth-child(3) { grid-column: 3 / span 8; }
  .property-editorial-grid[data-gallery-count="1"] .property-editorial-card {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 28px;
  }
}
@media (max-width: 680px) {
  .property-editorial-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .property-editorial-grid .property-editorial-card:nth-child(n),
  .property-editorial-grid[data-gallery-count="3"] .property-editorial-card:nth-child(3) {
    grid-column: 1;
    margin-top: 0;
  }
  .property-editorial-grid[data-gallery-count="1"] .property-editorial-card {
    display: block;
  }
  .property-editorial-grid[data-gallery-count="1"] .property-editorial-caption { padding-top: 20px; }
  .property-editorial-grid .property-editorial-card:nth-child(n) .property-editorial-image {
    aspect-ratio: 1.2;
    max-height: 440px;
  }
  .public-body .property-editorial .section-heading { gap: 20px; }
  .property-editorial-image-action { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
  .property-editorial-image > img { transition: none; }
}

/* The scroll distance belongs to the section; only its inner window clips photos.
   Keeping every ancestor free of overflow:hidden lets sticky work at any zoom. */
.public-body #propiedades[data-gallery-horizontal] {
  position: relative;
  padding: 0;
  overflow: visible;
}
[data-gallery-horizontal] .property-gallery-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  box-sizing: border-box;
  padding: var(--gallery-nav-space, 110px) clamp(22px, 6vw, 110px) 18px;
  display: flex;
  flex-direction: column;
  background: var(--bg, #f6f4ef);
}
.public-body #propiedades[data-gallery-horizontal] .section-heading {
  flex: 0 0 auto;
  align-items: center;
  gap: 24px;
  margin: 0 0 24px;
}
.public-body #propiedades[data-gallery-horizontal] .section-heading h2 {
  font-size: clamp(28px, 2.6vw, 40px);
  margin: 8px 0 0;
}
.public-body #propiedades[data-gallery-horizontal] .terra-section-aside {
  gap: 8px;
}
.public-body #propiedades[data-gallery-horizontal] .terra-section-aside > p {
  display: none;
}
[data-gallery-horizontal] .property-gallery-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: clip;
  touch-action: pan-y pinch-zoom;
}
[data-gallery-horizontal] .property-editorial-grid {
  position: relative;
  display: flex;
  width: max-content;
  gap: 12vw;
  align-items: flex-start;
  padding-top: 12px;
  will-change: transform;
}
.public-body #propiedades[data-gallery-horizontal] .property-editorial-card:nth-child(n) {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  transform: translateY(calc(var(--gallery-card-offset, 0px) + var(--gallery-drift, 0px)));
}
.public-body #propiedades[data-gallery-horizontal] .property-editorial-card:nth-child(n) .property-editorial-image {
  aspect-ratio: auto;
  height: var(--gallery-photo-height, 300px);
  max-height: none;
  border-radius: 3px;
}
[data-gallery-horizontal] .property-editorial-image > img {
  transform: none;
  transition: none;
}
[data-gallery-horizontal] .property-editorial-caption { padding-top: 14px; }
[data-gallery-horizontal] .property-editorial-kind { margin-bottom: 5px; font-size: 10px; padding: 0; border: 0; border-radius: 0; }
.public-body #propiedades[data-gallery-horizontal] .property-location { margin-bottom: 5px; font-size: 10px; }
.public-body #propiedades[data-gallery-horizontal] .property-editorial-caption h3 { font-size: clamp(20px, 1.6vw, 28px); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.public-body #propiedades[data-gallery-horizontal] .property-editorial-description {
  display: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.6;
}
[data-gallery-horizontal] .property-editorial-facts { display: none; }
[data-gallery-horizontal] .property-editorial-footer { margin-top: 12px; padding-top: 10px; gap: 8px 18px; }
[data-gallery-horizontal] .property-editorial-footer > strong { font-size: 16px; }
.property-gallery-navigation {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.property-gallery-navigation[hidden] { display: none; }
.property-gallery-navigation > div { display: flex; align-items: center; gap: 14px; }
.property-gallery-navigation button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}
.property-gallery-navigation button:hover { background: var(--mint); }
.property-gallery-navigation button:disabled { opacity: .3; cursor: default; }
[data-gallery-position] { min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }
[data-gallery-horizontal] .property-gallery-viewport:focus-visible,
.property-gallery-navigation button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
@media (max-width: 680px) {
  [data-gallery-horizontal] .property-gallery-stage { padding-inline: 22px; padding-bottom: 12px; }
  .public-body #propiedades[data-gallery-horizontal] .section-heading { grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px; }
  .public-body #propiedades[data-gallery-horizontal] .section-heading h2 { font-size: 28px; max-width: none; }
  .public-body #propiedades[data-gallery-horizontal] .section-heading h2 br { display: none; }
  .public-body #propiedades[data-gallery-horizontal] .section-heading h2 br::after { content: " "; }
  .public-body #propiedades[data-gallery-horizontal] .terra-section-aside { grid-template-columns: 1fr auto; align-items: center; }
  .public-body #propiedades[data-gallery-horizontal] .terra-section-aside > p { display: none; }
  .public-body #propiedades[data-gallery-horizontal] .terra-inventory-count { padding: 4px 7px; font-size: 9px; margin: 0; }
  [data-gallery-horizontal] .property-editorial-grid { gap: 12vw; }
  [data-gallery-horizontal] .property-editorial-image-action { font-size: 11px; }
  [data-gallery-horizontal] .property-editorial-caption h3 { font-size: 22px; }
}
.property-editorial-image > img{object-fit:contain;object-position:center;transform:none!important;background:var(--paper,#f3f1e9)}
