.tmm-lp-list {
  --tmm-lp-gap: 24px;
  --tmm-lp-image-width: 50%;
  --tmm-lp-content-width: 50%;
  --tmm-lp-image-min-height: 260px;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
}

.tmm-lp-card {
  display: flex;
  gap: var(--tmm-lp-gap);
  overflow: hidden;
  align-items: stretch;
  height: 100%;
  min-width: 0;
}

.tmm-lp-card.layout-image-right {
  flex-direction: row-reverse;
}

.tmm-lp-card.layout-image-top {
  flex-direction: column;
}

.tmm-lp-card.layout-image-bottom {
  flex-direction: column-reverse;
}

.tmm-lp-card.no-image .tmm-lp-card__content {
  width: 100%;
  max-width: 100%;
}

.tmm-lp-card__image {
  width: var(--tmm-lp-image-width);
  max-width: var(--tmm-lp-image-width);
  min-height: var(--tmm-lp-image-min-height);
  overflow: hidden;
  min-width: 0;
}

.tmm-lp-card.layout-image-top .tmm-lp-card__image,
.tmm-lp-card.layout-image-bottom .tmm-lp-card__image {
  width: 100%;
  max-width: 100%;
}

.tmm-lp-card__image a,
.tmm-lp-card__image img {
  display: block;
  width: 100%;
  height: 100%;
}

.tmm-lp-card__image img {
  object-fit: cover;
}

.tmm-lp-card__content {
  width: var(--tmm-lp-content-width);
  max-width: var(--tmm-lp-content-width);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}

.tmm-lp-card__content-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  width: fit-content;
  box-sizing: border-box;
}

.tmm-lp-card.layout-image-top .tmm-lp-card__content,
.tmm-lp-card.layout-image-bottom .tmm-lp-card__content {
  width: 100%;
  max-width: 100%;
}

.tmm-lp-title {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.tmm-lp-title a {
  text-decoration: none;
}

.tmm-lp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.tmm-lp-meta-separator {
  opacity: 0.65;
}

.tmm-lp-excerpt,
.tmm-lp-button-wrap {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.tmm-lp-excerpt > :last-child,
.tmm-lp-meta > :last-child {
  margin-bottom: 0;
}

.tmm-lp-button-wrap {
  display: flex;
}

.tmm-lp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tmm-lp-empty {
  padding: 16px;
}

@media (max-width: 767px) {
  .tmm-lp-card.mobile-stack {
    flex-direction: column;
  }

  .tmm-lp-card.mobile-stack .tmm-lp-card__image,
  .tmm-lp-card.mobile-stack .tmm-lp-card__content {
    width: 100%;
    max-width: 100%;
  }
}


.tmm-lp-align-left .tmm-lp-meta,
.tmm-lp-align-left .tmm-lp-button-wrap {
  justify-content: flex-start;
}

.tmm-lp-align-center .tmm-lp-meta,
.tmm-lp-align-center .tmm-lp-button-wrap {
  justify-content: center;
}

.tmm-lp-align-right .tmm-lp-meta,
.tmm-lp-align-right .tmm-lp-button-wrap {
  justify-content: flex-end;
}


.tmm-lp-card__content-inner > * {
  max-width: 100%;
}

.tmm-lp-card__content:not([style*="align-items: stretch"]) .tmm-lp-button-wrap {
  width: auto;
}
