/* ===== Halo Finland Styles (Black Background + Fixed Video) ===== */
:root {
  --bg: #000000;
  --fg: #e6f0ff;
  --muted: #a5b4c3;
  --accent: #7cc4ff;
  --accent-strong: #41a3ff;
  --card: rgba(0, 0, 0, 0.68);
  --border: rgba(255,255,255,0.08);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
  --header-height: 80px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: #000; /* solid black site-wide */
  overflow-x: hidden;
}

/* Fullscreen background video (fixed) */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -1; /* keep behind all content so scrolling content rolls over video */
  overflow: hidden;
}
.bg-wrap video {
  position: absolute;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05) brightness(0.75);
  pointer-events: none;
  /* Edge fade using CSS masking (and -webkit- prefix for Safari/Chromium) */
  -webkit-mask-image: radial-gradient(90% 70% at 50% 50%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(90% 70% at 50% 50%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}
/* Soft vignette fallback overlay for browsers without mask support */
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 40% at 50% 45%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%);
}

header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
  border-bottom: 1px solid var(--border);
}

.header-spacer {
  height: var(--header-height);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--fg);
}
.brand svg { width: 42px; height: 42px; filter: drop-shadow(0 6px 12px rgba(65,163,255,0.25)); }
.brand .title { font-weight: 700; letter-spacing: 0.2px; }
.brand .subtitle { display:block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.lang-switch { display: flex; gap: 8px; align-items: center; }
.lang-switch button {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
  transition: transform .05s ease, background .2s ease, border-color .2s ease;
}
.lang-switch button[aria-pressed="true"] { background: rgba(124,196,255,0.12); border-color: rgba(124,196,255,0.35); }
.lang-switch button:hover { transform: translateY(-1px); }

/* Vertically centering the cards container accounting for the header */
main { 
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Subtract the header height from the full viewport height */
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height)); 
  padding: 40px 0; 
}

.hero {
  width: min(1100px, 92vw);
  margin: 40px auto 24px;
  display: grid; gap: 18px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05; margin: 0;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero p.tagline { color: var(--muted); font-size: clamp(14px, 2.2vw, 18px); margin: 2px 0 0; }

.card {
  width: min(1100px, 92vw);
  margin: 18px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.8vw, 28px);
  backdrop-filter: blur(6px);
}
.card h2 { margin-top: 0; margin-bottom: 10px; font-size: clamp(22px, 3vw, 28px); }
.card p { margin: 0; color: #d6e5ff; line-height: 1.6; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: #06111d; font-weight: 700;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  padding: 12px 16px; border-radius: 12px; border: 0; cursor: pointer;
  box-shadow: 0 8px 20px rgba(65,163,255,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .06s ease;
}
.btn:hover { transform: translateY(-1px); }

footer {
  width: min(1100px, 92vw);
  margin: 32px auto 0; padding: 22px 0 40px; color: var(--muted);
  font-size: 14px; text-align: center;
}

/* Small utility for visually-hidden headings for a11y */
.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;
}

.landing {
  display: grid;
  place-items: center; /* centers child both axes */
  min-height: 100vh;
  min-height: 100svh; /* mobile safe height */
  position: relative;
  text-align: center;
  transform: translateY(calc(-1 * var(--header-height)));
}

.landing-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-logo img { margin-bottom: 8px; }
.landing h1 { margin: 0; }
.landing .subtitle { margin-top: 6px; }



/* Twitch community channel grid */
.twitch-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.twitch-channel {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}


.twitch-channel[data-official="true"] {
  grid-column: 1 / -1;
  border-color: rgba(145,70,255,0.45);
  background: linear-gradient(135deg, rgba(145,70,255,0.16), rgba(255,255,255,0.04));
}

.twitch-channel[data-official="true"] .twitch-avatar-wrap {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
}

.twitch-official-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: .70rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #d9c8ff;
  background: rgba(145,70,255,.18);
  border: 1px solid rgba(145,70,255,.32);
}

.twitch-channel:hover,
.twitch-channel:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(145,70,255,0.55);
  background: rgba(145,70,255,0.10);
  box-shadow: 0 9px 24px rgba(0,0,0,0.30);
  outline: none;
}

.twitch-channel[data-status="live"] {
  border-color: rgba(255,70,85,0.48);
  background: linear-gradient(135deg, rgba(255,70,85,0.12), rgba(145,70,255,0.08));
}

.twitch-avatar-wrap {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  position: relative;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

.twitch-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  border: 2px solid rgba(255,255,255,0.16);
}

.twitch-channel[data-status="live"] .twitch-avatar {
  border-color: #ff4655;
  box-shadow: 0 0 0 3px rgba(255,70,85,0.12);
}

.twitch-avatar-wrap.avatar-fallback::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(145deg, #9146ff, #5c2ca8);
}

.twitch-live-dot {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #68727f;
  border: 3px solid #111820;
}

.twitch-channel[data-status="live"] .twitch-live-dot {
  background: #ff4655;
  box-shadow: 0 0 10px rgba(255,70,85,0.75);
}

.twitch-channel[data-status="unknown"] .twitch-live-dot {
  background: #d6a642;
}

.twitch-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.twitch-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.twitch-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.twitch-channel[data-status="live"] .twitch-status {
  color: #ff7d87;
}

@media (max-width: 760px) {
  .twitch-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .twitch-channels {
    grid-template-columns: 1fr;
  }

  .twitch-channel {
    padding: 10px 12px;
  }

  .twitch-avatar-wrap {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
}

/* ===== Discord server card ===== */
.discord-server {
  margin-top:18px; padding:16px; border:1px solid rgba(88,101,242,.28);
  border-radius:14px; background:linear-gradient(135deg,rgba(88,101,242,.12),rgba(255,255,255,.025));
}
.discord-server-main { display:flex; align-items:center; gap:12px; }
.discord-mark {
  width:46px; height:46px; flex:0 0 46px; display:grid; place-items:center;
  border-radius:14px; background:#5865f2; color:#fff; font-weight:900; font-size:20px;
  box-shadow:0 8px 20px rgba(88,101,242,.25);
}
.discord-server-meta { min-width:0; display:flex; flex-direction:column; gap:3px; }
.discord-server-meta strong { font-size:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.discord-online { color:#73d89a; font-size:13px; font-weight:700; }
.discord-channels { display:flex; flex-wrap:wrap; gap:7px; margin-top:13px; }
.discord-channel-chip {
  padding:5px 9px; border-radius:999px; background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.08); color:#dce5f4; font-size:12px;
}
.discord-muted, .discord-widget-status { color:var(--muted); font-size:12px; }
.discord-widget-status { margin:11px 0 0; line-height:1.45; }
.discord-card .actions { margin-top:14px; }
.discord-join { background:linear-gradient(180deg,#5865f2 0%,#4752c4 100%); }

/* ===== News feed ===== */
.header-tools { display:flex; align-items:center; gap:12px; }
.admin-link {
  color: var(--muted); text-decoration:none; font-size:13px; font-weight:700;
  padding:8px 11px; border:1px solid var(--border); border-radius:999px;
  background:rgba(255,255,255,.03);
}
.admin-link:hover { color:var(--fg); border-color:rgba(124,196,255,.35); }
.news-card { overflow:hidden; }
.news-heading-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.news-heading-row h2 { margin-bottom:6px; }
.news-feed {
  max-height: min(72vh, 760px);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-right:8px;
  scrollbar-width:thin;
  scrollbar-color:rgba(124,196,255,.4) rgba(255,255,255,.05);
}
.news-feed::-webkit-scrollbar { width:10px; }
.news-feed::-webkit-scrollbar-track { background:rgba(255,255,255,.04); border-radius:999px; }
.news-feed::-webkit-scrollbar-thumb { background:rgba(124,196,255,.35); border-radius:999px; }
.news-post {
  padding:18px 4px 22px;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.news-post:first-child { padding-top:4px; }
.news-post-meta { display:flex; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:12px; margin-bottom:10px; }
.news-author { color:var(--accent); font-weight:700; }
.news-post-body { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.68; color:#e7f0ff; font-size:15px; }
.news-images { display:grid; gap:10px; margin-top:14px; }
.news-images-1 { grid-template-columns:1fr; }
.news-images-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.news-images-3, .news-images-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.news-image-link { display:block; border-radius:12px; overflow:hidden; background:#080b10; border:1px solid rgba(255,255,255,.08); }
.news-image-link img { width:100%; height:auto; max-height:70vh; object-fit:contain; display:block; transition:transform .18s ease; }
.news-image-link:hover img { transform:scale(1.015); }
.news-loader, .news-end, .news-empty { text-align:center; color:var(--muted); padding:18px 10px; font-size:13px; }
#newsSentinel { height:1px; }

/* ===== Admin ===== */
.admin-page { min-height:100vh; background:radial-gradient(circle at 50% 0%, #0d1c2d 0, #05070a 45%, #000 100%); }
.admin-shell { width:min(920px,92vw); margin:0 auto; padding:36px 0 70px; }
.admin-login-shell { width:min(520px,92vw); padding-top:8vh; }
.admin-topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.admin-back { color:var(--accent); text-decoration:none; font-weight:700; }
.admin-user { color:var(--muted); font-size:14px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.admin-panel { background:rgba(0,0,0,.72); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:clamp(20px,4vw,30px); margin-top:18px; backdrop-filter:blur(8px); }
.admin-panel h1, .admin-panel h2 { margin-top:0; }
.admin-logo { width:min(240px,70%); display:block; margin:0 auto 24px; }
.admin-form { display:grid; gap:18px; }
.admin-form label { display:grid; gap:8px; font-weight:700; font-size:14px; }
.admin-form input[type="text"], .admin-form input[type="password"], .admin-form input:not([type]), .admin-form textarea {
  width:100%; color:var(--fg); background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:12px 14px; font:inherit; outline:none;
}
.admin-form input:focus, .admin-form textarea:focus { border-color:rgba(124,196,255,.55); box-shadow:0 0 0 3px rgba(124,196,255,.08); }
.admin-form textarea { resize:vertical; min-height:160px; }
.admin-form input[type="file"] { color:var(--muted); font-weight:400; }
.field-note { color:var(--muted); font-weight:400; font-size:12px; }
.flash { padding:12px 14px; border-radius:12px; margin:12px 0; border:1px solid rgba(255,255,255,.1); }
.flash.success { background:rgba(57,184,118,.12); border-color:rgba(57,184,118,.35); }
.flash.error { background:rgba(255,70,85,.12); border-color:rgba(255,70,85,.35); }
.inline-form { display:inline; }
.text-button { appearance:none; background:none; border:0; padding:0; color:var(--accent); cursor:pointer; font:inherit; font-weight:700; }
.admin-post-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:start; padding:18px 0; border-top:1px solid rgba(255,255,255,.08); }
.admin-post-meta { color:var(--muted); font-size:12px; margin-bottom:6px; }
.admin-post-preview { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.55; }
.admin-muted { color:var(--muted); }
.danger-button { border:1px solid rgba(255,70,85,.35); background:rgba(255,70,85,.08); color:#ff8f98; border-radius:10px; padding:8px 11px; cursor:pointer; font-weight:700; }
.danger-button:hover { background:rgba(255,70,85,.15); }

@media (max-width: 620px) {
  .brand .subtitle { display:none; }
  .header-tools { gap:7px; }
  .admin-link { padding:7px 9px; }
  .news-feed { max-height:70vh; padding-right:4px; }
  .news-images-2, .news-images-3, .news-images-4 { grid-template-columns:1fr; }
  .news-image-link img { height:auto; max-height:65vh; }
  .admin-topbar { align-items:flex-start; }
  .admin-post-row { grid-template-columns:1fr; }
}

.admin-nav-link { color:var(--accent); text-decoration:none; font-weight:700; }
.admin-nav-link:hover { text-decoration:underline; }
.admin-notice { padding:12px 14px; border:1px solid rgba(255,198,86,.35); background:rgba(255,198,86,.08); border-radius:10px; color:#ffd992; }
.temporary-password-panel { border-color:rgba(124,196,255,.42); }
.temporary-password-row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.temporary-password-row code { flex:1; min-width:220px; padding:13px 15px; border-radius:10px; background:#05080c; border:1px solid rgba(255,255,255,.12); font-size:16px; overflow-wrap:anywhere; user-select:all; }
.compact-btn { width:auto; padding:10px 16px; }
.admin-create-user { grid-template-columns:minmax(220px,1fr) auto; align-items:end; }
.admin-users-list { display:grid; }
.admin-user-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:center; padding:18px 0; border-top:1px solid rgba(255,255,255,.08); }
.admin-user-row:first-child { border-top:0; }
.admin-user-details { min-width:0; }
.admin-badges { display:flex; gap:7px; flex-wrap:wrap; margin-top:8px; }
.admin-badge { display:inline-flex; align-items:center; padding:3px 8px; border-radius:999px; font-size:11px; font-weight:800; border:1px solid rgba(255,255,255,.14); color:var(--muted); }
.admin-badge.super { color:#a7d8ff; border-color:rgba(124,196,255,.4); background:rgba(124,196,255,.09); }
.admin-badge.warning { color:#ffd992; border-color:rgba(255,198,86,.38); background:rgba(255,198,86,.08); }
.admin-user-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.text-action-button { border:1px solid rgba(124,196,255,.3); background:rgba(124,196,255,.07); color:var(--accent); border-radius:10px; padding:8px 11px; cursor:pointer; font-weight:700; }
.text-action-button:hover { background:rgba(124,196,255,.13); }
@media (max-width:700px) {
  .admin-create-user { grid-template-columns:1fr; }
  .admin-user-row { grid-template-columns:1fr; align-items:start; }
  .admin-user-actions { justify-content:flex-start; }
}

/* ===== Featured Discord voice channels ===== */
.discord-channels {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:13px;
}
.discord-voice-channel {
  min-width:0;
  padding:11px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:11px;
  background:rgba(255,255,255,.04);
}
.discord-voice-channel-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
.discord-voice-channel-name {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  color:#f3f6ff;
}
.discord-voice-channel-name::before {
  content:'🔊';
  margin-right:6px;
  font-size:12px;
}
.discord-voice-channel-count {
  flex:0 0 auto;
  color:#73d89a;
  font-size:11px;
  font-weight:800;
}
.discord-voice-members { display:flex; flex-direction:column; gap:6px; }
.discord-voice-member {
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  font-size:12px;
  color:#dce5f4;
}
.discord-voice-member > span:last-child {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.discord-voice-avatar {
  width:24px;
  height:24px;
  flex:0 0 24px;
  border-radius:50%;
  object-fit:cover;
  background:rgba(255,255,255,.08);
}
.discord-voice-avatar-fallback {
  display:grid;
  place-items:center;
  font-size:10px;
  font-weight:900;
}
.discord-voice-channel.is-unavailable { opacity:.7; }
@media (max-width:620px) {
  .discord-channels { grid-template-columns:1fr; }
}

/* ===== News inline images + lightbox ===== */
.news-post-content {
  display: flow-root;
}
.news-text-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.68;
  color: #e7f0ff;
  font-size: 15px;
}
.news-inline-image {
  margin: 14px 0 16px;
  width: 100%;
  text-align: center;
}
.news-image-button {
  display: inline-block;
  width: auto;
  max-width: min(100%, 680px);
  padding: 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  overflow: hidden;
  background: #080b10;
  cursor: zoom-in;
  vertical-align: top;
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.news-image-button img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 430px;
  object-fit: contain;
  margin: 0 auto;
  transition: transform .18s ease, opacity .18s ease;
}
.news-image-button:hover img { transform: scale(1.012); opacity: .96; }
.news-image-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body.lightbox-open { overflow: hidden; }
.news-lightbox[hidden] { display: none; }
.news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-columns: minmax(52px, 8vw) minmax(0, 1fr) minmax(52px, 8vw);
  align-items: center;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px);
  padding: 24px 0;
}
.news-lightbox-stage {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  gap: 12px;
}
.news-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 94px);
  width: auto;
  height: auto;
  object-fit: contain;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  user-select: none;
}
.news-lightbox-close,
.news-lightbox-nav {
  appearance: none;
  border: 0;
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.news-lightbox-close:hover,
.news-lightbox-nav:hover { background: rgba(255,255,255,.18); }
.news-lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}
.news-lightbox-prev { grid-column: 1; grid-row: 1; }
.news-lightbox-next { grid-column: 3; grid-row: 1; }
.news-lightbox-nav {
  width: 52px;
  height: 72px;
  border-radius: 14px;
  font-size: 48px;
  line-height: 1;
  justify-self: center;
}
.news-lightbox-nav:active { transform: scale(.96); }
.news-lightbox-counter {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 700;
}
.news-image-insert-tools {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(124,196,255,.18);
  border-radius: 12px;
  background: rgba(124,196,255,.04);
}
.news-image-insert-tools[hidden] { display: none; }
.news-image-insert-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.image-insert-button {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .news-image-button { max-width: 100%; }
  .news-image-button img { max-height: 300px; }
  .news-lightbox {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding: 12px 0;
  }
  .news-lightbox-stage { height: calc(100vh - 24px); }
  .news-lightbox-stage img { max-height: calc(100vh - 76px); }
  .news-lightbox-nav {
    width: 42px;
    height: 60px;
    border-radius: 10px;
    font-size: 38px;
  }
  .news-lightbox-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }
}
