/* TABLET+ */

@media screen and (min-width: 29.99em) {
  .site-header__shell,
  .site-footer__shell,
  .site-container {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .post-header.post-header--has-hero {
    width: calc(100% - 4rem);
  }
}

/* SECTION CARD GRID */

@media screen and (min-width: 40em) {
  .section-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 70em) {
  .section-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* BLOG LIST */

@media screen and (min-width: 60em) {
  .blog-post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-post-card--featured .blog-post-card__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.5rem;
    align-items: center;
  }

  .blog-post-card--featured .blog-post-card__image-wrap {
    margin-bottom: 0;
  }
}

/* EVENT LIST GRID */

@media screen and (min-width: 60em) {
  .events-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 70em) {
  .event-card:not(.event-card--compact) .event-card__image-link {
    position: relative;
    align-self: stretch;
    height: 100%;
    min-height: 0;
  }

  .event-card:not(.event-card--compact) .event-card__image-link .event-card__image {
    position: absolute;
    inset: 0;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }
}

/* MOBILE */

.site-nav__toggle,
.site-nav__close {
  display: none;
}

@media screen and (max-width: 59.99em) {
  .blog-post-list {
    grid-template-columns: 1fr;
  }

  .blog-post-card--featured .blog-post-card__link {
    display: flex;
    flex-direction: column;
  }

  .blog-post-card--featured .blog-post-card__image-wrap {
    margin-bottom: 0.85rem;
  }

  .home-search {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-search__form {
    width: 100%;
  }

  .post-header.post-header--has-hero {
    min-height: 175px;
    box-shadow: var(--shadow-md);
    background-image: none !important;
    background-color: var(--color-primary);
    margin-bottom:2rem;
  }


  .post-header__inner {
    max-width: 100%;
    margin-top: 2rem !important;
    padding-top:1.5rem;
    padding-bottom: 0.5rem !important;
    background-color: var(--color-primary);
  }

  .post-header__inner .page-title {
    font-size: 2rem;
    margin-bottom: 0.25rem;
  }

  .post-header__summary {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .site-footer__columns {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }

  .site-footer__column {
    grid-column: 1;
  }

  .site-footer__column--social {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
  }

  .post__content p {
    text-align: left;
  }

  .site-nav__shell,
  .site-header__shell {
    width: 100%;
  }

  .site-nav__bar {
    position: relative;
    display: block;
    width: 100%;
    min-height: 64px;
    padding-top: 0;
    padding-bottom: 0;
    margin-left: -.25rem;
  }

  .site-nav__toggle {
    position: absolute;
    top: 50%;
    left: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
  }

  .site-nav__toggle:hover,
  .site-nav__toggle:focus-visible {
    background: var(--color-primary);
  }

  .site-nav__mega {
    display: contents;
  }

  .site-nav__mega-intro,
  .site-nav__mega-feature {
    display: none;
  }

  .site-nav__mega-index {
    display: none;
  }

  .site-nav__toggle-bar {
    display: block;
    width: 1.5rem;
    height: 2px;
    margin: 0 auto;
    background: var(--color-surface);
  }

  .site-nav__toggle:hover .site-nav__toggle-bar,
  .site-nav__toggle:focus-visible .site-nav__toggle-bar {
    background: var(--color-on-bright);
  }

  .site-logo {
    position: absolute;
    top: 50%;
    left: calc(2.5rem);
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transform: translateY(-50%);
  }

  .site-logo__img {
    display: block;
    max-width: 175px;
    padding-top: 0px;
  }

  .site-nav__cta--desktop {
    position: absolute;
    top: 50%;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    transform: translateY(-50%);
  }

  .site-nav__cta--mobile {
    display: none;
  }

  .site-nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(22rem, 85vw);
    min-height: 100vh;
    margin-top: 0;
    padding: 4rem 2rem 2rem;
    border-left: 1px solid color-mix(
      in srgb,
      var(--color-headertext) 18%,
      transparent
    );
    background: var(--color-bg);
    transform: translateX(100%);
    transition: transform 180ms ease;
  }

  .site-nav__menu,
  .site-nav__menu * {
    color: var(--color-headertext);
  }

  .site-nav__menu.is-open {
    transform: translateX(0);
  }

  .site-nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 99999px;
    background: transparent;
    color: var(--color-primary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding-top: 0px;
  }

  .site-nav__close:hover,
  .site-nav__close:focus-visible {
    background: var(--color-primary);
    color: var(--color-on-bright);
  }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: .5rem;
  }

  .site-nav__item {
    width: 100%;
    border-bottom: 1px solid color-mix(
      in srgb,
      var(--color-headertext) 16%,
      transparent
    );
    text-align: left;
  }

  .site-nav__link {
    display: block;
    width: 100%;
    padding: 1rem 0;
    color: var(--color-primary);
  }

  .site-nav__link:hover,
  .site-nav__link:focus-visible {
    color: var(--color-accent);
  }

  .site-nav__submenu-list {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 1rem 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
    transform: none;
  }

  .site-nav__submenu-link {
    display: block;
    padding: 0.4rem 0;
    color: var(--color-primary);
  }

  .site-nav__submenu-link:hover,
  .site-nav__submenu-link:focus-visible {
    color: var(--color-accent);
  }

  .home-slider {
    border-radius: var(--radius-sm);
    margin-top: -1rem !important;
    box-shadow: var(--shadow-md);
  }

  .featured-posts__list {
    display: flex;
    flex-direction: column;
  }

  /* EVENT LIST PAGE MOBILE */

  .events-list--grid {
    grid-template-columns: 1fr;
  }

  .event-card--compact {
    width: 100%;
  }

  .event-card--compact .event-card__title {
    align-items: flex-start;
    font-size: 1.2rem;
  }

  .event-card--compact .event-card__layout {
    gap: 1rem;
  }

  .event-card--compact .event-card__image {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .event-card--compact .event-card__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .event-card--compact .event-button {
    display: block;
    width: 100%;
    text-align: center;
  }

  .event-single__detail-list {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .event-single__detail-item {
    align-items: flex-start;
    text-align: left;
  }

  /* PAGE BANNER MOBILE */

  .banner {
    padding-bottom: 10rem;
    min-height: 260px;
    background-position: center left;
  }

  .banner::before {
    background: rgba(255, 255, 255, 0.7);
  }

  .banner__content {
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 1.75rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  /* POST LAYOUT MOBILE */

  .post-layout--with-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "aside"
      "content";
    gap: 0.75rem;
  }

  .post__aside {
    margin-top: 0;
  }

   .events-heading,
  .search-container{
    margin-top:2rem !important;
  }
}

/* EVENT CARD STACKING */

@media screen and (max-width: 69.99em) {
  .event-card:not(.event-card--compact) .event-card__layout {
    display: flex;
    flex-direction: column;
  }

  .event-card:not(.event-card--compact) .event-card__image-link,
  .event-card:not(.event-card--compact) .event-card__info,
  .event-card:not(.event-card--compact) .event-card__actions {
    width: 100%;
  }

  .event-card:not(.event-card--compact) .event-card__image-link {
    position: static;
    display: block;
    align-self: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
  }

  .event-card:not(.event-card--compact) .event-card__image-link .event-card__image,
  .event-card:not(.event-card--compact) .event-card__image {
    position: static;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .event-card .event-card__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }

  .event-card .event-card__actions > .event-button,
  .event-single__actions .event-button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 34.99em) {
  .event-single__ribbon {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 29.99em) {
  .site-header__shell,
  .site-footer__shell,
  .site-shell,
  .site-container,
  .post-header__inner {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .post-header.post-header--has-hero {
    width: calc(100% - 2.5rem);
    border-radius: var(--radius-sm);
    max-height: 500px;
  }

  .site-header {
    margin-bottom: 2rem;
  }

  .recent-posts__link {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .recent-posts__date {
    justify-self: start;
    white-space: normal;
  }
}

.post__aside-toggle {
  display: none;
}

@media screen and (max-width: 59.99em) {
  .post__aside-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
  }

  .post__aside-toggle .post__aside-title {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .post__aside-toggle-icon {
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform 200ms ease;
  }

  .post__aside-toggle[aria-expanded="true"] .post__aside-toggle-icon {
    transform: rotate(180deg);
  }

  [data-collapsible] .post__aside-body {
    display: none;
  }

  [data-collapsible].is-open .post__aside-body {
    display: block;
    margin-top: 0.85rem;
  }

  .page-title {
  margin-bottom: 1rem;
  }

  .site-header {
  margin-bottom: 1rem;
}