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

:root {
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-soft: 0 28px 70px rgba(27, 27, 27, 0.12);
  --shadow-card: 0 16px 40px rgba(27, 27, 27, 0.12);
  --shadow-float: 0 18px 36px rgba(27, 27, 27, 0.15);
  --ink-muted: rgba(43, 43, 43, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  background:
    repeating-linear-gradient(0deg, rgba(61, 64, 91, 0.03) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, rgba(224, 122, 95, 0.025) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.85), transparent 42%),
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.7), transparent 35%),
    linear-gradient(120deg, var(--color-bg) 0%, #ffffff 55%, rgba(255, 255, 255, 0.9) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: -8%;
  right: -10%;
  width: 520px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(61, 64, 91, 0.22), transparent 65%);
  transform: rotate(8deg);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  left: -15%;
  bottom: -20%;
  width: 620px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(224, 122, 95, 0.25), transparent 65%);
  transform: rotate(-12deg);
  z-index: 0;
  pointer-events: none;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(27, 27, 27, 0.12);
  border: 6px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.modal-trigger,
.modal-image {
  cursor: zoom-in;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1.5rem 4vw;
  background: rgba(250, 247, 239, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(61, 64, 91, 0.12);
  box-shadow: 0 18px 30px rgba(27, 27, 27, 0.08);
}

.logo a {
  font-family: "Cormorant Garamond", "Garamond", serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 0;
}

.site-nav a {
  padding: 0.2rem 0;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  position: relative;
  color: var(--color-text);
  transition: transform 0.2s ease, color 0.2s ease;
  z-index: 1;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  transform: translateY(-1px);
  color: var(--color-accent);
}

.site-nav a:hover::after {
  opacity: 0.9;
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--color-accent);
}

.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-main {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 3rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 3.5rem clamp(1.5rem, 6vw, 4.5rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, rgba(61, 64, 91, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(224, 122, 95, 0.3), rgba(244, 241, 222, 0.65));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(61, 64, 91, 0.12);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.8s ease both;
}

.hero::before {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -35%;
  width: 420px;
  height: 200px;
  background: linear-gradient(90deg, rgba(224, 122, 95, 0.45), transparent);
  transform: rotate(-6deg);
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  right: -15%;
  top: -20%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(61, 64, 91, 0.2), transparent 70%);
  opacity: 0.7;
}

.hero h1 {
  font-family: "Cormorant Garamond", "Garamond", serif;
  font-size: clamp(2.8rem, 4.2vw, 4.6rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
  text-shadow: 0 18px 32px rgba(27, 27, 27, 0.12);
}

.hero p {
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0;
  line-height: 1.7;
  color: var(--ink-muted);
}

.hero-portfolio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  display: grid;
  gap: 1.1rem;
}

.hero-tag {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

.hero-lead {
  font-size: 1.1rem;
  margin: 0;
  color: var(--ink-muted);
}

.hero-note {
  margin: 0;
  font-size: 0.98rem;
  max-width: 520px;
  color: rgba(43, 43, 43, 0.65);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(61, 64, 91, 0.2);
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-accent);
  border-color: rgba(61, 64, 91, 0.2);
}

.hero-slideshow {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(61, 64, 91, 0.1);
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-slideshow:hover {
  box-shadow: var(--shadow-float);
}

.hero-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.6s ease;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.slide.is-active {
  opacity: 1;
}

.slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-link:hover img {
  transform: scale(1.03);
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  color: #ffffff;
}

.slide-title {
  font-family: "Cormorant Garamond", "Garamond", serif;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.slide-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
}

.slide-controls {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}

.slide-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-accent);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slide-btn:hover {
  box-shadow: 0 10px 18px rgba(61, 64, 91, 0.2);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 520px;
}

.portfolio-features,
.portfolio-gallery {
  display: grid;
  gap: 1.5rem;
}

.feature-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  display: block;
  position: relative;
  min-height: 240px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(61, 64, 91, 0.1);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.5s ease;
}

.feature-card.is-pdf .pdf-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
}

.feature-card.is-pdf .pdf-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

.feature-card.is-pdf .pdf-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.9);
  transition: opacity 0.2s ease;
}

.feature-card.is-pdf .pdf-canvas-wrap.is-loaded .pdf-fallback {
  opacity: 0;
}

.pdf-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(224, 122, 95, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.feature-card:hover img {
  transform: scale(1.05);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card.is-wide {
  min-height: 280px;
}

.feature-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  color: #ffffff;
}

.feature-title {
  font-family: "Cormorant Garamond", "Garamond", serif;
  font-size: 1.25rem;
}

.feature-subtitle {
  font-size: 0.88rem;
  opacity: 0.85;
}

.portfolio-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.selected-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-card {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(61, 64, 91, 0.1);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.4s ease;
}

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

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.selected-card {
  display: block;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(61, 64, 91, 0.12);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.selected-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.5s ease;
}

.selected-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.selected-card:hover img {
  transform: scale(1.05);
}

.selected-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
  color: #ffffff;
  font-family: "Cormorant Garamond", "Garamond", serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.portfolio-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
  color: #ffffff;
  font-family: "Cormorant Garamond", "Garamond", serif;
  letter-spacing: 0.04em;
}

section h1,
section h2 {
  font-family: "Cormorant Garamond", "Garamond", serif;
  margin: 0 0 1rem;
  letter-spacing: 0.03em;
}

section h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.featured-works,
.latest-posts,
.portfolio-features,
.portfolio-gallery,
.about,
.works,
.blog,
.contact,
.post {
  animation: fadeUp 0.7s ease both;
}

.work-grid,
.post-list,
.post-gallery {
  display: grid;
  gap: 1.5rem;
}

.work-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.post-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.work-card,
.post-card {
  background: rgba(255, 255, 255, 0.92);
  padding: 1.6rem;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(61, 64, 91, 0.1);
  display: grid;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.work-card img {
  transition: transform 0.5s ease;
}

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

.work-card::before,
.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  opacity: 0.7;
}

.work-card h3,
.work-card h2,
.post-card h2,
.post-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", "Garamond", serif;
}

.post-card a {
  color: var(--color-accent);
}

.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.post-content {
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 1.5rem 0;
  color: rgba(43, 43, 43, 0.85);
}

.about-text {
  line-height: 1.8;
  font-size: 1.05rem;
  color: rgba(43, 43, 43, 0.85);
}

.post-gallery {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.post-gallery img {
  transition: transform 0.4s ease;
}

.post-gallery a:hover img,
.post-gallery img:hover {
  transform: scale(1.03);
}

body.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.post-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.like-button {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--color-primary), rgba(224, 122, 95, 0.8));
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.like-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(224, 122, 95, 0.35);
}

.like-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.comment-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.comment {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  border: 1px solid rgba(61, 64, 91, 0.12);
  box-shadow: var(--shadow-card);
}

.comment img {
  margin-top: 0.6rem;
  max-width: 180px;
}

.comment-form,
.contact form {
  display: grid;
  gap: 0.8rem;
  max-width: 620px;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

input,
textarea,
select {
  font: inherit;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(61, 64, 91, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 3px rgba(27, 27, 27, 0.08);
}

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

button {
  align-self: start;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--color-accent), rgba(61, 64, 91, 0.8));
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(61, 64, 91, 0.25);
}

.form-note {
  font-size: 0.9rem;
  color: rgba(43, 43, 43, 0.7);
}

.site-footer {
  width: min(1100px, 92vw);
  margin: 0 auto 2rem;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid rgba(61, 64, 91, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-left {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.footer-left a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.footer-left a:hover {
  color: var(--color-primary);
}

.footer-right {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.social-link {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(61, 64, 91, 0.25);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  position: relative;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(61, 64, 91, 0.2);
  background: var(--color-accent);
  color: #ffffff;
}

.social-icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

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

.notice {
  margin-top: 0.8rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  background: rgba(61, 64, 91, 0.08);
  border: 1px solid rgba(61, 64, 91, 0.15);
}

.notice.is-error {
  background: rgba(224, 122, 95, 0.2);
  border-color: rgba(224, 122, 95, 0.45);
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 120;
}

.image-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.image-modal__backdrop {
  position: absolute;
  inset: 0;
}

.image-modal__panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 1;
}

.image-modal__sidebar {
  width: 350px;
  min-width: 150px;
  background: #ffffff;
  color: #2b2b2b;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 12px 0 30px rgba(17, 17, 18, 0.2);
  overflow-y: auto;
}

.image-modal__sidebar h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: "Cormorant Garamond", "Garamond", serif;
}

.image-modal__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-line;
  color: rgba(43, 43, 43, 0.85);
}

.image-modal__close {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: none;
  background: rgba(61, 64, 91, 0.1);
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}

.image-modal__close:hover {
  background: rgba(61, 64, 91, 0.18);
}

.image-modal__viewer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.image-modal__viewer img {
  max-width: min(100%, 1100px);
  max-height: 100%;
  border-radius: 28px;
  border: 8px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 50px rgba(10, 10, 10, 0.35);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.9rem;
  }

  .site-nav a {
    font-size: 0.72rem;
  }

  .hero {
    padding: 2.6rem 1.5rem;
  }

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

  .hero-slideshow {
    min-height: 260px;
  }

  .selected-card img {
    height: 240px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-modal__panel {
    flex-direction: column;
  }

  .image-modal__sidebar {
    width: 100%;
    min-width: 100%;
    box-shadow: 0 12px 24px rgba(17, 17, 18, 0.2);
  }

  .image-modal__viewer {
    padding: 1.5rem;
  }
}

@media (min-width: 900px) {
  .feature-card.is-wide {
    grid-column: span 2;
  }
}

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