@font-face {
  font-family: "Selah Storybook";
  src: url("/brand/fonts/IMFellEnglish-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/selah-v37/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #e8eee7;
  --panel: #fbfcf7;
  --raised: #f0f5ed;
  --line: #c6d2c2;
  --soft-line: #dbe4d6;
  --text: #243b2e;
  --muted: #576b5c;
  --gold: #7e5d24;
  --sage: #356646;
  --red: #a43c32;
  --serif: "Selah Storybook", Georgia, serif;
  --gutter: clamp(1.1rem, 4.4vw, 4.5rem);
  --gallery-ease: cubic-bezier(.22, 1, .36, 1);
  font: 16px/1.5 Manrope, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: radial-gradient(ellipse at 5% 6%, #fffbed 0, transparent 45rem),
    radial-gradient(ellipse at 100% 34%, #cce4d17a, transparent 45rem), var(--bg);
}
body:has(.lightbox[open]) { overflow: hidden; }
main { flex: 1 0 auto; }
a { color: inherit; }
button, input { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: #ae95592b; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #436b45; outline-offset: 4px; }
.selah-masthead :focus-visible, .selah-masthead-server :focus-visible { outline-color: #f0cb82; }
.measure { width: min(72.5rem, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.icon-library { position: absolute; pointer-events: none; }
.icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: fixed;
  inset: .6rem auto auto .6rem;
  z-index: 6;
  transform: translateY(-180%);
  background: var(--panel);
  padding: .6rem 1rem;
  border-radius: .5rem;
}
.skip:focus { transform: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  min-height: 2.75rem;
  padding: .55rem .9rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, transform .18s var(--gallery-ease);
}
.button:hover, .icon-button:hover { background: #e7eadc; border-color: #94a38c; }
.button:active, .icon-button:active { transform: scale(.97); }
.button.primary { background: #2d513b; color: #fff7e5; border-color: #2d513b; box-shadow: inset 0 1px #ffffff16; }
.button.primary:hover { background: #3b6449; border-color: #3b6449; }
.button:disabled, .icon-button:disabled { opacity: .52; }
.icon-button { width: 2.75rem; padding: .55rem; }
.icon-button:disabled { background: transparent; border-color: transparent; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

/* Keep the collection controls close to the photos; no empty sidebar. */
.gallery { padding-block: clamp(1.5rem, 3.2vw, 2.7rem) .75rem; }
.gallery:focus { outline: none; }
.community-stream {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14.5rem;
  grid-template-areas: "title title" "nav nav" "stream recent";
  align-items: start;
  gap: 1.5rem 1.75rem;
}
.community-stream:has(.recent-photos[hidden]) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "nav" "stream";
}
.gallery-title { grid-area: title; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gallery-heading { min-width: 0; }
.gallery-eyebrow { display: flex; align-items: center; gap: .55rem; margin: 0 0 .6rem; color: #53705a; font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gallery-eyebrow .icon { width: .95rem; height: .95rem; color: #8b7342; }
.gallery-title h1 {
  margin: 0;
  color: var(--text);
  font: 400 clamp(2.3rem, 4.5vw, 3.6rem)/1.03 var(--serif);
  letter-spacing: -.035em;
}
.gallery-intro { margin: .65rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.gallery-tools { display: flex; flex: none; align-items: center; gap: .9rem; }
.gallery-count { margin: 0; padding: .35rem .65rem; border: 1px solid #cad8c4; border-radius: 999px; background: #f9fcf47a; color: var(--muted); font-size: .875rem; font-weight: 650; white-space: nowrap; }
.layout-switch { display: flex; gap: .15rem; padding: .2rem; border: 1px solid #c4d2bd; border-radius: .75rem; background: #dce6d8; }
.layout-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: #4f634f;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 750;
  transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.layout-switch button:hover { color: #263d2b; background: #edf2e8; }
.layout-switch button[aria-pressed="true"] { color: #2b4934; background: #fffffa; box-shadow: 0 1px 5px #33402b16; }
.layout-switch .icon { width: 1rem; height: 1rem; }
.gallery-nav { grid-area: nav; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem; border: 1px solid #c4d1bf; border-radius: 1rem; background: linear-gradient(120deg, #ffffffa6, #f4f8ee8c); box-shadow: inset 0 1px #ffffffbd, 0 3px 16px #2e483607; }
.views { display: flex; gap: .2rem; min-width: 0; padding: .1rem; border: 0; border-radius: .8rem; background: transparent; }
.views a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .5rem 1.05rem;
  border-radius: .55rem;
  color: #52664f;
  font-size: .9rem;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.views a:hover { background: #e8edde; color: #294632; }
.views a[aria-current] { color: #fff6e1; background: #2e503b; box-shadow: inset 0 1px #ffffff14; }
.views a[aria-current] .icon { color: #e7cd91; }
.camera-help { position: relative; flex: none; }
.camera-help summary { list-style: none; color: #4e5c3f; background: #f5edda; border-color: #cec29d; }
.camera-help summary::-webkit-details-marker { display: none; }
.camera-help summary:hover { background: #eee2c7; border-color: #b6a474; }
.camera-help .help-chevron { width: .85rem; height: .85rem; color: #76673d; transition: transform .18s ease; }
.camera-help[open] .help-chevron { transform: rotate(180deg); }
.camera-instructions {
  position: absolute;
  z-index: 4;
  top: calc(100% + .6rem);
  right: 0;
  width: min(22rem, calc(100vw - 2 * var(--gutter)));
  padding: 1.2rem 1.3rem;
  border: 1px solid #c5cbb7;
  border-radius: .9rem;
  background: #fcfdf7;
  box-shadow: 0 1rem 2.5rem #24362424;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}
.camera-instructions h2 { margin: 0 0 .8rem; color: var(--text); font: 400 1.55rem/1.15 var(--serif); }
.camera-instructions ol { display: grid; gap: .75rem; margin: 0; padding-left: 1.2rem; }
.camera-instructions li::marker { color: var(--gold); font-weight: 750; }
.camera-instructions strong { color: var(--text); }
kbd { padding: .1em .35em; border: 1px solid #bfc5b4; border-bottom-width: 2px; border-radius: .25rem; background: #eff4e8; color: #294532; }
.gallery-column { grid-area: stream; min-width: 0; }
.gallery-summary { margin: 0 0 1rem; padding: .7rem .9rem; border: 1px solid #c6d1b9; border-radius: .65rem; background: #e3ebd8; color: #3b593c; font-size: .875rem; }
.status { margin: .7rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.status:empty { display: none; }
.status[data-error="true"] { color: var(--red); }
.gallery-status:not(:empty) { margin: 0 0 1rem; }
.gallery-column:has(.photo-grid[aria-busy="true"]) > .gallery-status {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.gallery-column:has(.photo-grid[aria-busy="true"]) > .gallery-status::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 2px solid #c4ccb6;
  border-top-color: #426144;
  border-radius: 50%;
  flex: none;
}
.gallery-loading { display: none; max-width: 48rem; margin-inline: auto; padding: 1.1rem; border: 1px solid #cbd7c6; border-radius: 1.1rem; background: #f6f9f1; }
.gallery-column:has(.photo-grid:empty[aria-busy="true"]) .gallery-loading { display: grid; gap: 1rem; }
.loading-identity { display: flex; align-items: center; gap: .75rem; }
.loading-identity > :first-child { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #dce7d6; }
.loading-identity > :last-child { width: 7rem; height: .65rem; border-radius: .5rem; background: #dce7d6; }
.loading-photo { display: block; height: clamp(8rem, 22vw, 15rem); border-radius: .5rem; background: linear-gradient(135deg, #e1eadb, #d6e3cd); }
.loading-caption { width: 48%; height: .65rem; border-radius: .5rem; background: #dce7d6; }

/* Media keeps its own color and aspect ratio; the frame stays quiet. */
.photo-grid { list-style: none; display: grid; margin: 0; padding: 0; gap: 1.25rem; }
.photo-grid > li { min-width: 0; align-self: start; }
.photo-grid[data-layout="feed"] { grid-template-columns: minmax(0, 1fr); max-width: 54rem; margin-inline: auto; }
.photo-post { min-width: 0; height: auto; }
[data-layout="feed"] .photo-post { height: auto; overflow: hidden; border: 1px solid #c7d4c1; border-radius: 1.15rem; background: #fbfcf6; box-shadow: 0 7px 24px #27472d0a, inset 0 1px #fff; }
.post-byline, .post-caption, .post-actions { display: none; }
[data-layout="feed"] .post-byline { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.15rem; }
.post-avatar { position: relative; display: grid; width: 2.6rem; height: 2.6rem; flex: none; place-items: center; overflow: hidden; border: 1px solid #9dab91; border-radius: 50%; background: #395440; color: #fff2d3; font-size: 1rem; font-weight: 800; }
.post-avatar[data-tone="1"] { background: #605932; }
.post-avatar[data-tone="2"] { background: #725448; }
.post-avatar[data-tone="3"] { background: #3b645c; }
.post-avatar[data-tone="4"] { background: #6d526c; }
.post-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-avatar img:not(.loaded) { opacity: 0; }
.post-identity { display: grid; min-width: 0; gap: .08rem; }
.post-author { overflow: hidden; color: #2b4433; font-size: .94rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.post-date { color: #626f5b; font-size: .875rem; }
[data-layout="feed"] .post-caption { display: block; margin: -.1rem 1.15rem .9rem; color: #354b39; font-size: 1rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.photo-card { position: relative; display: block; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: .8rem; background: #1a271f; overflow: hidden; color: #fff7e4; text-align: left; cursor: pointer; }
.photo-card:focus-visible { outline-color: #d4af66; outline-offset: -4px; z-index: 1; }
.photo-cover { position: absolute; display: block; inset: 0; overflow: hidden; background: #263b2a; }
.photo-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--gallery-ease); }
.photo-cover::after { position: absolute; content: ""; inset: 35% 0 0; background: linear-gradient(transparent, #132018dc); pointer-events: none; }
.photo-cover.failed { min-height: 10rem; background: #dce2d0; }
.photo-cover.failed::before { position: absolute; content: "Image unavailable"; inset: 0; display: grid; place-content: center; color: #566a4c; font-size: .9rem; }
.photo-info { position: absolute; inset: auto 0 0; padding: 1rem; }
.photo-title { display: block; overflow-wrap: anywhere; font: 400 clamp(1.2rem, 1.8vw, 1.6rem)/1.15 var(--serif); text-shadow: 0 1px 5px #0008; }
.photo-meta { display: block; margin-top: .3rem; color: #e4e7d5; font-size: .875rem; }
.photo-open { position: absolute; right: .7rem; top: .7rem; display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid #fff7df4d; border-radius: .5rem; background: #14271bb3; opacity: 0; transform: translateY(3px); transition: opacity .2s ease, transform .2s var(--gallery-ease); }
.photo-card:hover .photo-open, .photo-card:focus-visible .photo-open { opacity: 1; transform: none; }
.photo-state { position: absolute; z-index: 1; left: .65rem; top: .65rem; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .6rem; border: 1px solid #e8ddb45c; border-radius: .5rem; background: #273c29ed; color: #fff0cd; font-size: .8rem; font-weight: 750; }
.photo-state .icon { width: .9rem; height: .9rem; }
.photo-state[data-public="true"] { background: #edf3dfed; border-color: #d8e4c6; color: #2c4d31; }
[data-layout="feed"] .photo-card { height: auto; overflow: visible; border-radius: 0; }
[data-layout="feed"] .photo-cover { position: relative; }
[data-layout="feed"] .photo-cover:not(.ready), [data-layout="feed"] .photo-cover.failed { aspect-ratio: 1.72; }
[data-layout="feed"] .photo-cover img { position: static; width: 100%; height: auto; max-height: min(68dvh, 37rem); object-fit: contain; transform: none; }
[data-layout="feed"] .photo-cover::after, [data-layout="feed"] .photo-open, [data-layout="feed"] .photo-info { display: none; }
[data-layout="feed"] .post-actions { display: block; border-top: 1px solid #d8ddce; }
.post-controls { display: flex; align-items: center; gap: .4rem; padding: .45rem .75rem; }
.post-action { min-height: 2.75rem; padding: .45rem .7rem; display: inline-flex; align-items: center; gap: .5rem; border: 0; border-radius: .55rem; background: transparent; color: #4d654c; font-size: .875rem; font-weight: 750; white-space: nowrap; cursor: pointer; transition: background-color .16s ease, color .16s ease, transform .18s var(--gallery-ease); }
.post-action:hover { color: #213f29; background: #e7eddb; }
.post-action:active { transform: scale(.97); }
.post-action .icon { width: 1.1rem; height: 1.1rem; }
.post-action.copied { color: #2b673c; background: #e0ecd3; }
.post-link { min-width: 5.35rem; }
.post-manage { margin-left: auto; color: #795d24; }
.photo-grid[data-layout="wall"] { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1.25rem; }
.photo-grid[data-layout="wall"] .photo-card { height: auto; border: 1px solid #c3d1bd; border-radius: 1rem; background: var(--panel); box-shadow: 0 5px 18px #25452a0c; transition: border-color .2s ease, box-shadow .2s ease, transform .25s var(--gallery-ease); }
[data-layout="wall"] .photo-cover { position: relative; min-height: 0; border-radius: 0; }
[data-layout="wall"] .photo-cover:not(.ready), [data-layout="wall"] .photo-cover.failed { aspect-ratio: 1.6; }
[data-layout="wall"] .photo-cover img { position: static; width: 100%; height: auto; object-fit: contain; transform: none; }
[data-layout="wall"] .photo-cover::after { content: none; }
[data-layout="wall"] .photo-info { position: static; display: block; padding: 1rem 1.05rem 1.1rem; border-top: 1px solid #d9e2d2; color: var(--text); background: linear-gradient(140deg, #fdfdf7, #f3f7ee); }
[data-layout="wall"] .photo-title { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; text-shadow: none; }
[data-layout="wall"] .photo-meta { margin-top: .45rem; color: #586d5b; font-size: .875rem; }
[data-layout="wall"] .photo-card:focus-visible { outline-color: #527c55; outline-offset: 3px; }
.photo-grid[data-layout="wall"] > :only-child { width: min(100%, 24rem); }
.recent-photos { grid-area: recent; min-width: 0; position: sticky; top: 5.5rem; padding: 1rem; border: 1px solid #c7d3c1; border-radius: 1rem; background: linear-gradient(140deg, #fbfcf4dc, #edf4e7c9); box-shadow: inset 0 1px #fff; }
.recent-photos h2 { margin: 0 0 .85rem; color: #3d563d; font-size: .9rem; font-weight: 800; }
.recent-photos ol { list-style: none; display: grid; gap: .6rem; padding: 0; margin: 0; }
.recent-photo { width: 100%; min-width: 0; display: flex; gap: .65rem; align-items: center; padding: .3rem; margin-left: -.3rem; border: 0; border-radius: .6rem; background: transparent; color: var(--text); cursor: pointer; text-align: left; transition: background-color .16s ease; }
.recent-photo:hover { background: #e0e8d4; }
.recent-photo img { width: 3.4rem; height: 3.15rem; flex-shrink: 0; object-fit: cover; border-radius: .45rem; background: #d9e0cc; }
.recent-photo img.failed { opacity: .3; }
.recent-photo-info { display: grid; min-width: 0; gap: .2rem; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.recent-photo-info span, .recent-photo-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-photo-info strong { color: var(--text); font-size: .875rem; }
.gallery-more { display: flex; justify-content: center; padding-top: 1.5rem; }
.gallery-more .button { min-width: 12rem; }
.empty { display: grid; justify-items: center; align-content: center; min-height: 21rem; padding: 2rem 1.25rem; border: 1px solid #c7d4c0; border-radius: 1.1rem; background: radial-gradient(ellipse at 50% 0, #dcecd080, transparent 75%), #f8faf3; text-align: center; box-shadow: inset 0 1px #fff, 0 8px 25px #21452b06; }
.empty-icon { display: grid; place-items: center; width: 3.7rem; height: 3.7rem; margin-bottom: 1.15rem; border: 1px solid #a8bf97; border-radius: 1.15rem; background: linear-gradient(145deg, #f4f8e8, #dbe9cd); color: #527047; box-shadow: inset 0 1px #fff, 0 6px 15px #567a3214; }
.empty-icon .icon { width: 1.55rem; height: 1.55rem; }
.empty h2 { margin: 0; color: #2b4431; font: 400 clamp(1.65rem, 2.7vw, 2.1rem)/1.2 var(--serif); }
.empty > p { max-width: 37rem; margin: .65rem 0 1.25rem; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.empty .actions { justify-content: center; }
.empty .actions .button { min-width: 7.5rem; }
.empty[data-state="account-error"], .empty:has(#empty-actions > button:first-child) { border-color: #d4c7ab; background: #faf5e8; }
.empty[data-state="account-error"] .empty-icon, .empty:has(#empty-actions > button:first-child) .empty-icon { color: #876a35; background: #eee1c4; border-color: #d9c49b; box-shadow: 0 3px 0 #e4d5b5; }

.brand { display: inline-flex; width: fit-content; gap: .5rem; align-items: center; color: var(--text); text-decoration: none; font-size: 1.085rem; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.brand img { display: block; object-fit: contain; }
.footer .brand img { width: 32px; height: 32px; padding: 5px; border-radius: .55rem; background: #2c4938; box-shadow: inset 0 1px #ffffff1a; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; min-height: 5rem; margin-top: 2rem; padding-block: .8rem; border-top: 1px solid #bdc6b1; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.8rem, 2.2vw, 1.8rem); }
.footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-size: .875rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .3rem; }

/* Existing ownership and privacy controls stay inside the real photo dialog. */
.lightbox { width: min(83rem, calc(100% - 3rem)); max-width: none; max-height: calc(100% - 3rem); max-height: calc(100dvh - 3rem); padding: 0; border: 1px solid #a6b497; border-radius: 1.1rem; color: var(--text); background: var(--panel); overflow: auto; overscroll-behavior: contain; box-shadow: 0 1.7rem 6rem #03110980; }
.lightbox::backdrop { background: #0a170fc9; backdrop-filter: blur(5px); }
.lightbox-top { min-height: 3.6rem; display: flex; align-items: center; gap: .65rem; padding: .35rem .8rem; border-bottom: 1px solid var(--soft-line); background: #edf3e8; color: #4d654a; font-size: .9rem; font-weight: 750; }
.close-button { border-color: transparent; background: transparent; }
.close-button .icon { width: 1.2rem; height: 1.2rem; }
.lightbox-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 27%); }
.lightbox-stage { min-width: 0; background: #14241b; }
.lightbox-media { display: grid; place-items: center; height: clamp(20rem, 65vh, 46rem); color: #d3ddc7; background: #14241b; }
.lightbox-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-media p { padding: 1rem; text-align: center; }
.viewer-nav { display: flex; justify-content: center; align-items: center; gap: .75rem; min-height: 3.6rem; border-top: 1px solid #3c4e3c; }
.viewer-nav .icon-button { background: transparent; border-color: transparent; color: #e0e9d1; }
.viewer-nav .icon-button:not(:disabled):hover { background: #304634; }
.viewer-nav :focus-visible { outline-color: #e7cd91; }
.viewer-position { min-width: 5ch; color: #c1d1b8; text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; }
.lightbox-details { min-width: 0; padding: 1.45rem; border-left: 1px solid var(--soft-line); }
.detail-heading h2 { margin: 0 0 .55rem; overflow-wrap: anywhere; font: 400 clamp(1.6rem, 2.5vw, 2.25rem)/1.12 var(--serif); letter-spacing: -.025em; }
.photo-detail-meta, .detail-visibility { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.detail-visibility { display: inline-block; margin-top: .8rem; padding: .3rem .6rem; border: 1px solid #d2c5a1; border-radius: .45rem; color: #715923; background: #f0e6cf; font-weight: 750; }
.detail-visibility[data-public="true"] { border-color: #c4d2b5; background: #e5ecd8; color: #43603d; }
#owner-tools { margin-top: 1.35rem; }
#owner-retry { margin-top: .65rem; }
#caption-form label { display: block; margin-bottom: .45rem; color: #385139; font-size: .9rem; font-weight: 750; }
.caption-fields { display: flex; gap: .5rem; }
.caption-fields input, .copy-fallback { width: 100%; min-width: 0; min-height: 2.75rem; padding: .55rem .7rem; border: 1px solid #b9c5ac; border-radius: .6rem; background: #fffef9; color: #243d2a; font-size: 1rem; }
.caption-fields input::placeholder { color: #78816e; }
.copy-fallback { margin-top: .75rem; }
.lightbox-actions { margin-top: 1.25rem; gap: .6rem; }
.delete-button { color: var(--red); }
.delete-button:hover { background: #f3e4da; border-color: #c8a795; }
.confirm-delete { margin-top: 1rem; padding: .9rem; border: 1px solid #d5b6a4; border-radius: .7rem; background: #f5e8dd; }
.confirm-delete p { margin: 0 0 .65rem; color: #933d30; font-size: .9rem; }
.button.danger { background: #a54234; border-color: #a54234; color: #fff6ed; }
.button.danger:hover { background: #8c362c; border-color: #8c362c; }

@media (hover: hover) and (pointer: fine) {
  [data-layout="wall"] .photo-card:hover { transform: translateY(-3px); border-color: #8fac83; box-shadow: 0 12px 27px #25452a16; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes gallery-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
  @keyframes gallery-spin { to { transform: rotate(360deg); } }
  .camera-help[open] .camera-instructions, .lightbox[open] { animation: gallery-arrive .22s var(--gallery-ease) both; }
  .gallery-column:has(.photo-grid[aria-busy="true"]) > .gallery-status::before { animation: gallery-spin .85s linear infinite; }
  .empty { animation: gallery-arrive .24s var(--gallery-ease) both; }
}
@media (max-width: 64rem) {
  .community-stream { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "nav" "stream"; }
  .recent-photos { display: none; }
  .photo-grid[data-layout="feed"] { max-width: 48rem; }
}
@media (max-width: 46rem) {
  .gallery { padding-top: 1.4rem; }
  .community-stream { row-gap: 1.15rem; }
  .gallery-title { align-items: flex-start; gap: .6rem; }
  .gallery-title h1 { font-size: clamp(1.9rem, 6.3vw, 2.5rem); }
  .gallery-intro { max-width: 21rem; margin-top: .4rem; font-size: .875rem; }
  .gallery-tools { gap: .5rem; }
  .gallery-count { display: none; }
  .layout-switch button { min-width: 2.75rem; padding-inline: .6rem; }
  .layout-switch button span { display: none; }
  .gallery-nav { gap: .6rem; padding: .35rem; }
  .views a { padding-inline: .75rem; font-size: .875rem; }
  .camera-help summary { gap: .4rem; padding-inline: .7rem; }
  .camera-help .help-chevron { display: none; }
  .photo-grid[data-layout="wall"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .photo-grid[data-layout="wall"] .photo-info { padding: .8rem; }
  .photo-info { padding: .8rem; }
  .photo-title { font-size: 1.25rem; }
  .photo-meta { font-size: .8rem; }
  .lightbox { width: calc(100% - 1.5rem); max-height: calc(100dvh - 1.5rem); }
  .lightbox-layout { grid-template-columns: minmax(0, 1fr); }
  .lightbox-top { position: sticky; z-index: 2; top: 0; }
  .lightbox-media { height: auto; min-height: 12rem; }
  .lightbox-media img { width: 100%; height: auto; max-height: 58dvh; }
  .lightbox-details { padding: 1.25rem; border-left: 0; border-top: 1px solid var(--soft-line); }
  .empty { min-height: 18rem; }
}
@media (max-width: 30rem) {
  .gallery-title h1 { font-size: clamp(1.85rem, 8.1vw, 2.25rem); }
  .gallery-eyebrow { margin-bottom: .4rem; font-size: .75rem; letter-spacing: .06em; }
  .gallery-intro { max-width: 14rem; }
  .gallery-title:has(.layout-switch:not([hidden])) .gallery-intro { max-width: 13rem; }
  .gallery-tools { padding-top: .2rem; }
  .layout-switch { padding: .12rem; gap: 0; }
  .gallery-nav { align-items: center; gap: .4rem; }
  .views { padding: .18rem; gap: 0; flex: 1 1 auto; }
  .views a { flex: 1 1 auto; padding-inline: .55rem; gap: .4rem; }
  .views .icon { width: 1rem; height: 1rem; }
  .camera-help summary { width: 2.9rem; height: 3.1rem; padding: 0; }
  .camera-help summary span { display: none; }
  .camera-help summary > .icon:first-child { width: 1.2rem; height: 1.2rem; }
  [data-layout="feed"] .post-byline { padding: .9rem; }
  [data-layout="feed"] .post-caption { margin: -.1rem .9rem .8rem; font-size: .94rem; }
  .post-controls { gap: .1rem; padding: .4rem; }
  .post-action { padding-inline: .55rem; gap: .4rem; font-size: .85rem; }
  .photo-state { left: .4rem; top: .4rem; padding: .27rem .45rem; font-size: .75rem; }
  .photo-open { display: none; }
  .photo-info { padding: .65rem; }
  .photo-title { font-size: 1.15rem; }
  .photo-meta { font-size: .75rem; }
  .empty { min-height: 19rem; padding-inline: 1rem; }
  .empty > p { font-size: .9rem; }
  .footer { justify-content: center; margin-top: 1.2rem; text-align: center; }
  .footer > .brand { width: 100%; justify-content: center; }
  .footer nav { gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .button:active, .icon-button:active, .post-action:active, .photo-card:hover, .photo-card:hover .photo-cover img { transform: none; }
}

/* The shared SelahMC masthead remains independent of this photo workspace. */
.selah-masthead, .selah-masthead-server {
  --selah-ivory: #fff4df;
  --selah-muted: #b9c7b9;
  --selah-moss: #a2c695;
  --selah-gold: #f0cb82;
  --selah-sans: Manrope, system-ui, sans-serif;
  --selah-settle: cubic-bezier(.22, 1, .36, 1);
  font-family: var(--selah-sans);
}

.selah-masthead a, .selah-masthead-server a { text-decoration: none; }
.selah-masthead .selah-width {
  --selah-gutter: clamp(32px, 6vw, 88px);
  width: min(1160px, calc(100% - var(--selah-gutter) * 2));
  margin-inline: auto;
}
.selah-masthead .selah-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  color: var(--selah-ivory);
  white-space: nowrap;
}
.selah-masthead .selah-brand-mark { display: grid; flex: none; place-items: center; }
.selah-masthead .selah-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1020px) { .selah-masthead .selah-width { --selah-gutter: 32px; } }
@media (max-width: 768px) { .selah-masthead .selah-width { --selah-gutter: 22px; } }
@media (max-width: 370px) { .selah-masthead .selah-width { --selah-gutter: 17px; } }

.selah-masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #0d1110;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .selah-masthead::after {
      position: absolute;
      z-index: 1;
      inset: auto 0 0;
      height: 1px;
      transform: scaleX(0);
      transform-origin: left center;
      background: #829d82;
      content: "";
      pointer-events: none;
      animation: selah-reading-position linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes selah-reading-position {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
  }
}

.selah-masthead-row {
  position: relative;
  display: grid;
  min-height: 66px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
}

.selah-masthead .selah-brand {
  gap: 8px;
  font: 800 1.17rem/1 var(--selah-sans);
  letter-spacing: -.03em;
}

.selah-masthead .selah-brand-mark {
  width: 38px;
  height: 38px;
  transition: transform .3s var(--selah-settle), filter .3s ease;
}

.selah-masthead .selah-brand:active .selah-brand-mark { transform: scale(.94); }
.selah-masthead .selah-brand-mc { color: #c4d3b6; font-size: 1em; }

.selah-masthead-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 16px);
}

.selah-masthead-nav a,
.selah-masthead .selah-mobile-nav nav a {
  display: flex;
  min-height: 37px;
  align-items: center;
  padding: 0 clamp(9px, .9vw, 13px);
  border-radius: 7px;
  color: #b1bcb3;
  font-size: .88rem;
  font-weight: 675;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}

.selah-masthead-nav a:hover,
.selah-masthead .selah-mobile-nav nav a:hover {
  color: var(--selah-ivory);
  background: #18251e;
}

.selah-masthead-nav a[aria-current="page"],
.selah-masthead .selah-mobile-nav nav a[aria-current="page"] {
  color: #e1ebdc;
  background: #26332c;
}

.selah-masthead-login {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #b6c2b032;
  border-radius: 7px;
  background-color: #b6c2b010;
  color: #e6ede1;
  font-size: .85rem;
  font-weight: 750;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, transform .2s var(--selah-settle);
}

.selah-masthead-login svg { color: #b7d5b6; }
.selah-masthead-login:hover { background-color: #b6c2b024; border-color: #b6c2b05e; }
.selah-masthead-login:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .selah-masthead .selah-brand:hover .selah-brand-mark { filter: drop-shadow(0 0 7px #d2b67547); }
}
@media (prefers-reduced-motion: reduce) {
  .selah-masthead .selah-brand:active .selah-brand-mark,
  .selah-masthead-login:active { transform: none; }
}

.selah-masthead-server {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  border-block: 1px solid #b8c8b319;
  background: #0b100e;
}

.selah-masthead-server a {
  display: flex;
  min-height: 33px;
  align-items: center;
  gap: 9px;
  padding-inline: 11px;
  color: var(--selah-muted);
  font-size: .77rem;
  transition: color .18s ease;
}

.selah-masthead-server svg { color: var(--selah-moss); }
.selah-masthead-server strong { color: #d9e0d2; font-weight: 700; }
.selah-masthead-server span { border-left: 1px solid #b8c8b33a; padding-left: 9px; }
.selah-masthead-server a:hover,
.selah-masthead-server a:hover strong { color: var(--selah-gold); }
.selah-masthead .selah-mobile-nav { display: none; }

@media (max-width: 1150px) {
  .selah-masthead-row { min-height: 64px; grid-template-columns: 1fr auto auto; gap: 10px; }
  .selah-masthead-nav { display: none; }
  .selah-masthead .selah-mobile-nav { display: block; justify-self: end; }
  .selah-masthead .selah-mobile-nav summary {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid #aac39935;
    border-radius: 7px;
    background: #152019;
    color: var(--selah-ivory);
    cursor: pointer;
    list-style: none;
  }
  .selah-masthead .selah-mobile-nav summary::-webkit-details-marker { display: none; }
  .selah-masthead .selah-mobile-nav:not([open]) summary svg:last-child,
  .selah-masthead .selah-mobile-nav[open] summary svg:first-child { display: none; }
  .selah-masthead .selah-mobile-nav nav {
    position: absolute;
    z-index: 2;
    top: calc(100% + 5px);
    right: 0;
    display: grid;
    width: min(255px, 100%);
    gap: 3px;
    padding: 8px;
    border: 1px solid #adbb935e;
    border-radius: 12px;
    background: #152017;
    box-shadow: 0 18px 35px #000a;
  }
  .selah-masthead .selah-mobile-nav nav a { min-height: 44px; }
}

@media (max-width: 420px) {
  .selah-masthead .selah-brand { gap: 8px; font-size: 1.15rem; }
  .selah-masthead .selah-brand-mark { width: 36px; height: 36px; }
  .selah-masthead-login { min-height: 44px; padding-inline: 12px; }
  .selah-masthead-server { min-height: 33px; }
  .selah-masthead-server a { min-height: 31px; }
}

@media (max-width: 360px) {
  .selah-masthead-server a { gap: 6px; padding-inline: 8px; }
  .selah-masthead-server span { padding-left: 6px; }
}

.selah-masthead .selah-masthead-account { min-width: 0; max-width: 10rem; }
.selah-masthead-account > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gallery-account-initial {
  display: grid;
  position: relative;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid #6b8263;
  border-radius: 50%;
  overflow: hidden;
  background: #394a36;
  color: #f5e7c4;
  font-weight: 800;
  font-size: .7rem;
}
.gallery-account-initial img,
.gallery-account-preset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-account-preset { shape-rendering: crispEdges; }
@media (max-width: 24rem) {
  .selah-masthead .selah-masthead-account { max-width: 7.2rem; }
}
