:root {
  --bg: #11100e;
  --ink: #f6f1e8;
  --muted: #b2a89a;
  --accent: #e4572e;
  --line: rgba(246, 241, 232, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Georgia", "Times New Roman", serif;
}

.pe_arc_top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 1.5rem 0.5rem;
}

.pe_arc_brand {
  margin: 0;
  font-size: 1.4rem;
}

.pe_arc_brand span {
  color: var(--accent);
}

.pe_arc_nav {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
}

.pe_arc_nav a {
  color: var(--muted);
  margin-left: 1rem;
}

.pe_logout_form {
  display: inline;
  margin: 0;
}

.pe_filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.6rem;
  padding: 0.75rem 1rem 1.25rem;
  font-family: system-ui, sans-serif;
}

.pe_filter_views {
  display: flex;
  flex-shrink: 0;
}

.pe_view_btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.pe_view_btn:first-child {
  border-radius: 6px 0 0 6px;
  border-right: 0;
}

.pe_view_btn:last-child {
  border-radius: 0 6px 6px 0;
}

.pe_view_btn.is_on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pe_filter_meta {
  display: flex;
  flex: 1;
  gap: 0.5rem;
  min-width: 0;
}

.pe_filter_meta select {
  flex: 1;
  min-width: 0;
  background: #1b1916;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.85rem;
}

.pe_filters_viewer .pe_filter_meta {
  flex: none;
  width: 100%;
}

@media (max-width: 640px) {
  .pe_filters {
    flex-wrap: wrap;
  }

  .pe_filter_views {
    width: 100%;
  }

  .pe_view_btn {
    flex: 1;
    text-align: center;
  }

  .pe_filter_meta {
    width: 100%;
  }
}

.pe_sections {
  padding: 0 0 4rem;
}

.pe_section {
  margin-bottom: 2.5rem;
}

.pe_section_head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem 0.85rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.85rem;
}

.pe_section_title {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: normal;
  letter-spacing: 0.02em;
}

.pe_section_title a {
  color: var(--ink);
  text-decoration: none;
}

.pe_section_title a:hover {
  color: var(--accent);
}

.pe_section_count {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  flex-shrink: 0;
}

.pe_wall {
  column-count: 2;
  column-gap: 0.4rem;
  padding: 0 0.4rem;
}

.pe_shot {
  display: block;
  width: 100%;
  margin: 0 0 0.4rem;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.pe_shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
  image-orientation: from-image;
}

.pe_empty {
  padding: 3rem 1.5rem;
  color: var(--muted);
  font-family: system-ui, sans-serif;
}

.pe_stage {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 6, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.pe_stage[hidden] {
  display: none;
}

.pe_stage img {
  max-width: 100%;
  max-height: 100%;
  image-orientation: from-image;
}

.pe_stage_close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  font-family: system-ui, sans-serif;
}
