.edb-tgrid {
  --card-bg: #fff;
  --card-radius: 17px;
  --card-shadow: 0 4px 20px rgba(0,0,0,.06);
  --accent: #F16461; /* quotes + active dot */
  --muted: #9aa0a6;
  position: relative;
  margin: 24px 0;
}

.edb-tgrid__viewport {
  overflow: hidden;
  width: 100%;
}

.edb-tgrid__track {
  display: flex;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.edb-tgrid__slide {
  flex: 0 0 100%;
  padding: 8px 32px; /* space around grid and room for arrows */
  box-sizing: border-box;
}

/* Responsive: tablet = 2x2, mobile = 1x1 (auto slidesize via JS is still 100%) */
@media (max-width: 1024px){
  .edb-tgrid__slide { padding: 8px 24px; }
  .edb-tgrid__grid { --cols:2 !important; --rows:3 !important; }
}
@media (max-width: 640px){
  .edb-tgrid__slide { padding: 8px 16px; }
  .edb-tgrid__grid { --cols:1 !important; --rows:3 !important; }
  .edb-tgrid__arrow { display:none; } /* swipe on mobile */
}

/* allow vertical scrolling while we watch horizontal swipes */
.edb-tgrid { touch-action: pan-y; }

.edb-tgrid__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols,3), minmax(0,1fr));
  grid-auto-rows: 1fr;
  gap: 30px;
}

.edb-tgrid__card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 34px;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.edb-tgrid__head {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.edb-tgrid__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: #f2f4f7; color: #5c6370;
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px; letter-spacing: .5px;
}

.edb-tgrid__who {line-height: 1.1; margin-left: 10px;}
.edb-tgrid__name {font-weight: 700;
    font-size: 16px;
    color: #2b2f36;
    font-family: 'Poppins';}
.edb-tgrid__area {font-size: 12px;
    color: #B2B1B9;
    font-family: 'Poppins';
    font-style: italic;
    line-height: 21px;}

.edb-tgrid__quote {color: var(--accent); }

.edb-tgrid__text {
  color: #444;
    line-height: 2.1;
    font-size: 13px;
    font-family: 'poppins';
    font-weight: 400;
}

.edb-tgrid__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 15px; height: 24px;
  border: none; cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
  z-index: 3;
  background: transparent;
}
.edb-tgrid__arrow:hover { transform: translateY(-50%) scale(1.05); }
.edb-tgrid__arrow[disabled] { opacity:.4; pointer-events:none; }
.edb-tgrid__arrow--prev { left: -20px; }
.edb-tgrid__arrow--next { right: -20px; }

.edb-tgrid__dots {
  display:flex; justify-content:center; gap:10px;
  padding: 14px 0 4px;
}
.edb-tgrid__dot {
  width:10px; height:10px; border-radius:999px;
  background: rgba(255,255,255,.6);
  border: 2px solid rgba(0,0,0,.08);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.06);
  cursor:pointer;
}
.edb-tgrid__dot.is-active { background: var(--accent); border-color: transparent; }

.visually-hidden{position:absolute!important;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}

