/* Structural baseline for hs/grid-box. Visual styling lives in theme. */

.hs-grid-cards__box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
}

.hs-grid-cards__img,
.hs-grid-cards__video-wrapper {
  display: block;
  height: auto;
  line-height: 0;
  width: 100%;
}

.hs-grid-cards__img iframe,
.hs-grid-cards__img img,
.hs-grid-cards__img video,
.hs-grid-cards__video-wrapper iframe,
.hs-grid-cards__video-wrapper img,
.hs-grid-cards__video-wrapper video {
  aspect-ratio: 16/9;
  border: none;
  display: block;
  height: auto;
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
}

.hs-grid-cards__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 24px;
}

.hs-grid-cards__title {
  margin: 0 0 12px;
}

.hs-grid-cards__inner-content {
  margin-top: auto;
  padding-top: 16px;
}

.hs-grid-cards__icon {
  align-items: center;
  display: flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 48px;
}

.hs-grid-cards__icon svg {
  height: 24px;
  width: 24px;
}
