body.tsitah-event-info-open {
  overflow: hidden;
}

.event-row.has-event-actions {
  grid-template-columns: minmax(230px, 0.36fr) minmax(0, 1fr) auto;
}

.event-row-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: stretch;
  justify-content: center;
  min-width: 142px;
}

.tsitah-event-info-button {
  display: inline-flex;
  min-height: 42px;
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(8, 8, 7, 0.34);
  border-radius: 0;
  background: transparent;
  color: #080807;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.tsitah-event-info-button > span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 700;
}

.tsitah-event-info-button > strong {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.tsitah-event-info-button:hover,
.tsitah-event-info-button:focus-visible {
  border-color: #080807;
  background: #080807;
  color: #f5efe4;
}

.tsitah-event-info-modal[hidden] {
  display: none !important;
}

.tsitah-event-info-modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  padding: clamp(1rem, 4vw, 3rem);
  place-items: center;
}

.tsitah-event-info-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(5, 5, 4, 0.88);
  cursor: default;
}

.tsitah-event-info-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: calc(100vh - clamp(2rem, 8vw, 6rem));
  overflow: auto;
  border: 1px solid rgba(191, 137, 36, 0.72);
  background: #f5efe4;
  color: #16130f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.tsitah-event-info-dialog > header {
  padding: clamp(1.4rem, 3vw, 2.35rem) clamp(1.4rem, 4vw, 3rem) 1.25rem;
  border-bottom: 1px solid rgba(22, 19, 15, 0.18);
}

.tsitah-event-info-dialog > header > span {
  display: block;
  margin-bottom: 0.55rem;
  color: #9a6911;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tsitah-event-info-dialog h2 {
  margin: 0;
  color: #16130f;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
}

.tsitah-event-info-dialog header p {
  margin: 0.7rem 0 0;
  color: #5e554a;
  font-size: 1rem;
  font-weight: 600;
}

.tsitah-event-info-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(22, 19, 15, 0.32);
  border-radius: 50%;
  background: #f5efe4;
  color: #16130f;
  cursor: pointer;
  place-items: center;
  font: 400 1.6rem/1 Arial, sans-serif;
}

.tsitah-event-info-close:hover,
.tsitah-event-info-close:focus-visible {
  background: #16130f;
  color: #f5efe4;
}

.tsitah-event-info-content {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  padding: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}

.tsitah-event-info-content.has-text-only,
.tsitah-event-info-content.has-poster-only {
  grid-template-columns: minmax(0, 1fr);
}

.tsitah-event-info-content figure {
  margin: 0;
  background: #e8dfd0;
  text-align: center;
}

.tsitah-event-info-content figure img {
  display: block;
  width: 100%;
  max-height: 68vh;
  margin-inline: auto;
  object-fit: contain;
}

.tsitah-event-info-content.has-poster-only figure img {
  width: auto;
  max-width: 100%;
}

.tsitah-event-info-text {
  color: #332d26;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .event-row.has-event-actions {
    grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  }

  .event-row-actions {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .event-row.has-event-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-row-actions {
    grid-column: 1;
  }

  .tsitah-event-info-modal {
    padding: 0.75rem;
  }

  .tsitah-event-info-dialog {
    max-height: calc(100vh - 1.5rem);
  }

  .tsitah-event-info-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .tsitah-event-info-dialog > header {
    padding-right: 4.6rem;
  }
}
