:root {
  --archive-bg: url("https://www.archives.gov/files/research/still-pictures/ww2-111-sc-407101.jpeg");
  --collage-photo-one: url("https://www.archives.gov/files/research/military/ww2/photos/images/ww2-42.jpg");
  --collage-photo-two: url("https://www.archives.gov/files/research/military/ww2/photos/images/ww2-50.jpg");
  --collage-photo-three: url("https://www.archives.gov/files/research/military/ww2/photos/images/ww2-64.jpg");
  --collage-photo-four: url("https://www.archives.gov/files/research/military/ww2/photos/images/ww2-90.jpg");
  --collage-photo-five: url("https://www.archives.gov/files/research/military/ww2/photos/images/ww2-111.jpg");
  --grenade-cursor: url("assets/grenade-cursor.svg") 14 4;
  --ink: #181818;
  --paper: #f7f1e6;
  --paper-deep: #e8dcc8;
  --olive: #4a5637;
  --brass: #a87d35;
  --oxblood: #722b28;
  --navy: #1f3349;
  --shadow: 0 24px 70px rgba(24, 24, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(247, 241, 230, 0.94), rgba(247, 241, 230, 0.98)),
    radial-gradient(circle at top left, rgba(168, 125, 53, 0.18), transparent 36%),
    var(--paper);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  cursor: var(--grenade-cursor), auto;
}

body.lightbox-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  cursor: var(--grenade-cursor), pointer;
}

button,
input,
select,
textarea,
summary,
[role="button"] {
  cursor: var(--grenade-cursor), pointer;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  color: #fff7ea;
  background: linear-gradient(180deg, rgba(16, 18, 18, 0.78), rgba(16, 18, 18, 0));
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 32px;
  border: 1px solid rgba(255, 247, 234, 0.6);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
}

.site-header nav a {
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(24px, 6vw, 92px);
  min-height: 92vh;
  align-items: end;
  overflow: hidden;
  padding: 160px clamp(20px, 7vw, 88px) 76px;
  color: #fff7ea;
  background-image:
    linear-gradient(90deg, rgba(10, 12, 12, 0.8), rgba(10, 12, 12, 0.42) 48%, rgba(10, 12, 12, 0.12)),
    var(--archive-bg);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--archive-bg) center / cover fixed;
  filter: sepia(0.78) contrast(1.08) brightness(0.82);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 11, 9, 0.18), rgba(12, 11, 9, 0.76)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-collage {
  position: relative;
  z-index: 1;
  display: block;
  min-height: min(64vh, 620px);
  align-self: center;
  color: inherit;
  text-decoration: none;
  transform: rotate(-1deg);
}

.hero-collage::before {
  position: absolute;
  inset: 13% 6% 4% 10%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.52), transparent 66%);
  filter: blur(18px);
}

.collage-photo {
  position: absolute;
  display: block;
  border: clamp(8px, 1.2vw, 14px) solid #f6ecd9;
  border-bottom-width: clamp(22px, 3vw, 38px);
  border-radius: 3px;
  background-color: #d8c7a7;
  background-position: center;
  background-size: cover;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
  filter: sepia(0.45) saturate(0.75) contrast(1.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.hero-collage:hover .collage-photo,
.hero-collage:focus-visible .collage-photo {
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.58);
  filter: sepia(0.24) saturate(0.86) contrast(1.1);
}

.collage-photo-one {
  z-index: 4;
  top: 6%;
  left: 14%;
  width: 42%;
  aspect-ratio: 4 / 5;
  background-image: var(--collage-photo-one);
  transform: rotate(-10deg);
}

.hero-collage:hover .collage-photo-one,
.hero-collage:focus-visible .collage-photo-one {
  transform: translate(-8px, -10px) rotate(-13deg);
}

.collage-photo-two {
  z-index: 3;
  top: 14%;
  right: 8%;
  width: 44%;
  aspect-ratio: 5 / 4;
  background-image: var(--collage-photo-two);
  transform: rotate(8deg);
}

.hero-collage:hover .collage-photo-two,
.hero-collage:focus-visible .collage-photo-two {
  transform: translate(10px, -8px) rotate(11deg);
}

.collage-photo-three {
  z-index: 5;
  top: 38%;
  left: 4%;
  width: 40%;
  aspect-ratio: 5 / 4;
  background-image: var(--collage-photo-three);
  transform: rotate(7deg);
}

.hero-collage:hover .collage-photo-three,
.hero-collage:focus-visible .collage-photo-three {
  transform: translate(-8px, 8px) rotate(10deg);
}

.collage-photo-four {
  z-index: 6;
  right: 16%;
  bottom: 11%;
  width: 43%;
  aspect-ratio: 4 / 5;
  background-image: var(--collage-photo-four);
  transform: rotate(-7deg);
}

.hero-collage:hover .collage-photo-four,
.hero-collage:focus-visible .collage-photo-four {
  transform: translate(8px, 10px) rotate(-10deg);
}

.collage-photo-five {
  z-index: 2;
  right: 0;
  bottom: 31%;
  width: 34%;
  aspect-ratio: 4 / 3;
  background-image: var(--collage-photo-five);
  transform: rotate(15deg);
}

.hero-collage:hover .collage-photo-five,
.hero-collage:focus-visible .collage-photo-five {
  transform: translate(12px, 2px) rotate(18deg);
}

.kicker {
  margin: 0 0 10px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .kicker {
  color: #eacb8c;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(4rem, 12vw, 9.5rem);
}

h2 {
  font-size: clamp(2.3rem, 6vw, 5rem);
}

.hero-content p:not(.kicker) {
  max-width: 570px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 34px;
  padding: 0 20px;
  border: 1px solid rgba(255, 247, 234, 0.75);
  background: rgba(255, 247, 234, 0.12);
  color: #fff7ea;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions .hero-link {
  margin-top: 34px;
}

.hero-link-secondary {
  border-color: rgba(255, 247, 234, 0.52);
  background: rgba(255, 247, 234, 0.06);
}

.not-found-hero {
  min-height: 100vh;
}

.not-found-content {
  max-width: 840px;
}

.not-found-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: rgba(255, 247, 234, 0.78);
  font-weight: 800;
}

.not-found-details span {
  padding-right: 12px;
  border-right: 1px solid rgba(255, 247, 234, 0.36);
}

.not-found-details span:last-child {
  padding-right: 0;
  border-right: 0;
}

.about-section,
.photo-section {
  padding: clamp(64px, 9vw, 116px) clamp(20px, 7vw, 88px);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 7vw, 90px);
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-self: end;
  font-size: 1.02rem;
}

.about-grid p {
  margin: 0;
}

.photo-section {
  background:
    linear-gradient(180deg, rgba(31, 51, 73, 0.08), rgba(114, 43, 40, 0.08)),
    radial-gradient(circle at 24% 16%, rgba(255, 251, 242, 0.72), transparent 30%),
    linear-gradient(110deg, rgba(74, 86, 55, 0.1), transparent 38%),
    var(--paper-deep);
}

.section-copy {
  margin-bottom: 32px;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 24px;
}

.gallery-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(24, 24, 24, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 251, 242, 0.74);
  cursor: var(--grenade-cursor), pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
}

.gallery-tabs button.active {
  border-color: var(--oxblood);
  color: #fff7ea;
  background: var(--oxblood);
}

.tag-tabs {
  margin-top: -14px;
}

.tag-tabs button {
  min-height: 34px;
  border-color: rgba(74, 86, 55, 0.28);
  color: var(--olive);
  background: rgba(255, 251, 242, 0.52);
  font-size: 0.8rem;
}

.tag-tabs button.active {
  border-color: var(--olive);
  background: var(--olive);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 340px));
  gap: 20px;
  justify-content: center;
  align-items: start;
}

.gallery:has(.photo-card-uploaded) {
  position: relative;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 360px));
  gap: clamp(16px, 2.4vw, 28px);
}

.empty-gallery {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 800;
}

.photo-card {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(24, 24, 24, 0.14);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 251, 242, 0.78);
  box-shadow: 0 12px 34px rgba(24, 24, 24, 0.08);
  cursor: var(--grenade-cursor), pointer;
  font: inherit;
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.photo-card:hover,
.photo-card:focus-visible {
  border-color: rgba(114, 43, 40, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.photo-card-uploaded {
  gap: 0;
  padding: clamp(8px, 1.2vw, 13px);
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #f8eedb;
  box-shadow:
    0 22px 44px rgba(24, 24, 24, 0.22),
    0 3px 8px rgba(24, 24, 24, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.photo-card-uploaded:hover,
.photo-card-uploaded:focus-visible {
  z-index: 5;
  box-shadow:
    0 34px 72px rgba(24, 24, 24, 0.36),
    0 4px 10px rgba(24, 24, 24, 0.2);
  filter: saturate(1.05);
  transform: translateY(-4px);
}

.photo-card-uploaded .photo-frame {
  aspect-ratio: 1;
  min-height: 0;
  border-radius: 2px;
  background-position: center center;
}

.photo-card-uploaded .photo-meta {
  padding: 14px 4px 4px;
  color: var(--ink);
  background: transparent;
}

.photo-card-uploaded .photo-meta small {
  color: rgba(24, 24, 24, 0.68);
}

.photo-card-uploaded .tag-list span {
  border-color: rgba(74, 86, 55, 0.24);
  color: var(--olive);
  background: rgba(74, 86, 55, 0.08);
}

.photo-frame {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(24, 24, 24, 0.12), rgba(255, 255, 255, 0.16)),
    var(--archive-bg) center / cover;
  filter: sepia(0.82) saturate(0.72) contrast(1.04);
}

.photo-frame::after {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px dashed rgba(255, 247, 234, 0.7);
  color: #fff7ea;
  content: "Photo placeholder";
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.uploaded-frame {
  background-position: center center;
  background-size: cover;
  filter: sepia(0.38) saturate(0.9) contrast(1.02);
}

.uploaded-frame::after {
  content: none;
}

.portrait {
  background-position: 28% center;
}

.landscape {
  background-position: center 30%;
}

.letter {
  background-position: 58% center;
}

.home {
  background-position: 72% center;
}

.leave {
  background-position: 40% 70%;
}

.keepsake {
  background-position: 83% 50%;
}

.photo-meta {
  display: grid;
  gap: 2px;
}

.photo-meta strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
}

.photo-meta small {
  color: rgba(24, 24, 24, 0.68);
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(74, 86, 55, 0.24);
  border-radius: 999px;
  color: var(--olive);
  background: rgba(74, 86, 55, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
}

.site-footer {
  padding: clamp(42px, 7vw, 72px) clamp(20px, 7vw, 88px) 28px;
  color: #fff7ea;
  background: var(--navy);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 247, 234, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(160px, 0.55fr));
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.footer-brand .brand-mark {
  color: #fff7ea;
}

.footer-brand h2,
.footer-links h3,
.footer-notes h3 {
  margin: 0;
}

.footer-brand h2 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links h3,
.footer-notes h3 {
  color: #eacb8c;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  color: rgba(255, 247, 234, 0.86);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff7ea;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-icon {
  width: 0.95em;
  height: 0.95em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.footer-legal {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 247, 234, 0.14);
  font-size: 0.9rem;
}

.notice-page {
  background:
    linear-gradient(180deg, rgba(31, 51, 73, 0.1), rgba(114, 43, 40, 0.06)),
    var(--paper);
}

.notice-main {
  min-height: 100vh;
  padding: 148px clamp(20px, 7vw, 88px) clamp(54px, 8vw, 96px);
}

.notice-hero {
  max-width: 860px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.notice-hero h1 {
  color: var(--navy);
}

.notice-hero p:not(.kicker) {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: 1.12rem;
}

.notice-card {
  display: grid;
  gap: 28px;
  max-width: 920px;
  padding: clamp(22px, 5vw, 46px);
  border: 1px solid rgba(24, 24, 24, 0.12);
  border-radius: 8px;
  background: rgba(255, 251, 242, 0.9);
  box-shadow: 0 18px 46px rgba(24, 24, 24, 0.1);
}

.notice-updated {
  margin: 0;
  color: rgba(24, 24, 24, 0.62);
  font-weight: 900;
}

.notice-section {
  display: grid;
  gap: 10px;
}

.notice-section h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.notice-section p {
  margin: 0;
}

.lightbox {
  width: min(100vw - 24px, 1500px);
  max-width: none;
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #111;
  box-shadow: var(--shadow);
  color: #fff7ea;
}

.lightbox::backdrop {
  background: rgba(12, 12, 12, 0.72);
}

.close-button {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff7ea;
  background: rgba(24, 24, 24, 0.74);
  cursor: var(--grenade-cursor), pointer;
  font-size: 1.5rem;
}

.lightbox-image {
  display: grid;
  min-height: min(78vh, 920px);
  place-items: center;
  background:
    linear-gradient(180deg, rgba(24, 24, 24, 0.08), rgba(24, 24, 24, 0.24)),
    var(--archive-bg) center / cover;
  filter: sepia(0.82) saturate(0.72) contrast(1.04);
}

.lightbox-image:has(img) {
  background: #111;
  filter: none;
}

.lightbox-image img {
  display: block;
  width: 100%;
  height: min(78vh, 920px);
  object-fit: contain;
  background: #111;
}

.admin-page {
  min-height: 100vh;
  padding: 0 clamp(20px, 5vw, 64px) clamp(28px, 6vw, 64px);
  background: var(--paper);
}

.admin-toolbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 calc(clamp(20px, 5vw, 64px) * -1) clamp(22px, 4vw, 42px);
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(24, 24, 24, 0.14);
  background: rgba(247, 241, 230, 0.92);
  box-shadow: 0 12px 28px rgba(24, 24, 24, 0.08);
  backdrop-filter: blur(14px);
}

.admin-toolbar .kicker {
  margin-bottom: 2px;
}

.admin-toolbar strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}

.admin-toolbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(31, 51, 73, 0.3);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 250, 240, 0.72);
  cursor: var(--grenade-cursor), pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.admin-tool-button:hover,
.admin-tool-button:focus-visible {
  color: #fff7ea;
  background: var(--navy);
}

.admin-tool-button.danger {
  border-color: rgba(114, 43, 40, 0.38);
  color: var(--oxblood);
}

.admin-tool-button.danger:hover,
.admin-tool-button.danger:focus-visible {
  color: #fff7ea;
  background: var(--oxblood);
}

.admin-section-anchor {
  position: relative;
  top: -96px;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 5vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
}

.admin-workspace {
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1.28fr);
  align-items: start;
}

.admin-image-workspace {
  grid-template-columns: minmax(0, 1fr);
  max-width: 920px;
}

.admin-panel {
  padding: 22px;
  border: 1px solid rgba(24, 24, 24, 0.12);
  border-radius: 8px;
  background: rgba(255, 251, 242, 0.86);
  box-shadow: 0 12px 34px rgba(24, 24, 24, 0.08);
}

.image-panel {
  border-color: rgba(31, 51, 73, 0.22);
  background:
    linear-gradient(180deg, rgba(31, 51, 73, 0.08), rgba(255, 251, 242, 0.9) 34%),
    rgba(255, 251, 242, 0.88);
}

.admin-panel h1,
.admin-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.admin-section-heading {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(24, 24, 24, 0.12);
}

.admin-section-heading .kicker {
  margin-bottom: 4px;
}

.admin-filterbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.5fr);
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(31, 51, 73, 0.14);
  border-radius: 7px;
  background: rgba(247, 241, 230, 0.7);
}

.admin-chip-row,
.admin-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-chip-row {
  grid-column: 1 / -1;
}

.admin-chip-row button,
.tag-suggestion {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(74, 86, 55, 0.26);
  border-radius: 999px;
  color: var(--olive);
  background: rgba(255, 250, 240, 0.7);
  cursor: var(--grenade-cursor), pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-chip-row button.active,
.admin-chip-row button:hover,
.admin-chip-row button:focus-visible,
.tag-suggestion:hover,
.tag-suggestion:focus-visible {
  color: #fff7ea;
  background: var(--olive);
}

.admin-tag-picker {
  margin-top: -6px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-field {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(24, 24, 24, 0.18);
  border-radius: 5px;
  color: var(--ink);
  background: #fffaf0;
  font: inherit;
}

.admin-field textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--navy);
  border-radius: 5px;
  color: #fff7ea;
  background: var(--navy);
  cursor: var(--grenade-cursor), pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
}

.admin-button.secondary {
  color: var(--navy);
  background: transparent;
}

.image-button {
  border-color: var(--navy);
  background: var(--navy);
}

.admin-button.poster {
  border-color: var(--brass);
  color: #5b3d12;
}

.admin-button.poster:hover,
.admin-button.poster:focus-visible {
  color: #fff7ea;
  background: var(--brass);
}

.admin-status {
  min-height: 24px;
  color: var(--oxblood);
  font-weight: 800;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-manager {
  display: grid;
  gap: 12px;
}

.admin-manager h3 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.admin-list article {
  padding: 14px;
  border: 1px solid rgba(24, 24, 24, 0.12);
  border-radius: 6px;
  background: rgba(247, 241, 230, 0.82);
}

.image-list article {
  border-left: 0;
  background: #fffaf0;
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.08);
}

.manage-form {
  display: grid;
  gap: 12px;
}

.photo-manage-item {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  background: #151515;
  object-fit: cover;
}

.source-label {
  display: block;
  margin-top: 8px;
  color: rgba(24, 24, 24, 0.64);
  font-weight: 900;
}

.poster-label {
  color: var(--oxblood);
}

.admin-button.danger {
  border-color: var(--oxblood);
  color: var(--oxblood);
}

.admin-button.danger:hover,
.admin-button.danger:focus-visible {
  color: #fff7ea;
  background: var(--oxblood);
}

.lightbox h3,
.lightbox p {
  margin-right: 28px;
  margin-left: 28px;
}

.lightbox-tags {
  margin-top: 14px;
}

.lightbox h3 {
  margin-top: 24px;
  font-size: 2.2rem;
}

.lightbox p {
  margin-bottom: 28px;
  color: rgba(255, 247, 234, 0.82);
}

@media (max-width: 840px) {
  .site-header {
    position: absolute;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 86vh;
    gap: 28px;
    background-attachment: scroll;
  }

  .hero::before {
    background-attachment: scroll;
  }

  .hero-collage {
    order: 2;
    min-height: 52vh;
  }

  .hero-content {
    order: 1;
  }

  .about-section,
  .about-grid,
  .gallery,
  .footer-grid,
  .admin-shell,
  .photo-manage-item {
    grid-template-columns: 1fr;
  }

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

  .admin-toolbar nav {
    justify-content: flex-start;
  }

  .photo-card-uploaded .photo-frame {
    min-height: 0;
  }

  .lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .lightbox-image {
    min-height: auto;
    height: calc(100dvh - 120px);
  }

  .lightbox-image img {
    height: 100%;
    max-height: calc(100dvh - 120px);
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    padding-top: 176px;
  }

  .hero-collage {
    min-height: 44vh;
  }

  .collage-photo {
    border-width: 7px;
    border-bottom-width: 20px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }
}
