@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --blue-950: #071a2c;
  --blue-900: #0a2945;
  --blue-800: #0d3d63;
  --blue-700: #0b5ea8;
  --blue-600: #1678c8;
  --blue-500: #2c92dd;
  --blue-100: #e8f4fd;
  --blue-50: #f5fbff;
  --ink: #111820;
  --muted: #5b6875;
  --white: #ffffff;
  --line: rgba(8, 44, 75, 0.14);
  --shadow: 0 20px 60px rgba(8, 42, 70, 0.13);
  --shadow-soft: 0 10px 30px rgba(8, 42, 70, 0.09);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--blue-50);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

button, input, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

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

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

.section {
  position: relative;
  padding: 110px 0;
  scroll-margin-top: 70px;
}

.section-light { background: var(--white); }

.section-heading {
  max-width: 830px;
  margin-bottom: 55px;
}

.section-heading h2 {
  margin: 0 0 14px;
  font: 600 clamp(2.1rem, 5vw, 4rem)/1.05 "Space Grotesk", sans-serif;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  color: var(--muted);
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--blue-700);
  font: 700 0.75rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.16em;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  padding: 14px 0;
  transition: 0.3s ease;
}

.site-header.scrolled {
  background: rgba(245, 251, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(8, 42, 70, 0.06);
}

.navbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.025em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, var(--blue-600), var(--blue-900));
  box-shadow: 6px 6px 14px rgba(7, 47, 81, 0.17), -3px -3px 10px rgba(255,255,255,0.6);
  font-size: 0.78rem;
}

.site-header.scrolled .brand-mark {
  border-color: rgba(22,120,200,0.2);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  position: relative;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #25323d;
  transition: 0.2s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--blue-700);
  background: rgba(22,120,200,0.07);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 13px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-900);
  border-radius: 2px;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 140px;
  background:
    linear-gradient(90deg, rgba(247,252,255,0.95) 0%, rgba(247,252,255,0.80) 48%, rgba(7,27,45,0.35) 100%),
    url("assets/images/background.png") center/cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 70px;
  align-items: center;
}

.hero-copy h2 {
  max-width: 900px;
  margin: 0 0 25px;
  font: 600 clamp(3rem, 7vw, 6.5rem)/0.96 "Space Grotesk", sans-serif;
  letter-spacing: -0.065em;
}

.hero-copy h2 span { color: var(--blue-700); }

.hero-lead {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: #42515f;
}

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

.button, .submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 19px;
  border-radius: 15px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.button-primary, .submit-btn {
  color: white;
  background: linear-gradient(145deg, var(--blue-600), var(--blue-900));
  box-shadow: 8px 8px 18px rgba(7, 56, 96, 0.18), -4px -4px 12px rgba(255,255,255,0.85);
}

.button-secondary {
  color: var(--blue-900);
  background: rgba(255,255,255,0.72);
  border-color: rgba(13,61,99,0.18);
  box-shadow: 6px 6px 16px rgba(7,56,96,0.09), -3px -3px 10px rgba(255,255,255,0.85);
}

.button:hover, .submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 10px 14px 26px rgba(7, 56, 96, 0.2), -3px -3px 12px rgba(255,255,255,0.9);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-facts span, .tag-list span {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(13,61,99,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: #385264;
  font-size: 0.76rem;
  font-weight: 600;
}

.raised-card,
.outlined-panel,
.stat-card,
.timeline-card,
.education-card,
.activity-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.raised-card {
  position: relative;
  padding: 34px;
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card { backdrop-filter: blur(12px); }

.card-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  top: -90px;
  background: rgba(44,146,221,0.2);
  border-radius: 50%;
  filter: blur(2px);
}

.card-label {
  color: var(--blue-700);
  font: 700 0.72rem/1.2 "Space Grotesk", sans-serif;
  letter-spacing: 0.13em;
}

.hero-card h3 {
  position: relative;
  margin: 12px 0 4px;
  font: 600 2rem/1.12 "Space Grotesk", sans-serif;
}

.mini-divider {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}

.snapshot-list {
  padding-left: 18px;
  color: #455463;
}

.snapshot-list li + li { margin-top: 10px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.scroll-line {
  width: 50px;
  height: 1px;
  background: var(--blue-600);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 28px;
}

.outlined-panel {
  padding: 32px;
  background: rgba(245,251,255,0.58);
}

.about-main p { margin-top: 0; }

.about-main p + p { margin-top: 20px; }

.about-side {
  display: grid;
  gap: 14px;
}

.stat-card {
  padding: 24px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.stat-card strong {
  display: block;
  font: 700 1.15rem/1.2 "Space Grotesk", sans-serif;
  color: var(--blue-900);
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: rgba(22,120,200,0.25);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 24px;
  margin-bottom: 25px;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--blue-700);
  font: 700 0.75rem "Space Grotesk", sans-serif;
  box-shadow: 4px 4px 12px rgba(13,61,99,0.2);
}

.timeline-card {
  padding: 30px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--blue-700);
  font: 700 0.74rem "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-card h3,
.education-card h3,
.activity-card h3,
.project-body h3 {
  margin: 10px 0 6px;
  font: 600 1.55rem/1.2 "Space Grotesk", sans-serif;
}

.role {
  margin: 0;
  font-weight: 700;
  color: #354552;
}

.education-grid,
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.education-card,
.activity-card {
  position: relative;
  padding: 30px;
  background: #fafdff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.education-index,
.activity-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(11,94,168,0.18);
  font: 700 2.3rem "Space Grotesk", sans-serif;
}

.education-degree {
  margin: 0 0 6px;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.tag-list span { background: var(--blue-100); }

.basic-education {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 18px;
  background: #f7fcff;
}

.basic-education h3 {
  margin: 4px 0;
  font: 600 1.2rem "Space Grotesk", sans-serif;
}

.activities-grid {
  grid-template-columns: repeat(2, 1fr);
}

.activity-card {
  background: rgba(255,255,255,0.78);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(22,120,200,0.35);
  box-shadow: 0 24px 55px rgba(8,42,70,0.16);
}

.project-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--blue-100);
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue-900);
  background: rgba(255,255,255,0.9);
  font: 700 0.67rem "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.project-body h3 {
  font-size: 1.3rem;
}

.project-body p:not(.card-label) {
  color: var(--muted);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: #546573;
  font-size: 0.75rem;
}

.project-meta span {
  padding: 5px 8px;
  background: var(--blue-50);
  border-radius: 8px;
}

.card-link {
  margin-top: 18px;
  color: var(--blue-700);
  font-weight: 800;
  font-size: 0.85rem;
}


/* =========================================================
   GALLERY
   ========================================================= */

.gallery-preview {
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

.gallery-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 19px;
  border: 1px solid rgba(13,61,99,0.18);
  border-radius: 15px;
  color: var(--blue-900);
  background: rgba(255,255,255,0.72);
  box-shadow:
    6px 6px 16px rgba(7,56,96,0.09),
    -3px -3px 10px rgba(255,255,255,0.85);
  font-weight: 700;
  transition: 0.25s ease;
}

.gallery-open-link:hover {
  color: white;
  background: linear-gradient(145deg, var(--blue-600), var(--blue-900));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow:
    10px 14px 26px rgba(7,56,96,0.18),
    -3px -3px 12px rgba(255,255,255,0.9);
}

.gallery-arrow {
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.gallery-open-link:hover .gallery-arrow {
  transform: translateX(5px);
}

.gallery-showcase {
  margin-top: 65px;
  scroll-margin-top: 92px;
}

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}

.gallery-header h3 {
  margin: 10px 0 0;
  font: 600 1.8rem/1.2 "Space Grotesk", sans-serif;
  letter-spacing: -0.035em;
}

.gallery-contact-link {
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.85rem;
  transition: 0.2s ease;
}

.gallery-contact-link:hover {
  color: var(--blue-900);
  transform: translateX(3px);
}

.gallery-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-100);
  box-shadow: var(--shadow-soft);
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item::after {
  content: "VIEW IMAGE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(7,26,44,0.38);
  backdrop-filter: blur(2px);
  font: 700 0.72rem "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover {
  border-color: rgba(22,120,200,0.35);
  box-shadow: var(--shadow);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover::after {
  opacity: 1;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(44,146,221,0.12), transparent 30%),
    linear-gradient(135deg, #eef8ff, #ffffff);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 25px;
}

.contact-info h3 {
  margin: 10px 0 25px;
  font: 600 2rem/1.12 "Space Grotesk", sans-serif;
}

.contact-details {
  display: grid;
  gap: 11px;
  margin-bottom: 28px;
}

.contact-details a {
  color: var(--blue-700);
  font-weight: 700;
  word-break: break-word;
}

.contact-details span {
  color: var(--muted);
}

.contact-form-wrap {
  background: rgba(255,255,255,0.85);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(13,61,99,0.16);
  border-radius: 13px;
  padding: 13px 14px;
  outline: none;
  color: var(--ink);
  background: #fbfdff;
  transition: 0.2s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(44,146,221,0.1);
}

.submit-btn {
  width: 100%;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.site-footer {
  padding: 50px 0 30px;
  color: #d9e8f4;
  background: var(--blue-950);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand {
  color: white;
}

.site-footer p {
  color: #9db4c7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a,
.footer-links button {
  color: #c9dce9;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #91a9ba;
  font-size: 0.8rem;
}

.intro-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: #061b2c url("assets/images/background.png") center/cover no-repeat;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.intro-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4,25,43,0.78), rgba(8,76,128,0.43));
}

.intro-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 2;
  width: min(90%, 850px);
  text-align: center;
}

.intro-content .eyebrow {
  color: #bfe6ff;
}

.intro-content h1 {
  margin: 0;
  font: 600 clamp(3rem, 9vw, 7rem)/0.95 "Space Grotesk", sans-serif;
  letter-spacing: -0.06em;
}

.intro-subtitle {
  color: #e2f3ff;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.intro-hint {
  color: #bad2e3;
  font-size: 0.82rem;
}

.intro-loader {
  width: min(300px, 65%);
  height: 3px;
  margin: 25px auto;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
  border-radius: 5px;
}

.intro-loader span {
  display: block;
  width: 0;
  height: 100%;
  background: white;
  animation: intro-progress 5s linear forwards;
}

@keyframes intro-progress {
  to { width: 100%; }
}

.skip-button {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  padding: 11px 14px;
  color: white;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: 0.2s ease;
}

.skip-button:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

.modal {
  position: fixed;
  z-index: 900;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,18,30,0.7);
  backdrop-filter: blur(7px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  padding: 38px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 26px;
  background: #fafdff;
  box-shadow: 0 35px 90px rgba(0,0,0,0.3);
}

.modal-panel h2 {
  margin: 0 0 18px;
  font: 600 clamp(1.9rem, 4vw, 3rem)/1.1 "Space Grotesk", sans-serif;
}

.modal-panel p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--blue-900);
  background: white;
  cursor: pointer;
  font-size: 1.5rem;
}

.noscript {
  position: fixed;
  z-index: 2000;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  color: white;
  background: #8b1e1e;
  text-align: center;
}


/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 980px) {
  .hero-grid,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 125px;
  }

  .hero-card {
    max-width: 620px;
  }

  .education-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card-featured {
    grid-column: span 2;
  }

  /* Gallery */
  .gallery-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item-wide {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 78px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,0.97);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 13px;
  }

  .brand-text {
    display: none;
  }

  .hero-copy h2 {
    font-size: clamp(2.9rem, 13vw, 4.8rem);
  }

  .scroll-cue {
    display: none;
  }

  .education-grid,
  .activities-grid,
  .project-grid,
  .basic-education {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-column: auto;
  }

  .timeline-top {
    flex-direction: column;
    gap: 5px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .modal-panel {
    padding: 30px 22px;
  }

  /* Gallery */
  .gallery-showcase {
    margin-top: 50px;
  }

  .gallery-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .gallery-collage {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
    gap: 14px;
  }

  .gallery-item,
  .gallery-item-large,
  .gallery-item-wide {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 260px;
  }

  .gallery-item::after {
    display: none;
  }

  .gallery-item:active img {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}