.mdc-custom__accordion .card {
  overflow: visible !important; /*overriding bootstrap styles*/
  border: none;
}

.mdc-custom__accordion .card-body {
  padding: 1em;
}

.mdc-custom__accordion-container {
  display: grid;
  gap: 1rem;
}

.mdc-custom__accordion__header {
  padding: 0;
  background-color: transparent;
  margin-bottom: 0!important; /*overriding bootstrap styles*/
  border-bottom: none !important; /*overriding bootstrap styles*/
}

.mdc-custom__accordion__title button {
  background-color: transparent;
  border: 1px solid rgba(0,0,0,.125);
  padding: 1em;
  width: 100%;

  line-height: 1.2;
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: bold;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mdc-custom__accordion__icon {
  min-width: 20px;
  position: relative;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
}

.mdc-custom__accordion__icon:before, .mdc-custom__accordion__icon:after {
  content: "";
  display: inline-block;
  background-color: #444;
  transition: all 0.25s ease-in-out;

  grid-row: 1/2;
  grid-column: 1/3;  
}


.mdc-custom__accordion__header button[aria-expanded="false"] .mdc-custom__accordion__icon:before {
  transform: rotate(0deg);
  width: 6px;
  height: 18px;
}

.mdc-custom__accordion__icon:before {
  transform: rotate(90deg);
  width: 6px;
  height: 18px;
}

.mdc-custom__accordion__icon:after {
  width: 18px;
  height: 6px;
}

.mdc-custom__accordion__body p:last-child {
  margin-bottom: 0;
}

/*--We are using important to override any width or height inlined with the iframe--*/
.mdc-custom__accordion__body iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9 !important;
}