:root {
  --bg: #000;
  --surface: #050505;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --accent: #22c55e;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body {
  padding: 0 0 32px;
}

a {
  color: inherit;
}

.wrap,
.site-header,
.page-shell,
.nav-panel {
  width: min(100%, 500px);
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.header-compose-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.header-compose-plus {
  font-size: 1.15rem;
  line-height: 1;
}

.brand-word,
.title {
  font-family: "Space Grotesk", sans-serif;
}

.nav-toggle {
  width: 44px;
  min-height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
}

.nav-panel[hidden] {
  display: none;
}

.nav-panel {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.site-nav {
  display: grid;
  gap: 0;
}

.site-nav a,
.nav-logout-button {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  font: inherit;
  text-align: left;
}

.nav-logout-button {
  cursor: pointer;
}

.action-link,
.nav-button {
  color: var(--text);
  text-decoration: none;
  font: inherit;
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.stack > .action-link,
.stack > .nav-button,
button.action-link {
  width: 100%;
}

.page-shell {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: calc(100dvh - 60px);
}

.thread-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.thread-header-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.thread-header-back {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.thread-header-back:hover,
.thread-header-back:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.thread-header-copy {
  min-width: 0;
}

.thread-header-avatar-button {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.thread-header-avatar-button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
  border-radius: 999px;
}

.thread-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #475569);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.thread-header-avatar.has-image {
  background: transparent;
  color: transparent;
}

.thread-header-title {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-header-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-header-menu-button {
  min-width: 36px;
}

.page {
  padding: 18px 16px 24px;
}

.page-head {
  margin-bottom: 18px;
}

.eyebrow,
.detail-empty,
.body-copy,
.lead {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.title {
  margin: 0;
  font-size: 1.6rem;
}

.stack {
  display: grid;
  gap: 14px;
}

.home-explainer {
  gap: 22px;
  margin-top: 10px;
}

.home-primary-actions {
  margin-top: 14px;
}

.home-section {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.home-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.home-section-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.home-list-title {
  margin: 0 0 4px;
  color: var(--text);
  font-weight: 700;
}

.home-feature-list {
  gap: 12px;
}

.home-feature-list .body-copy {
  margin: 0;
}

.home-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-tag-grid span {
  border: 1px solid var(--line);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-support-figure {
  margin: 4px 0 0;
  border: 1px solid var(--line);
  overflow: hidden;
}

.home-support-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-steps {
  gap: 12px;
}

.home-hero {
  margin: 18px 0 6px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.home-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.about-hero {
  margin: 18px 0 8px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.about-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.about-copy {
  margin-top: 8px;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.about-gallery-card {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

.about-gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-gallery-caption {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.about-example {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.about-example-image-wrap {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}

.about-example-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.textarea-field {
  resize: vertical;
  min-height: 120px;
}

.compose-map-placeholder,
.post-card,
.profile-card {
  border: 1px solid var(--line);
  padding: 16px;
  overflow: visible;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list div,
.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-title {
  color: var(--text);
  font-weight: 700;
}

.profile-handle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-handle-text {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.profile-account-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.profile-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.profile-stats-row p {
  margin: 0;
}

.profile-stats-row strong {
  color: var(--text);
  font-weight: 600;
}

.profile-edit-link {
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  text-transform: lowercase;
  text-decoration: underline;
  cursor: pointer;
}

.groups-create-card {
  gap: 12px;
}

.groups-create-toggle {
  width: fit-content;
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.group-card {
  gap: 12px;
}

.group-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.group-card-head {
  gap: 2px;
  flex: 1 1 auto;
}

.group-card-meta {
  display: flex;
  align-items: flex-start;
}

.group-primary-link {
  width: fit-content;
  color: var(--text);
  text-decoration: underline;
  font-size: 0.9rem;
}

.group-post-pill {
  width: fit-content;
  align-self: flex-start;
}

.group-members-list {
  gap: 8px;
}

.group-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.group-member-link {
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.group-member-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.group-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.group-inline-form {
  padding-top: 4px;
}

.group-avatar-shell {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.group-avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #475569);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.group-avatar-preview.has-image {
  background: transparent;
  color: transparent;
}

.group-avatar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-avatar-shell {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.profile-avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #475569);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.profile-avatar-preview.has-image {
  background: transparent;
  color: transparent;
}

.profile-avatar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.avatar-crop-card {
  width: min(calc(100vw - 24px), 360px);
}

.avatar-crop-stage {
  position: relative;
  width: min(100%, 240px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #111827;
  border: 1px solid var(--line);
}

.avatar-crop-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.avatar-crop-ring {
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.34);
  border: 2px solid rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.modal-shell[hidden] {
  display: none;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-card {
  position: relative;
  width: min(calc(100vw - 24px), 500px);
  margin: 80px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 1.2rem;
}

.modal-close {
  min-height: 40px;
}

.group-info-modal-body {
  gap: 16px;
}

.group-info-avatar-wrap {
  display: flex;
  justify-content: center;
}

.group-info-avatar-preview {
  width: 88px;
  height: 88px;
  font-size: 2rem;
}


.post-author-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.thread-item-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.thread-item-avatar {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.thread-item-content {
  min-width: 0;
}

.thread-message-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #475569);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.thread-message-avatar.has-image {
  background: transparent;
  color: transparent;
}

.post-display-name {
  font-weight: 700;
  color: var(--text);
}

.post-account-name {
  font-size: 0.88rem;
  color: var(--muted);
}

.post-body {
  margin: 12px 0 0;
}

.post-audience-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}


.compose-map-shell {
  border: 1px solid var(--line);
  overflow: hidden;
}

.compose-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  background: #111;
}

.compose-map-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.compose-map-coords {
  color: var(--text);
}

.compose-map .leaflet-control-zoom a {
  color: #111;
}

.compose-map .leaflet-control-attribution {
  display: none;
}

.compose-remove-map {
  width: fit-content;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
}

.compose-map-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.compose-audience-chip[hidden] {
  display: none;
}

.compose-audience-chip {
  width: fit-content;
  margin: -2px 0 0;
  border: 1px solid var(--line);
  padding: 7px 10px;
  color: var(--text);
  background: var(--surface);
  font-size: 0.88rem;
}

.compose-gps-entry {
  gap: 8px;
}

.compose-gps-entry[hidden] {
  display: none;
}

.compose-address-results[hidden] {
  display: none;
}

.compose-address-results {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.compose-address-result {
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.compose-address-result:last-child {
  border-bottom: 0;
}

.feed-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 160px;
  margin-top: 12px;
  border: 1px solid var(--line);
}

.recent-list {
  gap: 0;
}

.recent-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-top: 0;
  padding: 10px 12px;
  cursor: pointer;
  text-decoration: none;
}

.recent-row:first-child {
  border-top: 1px solid var(--line);
}

.recent-row-text {
  min-width: 0;
}

.recent-row-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #475569);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.recent-row-avatar.has-image {
  background: transparent;
  color: transparent;
}

.recent-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.recent-row-title {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.2;
}

.recent-row-time {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.recent-row-meta {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.recent-row-preview {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.recent-map-thumb {
  width: 52px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: #111;
  overflow: hidden;
}

.recent-map-thumb .leaflet-control-container,
.recent-map-thumb .leaflet-control-attribution {
  display: none;
}

.thread-inline-compose {
  margin-top: 8px;
}

.shared-guest-panel {
  margin-top: 10px;
}

.thread-history-status {
  margin: 2px 0 -2px;
  font-size: 0.82rem;
  text-align: center;
}

.thread-load-error {
  margin: 0 0 12px;
  color: #ff8f8f;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.compose-action-row {
  gap: 12px;
  flex-wrap: nowrap;
}

.compose-action-link {
  flex: 1 1 0;
}

.compose-page-head {
  margin-bottom: 12px;
}

.compose-title {
  font-size: 1.2rem;
}



.feed-map-shell {
  position: relative;
  margin-top: 12px;
}

.feed-map-go {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 500;
  min-width: 48px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.82);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.post-replies-line {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.post-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.post-actions-row .post-replies-line {
  margin: 0;
}

.post-share-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
}

.thread-share-icon {
  width: 18px;
  height: 18px;
  line-height: 1;
  text-decoration: none;
}

.thread-share-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-card-clickable {
  cursor: pointer;
}

.thread-reply-field {
  min-height: 96px;
}


.thread-text-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.thread-text-link {
  color: var(--muted);
  text-decoration: underline;
  font-size: 0.88rem;
}

.thread-text-button {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

body.reply-modal-open [data-thread-map-shell] {
  display: none !important;
}

body[data-page="post"] .page-shell {
  min-height: 100dvh;
}

.reply-meta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reply-menu-wrap {
  position: relative;
  z-index: 1200;
}

.reply-menu-button {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.reply-menu-button:hover,
.reply-menu-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.menu-dots-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.menu-dots-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.reply-menu-panel[hidden] {
  display: none;
}

.reply-menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 120px;
  margin-top: 6px;
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  z-index: 1200;
}

.reply-menu-action {
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 10px 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.reply-menu-panel .reply-menu-action + .reply-menu-action {
  border-top: 1px solid var(--line);
}



.mention-check-message {
  min-height: 1.2em;
  margin-top: -4px;
}

.mention-check-error {
  color: #ff8f8f;
}

.avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.back-to-top {
  position: fixed;
  right: max(16px, calc((100vw - 500px) / 2 + 16px));
  bottom: 18px;
  z-index: 1400;
  min-height: 40px;
  padding: 8px 12px;
  color: #111;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font: inherit;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 540px) {
  .about-gallery {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 16px;
  }
}

