@import "ciilock.main.css";

:root {
  --c-text: hsl(0 0% 9%);
  --c-text-inv: hsl(0 0% 97%);
  --c-surface: hsl(0 0% 100% / 0.75);
  --c-surface-2: hsl(0 0% 100% / 0.55);
  --c-tint: hsl(220 10% 75% / 0.5);
  --c-tint-strong: hsl(220 10% 75% / 0.6);
  --c-hover: hsl(0 0% 100% / 0.85);
  --c-hover-2: hsl(0 0% 100% / 0.65);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --radius-1: 0.5rem;
  --radius-2: 0.75rem;
  --radius-3: 1rem;
  --border-hair: 0.03125rem;
  --elev-1: 0 1px 2px hsl(0 0% 0% / 0.06), 0 8px 24px hsl(0 0% 0% / 0.08);
  --elev-2: 0 2px 6px hsl(0 0% 0% / 0.08), 0 12px 28px hsl(0 0% 0% / 0.1);
  --shadow-inset: inset 0 1px 0 hsl(0 0% 100% / 0.6);
  --shadow-inset-2: inset 0 1px 0 hsl(0 0% 100% / 0.7);
  --duration-1: 0.15s;
  --duration-2: 0.2s;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

html { scroll-behavior: auto !important; }
body, #events, #previousevents, #announcements, .awards-section { overflow-anchor: none; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

section.events {
  width: 100vw;
  padding-block-start: 84px;
  color: var(--c-text);
}

section.events .wrap {
  padding: 2rem;
}

section.events .hero {
  display: flex;
  flex-wrap: wrap;
  padding: 5rem var(--space-4);
  width: 100%;
  overflow: hidden;
  gap: var(--space-6);
}

section.events .hero h2 {
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0;
  line-height: 1;
  justify-self: flex-start;
}

section.events .hero p {
  color: var(--c-text);
  font-size: 1rem;
  padding: 0;
}

.action-bar {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

.btn-sys {
  --bg: hsl(220 8% 92%);
  --bg-h: hsl(220 6% 70%);
  --fg: hsl(220 15% 20%);
  --fg-h: var(--c-text-inv);
  appearance: none;
  border: var(--border-hair) solid var(--c-tint);
  border-radius: 0.625rem;
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(0.5rem, 1.2vw, 0.75rem);
  padding-inline: clamp(0.75rem, 2vw, 1rem);
  font: inherit;
  line-height: 1.1;
  height: fit-content;
  cursor: pointer;
  transition: background-color var(--duration-1) var(--ease),
    color var(--duration-1) var(--ease),
    box-shadow var(--duration-2) var(--ease), transform 50ms var(--ease);
  text-decoration: none;
}

@media (hover: hover) {
  .btn-sys:hover {
    background: var(--bg-h);
    color: var(--fg-h);
  }
}

.btn-sys:focus-visible {
  outline: 2px solid hsl(220 90% 60% / 0.35);
  outline-offset: 2px;
}

.btn-sys:active {
  transform: translateY(1px);
}

section.events .hero .content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(320px, 1.45fr);
  gap: var(--space-4);
  border-radius: var(--radius-3);
}

section.events .hero .slideshow {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

section.events .hero .content .description {
  padding: var(--space-5);
  padding-block-start: 3rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: hsl(0 0% 0% / 0.025);
  justify-content: flex-start;
}

.main-preview {
  position: relative;
  height: 31.25rem;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  transition: opacity 400ms ease-in-out;
}
.background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

section.events .hero .top-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--c-text);
}

.options {
  display: flex;
  gap: var(--space-2);
}
.selection {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--c-text);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--duration-2) var(--ease);
}

.gallery {
  width: 100%;
  display: flex;
  gap: 1.5rem;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 4rem;
}
.gallery.initial-hidden {
  display: none;
}

.gallery .heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.2;
  font-weight: 600;
}

.gallery .grid {
  --gap: 1.5rem;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.gallery figure {
  margin: 0;
}

.gallery .tile {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #f6f6f6;
  aspect-ratio: 4/3;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.06);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.gallery .tile:hover img {
  transform: scale(1.03);
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.close-btn {
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f6f6f6;
  cursor: pointer;
}
.close-btn:hover {
  background: #eee;
}
.close-btn:active {
  transform: translateY(1px);
}
.close-btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

#previousevents {
  width: 100%;
  display: flex;
  flex-flow: column;
  gap: 1.5rem;
}
#previousevents.initial-hidden {
  display: none;
}
#previousevents .heading {
  margin: 0 0 1rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
}
.prev-grid {
  --gap: 1.25rem;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}
.prev-card {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "media info" "media blurb" "media link";
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.prev-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}
.prev-media {
  grid-area: media;
  width: 200px;
  height: 100%;
  border-radius: 8px;
  background: #f4f4f4 center/cover no-repeat;
}
.prev-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.prev-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta {
  font-size: 0.8rem;
  color: #666;
}
.prev-date {
  font-size: 0.8rem;
  color: #444;
}
.prev-blurb {
  grid-area: blurb;
  margin: 0;
  font-size: 0.9rem;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prev-link {
  grid-area: link;
  justify-self: start;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f8f8f8;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.prev-link:hover {
  background: #eee;
}

.prev-actions {
  margin: 0 0 1rem;
}
.prev-back {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  color: #000;
  border-radius: none;
  text-decoration: none;
  border-bottom: 0.02rem solid #000;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.prev-back:hover {
  color: #0d4c89;
  border-bottom: 0.02rem solid #0d4c89;
}

@media (hover: hover) {
  .selection:hover {
    background: #3b3b3b;
    color: #fdfdfd;
  }
}
.selection.active,
.selection[aria-selected="true"] {
  background: #3b3b3b;
  color: #fdfdfd;
}

.selection:focus-visible {
  outline: 2px solid #3b3b3b;
  outline-offset: 2px;
}

section.events .hero .top-nav .heading,
section.impact-section .heading {
  font-weight: 500;
  margin: 0;
  line-height: 1;
  font-size: 3em;
}

section.events .hero .top-nav div.options {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: auto auto auto;
  align-content: center;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  transition: all var(--duration-2) var(--ease);
}

details.dropdown.options {
  display: none;
}

.dropdown.options {
  position: relative;
  width: 100%;
}

.dropdown.options > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
}

.dropdown.options > summary::-webkit-details-marker {
  display: none;
}

.dropdown.options .menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;

  display: none;
  padding: 6px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  text-align: left;
  width: fit-content;
  font-size: 1rem;
}

.dropdown.options[open] .menu {
  display: block;
}

.dropdown.options .menu a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}

.dropdown.options .menu a:hover {
  background: #f2f2f2;
}

section.events .hero .top-nav .options .selection {
  padding: var(--space-4);
}

section.events .hero .top-nav .options .selection.three {
  align-items: flex-end;
}

section.events .hero .main-preview {
  height: 31.25rem;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 800ms ease-in-out, transform 800ms ease;
  z-index: 1;
}

.tag-stack {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  z-index: 2;
  opacity: 0;
  transition: opacity 400ms ease-in-out;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  border: 0.03125rem solid hsl(0 0% 0% / 0.12);
  background: linear-gradient(180deg, hsl(0 0% 100% /0.8), hsl(0 0% 100% /0.8));
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  color: hsl(0, 0%, 35%);
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 hsl(0 0% 100% /0.7), 0 4px 16px hsl(0 0% 0% /0.08);
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.12s ease;
}

@media (hover: hover) {
  .tag:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 hsl(0 0% 100% /0.8), 0 6px 22px hsl(0 0% 0% /0.12);
    background: linear-gradient(
      180deg,
      hsl(0 0% 100% /0.95),
      hsl(0 0% 100% /0.78)
    );
  }
}

.tag:active {
  transform: translateY(0);
}

section.events .hero .hero-nav {
  display: grid;
  grid-template-columns: 1.95fr 0.5fr;
  column-gap: var(--space-4);
  width: 100%;
}

section.events .hero .hero-nav .additional-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  width: 100%;
  min-height: 140px;
}

section.events .hero .hero-nav .additional-preview .preview.card {
  padding: 2rem;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  opacity: 0.7;
  transition: transform 800ms ease, opacity 800ms ease;
  cursor: pointer;
}

section.events .hero .hero-nav .additional-preview .preview.card:hover {
  opacity: 1;
}

section.events .hero .hero-nav .additional-preview .preview.card.active {
  opacity: 1;
}

smalltext.meta {
  font-size: 0.875rem;
  line-height: 1.25;
  color: hsl(0 0% 35%);
  letter-spacing: 0.01em;
  display: inline-block;
}

.additional-preview .preview {
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}

.additional-preview .preview.one {
  background-image: url(../images/events/fensterbau_2026.webp);
}
.additional-preview .preview.two {
  background-image: url(../images/events/polyclose_2026.webp);
}
.additional-preview .preview.three {
  background-image: url(../images/events/archify_2025.webp);
}
.additional-preview .preview.four {
  background-image: url(../images/events/homeshow_2025.webp);
}

.additional-preview .preview.active {
  opacity: 1;
}

.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}

.nav-buttons .button {
  padding: clamp(1rem, 2.5vw, 1.25rem);
  border: var(--border-hair) solid hsl(0 0% 0% / 0.12);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, var(--c-surface), var(--c-surface-2));
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  box-shadow: var(--shadow-inset), var(--elev-1);
  transition: transform var(--duration-1) var(--ease),
    background var(--duration-2) var(--ease),
    box-shadow var(--duration-2) var(--ease);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 1em;
  text-align: left;
  justify-content: center;
  height: 100%;
}

.nav-buttons a {
  all: unset;
  display: contents;
}

.awards-section {
  padding: var(--space-6) 0;
  width: 100%;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.award-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-2);
  background: linear-gradient(
    180deg,
    hsl(0 0% 100% / 0.28),
    hsl(0 0% 100% / 0.1)
  );
  border: var(--border-hair) solid hsl(0 0% 100% / 0.35);
  box-shadow: 0 1px 0 hsl(0 0% 100% / 0.35) inset,
    0 0 0 1px hsl(220 20% 20% / 0.06), 0 8px 16px -8px hsl(220 20% 10% / 0.2),
    0 2px 8px -4px hsl(220 20% 10% / 0.14);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  outline: 0.5px solid hsl(0 0% 100% / 0.18);
  transition: transform var(--duration-1) var(--ease),
    box-shadow var(--duration-2) var(--ease),
    background var(--duration-2) var(--ease),
    border-color var(--duration-2) var(--ease);
}

.award-card:active {
  transform: translateY(0);
}

.award-logo {
  inline-size: 30px;
  block-size: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.provider-gda {
  background-image: url("../images/awards/gda.webp");
}
.provider-awa {
  background-image: url("../images/awards/awa.webp");
}
.provider-agwa {
  background-image: url("../images/awards/agwa.webp");
}

.award-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.award-info .meta {
  font-size: 0.8125rem;
  color: hsl(0 0% 35%);
  letter-spacing: 0.01em;
}

.award-title {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  margin: 0;
  line-height: 1.1;
}

.award-year {
  font-size: clamp(1.2em, 2.4vw, 1.4em);
  color: hsl(0 0% 30%);
}

.award-format {
  font-size: 0.9375rem;
  color: var(--c-text);
}

#announcements {
  width: 100%;
  padding: var(--space-6) 0; /* Adjust padding to ensure spacing */
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr; /* Ensure it's a single column by default */
  box-sizing: border-box; /* Include padding and border in width/height calculations */
}

#announcements .section-header {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: var(--space-4);
  width: 100%; /* Ensure the header takes full width */
}

#announcements .section-subtitle {
  margin: 0;
  color: hsl(0 0% 35%);
  font-size: 0.9375rem;
}

#announcements .announcements-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-5);
  width: 100%;
  grid-column: 1 / -1; /* Ensure this takes the full grid width */
  box-sizing: border-box; /* Prevent overflow */
}

#announcements .card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  border-radius: var(--radius-2);
  background: linear-gradient(
    180deg,
    hsl(0 0% 100% / 0.28),
    hsl(0 0% 100% / 0.1)
  );
  border: var(--border-hair) solid hsl(0 0% 100% / 0.35);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  width: 100%; /* Ensure each card spans the full width */
  transition: transform var(--duration-1) var(--ease),
    box-shadow var(--duration-2) var(--ease),
    background var(--duration-2) var(--ease),
    border-color var(--duration-2) var(--ease);
}

@media (hover: hover) {
  #announcements .card:hover {
    background: linear-gradient(
      180deg,
      hsl(0 0% 100% / 0.42),
      hsl(0 0% 100% / 0.16)
    );
    box-shadow: 0 1px 0 hsl(0 0% 100% / 0.45) inset,
      0 0 0 1px hsl(220 20% 20% / 0.1), 0 12px 32px hsl(220 20% 10% / 0.24);
    transform: translateY(-1px);
    border-color: hsl(0 0% 100% / 0.45);
  }
}

#announcements .announcement-primary {
  grid-template-rows: 1.25fr 0.75fr;
}

#announcements .card-media {
  background: hsl(0 0% 0% / 0.06) center / cover no-repeat;
  min-block-size: 12rem;
  /* placeholder image hook */
  background-image: image-set(
    url("../images/announcements/exhibition.webp") type("image/webp")
  );
}

#announcements .card-body {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  grid-template-rows: auto;
}

#announcements .meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(0 0% 35%);
  letter-spacing: 0.01em;
}

#announcements .badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: var(--border-hair) solid hsl(0 0% 0% / 0.12);
  background: linear-gradient(
    180deg,
    hsl(0 0% 100% /0.9),
    hsl(0 0% 100% /0.75)
  );
  font-size: 0.75rem;
  line-height: 1;
}

#announcements .datetime {
  font-size: 0.8125rem;
}

#announcements .card-title {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.1;
  text-align: left;
}

#announcements .card-excerpt {
  margin: 0;
  color: var(--c-text);
  font-size: 1rem;
  padding: 0;
  white-space: pre-line;
}

#announcements .card-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-start;
}

#announcements .card-actions a {
  text-decoration: none;
}

/* Right column stack */
#announcements .announcement-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: var(--space-4);
}

#announcements .announcement-stack .announcement-card {
  grid-template-rows: 1fr; /* body only */
}

.details-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.details-modal.initial-hidden {
  opacity: 0;
  visibility: hidden;
}

.details-modal .modal-content {
  position: relative;
  background: #fff;
  padding: 2.5rem;
  border-radius: 10px;
  max-width: 80%;
  max-height: 80%;
  overflow: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.details-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #000;
  transition: color 0.3s ease;
  font-weight: 500;
}

.details-modal .close-btn:hover {
  color: #09a2dd;
}

#modal-content {
  display: flex;
  flex-flow: column;
  gap: 1rem;
}

#modal-content p {
  margin-bottom: 0;
}

@media (hover: hover) {
  .nav-buttons .button:hover {
    background: linear-gradient(180deg, var(--c-hover), var(--c-hover-2));
    box-shadow: var(--shadow-inset-2), var(--elev-2);
    transform: translateY(-1px);
  }
  .award-card:hover {
    box-shadow: 0 1px 0 hsl(0 0% 100% / 0.4) inset,
      0 0 0 1px hsl(220 20% 20% / 0.08),
      0 10px 20px -10px hsl(220 20% 10% / 0.22),
      0 3px 10px -5px hsl(220 20% 10% / 0.16);
  }
}

.nav-buttons .button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-inset), 0 1px 2px hsl(0 0% 0% / 0.08),
    0 6px 16px hsl(0 0% 0% / 0.1);
}

.nav-buttons .button img {
  max-inline-size: 20px;
  block-size: auto;
  object-fit: contain;
  transition: all 0.25s ease-in-out;
}

.nav-buttons .button:hover img {
  transform: rotate(175deg);
}

@media (max-width: 1400px) {
  section.events .hero .content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  section.events .hero .slideshow {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 1.55fr 0.45fr;
    order: -1;
    min-height: 40rem;
  }
  section.events .hero .hero-nav {
    grid-template-rows: 1.95fr 0.5fr;
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  section.events .hero .hero-nav .additional-preview {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    min-height: auto;
  }
  section.events .hero .main-preview {
    height: 100%;
  }
  section.events .hero .content .description {
    text-align: left;
  }
  .action-bar {
    justify-content: flex-start;
  }
  section.events .hero .top-nav {
    flex-flow: column;
    gap: var(--space-4);
    align-items: flex-start;
  }
  section.events .hero .top-nav .options > a:first-of-type {
    padding-block: initial;
    padding-inline: initial;
    padding: var(--space-4) var(--space-4) var(--space-4) 0;
  }
}

@media (max-width: 1200px) {
  .awards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  #announcements .announcements-grid {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
  }
  #announcements .announcement-primary {
    grid-template-rows: 12rem 1fr;
    margin: 0;
  }
  #announcements .announcement-stack {
    grid-template-rows: none;
    grid-auto-rows: 1fr;
  }
  #announcements .card {
    margin: 0;
  }
  .gallery .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .prev-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }
}

@media (max-width: 960px) {
  section.events .hero .content {
    grid-template-columns: 1fr;
  }
  section.events .hero .hero-nav {
    grid-template-columns: 1fr;
    row-gap: var(--space-4);
  }
  section.events .hero .slideshow {
    grid-template-columns: 1fr;
    grid-template-rows: 1.55fr 0.45fr;
  }
  section.events .hero .hero-nav .additional-preview {
    grid-template-columns: repeat(4, 1fr);
    min-height: 140px;
    grid-template-rows: 1fr;
  }
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  section.events .hero {
    padding: 5rem 0;
    gap: var(--space-4);
  }
  .awards-section {
    padding: 0 0.5rem;
  }
}

@media (max-width: 900px) {
  .gallery .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  section.events .hero .top-nav {
    padding: 0;
  }
  section.events .hero .slideshow {
    max-height: 25rem;
  }
  section.events .hero .content .description {
    padding-block-start: 2em;
  }
  section.events .hero .top-nav div.options {
    display: none;
  }
  section.events .hero .top-nav .dropdown.options {
    display: flex;
  }
  section.events .hero .hero-nav .additional-preview {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
    min-height: 250px;
  }
  #announcements {
    padding: 0;
  }
  section.events .hero p {
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .prev-card {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "info" "blurb" "link";
  }
  .prev-media {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 600px) {
  .gallery .grid {
    grid-template-columns: 1fr;
  }
  .prev-link {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .prev-grid {
    grid-template-columns: 1fr;
  }
  .awards-grid {
    grid-template-columns: 1fr;
  }
  #announcements .card-body {
    padding: var(--space-4);
  }
  #announcements .card-actions {
    flex-wrap: wrap;
  }
  .action-bar {
    flex-flow: column;
  }
  section.events .hero {
    padding: 2.5rem 0;
  }
  section.events .hero .top-nav .heading,
  section.impact-section .heading {
    font-size: 2em;
  }
}
