
/* SECTION */
.properties {
  text-align: center;
  padding: 50px 20px;
}

.properties h2 {
  font-size: 28px;
  font-weight: 700;
}

.sub {
  color: #777;
  margin-bottom: 30px;
}

/* GRID */
.grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CARD */
.card {
  position: relative;
  width: 250px;
  height: 380px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY TEXT */
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: #fff;
  font-weight: 500;
}

/* TITLE */
.title {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* DARK CARD */
.card.dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

/* BUTTON */
.btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
}


.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.modal video {
  width: 80%;
  max-width: 900px;
  border-radius: 10px;
  z-index: 1;
}

/* FIX CLOSE BUTTON */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000; /* VERY IMPORTANT */
}