/* Taken by Jaiden: minimal white gallery */
:root {
  --text: #222;
  --nav: #555;
  --quiet: #a5a5a5;
  --line: #d6d6d6;
  --font: "Montserrat", system-ui, sans-serif;
  --head: 76px;
  --gap: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.skip { position: fixed; left: 24px; top: -100px; z-index: 20; padding: 8px 12px; background: var(--text); color: #fff; }
.skip:focus { top: 12px; }

/* header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 10; height: var(--head);
  display: flex; align-items: center; gap: 36px; padding: 0 24px; background: #fff;
}
.mark { font-size: 26px; font-weight: 700; letter-spacing: 3px; white-space: nowrap; }
.top nav { display: flex; gap: 30px; color: var(--nav); white-space: nowrap; }
.top nav a { transition: color .2s; }
.top nav a:hover { color: #000; }
.top nav a[aria-current] { color: var(--quiet); }
.ig { margin-left: auto; color: var(--quiet); transition: color .2s; }
.ig:hover { color: var(--text); }
.ig svg { display: block; width: 16px; height: 16px; }

/* horizontal gallery: vertical wheel scrolls sideways (gallery.js) */
.gallery { overflow-y: hidden; }
html:has(.gallery) { scrollbar-width: none; }
html:has(.gallery)::-webkit-scrollbar { display: none; }
.strip {
  display: flex; gap: var(--gap); width: max-content;
  height: 100vh; height: 100dvh; padding: var(--head) 24px var(--gap) 0;
}
/* rapid clicks to slide must not select or drag the photos */
.strip { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.strip img { -webkit-user-drag: none; }
.shot { flex: none; display: flex; height: 100%; margin: 0; }
.shot img {
  height: calc(var(--h) * 100%); width: auto; align-self: var(--a);
  opacity: 0; transition: opacity .6s ease;
}
.shot img.ld { opacity: 1; }

/* text pages */
.page { max-width: 980px; margin: 0 auto; padding: calc(var(--head) + 56px) 24px 80px; }
.page h1 { margin: 0 0 48px; font-size: 32px; font-weight: 400; text-align: center; }
.page h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.page p { margin: 0 0 1.1em; }
.about { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
.about h1 { text-align: left; margin-bottom: 24px; }
.about .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 32px; }
.page a.link { border-bottom: 1px solid var(--line); transition: border-color .2s; }
.page a.link:hover { border-color: var(--text); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 700px; margin: 0 auto; }
.contact .info > div { margin-bottom: 24px; }
.form { display: grid; }
.form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form input, .form textarea, .form select {
  width: 100%; margin-top: -1px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0;
  background: #fff; color: var(--text); font: inherit; font-size: 14px;
}
.form select { appearance: none; color: var(--nav); background: #fff linear-gradient(45deg, transparent 50%, var(--quiet) 50%) right 14px center / 6px 6px no-repeat; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { position: relative; z-index: 1; outline: none; border-color: var(--text); }
.form button {
  justify-self: start; margin-top: 12px; padding: 11px 22px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 14px; color: var(--text); cursor: pointer; transition: border-color .2s;
}
.form button:hover { border-color: var(--text); }
.sent { display: none; margin: 16px 0 0; font-size: 14px; }
.sent.show { display: block; }

/* phones: stack the gallery vertically */
@media (max-width: 700px) {
  .top { position: static; height: auto; flex-wrap: wrap; gap: 6px 20px; padding: 18px 16px; }
  .mark { font-size: 21px; letter-spacing: 2px; }
  /* scales with screen width so all five links stay on one line, down to 320px phones */
  .top nav { flex-wrap: wrap; gap: 4px clamp(9px, 3.2vw, 14px); font-size: clamp(11.5px, 3.6vw, 13px); order: 3; width: 100%; }
  /* phones: the strip becomes a horizontal swipe that snaps each photo to the center */
  .gallery { overflow: hidden; }
  .strip {
    width: auto; height: calc(100svh - var(--mh, 96px)); padding: 0 24px 24px; align-items: center;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip { touch-action: pan-x pinch-zoom; } /* no double-tap zoom while swiping fast */
  .shot { height: auto; scroll-snap-align: center; }
  .shot img { align-self: center; height: auto; width: min(calc(100vw - 56px), calc(64svh * var(--r))); }
  .page { padding: 32px 16px 64px; }
  .about, .contact { grid-template-columns: 1fr; gap: 32px; }
}

/* touch screens (phones and iPads): form text under 16px makes iOS zoom in on tap */
@media (pointer: coarse) {
  .form input, .form textarea, .form select { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .shot img { transition: none; }
}
