/* Custom Media Queries */

/* Import Design System Styles */
@import 'design-system.css';

/* Testing rem calculation */
.rem-test {
  /* This will be exactly 12px with default browser settings */
  width: 0.75rem;
  height: 0.75rem;
  background-color: red;
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 9999;
}

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fix for abbr elements in forms - remove any unwanted dots */
abbr[title] {
  text-decoration: none !important;
  border-bottom: none !important;
}

:root {
  /* Breakpoints */
  --breakpoint-s: 360px;
  --breakpoint-m: 768px;
  --breakpoint-l: 1000px;
  
  /* Header heights for different screen sizes - using pixels for simplicity */
  --header-height-s: 56px;  /* Was 3.5rem */
  --header-height-m: 64px;  /* Was 4rem */
  --header-height-l: 72px;  /* Was 4.5rem */
  
  /* Layout */
  --padding: 1.5rem;
  --padding-horizontal: 3rem;
  --content-max-width: 70rem;
  --main-top-spacing: 2rem;  /* Consistent spacing from header to main content */
  
  /* Colors - Design System */
  /* Primary - Neon Night */
  --color-primary-3: #1C0B8F; /* Deep rich base */
  --color-primary-4: #3311FF; /* Electric indigo */
  --color-primary-5: #4D1FFF; /* Vibrant purple-blue */
  --color-primary-6: #8A1FFF; /* Bright neon purple */
  
  /* Secondary - Fresh Teal */
  --color-secondary-3: #00847C;
  --color-secondary-4: #009B91;
  --color-secondary-5: #00B3A8;
  --color-secondary-6: #00CCC0;
  
  /* Tertiary - Coral Accents */
  --color-tertiary-3: #FF6B5B;
  --color-tertiary-4: #FF7E6F;
  --color-tertiary-5: #FF9184;
  --color-tertiary-6: #FFA498;
  
  /* Highlight Colors */
  --color-highlight-3: #50CDC8;
  --color-highlight-4: #45CDCD;
  --color-highlight-5: #619DA5;
  --color-highlight-6: #6C8588;
  
  /* Grayscale */
  --color-white: #FFFFFF;
  --color-gray-1: #f9f8f7;
  --color-gray-2: #eeeae3;
  --color-gray-3: #e2e1e0;
  --color-gray-4: #c8c7c6;
  --color-gray-5: #a7a5a3;
  --color-gray-6: #868482;
  --color-gray-7: #666461;
  --color-gray-8: #464442;
  --color-gray-9: #252322;
  --color-black: #000000;
  
  /* Semantic Colors */
  --color-success: #3bc154; /* Slightly darker green while maintaining vibrancy */
  --color-destructive: #ff3b30;
  --color-indicator-green: #56E907;
  --color-indicator-yellow: #FFD000;
  --color-indicator-red: #DB0A14;
  --color-indicator-violet: #A256F8;
  
  /* Theme-specific variables */
  --color-text: var(--color-black);
  --color-text-grey: var(--color-gray-7);
  --color-background: var(--color-white);
  --color-accent: var(--color-primary-5); /* Primary accent - now using vibrant purple-blue */
  --color-accent-secondary: var(--color-secondary-5); /* Secondary accent - now using teal */
  
  /* Background Gradients */
  --gradient-bg-light: linear-gradient(315deg, rgba(77, 31, 255, 0.03) 0%, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 1) 60%, rgba(0, 179, 168, 0.05) 100%);
  --gradient-bg-vivid: radial-gradient(circle at bottom right, rgba(138, 31, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%), 
                      radial-gradient(circle at top left, rgba(0, 204, 192, 0.08) 0%, rgba(255, 255, 255, 0) 50%),
                      linear-gradient(to top right, rgba(77, 31, 255, 0.03) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 70%, rgba(0, 179, 168, 0.05) 100%);
  
  /* Legacy color variables - maintained for backward compatibility */
  --color-grey: var(--color-gray-7);
  --color-light: var(--color-gray-2);
  
  /* Code Colors */
  --color-code-light-grey: #cacbd1;
  --color-code-comment: #a9aaad;
  --color-code-white: #c5c9c6;
  --color-code-red: #d16464;
  --color-code-orange: #de935f;
  --color-code-yellow: #f0c674;
  --color-code-green: #a7bd68;
  --color-code-aqua: #8abeb7;
  --color-code-blue: #7e9abf;
  --color-code-purple: #b294bb;
  
  /* Typography */
  --font-family-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-serif: "Playfair Display", Georgia, serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

html, body {
  height: 100%;
}

html {
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--gradient-bg-vivid);
  background-attachment: fixed;
  letter-spacing: -0.01em; /* Slightly reduced letter spacing for visual harmony */
  -webkit-font-smoothing: antialiased; /* Improved text sharpness for webkit browsers */
  -moz-osx-font-smoothing: grayscale; /* Improved text sharpness for Firefox */
  text-rendering: optimizeLegibility; /* Optimized for legibility */
}

/* Apply subtle transition when fonts are loaded to prevent jarring layout shifts */
html.fonts-loaded {
  /* Add a small transition to smooth the font change */
  transition: font-family 0.1s ease-out;
}

body {
  display: flex;
  flex-direction: column;
}

img {
  width: 100%;
}

/* Container utility class for consistent layout 
 * Apply to: <header class="header container">, <main class="main container">, and <footer class="footer container"> 
 * Or wrap with: <div class="container"><header class="header">...</header></div>
 */
.container {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--padding-horizontal);
  padding-right: var(--padding-horizontal);
}

li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

/* Header styles with responsive heights */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--header-height-s); /* Default for smallest screens */
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  max-width: calc(var(--content-max-width) + 1rem); /* 0.5rem wider on each side */
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2em); /* Using em instead of rem for better font scaling */
  padding: 0 1em; /* Use em for padding to scale with font size */
}

/* Media Query Implementations - placed after the header style to ensure they override it */
@media (360px > width < 1000px) {
  .header {
    height: var(--header-height-m) !important;
  }
  .header-spacer {
    height: var(--header-height-m) !important;
  }
}

@media (width >= 1000px) {
  .header {
    height: var(--header-height-l) !important;
  }
  .header-spacer {
    height: var(--header-height-l) !important;
  }
}

.logo {
  padding: 1rem;
  display: flex;
  align-items: center;
  font-weight: 700; /* Increased from 600 to 700 for better sharpness */
  cursor: pointer;
  letter-spacing: -0.02em; /* Slightly reduced letter spacing for logo */
  font-size: 1.85rem; /* Roughly double size from default font size */
  text-transform: lowercase; /* Optional: lowercase for modern look */
  margin-right: 1rem; /* Added for spacing between logo and menu */
}

.menu {
  display: flex;
  align-items: center;
  padding-right: 1rem; /* Added right padding to create more space */
}
.menu a {
  display: block;
}
.menu a[aria-current] {
  font-weight: 600;
}

.main {
  margin-top: var(--main-top-spacing);
  /* No other properties needed here as they're handled by .container */
  flex: 1 0 auto; /* Allow the main element to grow but not shrink */
  width: 100%;
}

/* Set a fixed height for the main section only on the home page */
body.home .main {
  height: 87vh; /* Fixed height of 87% of the viewport height */
  flex: none; /* Don't grow or shrink when on home page */
  display: flex; /* Make the main a flex container */
  flex-direction: column; /* Stack content vertically */
  justify-content: center; /* Center content vertically */
  overflow-y: auto; /* Allow scrolling if content overflows */
  overflow-x: hidden; /* Prevent horizontal scrolling */
  padding-top: 0; /* Override default padding */
  padding-bottom: 0; /* Override default padding */
}

/* Home grid adjustments when on home page with fixed height */
body.home .home-grid {
  margin-top: 0; /* Reset margin for grid on homepage */
  padding-bottom: 2rem; /* Add padding at bottom for visual balance */
}

.social {
  display: flex;
  padding: 0 .5rem;
}
.social a {
  padding: 1rem .5rem;
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
  font-family: var(--font-family-sans); /* Primary typeface for headings */
  letter-spacing: -0.02em; /* Slightly reduced letter spacing */
  text-shadow: 0 0 1px rgba(0,0,0,0.01); /* Very subtle shadow for improved text sharpness */
}

.text {
  line-height: 1.5em;
}

article .text{
  max-width: 75ch;
}

.text a {
  text-decoration: underline;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1 {
  font-size: 2rem;
  margin-bottom: 3rem;
  line-height: 1.25em;
}
.text h2,
.h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.text h3,
.h3 {
  font-weight: 600;
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-size: 1.25rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
}
.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-center {
  text-align: center;
}

/* Main intro section styling */
.intro {
  margin-bottom: 6rem;
}

.home .intro {
  text-align: center;
  /* Allow enough space for content below */
  margin-bottom: 4rem; 
  /* Visual correction for perceived vertical centering - move slightly upward */
  transform: translateY(-9%); /* Use transform instead of margin for more precise positioning */
  position: relative; /* For potential animation/effects */
}

/* Target the h1 element directly for size adjustments */
.home .intro h1 {
  font-size: clamp(2rem, 5vw + 1rem, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  transition: font-size 0.3s ease, transform 0.5s ease-out;
}

/* Target paragraph in the intro section */
.home .intro p {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 2rem);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  transition: opacity 0.5s ease-out 0.2s;
}

/* Ensure color-grey class works correctly */
.home .intro .color-grey {
  color: var(--color-text-grey);
}

.intro *:not(:last-child) {
  margin-bottom: 1rem;
}

.accent {
  color: var(--color-accent);
}
.accent-secondary {
  color: var(--color-accent-secondary);
}

/* Primary Button - Based on Design System */
.primary-button {
  background-color: var(--color-primary-5, #7948e2); /* Vibrant Space - Primary button color */
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.1, 1), box-shadow 0.3s cubic-bezier(0.2, 0, 0.1, 1);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  --x: 50%;
  --y: 50%;
  --opacity: 0;
}

.primary-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at var(--x) var(--y), rgba(255, 255, 255, 0.33) 0%, rgba(255, 255, 255, 0) 70%);
  transform: scale(1.5); /* Slightly larger for better coverage */
  transition: opacity 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  pointer-events: none;
  opacity: var(--opacity);
  z-index: -1;
  will-change: opacity, background-position;
}

/* Fast fade-out, slower fade-in */
.primary-button.mouse-hover::before {
  transition: opacity 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
.primary-button::before {
  transition: opacity 0.15s ease-out;
}

.primary-button:hover {
  /* box-shadow: 0 4px 15px rgba(77, 31, 255, 0.25), 0 0 20px rgba(77, 31, 255, 0.2); */
  transform: translateY(-1px); /* Subtle lift effect - remove this line if you don't want movement */
}

/* Default hover animation for all devices */
.primary-button:hover::before {
  --opacity: 0.4;
  animation: fadeGlow 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* For devices with mouse hover */
.primary-button.mouse-hover::before {
  animation: none;
  opacity: 0.5;
}

/* Animation for the glow effect on non-mouse devices */
@keyframes fadeGlow {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.3;
  }
}

.primary-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Media query adjustments for different screen sizes */
@media (width <= 360px) {
  .primary-button {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

@media (360px > width < 1000px) {
  .primary-button {
    font-size: 1.125rem;
    padding: 0.5rem 1rem;
  }
}



@media (width >= 1000px) {
  .primary-button {
    font-size: 1.125rem;
    padding: 0.875rem 1.75rem;
  }
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  -o-object-fit: contain;
     object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: relative;
  line-height: 1.5em;
  width: 100%;
  flex-shrink: 0; /* Prevent footer from shrinking */
}
.footer:before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-black);
  margin-bottom: 1.5rem;
  border-radius: 3px;
}

.footer h2 {
  font-weight: 600;
  margin-bottom: .75rem;
}
.footer ul,
.footer p {
  color: var(--color-text-grey);
}
.footer p {
  max-width: 75ch;
}
.footer a:hover {
  color: var(--color-text);
}


.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}


@media screen and (min-width: 60rem) {
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }
}

.pagination {
  display: flex;
  padding-top: 6rem;
}
.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1.5rem;
}
.pagination > a:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.note-excerpt {
  line-height: 1.5em;
}
.note-excerpt header {
  margin-bottom: 1.5rem;
}
.note-excerpt figure {
  margin-bottom: .5rem;
}
.note-excerpt-title {
  font-weight: 600;
}
.note-excerpt-date {
  color: var(--color-text-grey);
}

/* Header spacer matches header height */
.header-spacer {
  height: var(--header-height-s); /* Default for smallest screens */
  flex-shrink: 0; /* Prevent header spacer from shrinking */
}

/* Contact Form Styles */
.contact-form {
  max-width: 40rem;
  margin-top: 2rem;
}

.hidden-field {
  display: none;
  position: absolute;
  left: -9999px;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-3);
  border-radius: 0.5rem;
  background-color: var(--color-white);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(77, 31, 255, 0.1);
}

.form-field-submit {
  margin-top: 2rem;
}

/* Style for button wrapping submit input */
.form-field-submit .primary-button {
  margin-top: 0;
  width: auto; /* Override any width constraints */
  display: inline-flex;
}

/* Hide the input's default appearance completely */
.form-field-submit .primary-button input[type="submit"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: auto;
  outline: none;
  /* Prevent the input from moving independently on hover */
  position: relative;
  transform: none !important; /* Ensure input doesn't move on its own */
  transition: none !important; /* No transition for the input itself */
}

/* Make sure hovering on input doesn't affect anything */
.form-field-submit .primary-button input[type="submit"]:hover,
.form-field-submit .primary-button input[type="submit"]:active {
  transform: none !important;
  box-shadow: none !important;
}

/* Restore original styles for non-primary-button inputs */
.form-field-submit input[type="submit"]:not(.primary-button) {
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  display: inline-block;
}

.form-field-submit input[type="submit"]:not(.primary-button):hover {
  background: var(--color-primary-6);
  transform: translateY(-2px);
}

.form-field-submit input[type="submit"]:not(.primary-button):active {
  transform: translateY(0);
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.alert.success {
  background-color: rgba(76, 217, 100, 0.1);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}

.alert.error {
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid var(--color-destructive);
  color: var(--color-destructive);
}

.contact-content {
  display: grid;
  gap: 2rem;
}

@media screen and (min-width: 48rem) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* Language Switcher Styles */
.language-switch {
  margin-top: 0.5rem;
  gap: 1rem;
  display: flex;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 21px;
}

.language-switch a.active {
  font-weight: bold;
}

/* Project & Article Styles */
.project-title,
.article-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-subheadline,
.article-subheadline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #666;
}

.project-cover,
.article-cover {
  margin-bottom: 2rem;
}

.project-cover img,
.article-cover img {
  width: 100%;
  height: auto;
}

.project-text,
.article-text {
  margin-bottom: 2rem;
}

.project-tags {
  margin-top: 1rem;
}

.project-tag {
  display: inline-block;
  background: #f0f0f0;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.project-gallery figure {
  margin: 0;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

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