/* Mobile layouts. Loaded after index.css, up to 850px. */

@media (max-width: 850px) {
  :root {
    --gutter: 3vw;
    --font-size-small: 3.2vw;
    --font-size-medium: 4.2vw;
    --font-size-large: 5.3vw;
    --font-size-xlarge: 8.5vw;
  }

  body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }

  main {
    background: var(--paper);
  }

  .mobile-menu-carousel {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    perspective: 225vh;
  }

  .mobile-menu-carousel__viewport {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transform: translateZ(-50vw) rotateY(0deg);
    transform-style: preserve-3d;
    transition: transform 820ms cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
  }

  body.is-mobile-menu-open .mobile-menu-carousel__viewport {
    transform: translateZ(-50vw) rotateY(90deg);
  }

  .mobile-menu-carousel__face {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    backface-visibility: hidden;
  }

  .mobile-menu-carousel__face--main {
    transform: translateZ(50vw);
  }

  .mobile-menu-carousel__face--menu {
    pointer-events: auto;
    transform: rotateY(-90deg) translateZ(50vw);
  }

  .mobile-menu-carousel__face--menu .sidebar,
  .mobile-menu-carousel__face--menu .sidebar__scroll {
    pointer-events: auto;
  }

  .sidebar {
    position: relative;
    z-index: auto;
    inset: auto;
    width: 100%;
    height: 100%;
    max-height: none;
    overflow: hidden;
    transform: none;
    transition: none;
  }

  .sidebar__programme {
    height: auto;
    min-height: 0;
    flex: 1 1 0;
  }

  .sidebar__home.carousel--vertical,
  .sidebar__brand-row,
  .sidebar__title,
  .sidebar-event__participant,
  .sidebar-event__title,
  .main-nav a,
  .menu-search input,
  .mobile-menu-switch {
    font-size: var(--font-size-xlarge);
  }

  .sidebar-event__meta,
  .language-nav a,
  .partners {
    font-size: var(--font-size-medium);
  }

  .sidebar__lower {
    height: auto;
    min-height: max-content;
    flex: 0 0 auto;
  }

  .sidebar__scroll {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .main-nav ul {
    display: flex;
    flex-wrap: wrap;
  }

  .main-nav li {
    width: 100%;
  }

  .partners {
    min-height: 0;
  }

  .site-main {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    margin-left: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }

  body.is-mobile-menu-open .site-main {
    opacity: 1;
  }

  .site-main > *,
  .site-main .prose,
  .site-main .archive-block__text.prose {
    width: 100%;
    max-width: none;
  }

  .mobile-menu-switch {
    position: fixed;
    z-index: 95;
    left: 39vw;
    bottom: 3vw;
    display: inline-flex;
    width: max-content;
    min-width: 13vw;
    min-height: 9vw;
    align-items: center;
    justify-content: center;
    gap: 1.25vw;
    padding: 1vw 4vw;
    color: #000000;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 100vw;
    box-shadow: 0 0 5vw rgb(0 0 0 / 0.25);
    font-size: var(--font-size-large);
    line-height: 1;
  }

  .mobile-menu-switch:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 0.5vw;
  }

  .mobile-menu-switch__icon {
    font-size: 1.25em;
  }

  .site-main--home {
    height: 100%;
  }

  .filter-options input {
    width: 3vw;
    height: 3vw;
  }

  .event-detail__body,
  .basic-page__body {
    flex-direction: column;
  }

  .basic-page__section {
    grid-template-columns: 1fr;
  }

  .basic-page__section h2 {
    margin-bottom: var(--gutter);
  }

  .event-sponsors__grid {
    grid-auto-rows: 4rem;
  }

  .event-detail__body > .prose,
  .basic-page__body > .prose,
  .event-detail__meta,
  .basic-page__body > aside {
    width: 100%;
  }

  .event-detail__meta,
  .basic-page__body > aside {
    order: -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
.event-detail__meta p, .event-detail__meta{
  font-size: var(--font-size-large);

}
.event-sponsors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-detail__body > .prose h2, .basic-page__body > .prose h2{
    font-size: var(--font-size-large);
  }
.event-sponsors__tile{
  padding: 0;
}
  dl {
    margin: 0;
  }

  .programme-grid > .event-card {
    width: 100%;
  }

  .page--programme .programme-grid {
    --font-size-large: 3vw;
  }

  .page--programme .programme-grid > .event-card {
    width: calc(50% - 0.25vw);
    height: auto;
    flex: 0 0 calc(50% - 0.25vw);
    aspect-ratio: 1 / 1;
  }

  .page--programme .site-main section h2:first-of-type {
    margin-top: 0;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-header ul {
    justify-content: flex-start;
  }

  .content-section,
  .team {
    flex-direction: column;
  }

  .content-section h2,
  .team > h2,
  .content-section .prose,
  .team__list {
    width: 100%;
  }

  .site-footer {
    padding-bottom: 5vw;
  }

  .site-footer ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-inline: var(--gutter);
  }

  .site-footer li {
    flex: 0 0 auto;
    min-width: 0;
    width: max-content;
  }

  .site-footer a {
    padding-inline: 0;
    text-align: left;
    padding: var(--gutter) 0 0 0;
  }

  .programme-year-range .noUi-tooltip {
    font-size: var(--font-size-medium);
  }

  .site-title {
    left: 49%;
  }

  .editorial-section {
    grid-template-columns: 1fr;
    gap: var(--gutter);
  }

  .catalogue-metadata {
    grid-template-columns: 1fr;
    gap: 0.25em;
  }

  .catalogue-metadata dd {
    margin-bottom: 0.75em;
  }

  .editorial-block h2 {
    margin-bottom: .5em;
  }

  .editorial-section__content .prose {
    width: auto;
  }

  .editorial-section__content h2 {
    width: auto;
  }
  .image-credit {
    margin: 2vw;
  }
  .gallery__captions {
    padding: 2.5vw;
    padding-left: 3vw;
  }
  .site-footer {
    padding-bottom: 5vw;
  }
  .programme-filters .programme-filters__year-range {
    padding: .5vw 0;
  }
}

