/* Scoped copy of the RDHS Divi loop-card presentation for lm_event_view. */

.lm-event-card.et_pb_group {
  background: #fff;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .3);
  height: 100%;
  gap: 0;
  padding: 0;
}

.lm-event-card .et_pb_module,
.lm-event-card .et_pb_group {
  margin-bottom: 0;
}

.lm-event-card .lm-event-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1.9;
  background: var(--lm-event-placeholder-background, #f2f2f2);
  border-bottom: 2px solid #e8e8e8;
  align-self: stretch;
  flex-shrink: 0;
  overflow: hidden;
}

.lm-event-card .lm-event-image .et_pb_image_wrap {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
}

.lm-event-card .lm-event-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover !important;
  object-position: center;
}

.lm-event-card .lm-event-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 32px 64px;
  flex: 1;
}

.lm-event-card .lm-event-category {
  text-transform: uppercase;
  font-size: .8em;
  font-weight: 600;
  line-height: 1.4;
  width: 100%;
}

.lm-event-card .lm-event-category .et_pb_text_inner,
.lm-event-card .lm-event-category .et_pb_text_inner p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: inherit;
  line-height: inherit;
}

.lm-event-card .lm-event-category-badge {
  display: inline-block;
  background: var(--lm-event-category-background, #fad8b2);
  border-radius: 11px;
  color: var(--lm-event-category-text, var(--gcid-link-color, #f39c20));
  padding: 1px 8px;
}

.lm-event-card .lm-event-category:empty,
.lm-event-card .lm-event-location:empty,
.lm-event-card .lm-event-excerpt:empty {
  display: none;
}

.lm-event-card .lm-event-title .et_pb_module_header {
  font-family: var(--et_global_body_font, Lato, sans-serif);
  font-size: 1.3em;
  line-height: 1.625;
  font-weight: 600;
  color: var(--gcid-secondary-color, #223d50);
  padding: 0;
}

.lm-event-card .lm-event-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.lm-event-card .lm-event-location,
.lm-event-card .lm-event-date {
  position: relative;
  padding-left: 50px;
  min-height: 24px;
}

.lm-event-card .lm-event-location .et_pb_text_inner,
.lm-event-card .lm-event-location .et_pb_text_inner p,
.lm-event-card .lm-event-date .et_pb_text_inner,
.lm-event-card .lm-event-date .et_pb_text_inner p {
  color: var(--gcid-vd127stq6y, #36668f);
  font-family: var(--et_global_body_font, Lato, sans-serif);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.625;
}

.lm-event-card .lm-event-location::before,
.lm-event-card .lm-event-date::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  background: var(--gcid-vd127stq6y, #36668f);
  width: 24px;
  height: 24px;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.lm-event-card .lm-event-location::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a8 8 0 0 0-8 8c0 5.7 8 14 8 14s8-8.3 8-14a8 8 0 0 0-8-8Zm0 11.5A3.5 3.5 0 1 1 12 5a3.5 3.5 0 0 1 0 7.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a8 8 0 0 0-8 8c0 5.7 8 14 8 14s8-8.3 8-14a8 8 0 0 0-8-8Zm0 11.5A3.5 3.5 0 1 1 12 5a3.5 3.5 0 0 1 0 7.5Z'/%3E%3C/svg%3E");
}

.lm-event-card .lm-event-date::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 1h2v3h6V1h2v3h4v19H3V4h4V1Zm12 9H5v11h14V10ZM7 12h3v3H7v-3Zm4 0h3v3h-3v-3Zm4 0h2v3h-2v-3ZM7 16h3v3H7v-3Zm4 0h3v3h-3v-3Zm4 0h2v3h-2v-3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 1h2v3h6V1h2v3h4v19H3V4h4V1Zm12 9H5v11h14V10ZM7 12h3v3H7v-3Zm4 0h3v3h-3v-3Zm4 0h2v3h-2v-3ZM7 16h3v3H7v-3Zm4 0h3v3h-3v-3Zm4 0h2v3h-2v-3Z'/%3E%3C/svg%3E");
}

.lm-event-card .lm-event-excerpt {
  color: var(--gcid-secondary-color, #223d50);
}

.lm-event-card .lm-event-excerpt .et_pb_text_inner,
.lm-event-card .lm-event-excerpt .et_pb_text_inner p {
  color: inherit;
  font-family: var(--et_global_body_font, Lato, sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
}

.lm-event-card .lm-event-card-footer {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-height: 64px;
  padding: 0 24px;
  margin-top: auto;
}

.lm-event-card-footer::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 2px solid #36668f;
  z-index: 0;
}

.lm-event-card .lm-event-card-footer .et_pb_button_module_wrapper {
  position: relative;
  z-index: 1;
  text-align: center;
}

body #page-container .et_pb_section .lm-event-card a.lm-event-read-more.et_pb_button {
  display: inline-block;
  background: #36668f;
  border: 0;
  border-radius: 11px;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 600;
  line-height: 1.4;
  padding: .75rem 2rem !important;
}

.lm-event-card a.lm-event-read-more.et_pb_button::before,
.lm-event-card a.lm-event-read-more.et_pb_button::after {
  display: none !important;
}

body #page-container .et_pb_section .lm-event-card a.lm-event-read-more.et_pb_button:hover {
  background: var(--gcid-secondary-color);
  padding: .75rem 2rem !important;
}

@media (max-width: 767px) {
  .lm-event-card .lm-event-card-body {
    padding: 16px 24px 56px;
  }

  .lm-event-card .lm-event-location,
  .lm-event-card .lm-event-date {
    padding-left: 42px;
  }
}
