:root {
  /* Box Dimensions */
  --box-width: 100%;
  --box-border-width: 1px;
  --box-border-style: solid;
  --box-border-radius: 30px;

  /* SIZES */
  --br1: 0.5rem;
  --br2: 2rem;
  --base-font-size: 62.5%;
  --button-size: 2rem;
  --bs1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-family: "Fraunces", Georgia, serif;
  /* font-family: "Caveat", cursive;
   font-family: "IBM Plex mono"; 
  font-size: var(--base-font-size); */
  color: var(--text-color);
}

/* Always use ems for components so that everything scales using ems based on the initial font size; */

.button-nest {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  margin-top: 2rem;
}

.grid15 > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.box {
  filter: var(--filter-drop-shadow);
  container-type: inline-size;
  background-color: var(--background-color);
  border: var(--box-border-width) var(--box-border-style) var(--box-border);
}

.box.link:hover {
  filter: none;
  transform: scale(0.98);
  cursor: pointer;
}

.box-content {
  background: var(--background-color);
  padding: 3rem;
  width: 100%;
  border-radius: var(--br2);
}

.box-content h1 {
  font-size: clamp(4rem, 7vw, 5.5rem);
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 1rem;
}

.box-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: "Manrope", "Segoe UI", sans-serif;
  margin-bottom: 1rem;
}

.box-content p {
  font-size: 1.6rem;
  font-weight: 400;
  max-width: 55ch;
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.box .box-content:has(h6) {
  border: 10px solid rgb(215, 241, 16);
}

.box.span1 img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: var(--box-border-width) var(--box-border-style) var(--box-border);

  scale: 0.9;
  opacity: 0.5;
  -webkit-animation: fade-in linear forwards;
  animation: fade-in linear forwards;
  animation-timeline: view();
  animation-range: 100px 300px;
}

@keyframes fade-in {
  to {
    scale: 1;
    opacity: 1;
  }
}

@-webkit-keyframes fade-in {
  to {
    scale: 1;
    opacity: 1;
  }
}

.box:has(> img) {
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
}

.houses .box.span1:has(> p.htext):has(> img) {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 0.9rem;
  overflow: visible;
}

.houses .box.span1:has(> p.htext):has(> img) > img {
  height: auto;
  aspect-ratio: 4 / 3;
}

.houses .box.span1 > p.htext {
  margin: 0;
  padding: 0 2.3rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.55rem;
  line-height: 1.45;
  text-align: center;
  font-weight: 700;
}

.grid15 > a > .box:has(> img) {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.grid15 > a > .box.span1.link:has(> img) > img {
  height: 100%;
  scale: 1;
  opacity: 1;
  animation: none;
  -webkit-animation: none;
}

.box.span1.link:has(> img) p {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  z-index: 1;
  pointer-events: none;
}

.linkbox {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.center {
  text-align: center;
}

span.gethere {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--hbtop);
  color: var(--hbtext);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
