.cmgr {
  --cmgr-blue: #4285f4;
  --cmgr-gold: #c8ae69;
  --cmgr-star: #fbbc04;
  --cmgr-text: #171717;
  --cmgr-muted: #8b8b8b;
  margin: 3rem 0;
  color: var(--cmgr-text);
  font-family: inherit;
}

.cmgr *,
.cmgr *::before,
.cmgr *::after {
  box-sizing: border-box;
}

.cmgr__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cmgr__inner {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  gap: 2rem;
}

.cmgr__summary {
  text-align: center;
}

.cmgr__rating-label {
  margin-bottom: .35rem;
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cmgr__summary-stars,
.cmgr__stars {
  display: flex;
  color: #d8d8d8;
}

.cmgr__summary-stars {
  justify-content: center;
  margin-bottom: .3rem;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.08em;
}

.cmgr__summary-stars .is-filled,
.cmgr__stars .is-filled {
  color: var(--cmgr-star);
}

.cmgr__count {
  font-size: .94rem;
}

.cmgr__google-word {
  display: inline-flex;
  margin-top: .35rem;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.1em;
  line-height: 1;
  text-decoration: none !important;
}

.cmgr__google-word span:nth-child(1),
.cmgr__google-word span:nth-child(4) { color: #4285f4; }
.cmgr__google-word span:nth-child(2),
.cmgr__google-word span:nth-child(6) { color: #ea4335; }
.cmgr__google-word span:nth-child(3) { color: #fbbc05; }
.cmgr__google-word span:nth-child(5) { color: #34a853; }

.cmgr__carousel {
  position: relative;
  min-width: 0;
}

.cmgr__viewport {
  overflow: hidden;
  padding: 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.cmgr__viewport::-webkit-scrollbar {
  display: none;
}

.cmgr__grid {
  display: flex;
  gap: 1rem;
}

.cmgr__card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 238px;
  flex: 0 0 calc((100% - 2rem) / 3);
  flex-direction: column;
  padding: 1.2rem 1.25rem 1.1rem;
  overflow: hidden;
  border: 1px solid var(--cmgr-gold);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 3px 7px rgba(32, 25, 5, .08);
}

.cmgr__author-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: .75rem;
}

.cmgr__avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  object-fit: cover;
}

.cmgr__avatar--fallback {
  display: grid;
  place-items: center;
  background: #1769a3;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}

.cmgr__author-data {
  min-width: 0;
  flex: 1;
}

.cmgr__author {
  display: block;
  overflow: hidden;
  color: var(--cmgr-text);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.cmgr__date {
  margin-top: .12rem;
  color: var(--cmgr-muted);
  font-size: .8rem;
  line-height: 1.2;
}

.cmgr__google-g {
  flex: 0 0 auto;
  color: #4285f4;
  font-size: 1.45rem;
  font-weight: 800;
}

.cmgr__stars {
  align-items: center;
  margin: .65rem 0 .55rem;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -.08em;
}

.cmgr__verified {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  margin-left: .45rem;
  border-radius: 50%;
  background: var(--cmgr-blue);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.cmgr__text {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--cmgr-text);
  font-size: .91rem;
  line-height: 1.45;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.cmgr__card.is-expanded .cmgr__text {
  display: block;
  overflow: auto;
  max-height: 125px;
}

.cmgr__more {
  align-self: flex-start;
  margin: .35rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cmgr-muted);
  cursor: pointer;
  font-size: .8rem;
}

.cmgr__quote {
  align-self: flex-end;
  height: 30px;
  margin-top: auto;
  color: var(--cmgr-gold);
  font-family: Georgia, serif;
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transform: rotate(180deg);
}

.cmgr__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 0 3px;
  transform: translateY(-50%);
  border: 1px solid var(--cmgr-gold);
  border-radius: 50%;
  background: #fff;
  color: #8e7a48;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.cmgr__nav--prev { left: -13px; }
.cmgr__nav--next { right: -13px; }
.cmgr__nav:disabled { opacity: .35; cursor: default; }

.cmgr a:hover,
.cmgr__more:hover {
  opacity: .78;
}

@media (max-width: 991px) {
  .cmgr__inner {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 1.25rem;
  }

  .cmgr__card {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 700px) {
  .cmgr {
    margin: 2rem 0;
  }

  .cmgr__inner {
    display: block;
    width: min(100% - 24px, 520px);
  }

  .cmgr__summary {
    margin-bottom: 1.5rem;
  }

  .cmgr__card {
    min-height: 225px;
    flex-basis: 88%;
  }

  .cmgr__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .cmgr__card {
    scroll-snap-align: start;
  }

  .cmgr__nav--prev { left: -8px; }
  .cmgr__nav--next { right: -8px; }
}
