.community-section {
  padding-top: clamp(70px, 9vw, 140px);
  padding-bottom: clamp(70px, 9vw, 140px);
  background: #f4f2ed;
}

.community-heading,
.community-section .section-intro {
  max-width: 720px;
  margin-bottom: 42px;
}

.community-heading h2,
.community-section h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: .95;
  margin: 12px 0 18px;
  text-transform: uppercase;
}

.community-heading p,
.community-section .section-intro > p:last-child {
  font-size: 12px;
  line-height: 1.7;
  color: #666;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 30px 0;
  align-items: stretch;
}

.community-card {
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr);
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  scroll-snap-align: start;
}

.community-card > img,
.community-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: #f7f6f4;
  color: #aaa;
  font-size: 42px;
}

.community-card > div {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 22px;
  background: #fff;
}

.community-card small {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #777;
}

.community-card h3 {
  min-height: 2.5em;
  font-size: 17px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 10px 0 20px;
}

.community-card a {
  align-self: flex-start;
  margin-top: auto;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-bottom: 1px solid;
}

.community-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, .14);
  font-size: 11px;
  color: #666;
}

/* Equal-width rail: cards never shrink or overlap each other. */
.community-grid.community-carousel {
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: clamp(300px, 28vw, 380px);
  gap: 24px !important;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: stretch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 2px 14px;
  margin-inline: 0;
}

.community-carousel-shell {
  position: relative;
}

.community-arrow {
  position: absolute;
  z-index: 3;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(24, 24, 24, .16);
  border-radius: 50%;
  background: #fff;
  color: #181818;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.community-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.community-arrow-prev {
  left: -22px;
}

.community-arrow-next {
  right: -22px;
}

.community-arrow:disabled {
  opacity: .35;
  cursor: default;
}

.community-grid.community-carousel::-webkit-scrollbar {
  display: none;
}

.community-grid.community-carousel .community-card {
  width: auto;
  min-width: 0;
}

@media (max-width: 900px) {
  .community-grid:not(.community-carousel) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-grid.community-carousel {
    grid-auto-columns: min(76vw, 340px);
    gap: 18px !important;
  }
}

@media (max-width: 560px) {
  .community-grid:not(.community-carousel) {
    grid-template-columns: 1fr;
  }

  .community-grid.community-carousel {
    grid-auto-columns: min(84vw, 330px);
    gap: 14px !important;
  }

  .community-card {
    grid-template-rows: auto minmax(160px, 1fr);
  }

  .community-card > img,
  .community-placeholder {
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .community-card > div {
    min-height: 160px;
    padding: 18px;
  }

  .community-arrow {
    top: calc(50% - 19px);
    width: 38px;
    height: 38px;
  }

  .community-arrow-prev {
    left: -8px;
  }

  .community-arrow-next {
    right: -8px;
  }
}
.community-fabric{margin:8px 0 12px!important;font-size:8px!important;line-height:1.45!important;letter-spacing:.06em!important;text-transform:uppercase;color:#777!important}
