/* photos.edoyama.com -- styles matched to edoyama.com brand. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --cream: #FDF8F3;
  --warm: #FFF5EB;
  --paper: #F5F0E8;
  --red: #E8192C;
  --red-dark: #C4151F;
  --teal: #2A9D8F;
  --navy: #1B1624;
  --muted: #6B6B6B;
  --sky: #5DC8E6;
  --orange: #E8621A;

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-hand: "Caveat", cursive;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1100px;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(27, 22, 36, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
a:hover {
  text-decoration-color: var(--red);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--navy);
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.eyebrow.hand {
  font-family: var(--font-hand);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.5rem;
  color: var(--orange);
  font-weight: 500;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 22, 36, 0.06);
}
.site-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  display: inline-block;
  letter-spacing: -0.01em;
}
.wordmark-text {
  position: relative;
  display: inline-block;
}
.wordmark-wave {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 8px;
}
.nav-cta {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav-cta:hover {
  color: var(--navy);
  background: rgba(27, 22, 36, 0.04);
}

/* Layout */
main,
.landing,
.gallery-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
main.landing {
  padding-top: 4rem;
}

/* Landing bio */
.bio h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 0 0 1.5rem;
}
.bio h1 .accent {
  position: relative;
  display: inline-block;
  color: var(--red);
}
.bio p {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: var(--navy);
  max-width: 58ch;
}
.bio p a {
  font-weight: 600;
  text-decoration-color: var(--red);
}

/* Galleries section */
.galleries {
  margin-top: 4rem;
}
.galleries h2 {
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  position: relative;
  display: inline-block;
}
.galleries h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 44px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}
.gallery-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.gallery-list a {
  display: block;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}
.gallery-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 25, 44, 0.25);
  box-shadow: 0 10px 30px -12px rgba(27, 22, 36, 0.15);
}
.gallery-list strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.gallery-date {
  display: block;
  color: var(--orange);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}
.gallery-desc {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Gallery page header */
.gallery-header {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}
.gallery-header .back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--paper);
  transition: background 0.15s, color 0.15s;
}
.gallery-header .back:hover {
  background: var(--navy);
  color: var(--cream);
}
.gallery-header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}
.gallery-meta {
  color: var(--muted);
  margin: 0;
  max-width: 58ch;
  font-size: 1.05rem;
}

/* Gallery grid */
main:has(.gallery-grid) {
  padding-top: 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 1rem;
}
.gallery-grid .thumb {
  aspect-ratio: 1 / 1;
  background: var(--paper);
  overflow: hidden;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  position: relative;
}
.gallery-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-grid .thumb:hover img {
  transform: scale(1.04);
}
.gallery-loading {
  color: var(--muted);
  padding: 2rem 0;
  font-style: italic;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(27, 22, 36, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  padding: 2rem 1rem;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
}
.lightbox-prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-downloads {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.lightbox-downloads a {
  background: var(--cream);
  color: var(--navy);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.lightbox-downloads a:hover {
  background: var(--red);
  color: var(--cream);
  transform: translateY(-1px);
}

/* Email modal */
.email-modal {
  position: fixed;
  inset: 0;
  background: rgba(27, 22, 36, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1rem;
}
.email-modal[hidden] {
  display: none;
}
.email-modal-inner {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 1.75rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(27, 22, 36, 0.35);
}
.email-modal-inner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  font-family: var(--font-serif);
}
.email-modal-inner p {
  margin: 0 0 1.25rem;
  color: var(--navy);
  line-height: 1.5;
}
.email-modal-inner form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.email-modal-inner input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(27, 22, 36, 0.15);
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--warm);
  transition: border-color 0.15s;
}
.email-modal-inner input:focus {
  outline: 0;
  border-color: var(--red);
}
.email-modal-inner button[type="submit"] {
  background: var(--red);
  color: var(--cream);
  border: 0;
  padding: 0.8rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s, transform 0.15s;
  margin-top: 0.25rem;
}
.email-modal-inner button[type="submit"]:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.email-modal-inner button.skip {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: inherit;
}
.email-modal-inner button.skip:hover {
  color: var(--navy);
}
.email-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.email-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.9rem;
  text-align: center;
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 4rem auto 2rem;
  padding: 1.75rem 1.5rem;
  border-top: 1px solid rgba(27, 22, 36, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.site-footer a {
  color: var(--navy);
  font-weight: 500;
}

/* Gallery toolbar (favorites filter) */
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.25rem 0 1rem;
  flex-wrap: wrap;
}
.gallery-count {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.gallery-filter {
  background: var(--paper);
  color: var(--navy);
  border: 1px solid rgba(27, 22, 36, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gallery-filter:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

/* Favorite heart on thumbnails */
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 0;
  color: rgba(27, 22, 36, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, background 0.15s, transform 0.15s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}
.fav-btn:hover {
  color: var(--red);
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.06);
}
.fav-btn.is-on {
  color: var(--red);
  background: rgba(255, 255, 255, 0.95);
}

/* Lightbox heart */
.lightbox-fav {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: rgba(253, 248, 243, 0.65);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lightbox-fav:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--cream);
}
.lightbox-fav.is-on {
  color: var(--red);
  background: rgba(255, 255, 255, 0.95);
}

/* Splash / entry gate */
body.splash-open {
  overflow: hidden;
}
.splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--cream);
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.splash.is-closing {
  opacity: 0;
  pointer-events: none;
}
.splash-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.splash-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
  transform: scale(1.06);
  animation: splash-kenburns 20s ease-in-out infinite alternate;
}
.splash-bg-slide.is-active {
  opacity: 1;
}
@keyframes splash-kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.14); }
}
.splash-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(253, 248, 243, 0.55) 0%, rgba(253, 248, 243, 0.65) 100%);
}
.splash-card {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 30px 80px -20px rgba(27, 22, 36, 0.4);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
.splash-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin: 0 0 0.25rem;
  color: var(--navy);
}
.splash-sub {
  font-family: var(--font-hand);
  color: var(--orange);
  font-size: 1.3rem;
  margin: 0 0 1rem;
  font-style: italic;
}
.splash-body {
  font-size: 0.98rem;
  color: var(--navy);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.splash-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.splash-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.splash-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.splash-label em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.splash-field input,
.splash-field textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(27, 22, 36, 0.15);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--warm);
  color: var(--navy);
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  resize: vertical;
}
.splash-field input:focus,
.splash-field textarea:focus {
  outline: 0;
  border-color: var(--red);
  background: #fff;
}
.splash-submit {
  background: var(--red);
  color: var(--cream);
  border: 0;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  margin-top: 0.25rem;
}
.splash-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.splash-skip {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  padding: 0.3rem;
  text-decoration: underline;
  text-decoration-color: rgba(107, 107, 107, 0.4);
  text-underline-offset: 3px;
}
.splash-skip:hover {
  color: var(--navy);
}
.splash-success {
  text-align: center;
  color: var(--teal);
  font-weight: 600;
  margin: 0.5rem 0 0;
}

/* Shared sign-in card (used by splash + modal) */
.signin-card {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 30px 80px -20px rgba(27, 22, 36, 0.4);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
.signin-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin: 0 0 0.25rem;
  color: var(--navy);
  line-height: 1.15;
}
.signin-sub {
  font-family: var(--font-hand);
  color: var(--orange);
  font-size: 1.3rem;
  margin: 0 0 1rem;
}
.signin-body {
  font-size: 0.98rem;
  color: var(--navy);
  line-height: 1.55;
  margin: 0 0 0.85rem;
}
.signin-body:last-of-type {
  margin-bottom: 1.25rem;
}
.signin-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.signin-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.signin-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.signin-label em,
.signin-optional {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.signin-field input,
.signin-field textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(27, 22, 36, 0.15);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--warm);
  color: var(--navy);
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  resize: vertical;
}
.signin-field input:focus,
.signin-field textarea:focus {
  outline: 0;
  border-color: var(--red);
  background: #fff;
}
.signin-submit {
  background: var(--red);
  color: var(--cream);
  border: 0;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  margin-top: 0.25rem;
}
.signin-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.signin-skip {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  padding: 0.3rem;
  text-decoration: underline;
  text-decoration-color: rgba(107, 107, 107, 0.4);
  text-underline-offset: 3px;
}
.signin-skip:hover {
  color: var(--navy);
}
.signin-success {
  text-align: center;
  color: var(--teal);
  font-weight: 600;
  margin: 0.5rem 0 0;
}
.signin-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--red-dark);
  font-weight: 500;
}
.signin-error[hidden] {
  display: none;
}
.signin-field-invalid input {
  border-color: var(--red);
  background: #FFF5F5;
  animation: signin-shake 0.35s ease-out;
}
@keyframes signin-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.signin-disclosure {
  margin: 0.9rem 0 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

/* Sign-in modal (on-demand, appears over gallery) */
body.signin-open {
  overflow: hidden;
}
.signin-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(27, 22, 36, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.signin-modal.is-visible {
  opacity: 1;
}
.signin-modal.is-closing {
  opacity: 0;
}
.signin-modal-inner {
  max-width: 460px;
}

/* Toolbar actions layout */
.gallery-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.gallery-download-all {
  background: var(--red);
  color: var(--cream);
  border: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.gallery-download-all:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* Thumbnail download icon (top-left mirror of heart) */
.dl-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 0;
  color: rgba(27, 22, 36, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, background 0.15s, transform 0.15s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}
.dl-btn:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.06);
}

/* Gallery toast */
.gallery-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 12px);
  background: var(--navy);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 15px 40px -10px rgba(27, 22, 36, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1600;
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.gallery-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Size picker modal */
.size-picker {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(27, 22, 36, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.size-picker.is-visible {
  opacity: 1;
}
.size-picker-inner {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(27, 22, 36, 0.4);
}
.size-picker-inner h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}
.size-picker-inner p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}
.size-picker-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.size-picker-options button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: left;
  background: var(--warm);
  border: 1px solid rgba(27, 22, 36, 0.08);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  color: var(--navy);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.size-picker-options button:hover {
  background: #fff;
  border-color: var(--red);
  transform: translateY(-1px);
}
.size-picker-options button strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.size-picker-options button span {
  color: var(--muted);
  font-size: 0.88rem;
}
.size-picker-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.size-picker-close:hover {
  color: var(--navy);
}

/* Zip progress modal */
.zip-progress {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(27, 22, 36, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.zip-progress.is-visible {
  opacity: 1;
}
.zip-progress-inner {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(27, 22, 36, 0.4);
}
.zip-progress-inner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}
.zip-progress-msg {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.zip-progress-bar {
  height: 8px;
  background: var(--paper);
  border-radius: 999px;
  overflow: hidden;
}
.zip-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 0.15s ease;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  main,
  .landing,
  .gallery-header {
    padding: 2rem 1.25rem;
  }
  main.landing {
    padding-top: 2.5rem;
  }
  .bio h1 {
    font-size: 2.2rem;
  }
  .gallery-list {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
  }
  .splash {
    padding: 0.5rem;
    align-items: flex-start;
    padding-top: 1rem;
  }
  .splash-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius);
    max-height: calc(100vh - 1rem);
  }
  .fav-btn {
    width: 30px;
    height: 30px;
    top: 6px;
    right: 6px;
  }
  .dl-btn {
    width: 30px;
    height: 30px;
    top: 6px;
    left: 6px;
  }
  .signin-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius);
    max-height: calc(100vh - 1rem);
  }
  .lightbox-fav {
    top: 1.25rem;
    left: 1.25rem;
    width: 40px;
    height: 40px;
  }
}
