@font-face {
  font-family: mag-20261127-gelex-infra-sf;
  src: url("../fonts/SF-Pro-Display-Regular.otf");
}

@font-face {
  font-family: mag-20261127-gelex-infra-sf;
  src: url("../fonts/SF-Pro-Display-Medium.otf");
  font-weight: 500;
}

@font-face {
  font-family: mag-20261127-gelex-infra-beautique;
  src: url("../fonts/BeautiqueDisplay-Medium.otf");
  font-weight: 500;
}

@font-face {
  font-family: mag-20261127-gelex-infra-beautique;
  src: url("../fonts/BeautiqueDisplay-Bold.otf");
  font-weight: 700;
}

@font-face {
  font-family: mag-20261127-gelex-infra-beautique;
  src: url("../fonts/BeautiqueDisplay-Black.otf");
  font-weight: 900;
}

#mag-20261127-gelex-infra, #mag-20261127-gelex-infra * {
  box-sizing: border-box;
}

body:has(> #mag-20261127-gelex-infra)[data-mag-20261127-gelex-infra-standalone] {
  margin: 0;
}

#mag-20261127-gelex-infra {
  color: #202520;
  font: 400 16px/normal mag-20261127-gelex-infra-sf, Arial, sans-serif;
  --content-width: min(78%, 1170px);
  --grid-line: rgb(102 145 119 / 11%);
  --grid-size: 42px;
  background-color: #f8f8f4;
  background-image: linear-gradient(to right, var(--grid-line), transparent 2px),
    linear-gradient(to bottom, var(--grid-line), transparent 2px),
    url("../img/gelex-van-giay-repeat.webp");
  background-position: center top;
  background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), 560px 560px;
  background-repeat: repeat;
  overflow: hidden;
  container-name: mag-20261127-gelex-infra;
  container-type: inline-size;
}

#mag-20261127-gelex-infra img {
  display: block;
  width: 100%;
  height: auto;
}

#mag-20261127-gelex-infra figure {
  margin: 0;
}

#mag-20261127-gelex-infra .hero {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  padding: 2.5% 0 2.5% 6%;
  align-items: center;
  gap: 2%;
}

#mag-20261127-gelex-infra .hero-copy p {
  text-align: center;
  font-size: min(1.7cqw, 25.5px);
  line-height: calc(1.3em + 5px);
  color: #427451;
}

#mag-20261127-gelex-infra .prose,
#mag-20261127-gelex-infra .gallery {
  width: var(--content-width);
  margin-inline: auto;
}

#mag-20261127-gelex-infra .prose {
  padding: 2.5% 0;
  font-size: clamp(16px, 1.6cqw, 25px);
  line-height: 1.42;
}

#mag-20261127-gelex-infra .prose p {
  margin: 0 0 .8em;
}

#mag-20261127-gelex-infra .prose p:last-child {
  margin-bottom: 0;
}

#mag-20261127-gelex-infra .intro {
  padding-top: 3%;
  padding-bottom: 4%;
}

#mag-20261127-gelex-infra .columns {
  column-count: 2;
  column-gap: 4%;
  column-fill: balance;
}

#mag-20261127-gelex-infra .chapter {
  text-align: center;
  padding: 3% 5%;
  background: linear-gradient(
    to bottom,
    transparent,
    #cbe6d770 32%,
    #cbe6d755 58%,
    transparent
  );
  position: relative;
}

#mag-20261127-gelex-infra .chapter h2 {
  font: 700 min(4.4cqw, 66px)/.99 mag-20261127-gelex-infra-beautique, Georgia, serif;
  margin: .22em 0 .35em;
  letter-spacing: -.025em;
}

#mag-20261127-gelex-infra .chapter strong {
  display: block;
  color: #438353;
  font-size: 1.13em;
  font-weight: 700;
}

#mag-20261127-gelex-infra .chapter small {
  font-size: min(1cqw, 15px);
  letter-spacing: .12em;
}

#mag-20261127-gelex-infra .feature {
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
}

#mag-20261127-gelex-infra .feature blockquote,
#mag-20261127-gelex-infra .energy blockquote {
  margin: 0;
  padding: 5% 8%;
  text-align: center;
  color: #3d7950;
  font: 700 min(2.65cqw, 39.75px)/1.18 mag-20261127-gelex-infra-beautique, Georgia, serif;
}

#mag-20261127-gelex-infra .water {
  grid-template-columns: 46% 54%;
}

#mag-20261127-gelex-infra .housing {
  grid-template-columns: 55% 45%;
}

#mag-20261127-gelex-infra .wide {
  width: 100%;
}

#mag-20261127-gelex-infra .energy {
  display: grid;
  grid-template-columns: 22% 33% 1fr;
  gap: 2%;
  align-items: center;
  margin-inline: 70px;
  padding-block: 2%;
}

#mag-20261127-gelex-infra .energy > img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

#mag-20261127-gelex-infra .gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2%;
}

#mag-20261127-gelex-infra .gallery img {
  aspect-ratio: 1.9;
  object-fit: cover;
}

#mag-20261127-gelex-infra .end {
  margin-top: 2%;
}

@container mag-20261127-gelex-infra (max-width: 767px) {
  #mag-20261127-gelex-infra .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 6% 0;
    gap: 12px;
  }
  #mag-20261127-gelex-infra .hero-copy {
    padding-inline: 6%;
  }
  #mag-20261127-gelex-infra .hero-copy p {
    font-size: 4.3cqw;
  }
  #mag-20261127-gelex-infra .chapter small {
    font-size: 2.6cqw;
  }
  #mag-20261127-gelex-infra .prose,
  #mag-20261127-gelex-infra .gallery {
    width: 88%;
  }
  #mag-20261127-gelex-infra .prose {
    padding: 5% 0;
    line-height: 1.6;
  }
  #mag-20261127-gelex-infra .columns {
    column-count: 1;
  }
  #mag-20261127-gelex-infra .chapter {
    padding: 8% 3%;
  }
  #mag-20261127-gelex-infra .chapter h2 {
    font-size: 7cqw;
  }
  #mag-20261127-gelex-infra .feature {
    grid-template-columns: 1fr;
  }
  #mag-20261127-gelex-infra .feature blockquote,
  #mag-20261127-gelex-infra .energy blockquote {
    font-size: 5.5cqw;
    padding: 6% 9%;
  }
  #mag-20261127-gelex-infra .energy {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3%;
    margin-inline: 6%;
    padding-block: 4%;
  }
  #mag-20261127-gelex-infra .energy blockquote {
    grid-column: 1/-1;
  }
  #mag-20261127-gelex-infra .gallery {
    gap: 3%;
  }
  #mag-20261127-gelex-infra .gallery img {
    aspect-ratio: 1.25;
  }
}

#mag-20261127-gelex-infra .energy > img,
#mag-20261127-gelex-infra .gallery > img {
  border-radius: clamp(8px, 1.5cqw, 22px);
}

#mag-20261127-gelex-infra .chapter-number {
  display: inline-block;
  width: min(6.3cqw, 94.5px);
  vertical-align: top;
}

#mag-20261127-gelex-infra .chapter small {
  display: inline-flex;
  align-items: center;
  gap: .65em;
}

#mag-20261127-gelex-infra .chapter small img {
  width: 3em;
}

#mag-20261127-gelex-infra .quote-leaf {
  width: 1.9em;
  margin: .55em auto 0;
}

#mag-20261127-gelex-infra .feature blockquote p,
#mag-20261127-gelex-infra .energy blockquote p {
  margin: 0;
}

#mag-20261127-gelex-infra .hero-copy p,
#mag-20261127-gelex-infra .chapter h2,
#mag-20261127-gelex-infra .feature blockquote p,
#mag-20261127-gelex-infra .energy blockquote p {
  text-decoration: underline dashed #34433a 1px;
  text-decoration-skip-ink: none;
  text-underline-offset: .19em;
}

@container mag-20261127-gelex-infra (max-width: 767px) {
  #mag-20261127-gelex-infra .chapter-number {
    width: 13cqw;
  }
}

#mag-20261127-gelex-infra .hero-photos {
  position: relative;
  aspect-ratio: 658 / 583;
  container-type: inline-size;
}

#mag-20261127-gelex-infra .hero-photos > img {
  position: absolute;
  object-fit: cover;
  border-radius: clamp(6px, 2.4cqw, 22px);
}

#mag-20261127-gelex-infra .hero-family {
  inset: 3.1% auto auto 15.2%;
  width: 29.3%;
  height: 30.9%;
}

#mag-20261127-gelex-infra .hero-interior {
  inset: 35.5% auto auto 6.4%;
  width: 38.1%;
  height: 59.5%;
}

#mag-20261127-gelex-infra .hero-courtyard {
  inset: 9.3% auto auto 45.6%;
  width: 51.8%;
  height: 75.3%;
}

#mag-20261127-gelex-infra .hero-photos small {
  position: absolute;
  inset: 87.5% 3% auto 45.6%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  text-align: center;
  font-size: clamp(8px, 2cqw, 18px);
  font-weight: 500;
  white-space: nowrap;
}

#mag-20261127-gelex-infra .hero-photos small img {
  width: 9.4cqw;
}

#mag-20261127-gelex-infra .brand img {
  width: min(206px, 60%);
}

#mag-20261127-gelex-infra .hero-title {
  container-type: inline-size;
  font-family: mag-20261127-gelex-infra-beautique, Georgia, serif;
  font-weight: 500;
  margin: .45em 0 .3em;
}

#mag-20261127-gelex-infra .hero-title span {
  display: block;
  line-height: 1;
  white-space: nowrap;
}

#mag-20261127-gelex-infra .hero-title-name,
#mag-20261127-gelex-infra .hero-title-context,
#mag-20261127-gelex-infra .hero-title-value {
  text-decoration: underline rgb(67 131 83 / 50%) 1px;
  text-underline-offset: .12em;
}

#mag-20261127-gelex-infra .hero-title-name {
  font-size: min(13.4cqw, 98px);
}

#mag-20261127-gelex-infra .hero-title-anniversary {
  color: #4c9465;
  font-size: min(27.3cqw, 200px);
  font-weight: 700;
}

#mag-20261127-gelex-infra .hero-title-context {
  font-size: min(9.7cqw, 70px);
  text-align: right;
}

#mag-20261127-gelex-infra .hero-title-value {
  font-size: min(12.4cqw, 90px);
  font-weight: 700;
  text-align: right;
}

#mag-20261127-gelex-infra .chapter h2 {
  line-height: calc(.99em + 10px);
}

#mag-20261127-gelex-infra .feature blockquote p,
#mag-20261127-gelex-infra .energy blockquote p {
  line-height: calc(1.18em + 5px);
}

@media (prefers-reduced-motion: no-preference) {
  #mag-20261127-gelex-infra .revealed:not(.hero-photos) {
    animation: mag-20261127-gelex-infra-reveal .65s ease-out both;
  }
  #mag-20261127-gelex-infra .hero-photos.revealed > * {
    animation: mag-20261127-gelex-infra-reveal .7s ease-out both;
  }
  #mag-20261127-gelex-infra .hero-photos.revealed > .hero-interior {
    animation-delay: .12s;
  }
  #mag-20261127-gelex-infra .hero-photos.revealed > .hero-courtyard {
    animation-delay: .24s;
  }
  #mag-20261127-gelex-infra .hero-photos.revealed > small {
    animation-delay: .36s;
  }
  @keyframes mag-20261127-gelex-infra-reveal {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
