  /* Alter item display & layout to show caption underneath */
  .smv:not(.smv-grid-gallery) .smv-slide > .smv-content > .smv-component[data-caption] {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Increase or decrease a negative value (36px) to fit the caption into */
    height: calc(100% - 4em) !important;
}

  /* Item caption */
  .smv:not(.smv-grid-gallery) .smv-slide > .smv-content > .smv-component[data-caption]:after {
    content: attr(data-caption);
    display: inline;
    position: absolute;
    top: 100%;
    left: 50%;
    height: auto;
    padding: 0.5em;
    transform: translateX(-50%);
  }