/*
    Humanitix for WordPress - front-end card grid.
    Fonts, font sizes and text colours are inherited from the theme.
*/
.hfw-grid {
  --hfw-accent: #702c91;
  --hfw-card-bg: #f5f5f5;
  --hfw-image-ratio: 2 / 1;
  --hfw-badge-bg: #fff;
  --hfw-sold-out: #f44336;
  --hfw-radius-card: 20px;
  --hfw-radius-pill: 999px;
  --hfw-radius-button: 12px;
  display: -ms-grid;
  display: grid;
  gap: 30px;
  -ms-grid-columns: minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Every card matches the tallest one, whatever its text length. */
  grid-auto-rows: 1fr;
  margin: 0 0 30px;
  /* Releases the equal-height rows while a description is expanded. */
}
.hfw-grid.hfw-has-expanded {
  grid-auto-rows: auto;
}
.hfw-grid.hfw-columns-1 {
  -ms-grid-columns: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
}
.hfw-grid.hfw-columns-2 {
  -ms-grid-columns: (minmax(0, 1fr))[2];
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hfw-grid.hfw-columns-3 {
  -ms-grid-columns: (minmax(0, 1fr))[3];
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hfw-grid.hfw-columns-4 {
  -ms-grid-columns: (minmax(0, 1fr))[4];
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hfw-grid.hfw-columns-5 {
  -ms-grid-columns: (minmax(0, 1fr))[5];
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.hfw-grid.hfw-style-square {
  --hfw-radius-card: 0;
  --hfw-radius-pill: 0;
  --hfw-radius-button: 0;
}

@media (max-width: 1000px) {
  .hfw-grid.hfw-columns-3,
  .hfw-grid.hfw-columns-4,
  .hfw-grid.hfw-columns-5 {
    -ms-grid-columns: (minmax(0, 1fr))[2];
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .hfw-grid[class*=hfw-columns-] {
    -ms-grid-columns: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
  }
}
.hfw-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--hfw-card-bg);
  border-radius: var(--hfw-radius-card);
  font: inherit;
  color: inherit;
}

/* Image + badges */
.hfw-card-media {
  position: relative;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--hfw-radius-card);
}

.hfw-card-image {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: var(--hfw-image-ratio);
  overflow: hidden;
  line-height: 0;
  border-radius: var(--hfw-radius-card);
}
.hfw-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: var(--hfw-radius-card) !important;
  -webkit-box-shadow: none;
          box-shadow: none;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

.hfw-card-badges {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 10px;
}
.hfw-card-media .hfw-card-badges {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  pointer-events: none;
}
.hfw-card-content > .hfw-card-badges {
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  margin: 0 0 16px;
}

.hfw-card-date,
.hfw-card-price-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--hfw-badge-bg);
  border-radius: var(--hfw-radius-pill);
  font: inherit;
  font-style: normal;
  line-height: 1.2;
  white-space: nowrap;
  color: inherit;
}
.hfw-card-date svg,
.hfw-card-price-badge svg {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 1.25em;
  height: 1.25em;
  color: var(--hfw-accent);
}

.hfw-card-price-badge {
  margin-left: auto;
}
.hfw-card-content > .hfw-card-badges .hfw-card-price-badge {
  margin-left: 10px;
}

.hfw-is-sold-out {
  color: var(--hfw-sold-out);
}

/* Body */
.hfw-card-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 28px;
}

.hfw-card-content {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  margin-bottom: 24px;
}

.hfw-card-title {
  margin: 0 0 12px;
  padding: 0;
}

.hfw-card-description {
  margin: 0 0 20px;
}
.hfw-card-description p:last-child {
  margin-bottom: 0;
}
.hfw-card-description p:first-child {
  margin-top: 0;
}

.hfw-card-price,
.hfw-card-event-date,
.hfw-card-location {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  font: inherit;
  color: inherit;
}
.hfw-card-price svg,
.hfw-card-event-date svg,
.hfw-card-location svg {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 1.5em;
  height: 1.5em;
  color: var(--hfw-accent);
}
.hfw-card-price a,
.hfw-card-event-date a,
.hfw-card-location a {
  color: inherit;
}

.hfw-card-price.hfw-is-sold-out {
  color: inherit;
}
.hfw-card-price.hfw-is-sold-out .hfw-card-price-value {
  color: var(--hfw-sold-out);
}

/* No underlines on card links, except the location, read more / less and links inside the description. */
.hfw-card a,
.hfw-card a:hover,
.hfw-card a:focus {
  text-decoration: none;
}

.hfw-card .hfw-card-location a, .hfw-card .hfw-card-location a:hover, .hfw-card .hfw-card-location a:focus,
.hfw-card .hfw-read-more,
.hfw-card .hfw-read-more:hover,
.hfw-card .hfw-read-more:focus,
.hfw-card .hfw-read-less,
.hfw-card .hfw-read-less:hover,
.hfw-card .hfw-read-less:focus,
.hfw-card .hfw-card-description a,
.hfw-card .hfw-card-description a:hover,
.hfw-card .hfw-card-description a:focus {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hfw-grid .hfw-card a.hfw-card-book-now,
.hfw-grid .hfw-card a.hfw-card-book-now:hover,
.hfw-grid .hfw-card a.hfw-card-book-now:focus,
.hfw-grid .hfw-card a.hfw-card-book-now:visited {
  color: var(--hfw-accent) !important;
  text-decoration: none !important;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.hfw-card-book-now {
  display: block;
  margin-top: auto;
  padding: 14px 20px;
  border: 2px solid var(--hfw-accent);
  border-radius: var(--hfw-radius-button);
  background: transparent;
  color: var(--hfw-accent);
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  -webkit-transition: background-color 0.2s ease, color 0.2s ease;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.hfw-card-book-now:hover, .hfw-card-book-now:focus {
  background: color-mix(in srgb, var(--hfw-accent) 20%, transparent);
  color: var(--hfw-accent);
  text-decoration: none;
}

.hfw-no-events,
.hfw-error {
  margin: 0 0 30px;
}