/* ------------------------------------------------------------------
   zjc1 — personal photo site
   Editorial contact-sheet aesthetic: bone paper, warm ink, vermilion.
------------------------------------------------------------------- */

:root {
  --paper: #f2efe7;
  --ink: #16140f;
  --accent: #c4452b;
  --muted: #6f6a5d;
  --line: rgba(22, 20, 15, 0.16);
  --wash: rgba(22, 20, 15, 0.04);
  --cols: 3;
  --gap: 14px;
  --radius: 0px;

  --display: "Fraunces", "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --mono: "IBM Plex Mono", "PingFang SC", "Hiragino Sans GB", ui-monospace, monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme="ink"] {
  --paper: #11100d;
  --ink: #ece7db;
  --accent: #e2603c;
  --muted: #a9a294;
  --line: rgba(236, 231, 219, 0.17);
  --wash: rgba(236, 231, 219, 0.05);
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  max-width: 1560px;
  padding: 0 clamp(20px, 4vw, 64px);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

::selection {
  background: var(--accent);
  color: #fff;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

[data-theme="ink"] .grain {
  mix-blend-mode: screen;
  opacity: 0.1;
}

/* ------------------------------- type ------------------------------ */

.micro {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.display {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.9rem, 9.4vw, 8.6rem);
  font-weight: 380;
  font-variation-settings: "opsz" 144;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
  white-space: pre-wrap;
  word-break: break-word;
}

.display.is-empty {
  font-style: italic;
  font-weight: 320;
  color: var(--muted);
  opacity: 0.62;
}

.lede {
  margin: 30px 0 0;
  max-width: 54ch;
  font-family: var(--display);
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 360;
  line-height: 1.75;
  letter-spacing: 0.002em;
  color: var(--muted);
  white-space: pre-wrap;
}

/* ----------------------------- masthead ---------------------------- */

.masthead {
  padding-top: 22px;
}

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.masthead__mark {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}

.masthead__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 0;
  border-bottom: 0;
}

.edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.edit-toggle .micro {
  color: var(--muted);
}

.edit-toggle__dot {
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.edit-toggle:hover {
  color: var(--accent);
}

.edit-toggle:hover .edit-toggle__dot {
  background: var(--accent);
  border-color: var(--accent);
}

body.editing .edit-toggle {
  color: var(--accent);
}

body.editing .edit-toggle__dot {
  background: var(--accent);
  border-color: var(--accent);
}

/* ------------------------------ intro ----------------------------- */

.intro {
  padding: clamp(64px, 13vh, 148px) 0 clamp(56px, 10vh, 118px);
}

body.ready .intro {
  animation: rise 0.9s var(--ease) both;
}

body.editing {
  overflow: hidden;
}

body.editing .gallery[data-captions="false"] .tile__cap {
  display: block;
}

/* ------------------------------ works ----------------------------- */

.works__head {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(24px, 3.6vw, 42px);
}

.works__head h2 {
  margin: 0;
}

.works__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.gallery {
  position: relative;
  min-height: 1px;
}

.gallery[data-layout="masonry"] {
  columns: var(--cols);
  column-gap: var(--gap);
}

.gallery[data-layout="grid"] {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap);
}

.gallery[data-layout="stack"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--gap) * 2.2);
  max-width: 1180px;
  margin: 0 auto;
}

.gallery[data-layout="slideshow"] {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.gallery[data-layout="slideshow"]::-webkit-scrollbar {
  display: none;
}

/* ------------------------------ tiles ----------------------------- */

.tile {
  position: relative;
  margin: 0 0 var(--gap);
  break-inside: avoid;
}

.gallery[data-layout="grid"] .tile,
.gallery[data-layout="stack"] .tile {
  margin: 0;
}

.gallery[data-layout="stack"] .tile {
  width: fit-content;
  max-width: min(100%, 900px);
  margin-inline: auto;
}

.gallery[data-layout="slideshow"] .tile {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
}

.tile__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--wash);
}

.gallery[data-layout="grid"] .tile__frame {
  aspect-ratio: 4 / 5;
}

.gallery[data-layout="stack"] .tile__frame,
.gallery[data-layout="slideshow"] .tile__frame {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.gallery[data-layout="slideshow"] .tile__cap {
  text-align: center;
}

.tile__frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1s var(--ease), opacity 0.6s var(--ease);
}

.gallery[data-layout="grid"] .tile__frame img {
  height: 100%;
  object-fit: cover;
}

.gallery[data-layout="stack"] .tile__frame img {
  width: auto;
  max-width: 100%;
  max-height: 82vh;
}

.gallery[data-layout="slideshow"] .tile__frame img {
  width: auto;
  max-height: 74vh;
  max-width: 100%;
  object-fit: contain;
}

.tile:hover .tile__frame img {
  transform: scale(1.015);
}

.tile__index {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 6px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #fff;
  background: rgba(14, 12, 9, 0.42);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.tile:hover .tile__index,
body.editing .tile__index {
  opacity: 1;
}

.tile__cap {
  margin-top: 9px;
  padding: 0 1px;
  font-family: var(--display);
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0.005em;
}

body.editing .tile__cap {
  min-height: 30px;
}

.gallery[data-captions="false"] .tile__cap {
  display: none;
}

.tile__cap:empty {
  display: none;
}

.tile__cap .cap-input {
  width: 100%;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px dashed var(--line);
  background: transparent;
  font-family: var(--display);
  font-size: 13px;
  font-style: italic;
  color: var(--ink);
}

.tile__cap .cap-input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.tile__cap .cap-input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.tile__tools {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 6px;
}

body.editing .tile__tools {
  display: flex;
}

.tile__del,
.tile__drag {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(14, 12, 9, 0.55);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  backdrop-filter: blur(4px);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tile__drag {
  cursor: grab;
  font-size: 10px;
  letter-spacing: -0.1em;
}

.tile__del:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.tile.is-dragging {
  opacity: 0.35;
}

body.editing .tile__frame {
  outline: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 4px;
}

body.editing .tile {
  cursor: grab;
}

body.ready .tile {
  animation: rise 0.65s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

/* --------------------------- slideshow ui ------------------------- */

.slideshow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  margin-top: 20px;
}

.slideshow__dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.slideshow__dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.slideshow__dots button.is-active {
  width: 20px;
  background: var(--accent);
}

.slideshow__nav {
  display: flex;
  gap: 8px;
}

/* ------------------------------ empty ----------------------------- */

.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(44px, 7vw, 88px) 20px;
  border: 1px dashed var(--line);
  text-align: center;
  animation: rise 0.7s var(--ease) both;
}

.empty__line {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(21px, 2.6vw, 30px);
  font-style: italic;
  font-weight: 340;
}

.empty__hint {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.link-btn {
  margin-top: 14px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.link-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ------------------------------ footer ---------------------------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(64px, 10vh, 120px);
  padding: 20px 0 40px;
  border-top: 1px solid var(--line);
}

.foot__note {
  font-family: var(--display);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

/* ------------------------------ editor ---------------------------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(10, 9, 6, 0.28);
  backdrop-filter: blur(3px);
}

.editor {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(400px, 94vw);
  height: 100dvh;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -40px 0 90px rgba(10, 9, 6, 0.14);
  transform: translateX(102%);
  transition: transform 0.55s var(--ease), background-color 0.5s var(--ease);
  visibility: hidden;
}

body.editing .editor {
  transform: none;
  visibility: visible;
}

.editor__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.editor__head h2 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.editor__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 22px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.field {
  padding: 15px 0 2px;
  border-bottom: 1px solid var(--line);
}

.field:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}

.field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.field__head h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.drop {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 100%;
  padding: 26px 16px;
  border: 1px dashed var(--line);
  background: transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.drop:hover,
.drop.is-over {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.drop__icon {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  color: var(--accent);
}

.drop__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hint {
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.progress {
  height: 2px;
  margin-top: 12px;
  background: var(--line);
  overflow: hidden;
}

.progress__bar {
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.status {
  min-height: 14px;
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.status.is-error {
  color: var(--accent);
}

.input {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.input input,
.input textarea {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.45;
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}

.input input::placeholder,
.input textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.input input:focus,
.input textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--line);
}

.segmented button {
  padding: 10px 2px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.range {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.range output {
  color: var(--ink);
  letter-spacing: 0.06em;
}

.range input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch__track {
  position: relative;
  width: 34px;
  height: 18px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.switch input:checked + .switch__track {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.switch input:checked + .switch__track::after {
  transform: translateX(16px);
  background: var(--accent);
}

.editor__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}

.editor__foot .micro.is-saving {
  color: var(--accent);
}

.primary-btn {
  padding: 10px 20px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.2s var(--ease);
}

.primary-btn:hover {
  background: var(--accent);
}

.ghost-btn {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.ghost-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ----------------------------- lightbox --------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 8px;
  padding: 5vh 2vw;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(22px) saturate(120%);
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  min-width: 0;
}

.lightbox__figure img {
  max-height: 76vh;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(10, 9, 6, 0.22);
}

.lightbox__figure figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.lightbox__caption {
  font-family: var(--display);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

.lb-nav {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lb-nav:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.lb-nav--prev {
  justify-self: start;
}

.lb-nav--next {
  justify-self: end;
}

/* ------------------------------ modal ----------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 9, 6, 0.5);
  backdrop-filter: blur(6px);
}

.modal__box {
  display: grid;
  gap: 10px;
  width: min(380px, 100%);
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(10, 9, 6, 0.28);
}

.modal__box h2 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
}

.auth-input {
  width: 100%;
  margin-top: 6px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent);
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* ------------------------------ toast ----------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  max-width: min(520px, 90vw);
  padding: 11px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  transform: translate(-50%, 16px);
  opacity: 0;
  animation: toast-in 0.35s var(--ease) forwards;
}

.toast.is-error {
  background: var(--accent);
  color: #fff;
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

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

.noscript {
  padding: 20px;
  font-family: var(--mono);
}

/* --------------------------- responsive --------------------------- */

@media (max-width: 760px) {
  .gallery[data-layout="masonry"],
  .gallery[data-layout="grid"] {
    --cols: 2;
  }

  .lightbox {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    padding: 8vh 2vw 4vh;
  }

  .lb-nav {
    width: 38px;
    height: 38px;
  }

  .masthead__meta .micro:last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  .editor {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 86dvh;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    transform: translateY(103%);
  }

  .intro {
    padding-top: 48px;
  }

  .foot {
    margin-top: 64px;
  }

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

@media (max-width: 420px) {
  .gallery[data-layout="masonry"],
  .gallery[data-layout="grid"] {
    --cols: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
