@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: dark;
  --bg: #0b100d;
  --panel: #181e18;
  --raised: #232b23;
  --line: #303931;
  --soft-line: #252e26;
  --text: #faf0da;
  --muted: #b2beaf;
  --gold: #eed5a2;
  --sage: #bdd1b6;
  --red: #f4b8aa;
  --serif: "Selah Storybook", Georgia, serif;
  --gutter: clamp(1.1rem, 4.4vw, 4.5rem);
  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: 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: #eed5a22b; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.measure { width: min(78rem, 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;
}
.skip:focus { transform: none; }

.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 nav { display: flex; align-items: center; }
.footer nav a {
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.footer nav a:hover { color: var(--text); }

.button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  min-height: 2.75rem;
  padding: .49rem .8rem;
  border: 1px solid #424e41;
  border-radius: 6px;
  background: #202820;
  color: var(--text);
  cursor: pointer;
  font-size: .81rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}
.button:hover, .icon-button:hover { background: #303c30; border-color: #61705c; }
.button.primary { background: var(--gold); color: #211c12; border-color: var(--gold); }
.button.primary:hover { background: #f6e4bd; border-color: #f6e4bd; }
.button:disabled { opacity: .55; }
.icon-button { width: 2.75rem; padding: .55rem; }
.icon-button:disabled { background: transparent; border-color: transparent; color: #7d8b7d; }
.gallery { padding-block: 1.9rem .5rem; }
.gallery:focus { outline: none; }
.gallery-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1.5rem;
  padding-bottom: .85rem;
}
.gallery-title h1 {
  margin: 0;
  color: var(--text);
  font: 400 clamp(2.55rem, 4.7vw, 4rem)/1.08 var(--serif);
  letter-spacing: -.039em;
}
.camera-help { position: relative; flex-shrink: 0; }
.camera-help summary { list-style: none; color: var(--gold); background: #202920; }
.camera-help summary::-webkit-details-marker { display: none; }
.camera-help summary:hover { background: #303c30; }
.camera-help .help-chevron { width: .85rem; height: .85rem; color: var(--muted); }
.camera-help[open] .help-chevron { transform: rotate(180deg); }
.camera-instructions {
  position: absolute;
  z-index: 3;
  top: calc(100% + .6rem);
  right: 0;
  width: min(22rem, calc(100vw - 2 * var(--gutter)));
  padding: 1rem 1.15rem 1.1rem;
  border: 1px solid #4b5849;
  border-radius: .65rem;
  background: #1c261d;
  box-shadow: 0 .7rem 2rem #070b08b3;
  font-size: .86rem;
  color: var(--muted);
}
.camera-instructions h2 { margin: 0 0 .6rem; color: var(--text); font: 400 1.4rem/1.12 var(--serif); }
.camera-instructions ol { display: grid; gap: .45rem; margin: 0; padding-left: 1.2rem; }
.camera-instructions li::marker { color: var(--gold); }
.camera-instructions strong { color: var(--text); }
kbd { padding: .1em .35em; border: 1px solid #4d5b49; border-radius: 3px; color: var(--text); }

.views { display: flex; gap: clamp(.85rem, 2.5vw, 1.9rem); min-width: 0; }
.views a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.85rem;
  padding: .15rem .12rem .35rem;
  text-decoration: none;
  white-space: nowrap;
  color: var(--muted);
  font-size: .89rem;
  font-weight: 750;
}
.views a[aria-current="page"] { color: var(--gold); }
.views a:not([aria-current]):hover { color: var(--text); }
.views [aria-current]::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  content: "";
  background: var(--gold);
}
.gallery-count {
  margin: -.12rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.gallery-summary { margin: .85rem 0 -.25rem; color: var(--muted); font-size: .82rem; }
.status { margin: .75rem 0 0; color: var(--sage); font-size: .82rem; }
.status:empty { margin: 0; }
.status[data-error="true"] { color: var(--red); }
.gallery-status { min-width: 0; }
.gallery-more { display: flex; justify-content: center; margin-top: 1.25rem; }
.gallery-more .button { padding-inline: 1.15rem; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(9rem, 16vw, 13.85rem);
  gap: .75rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}
.photo-grid:empty { margin: 0; }
.photo-grid[data-layout="wall"] > :only-child { grid-column: 1 / -1; width: min(100%, 53rem); }
.photo-grid > li { min-width: 0; min-height: 0; }
.photo-card {
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
  appearance: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #202920;
  color: #fff3df;
  cursor: pointer;
  text-align: left;
}
.photo-cover, .photo-cover::after, .photo-cover img, .photo-card::after { position: absolute; inset: 0; }
.photo-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .26s ease-out; }
.photo-cover::after {
  content: "";
  background: linear-gradient(0deg, #0c100dec 1%, #10130ea0 20%, #141a112c 43%, transparent 62%);
}
.photo-card::after {
  pointer-events: none;
  content: "";
  border-radius: inherit;
  border: 1px solid #fff0d426;
}
.photo-card:hover::after { border-color: #f7dfaaa6; }
.photo-card:hover img { transform: scale(1.028); }
.photo-cover.failed {
  background: radial-gradient(ellipse at center, #3c493b, #273127 63%);
}
.photo-open {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  right: .65rem;
  top: .65rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid #fff0d465;
  border-radius: 5px;
  color: var(--text);
  background: #151b15c9;
  opacity: 0;
  transition: opacity .15s ease;
}
.photo-card:hover .photo-open, .photo-card:focus-visible .photo-open { opacity: 1; }
.photo-info {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: 1rem .95rem .83rem;
  text-shadow: 0 1px 6px #0d100bd9;
}
.photo-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
  font: 400 clamp(1.12rem, 2vw, 1.55rem)/1.08 var(--serif);
}
.photo-meta {
  display: block;
  overflow: hidden;
  margin-top: .2rem;
  color: #f1ebd9;
  font-size: .73rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-state {
  position: absolute;
  z-index: 1;
  top: .65rem;
  left: .65rem;
  min-height: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: .24rem;
  padding: .22rem .43rem;
  border: 1px solid #e5e6ce4d;
  border-radius: 4px;
  background: #131a14e8;
  color: var(--gold);
  font-size: .65rem;
  font-weight: 750;
  line-height: 1.1;
}
.photo-state[data-public="true"] { color: #d8ecd2; }
.photo-state .icon { width: .77rem; height: .77rem; }

.empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .55rem;
  min-height: clamp(18rem, 37vw, 27rem);
  padding: 2rem 0;
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: .45rem;
  border: 1px solid #52604b;
  border-radius: 9px;
  background: #273427;
  color: var(--gold);
}
.empty-icon .icon { width: 1.35rem; height: 1.35rem; }
.empty h2 { margin: 0; color: var(--text); font: 400 clamp(1.55rem, 3vw, 2.2rem)/1.1 var(--serif); }
.empty p { max-width: 28rem; margin: 0; color: var(--muted); font-size: .91rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.empty .actions { justify-content: center; margin-top: .45rem; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .35rem 1rem;
  min-height: 4.65rem;
  margin-top: 2rem;
  padding-block: .65rem;
  border-top: 1px solid var(--soft-line);
}
.footer .brand { font-size: .9rem; }
.footer nav { gap: clamp(.8rem, 2vw, 1.5rem); }
.footer nav a { font-size: .75rem; }

.lightbox {
  width: min(80rem, calc(100% - 3.5rem));
  max-width: none;
  max-height: calc(100% - 3.5rem);
  padding: 0;
  border: 1px solid #414d41;
  border-radius: 12px;
  color: var(--text);
  background: #151b16;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 1.7rem 6rem #000b;
}
.lightbox::backdrop { background: #0a0e0ae0; backdrop-filter: blur(5px); }
.lightbox-top {
  min-height: 3.55rem;
  display: flex;
  align-items: center;
  gap: .62rem;
  padding: .35rem .75rem;
  border-bottom: 1px solid var(--soft-line);
  color: var(--muted);
  font-weight: 750;
  font-size: .83rem;
}
.close-button { border-color: transparent; background: transparent; color: var(--text); }
.close-button .icon { width: 1.2rem; height: 1.2rem; }
.lightbox-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15.5rem, 25%); }
.lightbox-stage { min-width: 0; background: #0b0f0c; }
.lightbox-media {
  display: grid;
  place-items: center;
  height: clamp(20rem, 65vh, 46rem);
  color: var(--muted);
  background: #0b0f0c;
}
.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.35rem;
  border-top: 1px solid var(--soft-line);
}
.viewer-nav .icon-button { background: transparent; border-color: transparent; }
.viewer-nav .icon-button:not(:disabled):hover { background: var(--raised); }
.viewer-position { min-width: 5ch; color: var(--muted); text-align: center; font-size: .8rem; font-variant-numeric: tabular-nums; }
.lightbox-details { min-width: 0; padding: 1.3rem; border-left: 1px solid var(--soft-line); }
.detail-heading h2 {
  margin: 0 0 .35rem;
  overflow-wrap: anywhere;
  font: 400 clamp(1.55rem, 2.75vw, 2.3rem)/1.08 var(--serif);
  letter-spacing: -.025em;
}
.photo-detail-meta, .detail-visibility { margin: 0; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.detail-visibility { margin-top: .45rem; color: var(--gold); }
.detail-visibility[data-public="true"] { color: var(--sage); }
#owner-tools { margin-top: 1.2rem; }
#owner-retry { margin-top: .5rem; }
#caption-form label { display: block; margin-bottom: .3rem; font-size: .82rem; font-weight: 750; }
.caption-fields { display: flex; gap: .4rem; }
.caption-fields input, .copy-fallback {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .5rem .55rem;
  border: 1px solid #424e41;
  border-radius: 5px;
  background: #0f1510;
  color: var(--text);
  font-size: 1rem;
}
.copy-fallback { margin-top: .6rem; }
.lightbox-actions { margin-top: 1rem; }
.delete-button { color: var(--red); }
.confirm-delete { margin-top: .75rem; padding: .7rem; border: 1px solid #73554c; border-radius: 6px; background: #2a211d; }
.confirm-delete p { margin: 0 0 .5rem; color: var(--red); font-size: .82rem; }
.button.danger { border-color: #a16f65; background: #693e34; color: #fff3ee; }
.button.danger:hover { background: #794b40; }

@media (max-width: 57rem) {
  .lightbox { width: calc(100% - 2rem); max-height: calc(100% - 2rem); }
  .lightbox-details { padding: 1rem; }
}

@media (max-width: 42rem) {
  .gallery { padding-top: 1.2rem; }
  .gallery-title { padding-bottom: .52rem; align-items: center; gap: .34rem; }
  .gallery-title h1 { font-size: clamp(1.75rem, 7.6vw, 2.75rem); letter-spacing: -.047em; }
  .camera-help summary { padding-inline: .47rem; gap: .28rem; font-size: .7rem; }
  .camera-help summary .icon { width: .95rem; height: .95rem; }
  .camera-help .help-chevron { display: none; }
  .gallery-count { font-size: .71rem; }
  .views { gap: 1.05rem; }
  .views a { font-size: .81rem; gap: .38rem; }
  .views .icon { width: .99rem; height: .99rem; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(8.4rem, 39vw, 12.5rem); margin-top: .7rem; gap: .5rem; }
  .photo-grid[data-layout="wall"] > :only-child { height: auto; aspect-ratio: 1.68; }
  .photo-grid[data-layout="wall"]:has(> :only-child) { grid-template-rows: auto; }
  .photo-card { border-radius: 6px; }
  .photo-info { padding: .68rem .58rem .53rem; }
  .photo-meta { margin-top: .16rem; font-size: .67rem; }
  .photo-state { left: .4rem; top: .4rem; }
  .empty h2 { font-size: 1.7rem; }
  .footer { margin-top: 1.45rem; }
  .lightbox {
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .lightbox-top {
    position: sticky;
    z-index: 2;
    top: 0;
    min-height: 3.3rem;
    padding: .25rem .6rem;
    background: #151b16;
  }
  .lightbox-layout { grid-template-columns: minmax(0, 1fr); }
  .lightbox-media { height: auto; min-height: 12rem; }
  .lightbox-media img { width: 100%; height: auto; max-height: 59dvh; min-height: 0; }
  .lightbox-details { padding: 1.15rem var(--gutter) 1.7rem; border-left: 0; border-top: 1px solid var(--soft-line); }
  .detail-heading h2 { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Photo stream */
[data-selah-community-gallery] { width: min(73rem, calc(100% - var(--gutter) * 2)); }
.gallery { padding-block: clamp(1.2rem, 2.5vw, 2.35rem) .5rem; }
.community-stream {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 43rem) minmax(10rem, 1fr);
  grid-template-areas: ". title ." "nav stream recent";
  align-items: start;
  column-gap: clamp(1.3rem, 2.2vw, 2.25rem);
  row-gap: .9rem;
}
.gallery-title { grid-area: title; align-items: center; padding-bottom: 0; }
.gallery-title h1 { font-size: clamp(2rem, 3.4vw, 3.35rem); }
.gallery-column { grid-area: stream; min-width: 0; }
.gallery-nav { grid-area: nav; }
.gallery-nav .views {
  display: grid;
  gap: .24rem;
  padding-bottom: .82rem;
  margin-bottom: .6rem;
  border-bottom: 1px solid #25342b;
}
.gallery-nav .views a, .gallery-nav .camera-help summary {
  width: 100%;
  min-height: 2.85rem;
  gap: .64rem;
  padding: .45rem .72rem;
  border-radius: .48rem;
  border: 0;
  background: transparent;
  color: #aebeb1;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
}
.gallery-nav .views a[aria-current] { color: #f4e7c8; background: #26362d; }
.gallery-nav .views a:hover, .gallery-nav .camera-help summary:hover { color: #fff0d1; background: #202d24; }
.gallery-nav .views [aria-current]::after { display: none; }
.gallery-nav .views a[aria-current] .icon { color: var(--gold); }
.gallery-nav .camera-help summary { justify-content: flex-start; }
.gallery-nav .help-chevron { margin-left: auto; }
.gallery-nav .camera-instructions { left: 0; right: auto; z-index: 4; }
.gallery-tools { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.gallery-count { margin: 0; }
.gallery-summary { margin: 0 0 .75rem; }
.gallery-status:not(:empty) { margin: .45rem 0 .85rem; }
.layout-switch {
  display: flex;
  gap: .17rem;
  padding: .18rem;
  border: 1px solid #334138;
  border-radius: .55rem;
  background: #101713;
}
.layout-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .39rem;
  min-height: 2.12rem;
  padding: .25rem .57rem;
  border: 0;
  border-radius: .36rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 750;
}
.layout-switch button:hover, .layout-switch button[aria-pressed="true"] { background: #27372d; color: #f8ecd1; }
.layout-switch .icon { width: .9rem; height: .9rem; }
.gallery-column > .photo-grid { margin-top: 0; }
.photo-post { min-width: 0; height: 100%; }
.post-byline, .post-actions, .post-caption { display: none; }
.photo-grid[data-layout="feed"] {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: 1.15rem;
}
[data-layout="feed"] .photo-post {
  height: auto;
  overflow: hidden;
  border: 1px solid #2b3a30;
  border-radius: .84rem;
  background: #131c16;
  box-shadow: 0 .7rem 1.9rem #0307044a;
}
[data-layout="feed"] .post-byline {
  display: flex;
  align-items: center;
  gap: .62rem;
  padding: .86rem 1rem .82rem;
}
.post-avatar {
  position: relative;
  display: grid;
  width: 2.38rem;
  height: 2.38rem;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid #b7c5a765;
  border-radius: 50%;
  background: #324938;
  color: #f7e8c9;
  font-size: .93rem;
  font-weight: 800;
}
.post-avatar[data-tone="1"] { background: #55523a; }
.post-avatar[data-tone="2"] { background: #514038; }
.post-avatar[data-tone="3"] { background: #31534c; }
.post-avatar[data-tone="4"] { background: #4e4252; }
.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: .03rem; }
.post-author { overflow: hidden; color: #f4ead3; font-size: .91rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.post-date { color: #a6b7a8; font-size: .72rem; }
[data-layout="feed"] .post-caption {
  display: block;
  margin: -.16rem 1rem .78rem;
  overflow-wrap: anywhere;
  color: #dbe2d4;
  font-size: .93rem;
  line-height: 1.55;
  white-space: pre-line;
}
[data-layout="feed"] .photo-card {
  display: block;
  height: auto;
  overflow: visible;
  border-radius: 0;
  background: #090e0b;
}
[data-layout="feed"] .photo-card:focus-visible { z-index: 1; outline-offset: -3px; }
[data-layout="feed"] .photo-cover { position: relative; display: block; }
[data-layout="feed"] .photo-cover:not(.ready), [data-layout="feed"] .photo-cover.failed {
  aspect-ratio: 1.72;
  background: #121a15;
}
[data-layout="feed"] .photo-cover img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-height: min(63dvh, 34rem);
  object-fit: contain;
  transform: none;
}
[data-layout="feed"] .photo-cover::after, [data-layout="feed"] .photo-card::after,
[data-layout="feed"] .photo-open, [data-layout="feed"] .photo-info { display: none; }
[data-layout="feed"] .post-actions { display: block; border-top: 1px solid #28362d; }
.post-controls { display: flex; align-items: center; gap: .38rem; padding: .38rem .67rem; }
.post-action {
  min-height: 2.75rem;
  padding: .41rem .63rem;
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: #c5d3c5;
  font-size: .82rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}
.post-action .icon { width: 1.06rem; height: 1.06rem; }
.post-action:hover { color: #fff2d3; background: #233328; }
.post-action.copied { color: #d0e8c3; }
.post-link { min-width: 5.35rem; }
.post-manage { margin-left: auto; color: #e7c98d; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.photo-grid[data-layout="wall"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: .64rem;
}
.photo-grid[data-layout="wall"] > li { min-width: 0; }
.photo-grid[data-layout="wall"] .photo-card { height: auto; aspect-ratio: 1.15; }
.photo-grid[data-layout="wall"] > :only-child { width: min(100%, 22rem); }
[data-collection="mine"] .photo-info { padding-inline: .74rem; }
[data-collection="mine"] .photo-title { font-size: 1.15rem; }
.recent-photos { grid-area: recent; min-width: 0; }
.recent-photos h2 { margin: 0 0 .65rem .18rem; font-size: .82rem; font-weight: 780; color: #c4d3c6; }
.recent-photos ol { list-style: none; display: grid; gap: .28rem; padding: 0; margin: 0; }
.recent-photo {
  width: 100%;
  min-width: 0;
  display: flex;
  gap: .49rem;
  align-items: center;
  padding: .28rem;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.recent-photo:hover { background: #1e2b23; }
.recent-photo img {
  width: 3.35rem;
  height: 2.55rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: .28rem;
  background: #1e2b21;
}
.recent-photo img.failed { opacity: .2; }
.recent-photo-info { display: grid; min-width: 0; gap: .1rem; font-size: .68rem; line-height: 1.3; color: var(--muted); }
.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: .74rem; }
.empty { min-height: clamp(16rem, 32vw, 22rem); }
.empty .actions .button { min-width: 7rem; }

@media (min-width: 53.01rem) {
  .gallery-nav, .recent-photos { position: sticky; top: 5.6rem; align-self: start; }
}
@media (max-width: 67rem) {
  .community-stream {
    grid-template-columns: minmax(9rem, .8fr) minmax(0, 44rem);
    grid-template-areas: ". title" "nav stream";
    justify-content: center;
  }
  .recent-photos { display: none; }
}
@media (max-width: 53rem) {
  [data-selah-community-gallery] { width: min(43rem, calc(100% - 2rem)); }
  .community-stream {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "nav" "stream";
    row-gap: .63rem;
  }
  .gallery-title h1 { font-size: clamp(1.8rem, 5.35vw, 2.65rem); }
  .gallery-nav { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
  .gallery-nav .views { display: flex; gap: .22rem; padding: 0; margin: 0; border: 0; }
  .gallery-nav .views a, .gallery-nav .camera-help summary { min-height: 2.75rem; }
  .gallery-nav .views a { padding-inline: .6rem; font-size: .78rem; gap: .4rem; }
  .gallery-nav .camera-help summary { padding-inline: .6rem; font-size: .75rem; }
  .gallery-nav .camera-instructions { left: auto; right: 0; }
  .gallery-tools { gap: .38rem; }
}
@media (max-width: 32rem) {
  .gallery { padding-top: 1.04rem; }
  .gallery-title { gap: .38rem; }
  .gallery-count { display: none; }
  .layout-switch button { min-width: 2.32rem; min-height: 2.35rem; padding-inline: .38rem; }
  .layout-switch button span { display: none; }
  [data-layout="feed"] .post-byline { padding: .69rem .74rem; }
  .post-avatar { width: 2.16rem; height: 2.16rem; }
  [data-layout="feed"] .post-caption { margin: -.12rem .74rem .65rem; font-size: .86rem; }
  .post-controls { gap: .18rem; padding: .23rem .44rem; }
  .post-action { padding-inline: .48rem; font-size: .76rem; }
  .photo-grid[data-layout="wall"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .46rem; }
  .photo-grid[data-layout="wall"] > :only-child { width: min(100%, 19rem); }
}
@media (max-width: 23rem) {
  .gallery-nav .camera-help summary { width: 2.75rem; justify-content: center; padding: 0; }
  .gallery-nav .camera-help summary span, .gallery-nav .help-chevron { display: none; }
}

.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; }
}
