/* Galeria da V5, aplicada somente a esta seção. */
#depoimentos {
  --navy: #14294f;
  --navy-deep: #0d192f;
  --red: #b5122d;
  --red-dark: #900d26;
  --gallery-rule: #dce0e4;
  color: #223047;
  font: 1.0625rem / 1.65 'Instrument Sans', Arial, sans-serif;
  padding-block: clamp(52px, 8vw, 104px);
  scroll-margin-top: 0;
}

#depoimentos .container {
  max-width: 1260px;
  padding-inline: clamp(20px, 4vw, 48px);
}

#depoimentos .stories-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 2.3fr);
  align-items: start;
  gap: clamp(24px, 5vw, 62px);
}

#depoimentos .section-title {
  max-width: 21ch;
  margin-bottom: 20px;
  text-transform: none;
  font-size: clamp(2rem, 4.15vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 700;
}

#depoimentos .stories-heading p { max-width: 28ch; text-wrap: pretty; }
#depoimentos .student-grid { gap: clamp(15px, 2.5vw, 30px); }
#depoimentos .student-story { overflow: visible; border: 0; border-radius: 0; background: transparent; }
#depoimentos .student-story video { border-radius: 8px; background: var(--navy-deep); }
#depoimentos .featured-stories video { aspect-ratio: 9 / 16; }
#depoimentos .additional-stories video { aspect-ratio: 4 / 5; }
#depoimentos .student-story figcaption { padding: 10px 0 0; font-weight: 400; }
#depoimentos .story-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
#depoimentos .story-heading strong { font-size: 1.21rem; line-height: 1.3; }
#depoimentos .story-language { font-size: .77rem; font-weight: 700; color: var(--red-dark); }
#depoimentos .story-role, #depoimentos .story-location { display: block; font-size: .87rem; line-height: 1.4; }
#depoimentos .story-location { color: #505d70; }

#depoimentos .more-stories { margin-top: 30px; border-top: 1px solid var(--gallery-rule); }
#depoimentos .more-stories summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 0;
  padding: 15px 0;
  list-style: none;
  min-height: 48px;
  font-weight: 700;
}

#depoimentos .more-stories summary::-webkit-details-marker { display: none; }
#depoimentos .more-stories summary::after { content: '+'; color: var(--red); font-size: 1.42rem; line-height: 1; }
#depoimentos .more-stories[open] summary::after { content: '−'; }
#depoimentos .less-label, #depoimentos .more-stories[open] .more-label { display: none; }
#depoimentos .more-stories[open] .less-label { display: inline; }
#depoimentos :focus-visible { outline: 3px solid #5596ed; outline-offset: 3px; }

@media (max-width: 950px) {
  #depoimentos { scroll-margin-top: 28px; }
  #depoimentos .stories-layout { grid-template-columns: 1fr; }
  #depoimentos .stories-heading p { max-width: 54ch; }
}

@media (max-width: 760px) {
  #depoimentos .featured-stories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #depoimentos .additional-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  #depoimentos .section-title { margin-bottom: 14px; }
  #depoimentos .student-grid { gap: 18px 14px; }
  #depoimentos .featured-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #depoimentos .featured-stories .student-story:first-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 260px);
  }
}
