/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root{
  --bg: #0a0b0d;
  --bg-2: #0d0f12;
  --text: #e6e2dc;
  --muted: #a39f99;
  --line: #191b1e;
  --acc-warm: #ea8e8b;
  --acc-rust: #ac3a2d;
  --maxw: 1200px;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0,0,0,.45);
}
@media (prefers-color-scheme: light){
  :root{
    --bg: #fbfaf7; --bg-2:#fff; --text:#0a0b0d; --muted:#5a5854; --line:#e8e4de;
  }
}
body{
  margin:0;
  font: 16px/1.65 -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 60% -10%, rgba(208,165,111,0.06), transparent 60%),
    radial-gradient(1000px 700px at -10% 40%, rgba(154,92,74,0.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
}
body::before, body::after{ content:""; position: fixed; inset:0; pointer-events:none; z-index: 0; }
body::before{ background: radial-gradient(1200px 700px at 50% -10%, transparent 0%, rgba(0,0,0,.25) 80%, rgba(0,0,0,.5) 100%); mix-blend-mode: multiply; }
body::after{
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 2px, transparent 2px 4px);
  opacity:.25;
}

.container{ width: min(100% - 2rem, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }
.section{ padding: 3rem 0; }
.section-tight{ padding: 1.4rem 0; }

h1,h2,h3{ line-height:1.12; margin: 0 0 .55rem; font-family: Georgia, 'Times New Roman', Times, serif; }
h1{ font-size: clamp(2rem, 4vw, 3rem); }
h2{ font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p{ margin: .6rem 0 1rem; }
a{ color: inherit; text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--acc-warm) 70%, var(--acc-rust) 30% / 75%); }
a:hover{ border-bottom-style: solid; }

/* ---------- Header ---------- */
.header{ 
  position: sticky; top:0; z-index:9000; 
  background: color-mix(in srgb, var(--bg-2) 85%, transparent); 
  backdrop-filter: blur(8px) saturate(1.05); 
  border-bottom:1px solid var(--line); 
  width: 100%;
}

.nav{ 
  display:flex; align-items:center; justify-content:space-between; 
  padding:.6rem 0; 
  gap: 1.5rem; /* Sécurité : Espace minimum entre le nom et le menu/burger */
}

/* BRAND (NOM) */
.brand{ 
  display:flex; align-items:baseline; gap:.8rem; 
  text-decoration: none !important;
  border-bottom: 1px solid currentColor !important; 
  padding-bottom: 2px;
  flex-shrink: 1; /* Autorise le conteneur à réduire si besoin */
  min-width: 0;   /* Évite le débordement flexbox */
}

.wordmark{ 
  font-weight:700; 
  letter-spacing:.15em; 
  text-transform:uppercase; 
  color:var(--text); 
  
  /* Taille dynamique mais pas trop petite */
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  
  /* Comportement standard : pas de retour à la ligne */
  white-space: nowrap;
}

.tag{ color:var(--muted); font-size:.85rem; letter-spacing:.12em; text-transform:uppercase; }

/* Desktop Menu Styles */
.desktop-menu{ display:flex; align-items:center; gap:1rem; flex-shrink: 0; }
.desktop-menu a{ padding:.35rem .5rem; border-radius:8px; border:1px solid transparent; }
.desktop-menu a.active{ border-color: var(--line); }
.desktop-menu a:hover{ background: color-mix(in srgb, var(--bg-2) 60%, transparent); border-color: var(--line); text-decoration:none; }

/* --- RESPONSIVE HEADER FIXES --- */
@media (max-width:820px){
  .desktop-menu{ display:none; }
  
  /* Sur mobile, on change le comportement du texte */
  .wordmark {
    white-space: normal;  /* Autorise le texte à passer sur 2 lignes */
    line-height: 1.2;     /* Espacement des lignes si ça wrap */
    letter-spacing: 0.1em; /* Espacement légèrement réduit pour gagner de la place */
    text-align: left;
  }
  
  /* On s'assure que le conteneur du nom prend la place mais laisse celle du burger */
  .brand {
    max-width: 80%; /* Laisse 20% de l'écran pour le burger à droite */
    border-bottom: none !important; /* Optionnel: plus propre sur 2 lignes sans souligné */
  }
  
  /* Si on veut garder le souligné, on le remet sur le span interne */
  .brand .wordmark {
    border-bottom: 1px solid currentColor;
  }
}

/* ---------- BURGER MENU ICON ---------- */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  z-index: 9999;
  flex-shrink: 0; /* Empêche le burger d'être écrasé */
  
  /* Positionnement safe */
  margin-left: auto; /* Pousse le burger à droite */
  margin-right: 0;   /* Pas de marge négative ! */
}

@media (max-width:820px){
  .burger { display: block; }
}

.burger-box { width: 100%; height: 100%; position: relative; }
.burger-inner {
  display: block; top: 50%; margin-top: -2px;
}
.burger-inner, .burger-inner::before, .burger-inner::after {
  width: 30px; height: 2px;
  background-color: var(--text);
  border-radius: 4px; position: absolute;
  transition: transform 0.15s ease;
}
.burger-inner::before { content: ""; top: -10px; }
.burger-inner::after { content: ""; bottom: -10px; }

/* Burger Animation (X shape) */
.burger.is-active .burger-inner { transform: rotate(45deg); }
.burger.is-active .burger-inner::before { top: 0; opacity: 0; }
.burger.is-active .burger-inner::after { bottom: 0; transform: rotate(-90deg); }


/* ---------- MOBILE SLIDE-OUT DRAWER ---------- */
.mobile-menu-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; width: 100%;
  pointer-events: none; z-index: 9990;
  overflow: hidden;
}
.mobile-menu-container {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 80vw; /* Un peu moins large pour voir le fond */
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 80px 2rem 2rem;
  display: flex; flex-direction: column;
  pointer-events: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}
.mobile-menu-overlay.is-open .mobile-menu-container {
  transform: translateX(0);
}

/* Dim Background when open */
.mobile-menu-overlay.is-open {
  background: rgba(0,0,0,0.2); 
  pointer-events: auto;
}

/* Mobile Links */
.mobile-nav { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-nav a {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: var(--text);
  border: none !important;
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--muted); }

/* Mobile Dropdown (Accordion) */
.mobile-dropdown-trigger {
  background: none; border: none; padding: 0;
  font-family: Georgia, serif; font-size: 1.4rem;
  color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; width: 100%;
  align-items: center;
}
.mobile-dropdown-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  display: flex; flex-direction: column; gap: 0.8rem;
  margin-top: 0; padding-left: 1rem; border-left: 1px solid var(--line);
}
.mobile-dropdown-group.active .mobile-dropdown-content {
  max-height: 200px; margin-top: 1rem;
}
.mobile-dropdown-group.active .arrow { transform: rotate(45deg); }
.mobile-dropdown-content a {
  font-family: -apple-system, sans-serif;
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
}
.mobile-footer { margin-top: auto; font-size: 0.8rem; color: var(--muted); opacity: 0.6; }


/* ---------- Hero ---------- */
.hero{ padding: clamp(1.2rem, 5vw, 2.2rem) 0 .4rem; }
.kicker{ display:inline-flex; align-items:center; gap:.5rem; color:var(--muted); letter-spacing:.16em; text-transform:uppercase; font-size:.78rem; }
.kicker::before{ content:""; width:8px; height:8px; border-radius:50%; background: radial-gradient(circle at 30% 30%, var(--acc-warm), var(--acc-rust)); box-shadow:0 0 10px color-mix(in srgb, var(--acc-warm) 50%, transparent); }
.lead{ font-size: clamp(1rem,1.35vw,1.15rem); color:var(--muted); max-width:65ch; }

/* ---------- Buttons ---------- */
.btn{ display:inline-flex; align-items:center; gap:.5rem; padding:.5rem .85rem; border-radius:999px; border:1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 80%, transparent); text-decoration:none; font-weight:600; }
.btn:hover{ border-color: color-mix(in srgb, var(--acc-warm) 50%, var(--line)); text-decoration:none; }

/* ---------- Series list ---------- */
.series-list{ display:grid; gap: 1.6rem; }
.series-item{ display:grid; gap:3rem; grid-template-columns: 1.5fr 1fr; align-items:start; }
.series-item figure{ margin:0; }
.series-item img {
  width: 100%; height: auto; display: block;
  border: none; border-radius: 0;
  aspect-ratio: auto; object-fit: contain;
  filter: saturate(.9) contrast(1.02);
}
@media (max-width: 900px){ .series-item{ grid-template-columns:1fr; } }

/* ---------- Gallery ---------- */
.gallery{ display:grid; gap:.8rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery figure{ margin:0; position:relative; }
.gallery img{ width:100%; height:auto; display:block; border:none; border-radius:0; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.9) contrast(1.02); }
.gallery figcaption{ position:absolute; left:.6rem; bottom:.5rem; right:.6rem; color:#efeae2; text-shadow:0 2px 10px rgba(0,0,0,.7); font-size:.9rem; opacity:0; transition:opacity .2s ease; }
.gallery a:hover figcaption{ opacity:1; }

/* ---------- Lightbox ---------- */
.lightbox-overlay{ position: fixed; inset:0; display:none; align-items:center; justify-content:center; background: rgba(0,0,0,.9); z-index: 100; }
.lightbox-overlay.open{ display:flex; }
.lightbox-frame{ max-width: min(92vw, 1400px); max-height: 90vh; position:relative; }
.lightbox-frame img{ width:100%; height:auto; border-radius:0; border:none; box-shadow: var(--shadow); }
.lightbox-caption{ position:absolute; left:0; right:0; bottom:-3rem; text-align:center; color: var(--muted); font-size:.95rem; }
.lightbox-controls{ position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between; pointer-events:none; }
.lightbox-btn, .lightbox-close{ pointer-events:auto; border:none; background: color-mix(in srgb, var(--bg-2) 70%, transparent); border:1px solid var(--line); border-radius: 999px; padding: .55rem .75rem; margin: .6rem; }

/* ---------- Footer ---------- */
.footer{ border-top:1px solid var(--line); padding: 1.6rem 0 2.2rem; color:var(--muted); }
.footer a{ color:var(--muted); border-bottom:1px dashed var(--muted); }
.footer .social{ display:flex; gap:.8rem; flex-wrap:wrap; }

/* ---------- Forms ---------- */
.input, textarea{ width:100%; padding:.8rem 1rem; border-radius: 10px; border:1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 80%, transparent); color: var(--text); }
label{ display:block; font-weight:600; margin:.4rem 0; color: var(--muted); }


/* --- Home hero visual --- */
.hero-visual{ margin-top:.8rem; }
.hero-visual img{ width:100%; height:auto; display:block; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.9) contrast(1.02); }
.series-item > div{ align-self: start; }

body{
  /* flat dark background, no warm radial washes */
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) !important;
  background-attachment: scroll !important;
}

/* kill vignette/grain overlays */
body::before, body::after{ content: none !important; background: none !important; opacity: 0 !important; }

/* no blur under the sticky header */
.header{ backdrop-filter: none !important; background: var(--bg-2) !important; }

/* === Justified rows gallery (strict order, adaptive, dense) === */
.gallery{ display: block !important; --rowH: 280px; --gap: .8rem; margin: 0; }
.gallery .j-row{ display: flex; gap: var(--gap); margin: 0 0 var(--gap) 0; align-items: stretch; }
.gallery .j-item{ flex: 0 0 auto; height: var(--rowH); }
.gallery a{ display: block; width: 100%; height: 100%; }
.gallery figure{ margin: 0; width: 100%; height: 100%; }
.gallery img{ width: 100%; height: 100%; object-fit: contain !important; display: block; border: 0; border-radius: 0; }
.gallery figcaption, .lightbox-caption{ display: none !important; }

@media (max-width: 1100px){ .gallery{ --rowH: 240px; } }
@media (max-width: 780px){  .gallery{ --rowH: 200px; } }
@media (max-width: 560px){  .gallery{ --rowH: 180px; } }

/* === FIX: Lightbox === */
.lightbox-overlay{ display: none !important; position: fixed; inset: 0; z-index: 9999 !important; }
.lightbox-overlay.open{ display: flex !important; align-items: center; justify-content: center; padding: min(1.2rem, 4vw); }
@supports (height: 100svh){
  .lightbox-overlay.open .lightbox-frame{ width: auto !important; height: auto !important; max-width: 100svw !important; max-height: 100svh !important; }
  .lightbox-overlay.open .lightbox-frame img{ width: auto !important; height: auto !important; max-width: calc(100svw - 2.4rem) !important; max-height: calc(100svh - 2.4rem) !important; object-fit: contain !important; }
}
@supports not (height: 100svh){
  .lightbox-overlay.open .lightbox-frame{ width: auto !important; height: auto !important; max-width: 100vw !important; max-height: 100vh !important; }
  .lightbox-overlay.open .lightbox-frame img{ width: auto !important; height: auto !important; max-width: calc(100vw - 2.4rem) !important; max-height: calc(100vh - 2.4rem) !important; object-fit: contain !important; }
}
.lightbox-overlay.open{ z-index: 9999; padding: clamp(12px, 4vw, 32px); }
.lightbox-frame{ position: relative; }
.lightbox-controls{ position: absolute; inset: 0; pointer-events: none; --btn-offset: clamp(16px, 3vw, 36px); }
.lightbox-btn{ position: absolute; top: 50%; transform: translateY(-50%); pointer-events: auto; }
.lightbox-btn.prev{ left: 0; transform: translate(calc(-100% - var(--btn-offset)), -50%); }
.lightbox-btn.next{ right: 0; transform: translate(calc(100% + var(--btn-offset)), -50%); }
.lightbox-close{ display: none !important; }
@media (max-width: 700px){
  .lightbox-controls{ left: 50%; right: auto; top: auto; bottom: 0; transform: translate(-50%, 110%); display: flex; gap: .8rem; }
  .lightbox-btn{ position: static; transform: none; }
}

/* === Disable hover shrink/shift === */
.gallery a:hover img, .gallery img:hover{ transform: none !important; scale: 1 !important; filter: none !important; }
.gallery img{ transition: none !important; display: block; }
.gallery a:hover, .gallery figure:hover{ outline: none !important; border: none !important; box-shadow: none !important; }
.gallery figcaption{ display: none !important; }
.gallery figure{ line-height: 0; background: transparent !important; }

/* === WHITE THEME OVERRIDE + black kicker === */
:root{
  --bg: #ffffff;
  --bg-2: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #e5e5e5;
}
body{ background: #ffffff !important; color: var(--text) !important; }
body::before, body::after{ content: none !important; background: none !important; opacity: 0 !important; }
.header{ background: var(--bg-2) !important; border-bottom: 1px solid var(--line) !important; backdrop-filter: none !important; }
a{ border-bottom: 1px solid #111; }
a:hover{ border-bottom-style: solid !important; }
.kicker{ color: #111 !important; }
.kicker::before{ background: #111 !important; box-shadow: none !important; }
.gallery img, .series-item img{ filter: none !important; }
.btn{ background: #f6f6f6 !important; border-color: var(--line) !important; }
.btn:hover{ background: #eeeeee !important; border-color: #dcdcdc !important; }

/* Header nav adjustments for white theme */
.desktop-menu a{ padding: 0 .4rem; border: none !important; background: transparent !important; box-shadow: none !important; text-decoration: none !important; border-bottom: none !important; }
.desktop-menu a:hover, .desktop-menu a.active{ border: none !important; background: transparent !important; text-decoration: none !important; box-shadow: none !important; }
.header .brand{ padding: .2rem 0; }
.header .nav{ padding: .8rem 0 !important; }
.desktop-menu a{ padding-top: .35rem !important; padding-bottom: .35rem !important; }

/* Section adjustments */
.section-tight + .section{ padding-top: 0.8rem !important; }
.section-tight{ padding-bottom: 0.6rem !important; }
.section-tight + .section .gallery{ margin-top: 0 !important; }
.lead{ margin-bottom: .4rem !important; }
.gallery a, .gallery a:visited, .gallery a:hover{ text-decoration: none !important; border: none !important; border-bottom: none !important; box-shadow: none !important; }
.gallery a, .gallery figure, .gallery img{ transition: none !important; animation: none !important; transform: none !important; translate: none !important; scale: 1 !important; rotate: 0deg !important; filter: none !important; }
.series-item h2 a { border-bottom: none; }
.gallery-triptych { display: grid; grid-template-columns: 1fr; gap: 4.5rem; max-width: 900px; margin: 0 auto; }
.gallery-triptych img { width: 100%; height: auto; display: block; max-height: 85vh; object-fit: contain; }
.gallery-triptych a, .gallery-triptych a:hover { border-bottom: none !important; }

/* === Desktop Dropdown Menu === */
.menu-item.dropdown { position: relative; }
.menu-item.dropdown::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 20px; background: transparent; }
.dropdown-menu { display: none; position: absolute; z-index: 100; top: calc(100% + 15px); left: 50%; transform: translateX(-50%); min-width: 180px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: none; border-radius: 0px; padding: .4rem 0; }
.dropdown-menu a { display: block; padding: .6rem 1.2rem; text-align: center; border: none !important; background: transparent !important; }
.menu-item.dropdown:hover .dropdown-menu { display: block; }
.menu-item.dropdown:hover > .dropdown-toggle { background-color: #f6f6f6; }
.dropdown-menu a:hover { background-color: #f0f0f0 !important; color: var(--text); }

/* === Astrophotography 2x2 Grid === */
.gallery-grid-astro { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.gallery-grid-astro a { display: block; border-bottom: none !important; cursor: zoom-in; line-height: 0; transition: opacity 0.2s ease-in-out; }
.gallery-grid-astro a:hover { opacity: 0.85; }
.gallery-grid-astro img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .gallery-grid-astro { grid-template-columns: 1fr; } }

/* === STORIES / EDITORIAL SECTION === */
.container-text { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.story-list { display: flex; flex-direction: column; gap: 6rem; padding: 4rem 0; align-items: center; text-align: center; padding-bottom: 20rem; }
.story-entry { display: block; text-decoration: none !important; border-bottom: none !important; width: 100%; max-width: 500px; transition: opacity 0.3s ease; }
.story-entry:hover { opacity: 0.6; }
.story-meta { display: block; font-family: -apple-system, system-ui, sans-serif; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.story-entry h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 4vw, 2.5rem); font-weight: normal; margin: 0 0 1rem 0; line-height: 1.1; color: var(--text); }
.story-excerpt { font-family: Georgia, 'Times New Roman', serif; font-size: 1.05rem; line-height: 1.5; font-style: italic; color: var(--muted); margin: 0; }
.story-header { text-align: center; padding: 3rem 0 4rem; border-bottom: 1px solid transparent; }
.story-header h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-top: 1rem; margin-bottom: 0.5rem; font-weight: normal; }
.story-content { font-family: Georgia, 'Times New Roman', serif; font-size: 1.25rem; line-height: 1.7; color: #222; margin-bottom: 5rem; }
.story-content p { margin-bottom: 1.8rem; }
.story-content > p:first-of-type::first-letter { float: left; font-size: 4.2rem; line-height: 0.8; margin-right: 0.6rem; margin-top: 0.2rem; font-family: Georgia, serif; color: var(--text); }
.story-end-mark { text-align: center; margin: 4rem 0; font-size: 1rem; letter-spacing: 1rem; color: var(--line); }
.nav-link-back { display: inline-block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: 1rem; }
.nav-link-back:hover { border-bottom-color: var(--muted); }

/* === YOFUKASHI (DARK MODE & PIXEL ART) === */
body.dark-mode {
  --bg: #050505; --bg-2: #0a0a0a; --text: #e0e0e0; --muted: #666; --line: #222;
  background: var(--bg) !important; color: var(--text) !important;
}
body.dark-mode .header { background: rgba(5, 5, 5, 0.9) !important; border-bottom: 1px solid var(--line) !important; }
body.dark-mode .wordmark, body.dark-mode .desktop-menu a { color: #fff !important; }
body.dark-mode .desktop-menu a:hover, body.dark-mode .desktop-menu a.active { color: #fff !important; border-color: #444 !important; background: #111 !important; }
body.dark-mode .dropdown-menu { background: #0a0a0a !important; border-color: #333 !important; }
body.dark-mode .dropdown-menu a { color: #aaa !important; }
body.dark-mode .dropdown-menu a:hover { background-color: #1a1a1a !important; color: #fff !important; }
.pixel-art { image-rendering: pixelated; image-rendering: -moz-crisp-edges; image-rendering: crisp-edges; }
.gallery-yofukashi { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.gallery-yofukashi a { border: none !important; display: block; }
.gallery-yofukashi img { width: 100%; height: auto; display: block; border: 1px solid #1a1a1a; box-shadow: 0 20px 50px rgba(0,0,0,0.7); transition: transform 0.4s ease; }
.gallery-yofukashi a:hover img { transform: translateY(-5px); border-color: #333; }
.gallery-sprites { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3rem; padding: 3rem 0; opacity: 0.9; }
.gallery-sprites img { height: 140px; width: auto; object-fit: contain; filter: drop-shadow(0 0 15px rgba(255,255,255,0.05)); transition: transform 0.3s ease, filter 0.3s ease; }
.gallery-sprites img:hover { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(255,255,255,0.15)); }
@media (max-width: 700px) { .gallery-yofukashi { grid-template-columns: 1fr; } .gallery-sprites img { height: 100px; gap: 1.5rem; } }