:root {
  --ink: #1a1a1c;
  --muted: #56585e;
  --paper: #ffffff;
  --pink: #ff3366;
  --pink-soft: #ffdee2;
  --coral: #df5d55;
  --blue: #6d8de4;
  --footer: #2e2a2b;
  --line: rgba(26, 26, 28, 0.16);
  --radius: 16px;
  --header-height: 92px;
  --container: 1224px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Poppins, Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  color: #ffffff;
  background: #000000;
  border-radius: 4px;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: #ffffff;
  transition: background-color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(26, 26, 28, 0.08);
}

body.nav-open .site-header {
  background: #ffffff;
  backdrop-filter: none;
}

.header-inner {
  width: min(var(--container), calc(100% - 32px));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: 298px;
  height: 60px;
  object-fit: contain;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  color: #000000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: #000000;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #000000;
  text-decoration: none;
}

.social-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  margin-left: auto;
  padding: 0;
  border: 0;
  color: #111111;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  min-width: 320px;
  min-height: 52px;
  color: #ffffff;
  background: var(--coral);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #c84d47;
}

.button.dark {
  min-width: 250px;
  color: #ffffff;
  background: #000000;
}

.button.ghost {
  min-width: 190px;
  color: #000000;
  background: #ffffff;
  border: 1px solid #000000;
}

.button.blue {
  min-width: 196px;
  min-height: 40px;
  color: #ffffff;
  background: var(--blue);
}

.hero {
  position: relative;
  min-height: 673px;
  display: grid;
  place-items: center;
  padding: 90px 16px 96px;
  color: #ffffff;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero::before {
  z-index: -2;
  background: url("../img/home/hero.jpg") center 52% / cover no-repeat fixed;
}

.hero::after {
  z-index: -1;
  background: rgba(0, 0, 0, 0.46);
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 34px;
  font-size: clamp(3.1rem, 4.8vw, 4.25rem);
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: 0;
}

.section {
  padding: 88px 0;
  background: #ffffff;
}

.section-title {
  margin-bottom: 28px;
  font-size: clamp(2.25rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.about-legacy {
  padding: 86px 0 96px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
  gap: 56px;
  align-items: center;
}

.about-content {
  max-width: 560px;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-media {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
  align-items: start;
}

.about-media img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(26, 26, 28, 0.1);
}

.about-media img:first-child {
  aspect-ratio: 442 / 328;
}

.about-media img:nth-child(2) {
  aspect-ratio: 400 / 384;
}

.about-copy {
  max-width: 540px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.about-content .button {
  margin-top: 10px;
}

.services-legacy {
  padding-top: 54px;
  padding-bottom: 58px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  max-width: 920px;
  margin-inline: auto;
}

.service-item h3,
.gallery-card h3 {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.service-item p,
.gallery-card p,
.event-copy p,
.intro-copy {
  color: var(--ink);
  font-size: 18px;
}

.sponsors-legacy {
  padding-top: 28px;
  padding-bottom: 90px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 30px 28px;
  align-items: center;
}

.sponsor {
  display: grid;
  place-items: center;
  min-height: 106px;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
}

.sponsor img {
  max-width: min(230px, 100%);
  max-height: 86px;
  object-fit: contain;
}

.events-page {
  background: #ffffff;
}

.events-intro {
  display: flex;
  align-items: center;
  padding: 44px 0 40px;
  background: var(--pink-soft);
}

.events-intro .container {
  width: min(1018px, calc(100% - 32px));
}

.events-intro .section-title {
  margin: 0;
  font-size: clamp(2.8rem, 4.2vw, 3.35rem);
}

.events-intro .gallery-meta {
  margin-bottom: 12px;
}

.events-intro .intro-copy {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
}

.feature-event {
  min-height: 793px;
  padding: 40px 0 60px;
}

.event-layout {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 110px;
  align-items: start;
  max-width: 1038px;
  margin-inline: auto;
}

.event-poster {
  width: 400px;
  border-radius: 4px;
}

.event-copy h2 {
  max-width: 530px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 3vw, 2.65rem);
  font-weight: 700;
  line-height: 1.28;
}

.event-copy p {
  max-width: 560px;
  margin-bottom: 24px;
  line-height: 1.3;
}

.event-copy strong {
  font-weight: 700;
}

.price {
  display: block;
  margin: 40px 0 32px;
  font-size: 30px;
  font-weight: 700;
}

.archive-events {
  padding: 62px 0 82px;
}

.year-events-section {
  padding-top: 62px;
  padding-bottom: 72px;
}

.year-events-section .container,
.archive-events .container {
  width: min(1018px, calc(100% - 32px));
}

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

.year-event-card {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.year-event-card-feature {
  grid-column: 1 / -1;
  grid-template-columns: 252px minmax(0, 1fr);
}

.year-event-card:hover,
.year-event-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(26, 26, 28, 0.26);
  box-shadow: 0 16px 34px rgba(26, 26, 28, 0.09);
}

.year-event-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.year-event-card-feature img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #ffffff;
}

.poster-cover {
  object-fit: contain !important;
  background: #f6f4f1;
}

.year-event-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.2;
}

.year-event-card p {
  max-width: 650px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 17px;
}

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

.archive-item {
  padding: 22px 0 18px;
  border-top: 1px solid var(--line);
}

.archive-item h3 {
  margin-bottom: 9px;
  font-size: 24px;
}

.archive-item p {
  margin-bottom: 14px;
  color: var(--muted);
}

.archive-item a {
  color: #000000;
  font-weight: 700;
}

.simple-page-intro {
  min-height: 478px;
  display: grid;
  place-items: center;
  padding: 76px 16px 88px;
  text-align: center;
  background: #ffffff;
}

.simple-page-intro .section-title {
  margin-bottom: 22px;
  font-size: clamp(3rem, 4.5vw, 3.7rem);
}

.simple-page-intro p {
  max-width: 520px;
  margin-inline: auto;
  font-size: 20px;
  line-height: 1.35;
}

.gallery-intro {
  min-height: auto;
  place-items: stretch;
  padding: 40px 16px 24px;
  text-align: left;
}

.gallery-intro > div {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.gallery-intro .section-title {
  margin-bottom: 8px;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.gallery-intro p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.simple-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.gallery-section {
  padding-top: 40px;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid #000000;
  border-radius: 999px;
  color: #000000;
  background: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  color: #ffffff;
  background: #000000;
}

.gallery-count {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 20px;
}

.gallery-card {
  display: grid;
  grid-template-rows: auto 1fr;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-3px);
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-card-content {
  padding: 18px 0 8px;
}

.gallery-meta {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.gallery-card .button {
  min-width: 0;
  min-height: 40px;
  margin-top: 12px;
  padding: 9px 15px;
  color: #ffffff;
  background: #000000;
  pointer-events: none;
}

.gallery-detail-hero {
  padding: 72px 0 66px;
  background: #ffffff;
}

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

.detail-copy {
  display: grid;
  gap: 16px;
  max-width: 690px;
}

.detail-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.detail-cover {
  width: 100%;
  max-height: 500px;
  border-radius: 8px;
  object-fit: cover;
}

.detail-cover.poster-cover {
  max-height: 640px;
}

.detail-gallery-section {
  padding-top: 34px;
}

.detail-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.detail-photo {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.detail-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

.detail-photo:hover img,
.detail-photo:focus-visible img {
  transform: scale(1.03);
}

.lightbox {
  width: min(960px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #111111;
}

.lightbox-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px 18px;
}

.lightbox-content h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.lightbox-content p {
  margin: 0;
  color: var(--muted);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
}

.contact-intro {
  min-height: 720px;
  padding: 82px 0 94px;
  background: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 46px;
  align-items: start;
}

.contact-main {
  min-width: 0;
}

.contact-head {
  margin-bottom: 34px;
}

.contact-head .section-title {
  margin-bottom: 18px;
  font-size: clamp(3rem, 4.5vw, 3.55rem);
}

.contact-head p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: 44px 40px 40px;
  border-radius: 8px;
  background: var(--pink-soft);
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label {
  color: #000000;
  font-size: 15px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #aeb7c4;
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: #ffffff;
}

.form-row input {
  min-height: 58px;
}

.form-row textarea {
  min-height: 94px;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #8d9298;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.form-status[hidden] {
  display: none;
}

.form-status.is-success {
  border: 1px solid rgba(18, 119, 68, 0.24);
  color: #0f5f38;
  background: rgba(234, 250, 241, 0.92);
}

.form-status.is-error {
  border: 1px solid rgba(176, 46, 46, 0.24);
  color: #8c2626;
  background: rgba(255, 238, 238, 0.94);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .button {
  justify-self: start;
  min-width: 238px;
  margin-top: 6px;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.contact-details-panel {
  padding-top: 8px;
}

.contact-details-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.contact-details-panel > p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
}

.contact-list {
  display: grid;
  gap: 17px;
  margin: 0 0 28px;
}

.contact-list div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contact-list dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
  color: #000000;
  font-weight: 600;
}

.contact-list a {
  color: #000000;
}

.map-panel {
  min-height: 178px;
  display: grid;
  align-content: end;
  gap: 4px;
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.38)),
    url("../img/home/hero.jpg") center / cover no-repeat;
}

.map-panel span {
  font-size: 16px;
  font-weight: 600;
}

.map-panel strong {
  font-size: 25px;
  line-height: 1.1;
}

.site-footer {
  color: #ffffff;
  background: var(--footer);
}

.footer-inner {
  width: min(1018px, calc(100% - 32px));
  min-height: 328px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 84px;
  align-items: start;
  padding: 42px 0 26px;
}

.footer-title {
  margin-bottom: 22px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.footer-inner p,
.footer-inner a {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.footer-inner p {
  margin-bottom: 10px;
}

.footer-contact strong,
.footer-about strong {
  font-weight: 700;
}

.footer-small {
  margin-top: 40px;
  font-size: 14px;
}

.footer-about-link {
  display: inline-block;
  margin-top: 42px;
}

.footer-socials {
  display: grid;
  gap: 28px;
  justify-items: start;
}

.footer-socials .social-button {
  width: 44px;
  height: 44px;
  color: #ffffff;
}

.footer-socials .social-button svg {
  width: 44px;
  height: 44px;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 78px;
  }

  .container {
    width: calc(100% - 64px);
  }

  .header-inner {
    width: 100%;
    min-height: var(--header-height);
    padding: 24px 32px;
  }

  .brand img {
    width: 151px;
    height: 30px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: none;
    margin: 0;
    padding: 16px 32px 22px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .site-nav.is-open {
    display: grid;
    gap: 18px;
  }

  .header-socials {
    display: none;
  }

  .hero {
    min-height: 406px;
    padding: 66px 30px 52px;
  }

  .hero::before {
    background: url("../img/home/hero.jpg") center 50% / cover no-repeat;
  }

  .hero h1 {
    max-width: 330px;
    margin-bottom: 28px;
    font-size: 40px;
    line-height: 1.28;
  }

  .hero > div {
    transform: translateY(34px);
  }

  .button.primary {
    min-width: 184px;
    min-height: 58px;
    padding-inline: 24px;
    font-size: 17px;
  }

  .about-legacy {
    padding: 54px 0 62px;
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-title {
    margin-bottom: 18px;
    font-size: 36px;
  }

  .about-media {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-media img {
    border-radius: 13px;
  }

  .about-copy {
    margin: 22px 0 0;
    font-size: 16px;
  }

  .service-list,
  .year-events-grid,
  .archive-grid,
  .gallery-grid,
  .detail-hero-grid,
  .sponsor-grid,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .services-legacy,
  .sponsors-legacy {
    padding-top: 52px;
  }

  .events-intro {
    padding: 36px 0 34px;
  }

  .events-intro .section-title {
    font-size: 31px;
    line-height: 1.25;
  }

  .feature-event {
    padding: 84px 0 56px;
  }

  .year-events-section {
    padding-top: 42px;
  }

  .year-event-card,
  .year-event-card-feature {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .year-event-card img,
  .year-event-card-feature img {
    width: min(360px, 100%);
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .year-event-card img.poster-cover,
  .year-event-card-feature img.poster-cover {
    aspect-ratio: 3 / 4;
  }

  .event-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .event-poster {
    width: min(332px, 100%);
    margin-inline: auto;
  }

  .event-copy h2 {
    font-size: 29px;
  }

  .event-copy p {
    font-size: 16px;
  }

  .price {
    margin: 34px 0 22px;
  }

  .simple-page-intro {
    min-height: 419px;
    padding: 54px 32px 64px;
  }

  .simple-page-intro .section-title {
    font-size: 40px;
  }

  .simple-page-intro p {
    font-size: 17px;
  }

  .gallery-intro {
    min-height: auto;
    padding: 34px 32px 18px;
    text-align: left;
  }

  .gallery-intro .section-title {
    font-size: 34px;
  }

  .gallery-intro p {
    margin: 0;
  }

  .simple-actions {
    display: grid;
  }

  .button.dark {
    width: min(326px, 100%);
  }

  .gallery-toolbar {
    display: grid;
    align-items: start;
  }

  .gallery-grid {
    gap: 32px;
  }

  .gallery-detail-hero {
    padding: 52px 0 54px;
  }

  .detail-cover {
    max-height: none;
  }

  .detail-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-intro {
    min-height: auto;
    padding: 52px 0 66px;
  }

  .contact-head {
    margin-bottom: 26px;
  }

  .contact-head .section-title {
    font-size: 40px;
  }

  .contact-form {
    width: 100%;
    padding: 28px 20px 30px;
  }

  .contact-form .button {
    width: auto;
    min-width: 238px;
  }

  .contact-details-panel {
    padding-top: 12px;
  }

  .footer-inner {
    min-height: 473px;
    gap: 28px;
    padding: 40px 0 32px;
  }

  .footer-title {
    margin-bottom: 16px;
    font-size: 24px;
  }

  .footer-about {
    display: none;
  }

  .footer-small,
  .footer-about-link {
    margin-top: 28px;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 62px);
  }

  .services-legacy,
  .sponsors-legacy,
  .year-events-section,
  .gallery-section,
  .detail-gallery-section,
  .archive-events {
    padding-block: 52px;
  }

  .gallery-intro {
    padding-top: 28px;
    padding-bottom: 8px;
  }

  .gallery-section {
    padding-top: 32px;
  }

  .service-item h3,
  .gallery-card h3,
  .year-event-card h3 {
    font-size: 24px;
  }

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

  .sponsor-grid {
    gap: 24px;
  }
}
