.by-community-page,
.by-community-look-page {
  padding: 32px 24px 56px;
}

.by-community-page .container-fluid,
.by-community-look-page .container-fluid {
  max-width: 1600px;
  margin: 0 auto;
}

.by-community-header {
  margin-bottom: 28px;
}

.by-community-title {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.by-community-subtitle {
  margin: 0;
  font-size: 14px;
  opacity: .72;
}

.by-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.by-community-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #f5f5f5;
  color: inherit;
  text-decoration: none;
}

.by-community-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eee;
}

.by-community-card__media img,
.by-community-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.by-community-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  color: #fff;
  pointer-events: none;
}

.by-community-card__creator {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.by-community-card__caption {
  font-size: 12px;
  line-height: 1.35;
  opacity: .92;
}

.by-community-card__video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 7px 8px;
  border-radius: 999px;
}

.by-community-look {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 420px;
  gap: 28px;
  align-items: start;
}

.by-community-look__gallery {
  min-width: 0;
}

.by-community-look__main {
  background: #f2f2f2;
  overflow: hidden;
}

.by-community-look__main-image,
.by-community-look__main-video {
  width: 100%;
  height: auto;
  display: block;
}

.by-community-look__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.by-community-look__thumb {
  width: 84px;
  height: 108px;
  border: 1px solid rgba(0,0,0,.12);
  background: #f2f2f2;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.by-community-look__thumb.is-active {
  border-color: #111;
}

.by-community-look__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.by-community-look__thumb-video {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.by-community-look__sidebar {
  position: sticky;
  top: 24px;
}

.by-community-look__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.by-community-look__title {
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 700;
}

.by-community-look__caption {
  font-size: 14px;
  line-height: 1.5;
  opacity: .78;
  margin-bottom: 24px;
}

.by-community-look__products-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.by-community-look__products {
  display: grid;
  gap: 12px;
}

.by-community-product {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,.08);
  padding: 10px;
  background: #fff;
}

.by-community-product__thumb {
  width: 72px;
  height: 90px;
  background: #f2f2f2;
  overflow: hidden;
}

.by-community-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.by-community-product__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.by-community-product__cta {
  font-size: 12px;
  opacity: .7;
}

.by-community-empty {
  padding: 40px 0;
  font-size: 14px;
}

@media (min-width: 768px) {
  .by-community-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .by-community-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .by-community-card:hover img,
  .by-community-card:hover video {
    transform: scale(1.02);
  }

  .by-community-card img,
  .by-community-card video {
    transition: transform .35s ease;
  }
}

@media (max-width: 1023px) {
  .by-community-look {
    grid-template-columns: 1fr;
  }

  .by-community-look__sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .by-community-title {
    font-size: 24px;
  }

  .by-community-look__title {
    font-size: 28px;
  }

  .by-community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .by-community-look-page,
  .by-community-page {
    padding: 20px 14px 40px;
  }

  .by-community-look__thumb {
    width: 72px;
    height: 94px;
  }
}