/* bckt3 — plain CSS (no build step). Palette lives in :root below. */

:root {
  color-scheme: light;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Source Serif 4", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Surfaces & text */
  --bg: #f4f3ef;
  --surface: #f8f8f6;
  --fg: #3f3a37;
  --ink: #131313;        /* strongest text / brand */
  --heading: #222222;
  --muted: #5e5b57;
  --muted-2: #6b6661;
  --faint: #9ca3af;
  --link: #444444;

  /* Lines */
  --border: #dcd9d3;
  --rule: #e5e7eb;
  --hairline: rgba(31, 29, 26, 0.12);
  --hairline-soft: rgba(31, 29, 26, 0.08);

  --overlay: rgba(15, 14, 12, 0.92);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(244, 243, 239, 0.9);
  backdrop-filter: blur(6px);
  padding: 1rem 0 1rem;
}

.site-header__inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-brand__badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.15rem;
  background: var(--ink);
}

.site-brand__badge:hover,
.site-brand__badge:focus-visible {
  background: #1e1e1e;
}

.site-brand__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: block;
  border: 1px solid var(--ink);
  object-fit: cover;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-tagline {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #5b5854;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.8rem;
  text-transform: lowercase;
  font-weight: 600;
  color: #1f1d1a;
}

.site-nav__link {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15rem;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav__link--icon {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-nav {
    justify-content: flex-end;
  }
}

.site-main {
  padding: 2.5rem 0 4rem;
  flex: 1 0 auto;
}

.site-main__inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--faint);
  margin-top: auto;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* Listing */
.page-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
}

.empty-state {
  margin: 0;
  font-size: 1rem;
  color: var(--faint);
}

.post-card {
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-card:last-child {
  border-bottom: none;
}

.post-card header {
  margin: 0;
}

.post-card__title {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.post-card__title:hover,
.post-card__title:focus-visible {
  text-decoration: underline;
}

.post-card__abstract {
  color: inherit;
  font-size: inherit;
}

.post-card__body {
  font-size: 1rem;
  color: #2f2b28;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-card--farcaster .post-card__body {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
}

.post-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

.post-card--farcaster .post-card__content {
  font-family: var(--font-sans);
}

.post-card--farcaster .post-card__content > :first-child,
.post-card--note .post-card__content > :first-child {
  margin-top: 0;
}

.post-card__continue {
  color: var(--muted);
  font-weight: 400;
}

.post-card__actions {
  margin: 0;
  font-size: 0.9rem;
}

.post-card__media {
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-card__media-item {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
}

.post-card__media-item img {
  display: block;
  width: 100%;
  height: auto;
}

.post-card__media-video {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
}

.post-card__media-video video {
  display: block;
  width: 100%;
  height: auto;
}

/* Pager */
.pager {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #666666;
}

.pager__links {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.pager__newer {
  text-align: left;
  justify-self: start;
}

.pager__status {
  text-align: center;
  justify-self: center;
  white-space: nowrap;
}

.pager__older {
  text-align: right;
  justify-self: end;
}

.pager__links a {
  color: var(--link);
  display: inline-block;
}

.pager__links a:hover {
  color: #111111;
}

/* Single post */
.post-article {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: 3rem;
  align-items: center;
}

.post-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.post-subtitle {
  margin: 0;
  font-size: 1rem;
  color: #666666;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--faint);
}

.meta-divider {
  opacity: 0.6;
}

.post-meta__time {
  font-variant-numeric: tabular-nums;
  font-weight: 300;
}

.post-meta--compact,
.post-meta--inline {
  color: var(--muted);
  font-size: 1rem;
  gap: 0.35rem 0.5rem;
}

.post-meta--inline {
  align-items: baseline;
  flex-wrap: nowrap;
  font-size: 0.8rem;
}

.post-card--farcaster .post-meta--inline {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.post-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tags li {
  list-style: none;
  margin: 0;
}

.post-article .post-tags a {
  color: var(--link);
  text-decoration: underline;
}

.post-article .post-tags a:hover {
  background: var(--link);
  color: #ffffff;
  text-decoration: none;
}

.post-tags--compact {
  gap: 0.35rem;
}

.post-tags--compact a {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
}

.post-tags--compact a:hover,
.post-tags--compact a:focus-visible {
  text-decoration: underline;
}

.post-hero {
  width: 100%;
  max-width: 64ch;
  height: auto;
  margin: 0 auto;
  border-radius: 0.5rem;
}

.post-media {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-media__item {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
}

.post-media__item img {
  display: block;
  width: 100%;
  height: auto;
}

.post-media__video {
  border-radius: 1rem;
  overflow: hidden;
  background: #000000;
}

.post-media__video video {
  display: block;
  width: 100%;
  height: auto;
}

.reading-flow {
  font-size: 0.95rem;
  line-height: 1.25;
}

.post-content {
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.005em;
}

.post-article--note .post-content {
  font-size: 1.05rem;
}

.reading-flow,
.post-content {
  font-family: var(--font-sans);
  color: var(--muted);
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  hyphens: auto;
}

.reading-flow > *,
.post-content > * {
  margin: 1.6rem 0;
}

.reading-flow > *:first-child,
.post-content > *:first-child {
  margin-top: 0;
}

.reading-flow > *:last-child,
.post-content > *:last-child {
  margin-bottom: 0;
}

.post-content p {
  margin: 1.2rem 0;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.reading-flow p {
  margin: 1rem 0;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.reading-flow p:first-child,
.post-content p:first-child {
  margin-top: 0;
}

.reading-flow p:last-child,
.post-content p:last-child {
  margin-bottom: 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--heading);
  margin: 2.4rem 0 1.1rem;
}

.post-content h2 {
  font-size: 1.4rem;
}

.post-content h3 {
  font-size: 1.2rem;
}

.post-content h4 {
  font-size: 1.05rem;
}

.post-content a {
  color: var(--link);
  text-decoration: underline;
}

.post-content a:hover {
  background: var(--link);
  color: #ffffff;
  text-decoration: none;
}

blockquote,
.post-content blockquote {
  margin: 1.9rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid rgba(68, 68, 68, 0.2);
  background: #f5f5f4;
  font-style: italic;
}

.post-content .markdown-alert {
  margin: 1.9rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid;
  border-radius: 0.5rem;
  font-style: normal;
}

.post-content .markdown-alert > *:first-child {
  margin-top: 0;
}

.post-content .markdown-alert > *:last-child {
  margin-bottom: 0;
}

.post-content .markdown-alert-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-content .markdown-alert-title::before {
  content: "";
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.post-content .markdown-alert-note {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e3a8a;
}

.post-content .markdown-alert-note .markdown-alert-title {
  color: #1e40af;
}

.post-content .markdown-alert-note .markdown-alert-title::before {
  content: "ℹ";
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.post-content .markdown-alert-tip {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}

.post-content .markdown-alert-tip .markdown-alert-title {
  color: #047857;
}

.post-content .markdown-alert-tip .markdown-alert-title::before {
  content: "💡";
}

.post-content .markdown-alert-important {
  background: #fce7f3;
  border-color: #ec4899;
  color: #831843;
}

.post-content .markdown-alert-important .markdown-alert-title {
  color: #9f1239;
}

.post-content .markdown-alert-important .markdown-alert-title::before {
  content: "❗";
}

.post-content .markdown-alert-warning {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
}

.post-content .markdown-alert-warning .markdown-alert-title {
  color: #92400e;
}

.post-content .markdown-alert-warning .markdown-alert-title::before {
  content: "⚠";
}

.post-content .markdown-alert-caution {
  background: #fee2e2;
  border-color: #ef4444;
  color: #7f1d1d;
}

.post-content .markdown-alert-caution .markdown-alert-title {
  color: #991b1b;
}

.post-content .markdown-alert-caution .markdown-alert-title::before {
  content: "🔥";
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: #f1f5f9;
  padding: 0.15em 0.35em;
  border-radius: 0.3rem;
}

.post-content pre {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.65;
  background: #f8fafc;
  padding: 1.1rem 1.25rem;
  border-radius: 0.65rem;
  overflow-x: auto;
}

.post-content pre code {
  background: transparent;
  padding: 0;
}

.post-content ul,
.post-content ol {
  padding-left: 1.4rem;
  margin: 1.35rem 0;
}

.post-content li + li {
  margin-top: 0.4rem;
}

.post-content img,
.post-content video,
.post-content iframe {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
}

.post-content figure {
  margin: 2rem 0;
  text-align: center;
}

.post-content figure img,
.post-content figure video {
  margin: 0 auto;
}

figcaption,
.post-content figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted-2);
  text-align: center;
  text-wrap: pretty;
}

.post-content table {
  width: 100%;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  border-collapse: collapse;
}

.post-content table th,
.post-content table td {
  border: 1px solid var(--rule);
  padding: 0.75rem 0.9rem;
  text-align: left;
}

.post-content hr {
  border: 0;
  border-top: 1px solid rgba(45, 42, 38, 0.18);
  width: min(100%, 12rem);
  margin: 2.75rem auto;
}

.post-attachments {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.post-attachments h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.post-attachments ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.post-attachments a {
  color: var(--link);
  text-decoration: underline;
}

.post-attachments a:hover {
  background: var(--link);
  color: #ffffff;
  text-decoration: none;
}

.post-location {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #666666;
}

.post-header,
.post-content,
.post-attachments {
  width: 100%;
  max-width: 64ch;
  margin: 0 auto;
}

/* Archive */
.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.archive-item {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
}

.archive-item time {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--faint);
}

.archive-item a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.archive-item a:hover {
  background: var(--link);
  color: #ffffff;
  text-decoration: none;
}

/* Search */
.search-page {
  gap: 1.75rem;
}

.search-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-lede {
  margin: 0;
  font-size: 1rem;
  color: #5b5854;
}

.search-panel {
  margin-top: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.search-panel__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.search-field {
  flex: 1 1 20rem;
}

.search-panel__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-sort {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.search-sort__select {
  min-width: 9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--hairline);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 0 0.85rem;
  height: 3rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.search-sort__select:focus {
  border-color: rgba(31, 29, 26, 0.35);
  outline: none;
  box-shadow: 0 0 0 3px var(--hairline);
}

.search-options__toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(31, 29, 26, 0.65);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.search-options__toggle:hover,
.search-options__toggle:focus-visible {
  color: rgba(31, 29, 26, 0.95);
  outline: none;
}

.search-options__toggle[aria-expanded="true"] {
  color: rgba(31, 29, 26, 0.95);
}

.search-field,
.search-filter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-field__label,
.search-filter__label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

.search-field__control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0rem 0.65rem 0rem 0.85rem;
  min-height: 3rem;
  border-radius: 0.75rem;
  border: 1px solid var(--hairline);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-field__icon {
  font-size: 0.95rem;
  color: rgba(31, 29, 26, 0.35);
  line-height: 1;
}

.search-field__input {
  border: 0;
  flex: 1 1 auto;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.5;
  padding: 0.4rem 0.35rem 0.4rem 0.1rem;
  background: transparent;
  color: #1f1d1a;
}

.search-field__input:focus {
  outline: none;
}

.search-field__control:focus-within {
  border-color: rgba(31, 29, 26, 0.35);
  box-shadow: 0 0 0 3px var(--hairline);
}

.search-filter__select {
  appearance: none;
  border: 1px solid var(--hairline);
  border-radius: 0.6rem;
  background: #ffffff;
  color: #1f1d1a;
  padding: 0.45rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 3rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-filter__select:focus {
  border-color: rgba(31, 29, 26, 0.35);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 29, 26, 0.1);
}

.search-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.85rem;
}

[data-search-filters][hidden] {
  display: none;
}

.search-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted-2);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.search-results mark {
  background: rgba(250, 204, 21, 0.35);
  color: inherit;
  padding: 0.05em 0.2em;
  border-radius: 0.2em;
}

/* Notes */
.note-body {
  font-family: var(--font-sans);
}

/* Media carousel (slideshow for galleries) */
.media-carousel {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.media-carousel__viewport {
  display: flex;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(31, 29, 26, 0.3) transparent;
}

.media-carousel__item {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
}

.media-carousel__item a {
  display: block;
}

.media-carousel__item a:hover {
  text-decoration: none;
}

.media-carousel__item img,
.media-carousel__item video {
  width: auto;
  max-width: min(34rem, 82vw);
  max-height: 22rem;
  border-radius: 0.75rem;
  border: 1px solid var(--hairline-soft);
  background: var(--surface);
  object-fit: contain;
}

.post-card .media-carousel__item img,
.post-card .media-carousel__item video {
  max-height: 16rem;
}

.media-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.6rem;
}

.media-carousel__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 29, 26, 0.25);
  cursor: pointer;
  transition: width 160ms ease, background-color 160ms ease;
}

.media-carousel__dot:hover,
.media-carousel__dot:focus-visible {
  background: var(--ink);
}

.media-carousel__dot.is-active {
  width: 1.1rem;
  background: var(--ink);
}

/* Lightbox */
body.image-lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  grid-template-columns: minmax(3rem, 1fr) minmax(0, auto) minmax(3rem, 1fr);
  align-items: center;
  justify-items: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--overlay);
}

.image-lightbox--active {
  display: grid;
}

.image-lightbox__figure {
  grid-column: 2;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  margin: 0;
}

.image-lightbox__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  border-radius: 0.5rem;
  background: var(--bg);
}

.image-lightbox__status {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-lightbox__close,
.image-lightbox__nav {
  width: auto;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.image-lightbox__close:hover,
.image-lightbox__nav:hover {
  color: #ffffff;
  text-decoration: none;
}

.image-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.image-lightbox__nav--prev {
  grid-column: 1;
}

.image-lightbox__nav--next {
  grid-column: 3;
}

@media (max-width: 36rem) {
  .image-lightbox {
    grid-template-columns: 1fr 1fr;
    align-content: center;
  }

  .image-lightbox__figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .image-lightbox__nav--prev,
  .image-lightbox__nav--next {
    grid-row: 2;
  }

  .image-lightbox__nav--prev {
    grid-column: 1;
    justify-self: start;
  }

  .image-lightbox__nav--next {
    grid-column: 2;
    justify-self: end;
  }
}
