.communities-page {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: #000;
  font-family: Arial, sans-serif;
}

.communities-label {
  display: none;
}

.communities-shell {
  width: 100vw;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
}

.communities-hero {
  position: relative;
  width: 100%;
  height: clamp(38rem, 55.56vw, 50rem);
  min-height: 0;
  overflow: hidden;
  background: url("../images/communities-hero-clean.png") center top / cover no-repeat;
}

.communities-hero .topbar {
  top: 6.1%;
  left: 4.7%;
  right: 2.9%;
  z-index: 3;
  opacity: 1;
}

.communities-hero .topbar {
  pointer-events: none;
}

.communities-hero .topbar a,
.communities-hero .topbar button {
  pointer-events: auto;
}

.communities-title-band {
  position: relative;
  height: 158px;
  display: flex;
  align-items: center;
  padding: 0 86px;
  background: #000;
  color: #fff;
}

.communities-title-band h1 {
  margin: 0;
  font: 400 37px/1 "Times New Roman", serif;
  letter-spacing: 3.7px;
}

.communities-title-band span {
  position: absolute;
  left: 50%;
  bottom: 16px;
  color: #fff;
  font: 700 28px/16px Arial, sans-serif;
  transform: translateX(-50%);
}

.communities-main {
  min-height: 0;
  background: #fff;
  color: #000;
}

.communities-section {
  width: min(64rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(1.5rem, 3vw, 2.75rem);
}

.communities-section h2 {
  margin: 0 0 clamp(2.5rem, 4vw, 4rem);
  text-align: center;
  font: 500 clamp(1.0625rem, 1.35vw, 1.25rem)/1 "Times New Roman", serif;
  letter-spacing: .165em;
  text-transform: uppercase;
}

.communities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.25vw, 1.25rem);
}

.community-card {
  position: relative;
  height: auto;
  aspect-ratio: 240 / 180;
  display: block;
  overflow: hidden;
  border-radius: .5rem;
  background: #d8d8d8;
  color: #fff;
}

.community-card--hidden {
  display: none;
}

.community-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.community-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28));
}

.community-card h3 {
  position: absolute;
  left: .625rem;
  top: .5rem;
  z-index: 1;
  max-width: calc(100% - 1.25rem);
  margin: 0;
  color: #fff;
  font: 700 clamp(.625rem, .8vw, .75rem)/1.25 Arial, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show-more-button {
  width: min(12.8125rem, 100%);
  height: 2.0625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(1.125rem, 2vw, 2rem) auto 0;
  border-radius: 1.125rem;
  border: 0;
  background: #f0f0f0;
  color: #111;
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.communities-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #ddd;
  text-align: center;
}

.communities-empty h3 {
  margin: 0;
  font: 400 28px/1.1 "Times New Roman", serif;
}

.communities-empty p {
  margin: 0;
  color: #555;
  font-size: 13px;
}

.communities-footer-video {
  position: relative;
  height: clamp(15rem, 19.45vw, 17.5rem);
  overflow: hidden;
  margin: 0;
  padding: 2.5rem clamp(.9375rem, 2.78vw, 2.5rem) 0;
  background: #000;
}

.communities-footer-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 41%;
  opacity: 0.8;
}

.communities-footer-video h2 {
  position: absolute;
  top: 2.5rem;
  right: clamp(.9375rem, 2.78vw, 2.5rem);
  bottom: 0;
  left: clamp(.9375rem, 2.78vw, 2.5rem);
  display: grid;
  place-items: center;
  margin: 0;
  color: #fff;
  text-align: center;
  font: 500 clamp(1.3125rem, 2.23vw, 2rem)/1.5625 var(--heading);
  letter-spacing: .1em;
}

.communities-footer {
  height: auto;
  min-height: 0;
  display: block;
  background: #000;
  color: #fff;
  padding: 0 clamp(1.25rem, 2.78vw, 2.5rem);
  box-sizing: border-box;
}

.communities-footer__logo {
  display: block;
  width: clamp(11.875rem, 16.95vw, 15.25rem);
  height: 7.5rem;
  margin: clamp(3.75rem, 5.56vw, 5rem) auto clamp(1.875rem, 2.78vw, 2.5rem);
}

.communities-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.communities-footer__main {
  position: relative;
  height: 200px;
  min-height: 0;
  padding: 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  box-sizing: border-box;
}

.communities-footer__main p {
  position: absolute;
  top: 51px;
  left: 0;
  margin: 0;
  color: #fff;
  font: 400 12px/20px Arial, sans-serif;
  letter-spacing: 1.2px;
}

.communities-footer__social {
  position: absolute;
  left: 0;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 27px;
}

.communities-footer__social a {
  display: grid;
  width: 12px;
  height: 16px;
  place-items: center;
  color: #fff;
}

.communities-footer__social svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.communities-footer__social a:nth-child(2) svg,
.communities-footer__social a:nth-child(5) svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.communities-footer__social a:nth-child(5) svg path:first-child {
  fill: none;
}

.communities-footer__social a:nth-child(5) svg path:last-child {
  fill: currentColor;
  stroke: none;
}

.communities-footer__main nav {
  position: absolute;
  left: 320px;
  right: 228px;
  bottom: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  white-space: nowrap;
}

.communities-footer__main label {
  position: absolute;
  right: 0;
  bottom: 29px;
  width: 180px;
  color: #fff;
  font: 400 12px/1 Arial, sans-serif;
  letter-spacing: 1.2px;
}

.communities-footer__main input {
  width: 100%;
  padding: 10px 0 4px;
  border: 0;
  border-bottom: 1px solid #6d6e71;
  background: none;
  color: #fff;
  font: 400 12px/1 Arial, sans-serif;
  outline: none;
}

.communities-footer__main input::placeholder {
  color: #6d6e71;
}

.communities-footer a {
  color: #fff;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-decoration: none;
}

.communities-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  color: #6d6e71;
  font: 400 12px/1.3 Arial, sans-serif;
  letter-spacing: 1.2px;
}

.communities-footer__bottom a {
  color: #6d6e71;
}

@media (max-width: 900px) {
  .communities-label,
  .communities-shell {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .communities-label {
    padding: 12px 18px 4px;
    margin-top: 0;
  }

  .communities-hero {
    min-height: 260px;
  }

  .communities-title-band {
    height: 130px;
    padding: 0 36px;
  }

  .communities-title-band h1 {
    font-size: 30px;
    letter-spacing: 3px;
  }

  .communities-section {
    width: min(640px, calc(100% - 36px));
    padding-top: 42px;
    padding-bottom: 18px;
  }

  .communities-footer {
    height: auto;
    padding: 0 20px;
  }

  .communities-footer__logo {
    width: 190px;
    margin: 60px auto 30px;
  }

  .communities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .communities-grid {
    grid-template-columns: 1fr;
  }

  .community-card {
    height: 170px;
  }

  .communities-footer-video {
    height: 280px;
    padding: 40px 15px 0;
  }

  .communities-footer-video h2 {
    top: 40px;
    right: 15px;
    left: 15px;
    font-size: 21px;
    line-height: 35px;
  }
}

@media (max-width: 1000px) {
  .communities-footer__main {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
    gap: 24px;
    padding: 24px 0;
  }

  .communities-footer__main p,
  .communities-footer__social,
  .communities-footer__main nav,
  .communities-footer__main label {
    position: static;
  }

  .communities-footer__main nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }

  .communities-footer__main label {
    width: min(100%, 220px);
  }

  .communities-footer__bottom {
    flex-direction: column;
  }
}
