:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f3f3f3;
  --surface-strong: #191a23;
  --text: #191a23;
  --muted: #5d6170;
  --line: #191a23;
  --primary: #b9ff66;
  --primary-strong: #93df35;
  --accent: #191a23;
  --success: #247c4d;
  --danger: #c33b3b;
  --shadow: 0 5px 0 #191a23;
  --radius: 24px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101116;
  --surface: #191a23;
  --surface-soft: #292a32;
  --surface-strong: #f3f3f3;
  --text: #f7f7f7;
  --muted: #c7cad3;
  --line: #f3f3f3;
  --primary: #b9ff66;
  --primary-strong: #cbff86;
  --accent: #ffffff;
  --success: #8be8ae;
  --danger: #ff8a8a;
  --shadow: 0 5px 0 #b9ff66;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 2px solid transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  transform: rotate(-8deg);
}

.brand span {
  color: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
  color: var(--text);
  font-size: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 12px;
  min-width: 0;
}

.nav-actions .btn {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn,
button,
input,
textarea,
select {
  font: inherit;
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
  background: var(--surface-strong);
  color: var(--bg);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn.compact,
button.compact {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.secondary,
button.secondary {
  background: var(--surface);
  color: var(--text);
}

.btn.danger,
button.danger {
  background: var(--danger);
  color: #ffffff;
}

.icon-button {
  width: 48px;
  padding: 0;
  background: var(--surface);
  color: var(--text);
}

.hero {
  padding: 46px 0 42px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 52px;
}

.hero-copy h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.9rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 560px;
  margin: 28px 0;
  color: var(--text);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border: 2px solid var(--line);
  background: var(--primary);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  top: 14px;
  right: 18px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

.hero-visual::after {
  left: 0;
  bottom: 34px;
  width: 118px;
  height: 118px;
  border-radius: 30px;
  transform: rotate(11deg);
}

.hero-slider {
  position: relative;
  z-index: 2;
  overflow: hidden;
  min-height: 480px;
  border: 2px solid var(--line);
  border-radius: 34px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 30px;
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 24px 24px auto auto;
  width: 150px;
  height: 150px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--surface-strong) 0 12%, transparent 13%),
    repeating-conic-gradient(from 12deg, var(--primary) 0 16deg, var(--surface) 16deg 32deg);
}

.hero-slide::after {
  content: "";
  position: absolute;
  top: 84px;
  left: 36px;
  width: 170px;
  height: 94px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--primary);
  transform: rotate(-8deg);
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  min-width: 0;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 10px;
  background: var(--primary);
  color: #191a23;
  font-size: 1rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--muted);
}

.hero-content h1 {
  margin-top: 18px;
  font-size: clamp(1.65rem, 3vw, 2.85rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero-content p {
  max-width: 100%;
  margin: 16px 0 20px;
  color: var(--text);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

.slider-controls {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.section {
  padding: 46px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 24px;
}

.section-title p {
  max-width: 620px;
  margin: 0;
  color: var(--text);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.event-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr) auto auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 22px;
}

.organizer-filter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chip:hover,
.chip.active {
  background: var(--primary);
  color: #191a23;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.card {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:nth-child(3n + 2) {
  background: var(--primary);
  color: #191a23;
}

.card:nth-child(3n) {
  background: var(--surface-strong);
  color: var(--bg);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 9px 0 var(--line);
}

.card-media {
  min-height: 176px;
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(25, 26, 35, 0.12) 58% 100%),
    radial-gradient(circle at 76% 32%, var(--primary) 0 22%, transparent 23%),
    var(--surface);
  background-size: cover;
  background-position: center;
}

.event-card {
  position: relative;
  display: grid;
  grid-template-rows: 190px 1fr;
  min-height: 100%;
  background: var(--surface-soft);
  cursor: pointer;
}

.event-card:nth-child(3n + 2),
.event-card:nth-child(3n) {
  background: var(--surface-soft);
  color: var(--text);
}

.event-card:focus-visible {
  outline: 4px solid var(--primary);
  outline-offset: 4px;
}

.event-card-media {
  position: relative;
  min-height: 190px;
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(135deg, rgba(25, 26, 35, 0.08), rgba(25, 26, 35, 0.22)),
    radial-gradient(circle at 78% 28%, var(--primary) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--surface) 0 45%, var(--primary) 45% 64%, var(--surface-soft) 64% 100%);
  background-size: cover;
  background-position: center;
}

.event-card-media::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 92px;
  height: 92px;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--line);
  transform: rotate(9deg);
}

.event-date-badge,
.event-category-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 4px 4px 0 var(--line);
  font-weight: 800;
}

.event-date-badge {
  top: 18px;
  left: 18px;
  flex-direction: column;
  min-width: 76px;
  min-height: 72px;
  justify-content: center;
  border-radius: 18px;
}

.event-date-badge strong {
  font-size: 1.35rem;
}

.event-date-badge span {
  font-size: 0.88rem;
}

.event-category-badge {
  right: 18px;
  top: 18px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--primary);
  color: #191a23;
}

.event-card-body {
  display: grid;
  gap: 14px;
}

.event-card-body h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.event-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
}

.event-card-topline span {
  min-width: 0;
}

.event-card-description {
  margin: 0;
  color: var(--text);
}

.event-card-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.collection-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 150px 1fr;
  min-height: 100%;
  background: var(--surface-soft);
  cursor: pointer;
}

.collection-card:nth-child(3n + 2),
.collection-card:nth-child(3n) {
  background: var(--surface-soft);
  color: var(--text);
}

.collection-card:focus-visible {
  outline: 4px solid var(--primary);
  outline-offset: 4px;
}

.collection-card .card-body {
  display: grid;
  gap: 14px;
}

.collection-card-media {
  position: relative;
  min-height: 150px;
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(135deg, rgba(185, 255, 102, 0.96) 0 34%, transparent 34% 100%),
    linear-gradient(155deg, var(--surface) 0 48%, var(--surface-soft) 48% 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.collection-card-media::before {
  content: "";
  position: absolute;
  inset: 18px auto auto 22px;
  width: 112px;
  height: 70px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--line);
  transform: rotate(-4deg);
}

.collection-card-media::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 62px;
  height: 62px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--primary);
  box-shadow: 5px 5px 0 var(--line);
  transform: rotate(10deg);
}

.collection-card--music .collection-card-media {
  background:
    radial-gradient(circle at 22% 70%, var(--primary) 0 12%, transparent 13%),
    linear-gradient(110deg, var(--surface) 0 52%, var(--primary) 52% 72%, var(--surface-soft) 72% 100%);
}

.collection-card--theatre .collection-card-media {
  background:
    radial-gradient(circle at 78% 28%, var(--primary) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--surface-soft) 0 42%, var(--surface) 42% 68%, var(--primary) 68% 100%);
}

.collection-card--education .collection-card-media {
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(25, 26, 35, 0.14) 46% 49%, transparent 49% 100%),
    linear-gradient(140deg, var(--primary) 0 38%, var(--surface) 38% 72%, var(--surface-soft) 72% 100%);
}

.collection-card--family .collection-card-media {
  background:
    radial-gradient(circle at 28% 32%, var(--primary) 0 16%, transparent 17%),
    radial-gradient(circle at 64% 46%, var(--primary) 0 12%, transparent 13%),
    linear-gradient(135deg, var(--surface) 0 54%, var(--surface-soft) 54% 100%);
}

.collection-card--city .collection-card-media {
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(25, 26, 35, 0.12) 22% 25%, transparent 25% 52%, rgba(25, 26, 35, 0.12) 52% 55%, transparent 55% 100%),
    linear-gradient(135deg, var(--surface) 0 44%, var(--primary) 44% 62%, var(--surface-soft) 62% 100%);
}

.collection-card--has-image .collection-card-media {
  background-color: var(--surface);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.collection-card--has-image .collection-card-media::before,
.collection-card--has-image .collection-card-media::after {
  display: none;
}

.collection-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.collection-date,
.collection-category,
.collection-card-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.9rem;
  font-weight: 800;
}

.collection-date {
  background: var(--primary);
  color: #191a23;
}

.collection-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.collection-location {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.collection-card-cta {
  width: fit-content;
  margin-top: 2px;
  background: var(--surface-strong);
  color: var(--bg);
}

.card-body {
  padding: 28px;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.card-actions form {
  margin: 0;
}

.card p,
.card .meta {
  color: inherit;
}

.organizer-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 10px;
  margin: 4px 0 0;
  border: 2px solid currentColor;
  border-radius: 16px;
  padding: 8px 12px 8px 8px;
  background: rgba(255, 255, 255, 0.34);
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.organizer-link:hover {
  background: var(--primary);
  color: #191a23;
  box-shadow: 4px 4px 0 var(--line);
  transform: translateY(-2px);
}

.organizer-link-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
}

.organizer-link small,
.organizer-link strong {
  display: block;
  min-width: 0;
}

.organizer-link small {
  color: inherit;
  font-size: 0.78rem;
  opacity: 0.72;
}

.organizer-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  font-weight: 700;
}

.meta span,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.26);
}

.form-panel,
.table-panel {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

input[type="checkbox"] {
  width: auto;
}

label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 10px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 4px var(--primary);
}

.flash {
  margin: 16px 0;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--primary);
  color: #191a23;
  font-weight: 700;
}

.error {
  background: #ffd8d8;
  color: #191a23;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 2px solid var(--line);
  padding: 15px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  font-size: 0.92rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  margin-top: 54px;
  border-radius: 34px 34px 0 0;
  padding: 34px 0;
  background: var(--surface-strong);
  color: var(--bg);
}

.footer p {
  color: inherit;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer .btn.secondary {
  border-color: var(--bg);
  background: var(--primary);
  color: #191a23;
}

.article-view {
  max-width: 880px;
  margin: 0 auto;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 54px);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.article-view h1 {
  margin: 18px 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.article-excerpt {
  color: var(--text);
  font-size: 1.2rem;
}

.article-media {
  margin: 28px 0;
  min-height: 320px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.75;
}

.organizer-profile {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 52px);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.organizer-profile h1 {
  margin: 18px 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.muted-strong {
  color: var(--text);
  font-weight: 700;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.profile-actions form {
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions form {
  margin: 0;
}

.admin-actions button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.organizer-avatar {
  display: grid;
  width: 140px;
  height: 140px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--primary);
  color: #191a23;
  box-shadow: var(--shadow);
  font-size: 4rem;
  font-weight: 800;
}

.modal-open {
  overflow: hidden;
}

.event-modal[hidden] {
  display: none;
}

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(25, 26, 35, 0.62);
}

.event-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  width: min(960px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 0 var(--line);
}

.event-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.event-modal-media {
  min-height: 100%;
  border-right: 2px solid var(--line);
  background:
    radial-gradient(circle at 76% 28%, var(--primary) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--surface-soft) 0 48%, var(--primary) 48% 68%, var(--surface) 68% 100%);
  background-size: cover;
  background-position: center;
}

.event-modal-body {
  display: grid;
  gap: 20px;
  padding: clamp(26px, 5vw, 48px);
}

.event-modal-body h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.event-modal-description {
  color: var(--text);
  font-size: 1.06rem;
}

.event-modal-details {
  display: grid;
  gap: 12px;
}

.event-modal-details div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  border-top: 2px solid var(--line);
  padding-top: 12px;
}

.event-modal-details span {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-links,
  .nav-actions {
    flex-wrap: wrap;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 500px;
  }

  .section-head,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-filter,
  .organizer-filter,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .organizer-profile {
    grid-template-columns: 1fr;
  }

  .event-modal-panel {
    grid-template-columns: 1fr;
  }

  .event-modal-media {
    min-height: 220px;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1240px);
  }

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

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-slider {
    min-height: 500px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-content h1 {
    font-size: 1.72rem;
  }

  .card-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-card {
    grid-template-rows: 168px 1fr;
  }

  .collection-card {
    grid-template-rows: 138px 1fr;
  }

  .collection-card-media {
    min-height: 138px;
  }

  .event-card-media {
    min-height: 168px;
  }

  .event-card-topline,
  .event-card-buttons {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-modal {
    padding: 12px;
  }

  .event-modal-details div {
    grid-template-columns: 1fr;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  td {
    border-bottom: 0;
    padding: 9px 0;
  }

  tr {
    border-bottom: 2px solid var(--line);
    padding: 12px 0;
  }
}
