.single-event__container {
  max-width: 1280px;
	margin: 0 auto;
  padding: 50px clamp(1.5rem, 5vw, 6rem);
}

.single-event__header {
  margin-bottom: 25px;
}

.single-event__title {
  margin: 0 0 25px;
}

.single-event__date{
  font-size: 0.9rem;
}

.single-event__image {
  margin: 0 0 40px;
}

.single-event__image img {
  display: block;
  width: 100%;
  height: auto;
}

.single-event__layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
}

.single-event__article {
	min-width: 0;
}

.single-event__summary {
  margin-bottom: 32px;
  font-size: 1.2rem;
  font-weight: 500;
}

.single-event__body {
  line-height: 1.7;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}

.event-meta__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-meta__label {
  font-size: 0.875rem;
  font-weight: 700;
}

.event-meta__value {
  font-size: 1rem;
}

.event-meta__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-meta__term {
  text-decoration: none;
}

.event-booking {
  padding: 24px;
  border: 1px solid #ddd;
}

.event-booking__title {
  margin-top: 0;
}

.event-booking__button {
  display: inline-block;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 700;
}

.event-booking__email {
  word-break: break-word;
}

/**
 * Events listing.
 */

.events-list {
  width: 100%;
}

.events-list__table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.events-list__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.events-list__head th {
  padding: 12px 24px;
  background: #cccccc;
  color: #333333;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  border-bottom: 2px solid #ffffff;
}

.events-list__head th:first-child {
  width: 20%;
}

.events-list__head th:nth-child(2) {
  width: 52%;
}

.events-list__head th:last-child {
  width: 28%;
}

.events-list__row td {
  padding: 14px 24px;
  background: #0000000d;
  vertical-align: top;
  font-size: 1.1rem;
  border-bottom: 2px solid #ffffff;
}

.events-list__row:hover {
  background: #0000001a;
}

.events-list__date {
  line-height: 1.4;
  white-space: nowrap;
  color: #333333;
}

.events-list__title {
  font-size: 20px;
  line-height: 1.55;
}

.events-list__title-link {
  color: var(--signature-title);
  text-decoration: none;
}

.events-list__title-link:hover {
  text-decoration: underline;
}

.events-list__groups {
  line-height: 1.55;
}

.events-list__groups-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.events-list__group {
  margin: 0;
  padding: 0;
}

.events-list__group-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--signature-title);
  text-decoration: none;
}

.events-list__group-link:hover {
  text-decoration: underline;
}

.events-list__group-link {
  position: relative;
  display: inline-block;
  padding-left: 18px;
  color: var(--signature-title);
  text-decoration: none;
}

.events-list__group-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-top: 1px solid black;
  border-right: 1px solid black;
  transform: rotate(45deg);
}

.events-list__group-name {
  min-width: 0;
}

.events-list__empty {
  margin: 0;
  padding: 20px;
  background: #eeeeee;
}

/* Styles for taxonomy-event-list.php  */
.events-taxonomy-page {
  padding: 0.75rem clamp(1.5rem, 5vw, 6rem);
}
.events-taxonomy {
  width: 100%;
}

.events-taxonomy__event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  column-gap: 50px;
  padding: 28px 0;
  border-bottom: 1px solid #dddddd;
}

.events-taxonomy__event:first-child {
  padding-top: 0;
}

.events-taxonomy__main {
  min-width: 0;
}

.events-taxonomy__title {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.25;
}

.events-taxonomy__title-link {
  color: var(--signature-title);
  text-decoration: none;
}

.events-taxonomy__title-link:hover {
  text-decoration: underline;
}

.events-taxonomy__excerpt {
  font-size: 18px;
  line-height: 1.5;
  color: #333333;
}

.events-taxonomy__excerpt p {
  margin: 0 0 14px;
}

.events-taxonomy__excerpt p:last-child {
  margin-bottom: 0;
}

.events-taxonomy__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-self: start;
}

.events-taxonomy__meta-title {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #333333;
}

.events-taxonomy__term-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.events-taxonomy__term-item {
  margin: 0;
  padding: 0;
}

.events-taxonomy-page__title {
  margin-bottom: 2.5rem;
}

.events-taxonomy__term-link {
  color: var(--signature-title);
  font-size: 18px;
  line-height: 1.45;
  text-decoration: none;
}

.events-taxonomy__term-link:hover {
  text-decoration: underline;
}

.events-taxonomy__empty {
  margin: 0;
  font-size: 18px;
}

@media (max-width: 900px) {
  .events-taxonomy__event {
    grid-template-columns: 1fr;
    row-gap: 25px;
  }

  .events-taxonomy__meta {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 835px) {
  .single-event__container {
    padding: 20px clamp(1.5rem, 5vw, 6rem);
  }

  .single-event__layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .single-event__title{
    font-size: 1.4rem;
  }

  .event-booking {
    max-width: 500px;
  }

  .events-list__head th,
  .events-list__row td {
    font-size: 1rem;
  }


  .events-taxonomy-page__title{
	margin-bottom: 1.5rem;
	font-size: 1.7rem;
  }

  .events-taxonomy__title-link {
    margin-bottom: 1.5rem;
	  font-size: 1.5rem;
  }
}

@media (max-width: 700px) {

  .event-meta {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .events-taxonomy__meta {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .events-taxonomy__title-link {
	font-size: 1.3rem;
  }
}

@media (max-width: 835px) {
  .single-event__container {
    padding: 1rem;
  }
}
