/* Custom styling for the Event page content type. */

/* General override. */
.event-page [aria-hidden] {
  display: initial !important;
}

/* Body height and background Bling. */
.event-page {
  overflow-y: auto;
}
.event-page-body {
  height: auto;
  min-height: 100vh;
}
.event-page-body.show-bg.show-bg {
  background-image: url('/themes/custom/reykjavik/assets/cnbg.svg');
  background-repeat: no-repeat;
  background-size: 1400px;
  background-position: center 890px;
}
.Layout__footer {
  z-index: 1;
}
.Layout__footer::before {
  content: '';
  display: block;
  position: absolute;
  z-index: -1;
  width: 100vw;
  height: 100%;
  margin-left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
}

/* Header. */
.event-header {
  margin-bottom: 2rem;
}

/* Overrides for event details overlay display. */
.ImageCards__summary {
  grid-area: title;
}

.event-page .ButtonTertiary::before {
  color: var(--event-color-primary);
  background-color: var(--event-color-primary);
}

@media screen and (min-width: 980px) {
  .event-page-body.show-bg {
    background-size: 2434px;
  }
}

/* Break the culture events block out of the content column so the 4-column
   card grid has enough width to render portrait images at 272px each. */
.block--culture-events-block {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* The Hanna ImageCards grid allocates a title sidebar (grid-3) + list (grid-9).
   The React app doesn't use the sidebar, so override to block to give the list
   the full container width. */
.block--culture-events-block .ImageCards {
  display: block;
}
