/* ============================================================
   Matrixaa — app look for the logged-in website
   Mirrors the mobile app: one centred column, the app header
   (avatar, Matrixaa, @handle, search, bell), the gold bottom bar
   with the raised + button, and the app's post cards.
   Loaded after style.css/app.css; shell.js adds `app-look` to <body>.
   ============================================================ */

body.app-look {
  --gold: var(--violet);
  --gold-soft: color-mix(in srgb, var(--violet) 22%, transparent);
  --love: #e53935;
  --nav-h: 66px;
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
body.app-look.no-bottom-nav { padding-bottom: 0; }

/* The old desktop dashboard chrome is replaced by the app header + bottom bar. */
body.app-look .topbar,
body.app-look .sidebar,
body.app-look .aside-col { display: none !important; }
body.app-look .dash-body {
  display: block;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 14px;
}
body.app-look .feed-col { padding: 6px 0 20px; max-width: none; }

/* ---------------------------------------------------------------- header */
.app-header {
  position: sticky; top: 0; z-index: 60;
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 10px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}
.app-header .me { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; color: inherit; }
.app-header .me img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold); padding: 2px; background: var(--bg);
  box-shadow: 0 0 18px -4px var(--gold);
}
.app-header .me b {
  display: block; font-size: 26px; line-height: 1.05; font-weight: 800; letter-spacing: -.01em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.app-header .me span { display: block; font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-header .hbtn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  font-size: 26px; color: var(--ink-1); cursor: pointer; border-radius: 50%;
}
.app-header .hbtn:hover { background: rgba(255,255,255,.05); }
.app-header .hbtn .dot {
  position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--bg); display: none;
}
.app-header .hbtn .dot.on { display: block; }

/* ------------------------------------------------------------ bottom nav */
.app-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg);
  border-top: 1px solid var(--card-border);
}
.app-bottom-nav .inner { max-width: 640px; margin: 0 auto; height: var(--nav-h); display: flex; }
.app-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink-2); font-size: 11.5px; font-weight: 500; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.app-bottom-nav a i { font-size: 27px; }
.app-bottom-nav a.on { color: var(--gold); font-weight: 700; }
.app-bottom-nav a.on::after { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--gold); margin-top: 1px; }
.app-bottom-nav a:not(.on)::after { content: ""; width: 16px; height: 2px; margin-top: 1px; }
.app-bottom-nav .create {
  flex: 1; display: flex; justify-content: center; align-items: flex-start;
}
.app-bottom-nav .create button {
  width: 52px; height: 52px; margin-top: -14px; border-radius: 50%;
  border: 3px solid var(--bg); cursor: pointer;
  background: var(--grad-brand); color: #000; font-size: 28px; display: grid; place-items: center;
  box-shadow: 0 8px 26px -6px var(--gold);
}

/* ------------------------------------------------------------ sheets */
.app-sheet-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.6);
  display: none; align-items: flex-end; justify-content: center;
}
.app-sheet-overlay.open { display: flex; }
.app-sheet {
  width: 100%; max-width: 640px; max-height: 86vh; overflow-y: auto;
  background: var(--panel); border-radius: 22px 22px 0 0; border: 1px solid var(--card-border);
  padding: 10px 14px calc(16px + env(safe-area-inset-bottom));
}
.app-sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--card-border-hi); margin: 2px auto 12px; }
.app-sheet h3 { font-size: 17px; margin: 0 4px 10px; }
.app-sheet .row {
  display: flex; align-items: center; gap: 14px; padding: 13px 8px; border-radius: 12px;
  font-size: 15px; color: var(--ink-1); cursor: pointer;
}
.app-sheet .row:hover { background: rgba(255,255,255,.04); }
.app-sheet .row i { font-size: 22px; color: var(--gold); }
.app-sheet .row.danger, .app-sheet .row.danger i { color: #ff6b6b; }
.app-search-input {
  width: 100%; padding: 12px 16px; border-radius: 999px; outline: none; font-size: 15px;
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border); color: var(--ink-1);
}
.app-search-results .row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.app-search-results .row small { display: block; color: var(--ink-3); font-size: 12.5px; }

/* ---------------------------------------------------------------- feed */
body.app-look .composer { display: none; }
body.app-look .composer.open {
  display: block; position: fixed; z-index: 130; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 640px; margin: 0; border-radius: 22px 22px 0 0;
  background: var(--panel); box-shadow: 0 -20px 60px rgba(0,0,0,.6);
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}
.composer-backdrop { position: fixed; inset: 0; z-index: 125; background: rgba(0,0,0,.6); display: none; }
.composer-backdrop.open { display: block; }
.composer .composer-title { display: none; }
body.app-look .composer.open .composer-title {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 17px; font-weight: 700;
}
body.app-look .composer.open .composer-title i { cursor: pointer; color: var(--ink-3); font-size: 20px; }

body.app-look .story-rail { gap: 16px; margin: 6px 0 14px; }
body.app-look .story-item { width: 104px; }
body.app-look .story-ring {
  width: 96px; height: 96px; padding: 4px;
  background: var(--grad-brand);
  box-shadow: 0 0 22px -6px var(--gold);
}
body.app-look .story-ring.muted { background: var(--card-border-hi); box-shadow: none; }
body.app-look .story-ring img { border: 3px solid var(--bg); }
body.app-look .story-item span { font-size: 14px; color: var(--ink-2); }
.story-ring .plus-badge {
  position: absolute; right: 2px; bottom: 4px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad-brand); color: #000; display: grid; place-items: center; font-size: 15px;
  border: 3px solid var(--bg);
}

body.app-look .feed-tabs {
  border-bottom: none; gap: 0; margin: 8px 0 16px; overflow-x: auto; scrollbar-width: none;
}
body.app-look .feed-tabs::-webkit-scrollbar { display: none; }
body.app-look .feed-tabs button {
  padding: 10px 14px 12px; font-size: 17px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
body.app-look .feed-tabs button + button::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 16px; width: 1px; background: var(--card-border-hi);
}
body.app-look .feed-tabs button.on { color: var(--gold); font-weight: 600; }
body.app-look .feed-tabs button.on::after {
  left: 50%; right: auto; width: 26px; transform: translateX(-50%); bottom: 2px; height: 3px; background: var(--gold);
}

body.app-look .post {
  border-radius: 24px; margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid color-mix(in srgb, var(--violet) 18%, transparent);
}
body.app-look .post-head { padding: 18px 14px 10px 18px; }
body.app-look .post-head img.pfp {
  width: 54px; height: 54px; border: 2px solid var(--gold); padding: 2px; background: var(--bg);
}
body.app-look .post-head .anon-pfp {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; flex-shrink: 0;
}
body.app-look .post-head .who .line1 { font-size: 17px; gap: 6px; flex-wrap: wrap; }
body.app-look .post-head .who .line1 .badge-ai { color: var(--gold); font-size: 18px; }
body.app-look .post-head .community-line {
  display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--gold); margin-top: 1px;
}
body.app-look .post-head .time { font-size: 14px; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
body.app-look .meta-chip {
  font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px;
  background: var(--grad-brand); color: #000;
}
body.app-look .meta-chip.muted { background: rgba(255,255,255,.1); color: var(--ink-2); }
body.app-look .post-head .more { font-size: 24px; color: var(--ink-2); padding: 6px; }
body.app-look .post-body { padding: 0 18px 12px; font-size: 16.5px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
body.app-look .post-body.clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
body.app-look .see-more { padding: 0 18px 12px; color: var(--gold); font-weight: 600; font-size: 16px; cursor: pointer; }
body.app-look .post-media { height: auto; max-height: 520px; margin: 0 10px 10px; border-radius: 16px; overflow: hidden; }
body.app-look .post-media img, body.app-look .post-media video { display: block; max-height: 520px; }

body.app-look .post-actions {
  display: flex; align-items: center; gap: 4px;
  margin: 4px 12px 14px; padding: 8px 14px; border-radius: 999px;
  background: rgba(0,0,0,.35); border: 1px solid var(--card-border);
}
body.app-look .post-actions .a {
  display: flex; align-items: center; gap: 6px; padding: 4px 8px; cursor: pointer; user-select: none;
  color: var(--ink-3); font-size: 15px; -webkit-tap-highlight-color: transparent;
}
body.app-look .post-actions .a i { font-size: 25px; color: var(--gold); }
body.app-look .post-actions .a.loved i { color: var(--love); }
body.app-look .post-actions .a .emoji { font-size: 21px; line-height: 1; }
/* Views: bar chart inside a rounded square, like the app's design. */
body.app-look .post-actions .a.views i {
  font-size: 16px; padding: 3px; border: 2px solid var(--gold); border-radius: 7px;
}
body.app-look .post-actions .a + .a { margin-left: 10px; }
body.app-look .post-actions .spacer { flex: 1; }

.app-reaction-picker {
  position: absolute; z-index: 140; display: flex; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--card-border-hi); box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.app-reaction-picker span { cursor: pointer; font-size: 27px; line-height: 1; transition: transform .12s; }
.app-reaction-picker span:hover { transform: scale(1.25); }
.app-reaction-picker .heart { color: var(--love); }

.app-toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px); transform: translateX(-50%); z-index: 200;
  background: var(--panel); border: 1px solid var(--card-border-hi); color: var(--ink-1);
  padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

/* Comments modal reads as the app's bottom sheet. */
body.app-look .comment-modal-overlay { align-items: flex-end; }
body.app-look .comment-modal {
  width: 100%; max-width: 640px; max-height: 82vh; border-radius: 22px 22px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 420px) {
  .app-header .me b { font-size: 23px; }
  body.app-look .feed-tabs button { font-size: 15.5px; padding: 10px 11px 12px; }
  body.app-look .story-item { width: 92px; }
  body.app-look .story-ring { width: 86px; height: 86px; }
  body.app-look .post-actions .a + .a { margin-left: 4px; }
}

/* ------------------------------------------- other pages in the column */
body.app-look .dash-body > main { padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; min-width: 0; }
body.app-look .dash-body { overflow-x: hidden; }
body.app-look .dash-body img, body.app-look .dash-body video { max-width: 100%; }
body.app-look .dash-body p, body.app-look .post-body { overflow-wrap: anywhere; }
body.app-look .conv-input-row { gap: 6px; padding-left: 10px; padding-right: 10px; }
body.app-look .conv-input-row input { min-width: 0; }
body.app-look .conv-input-row > * { flex-shrink: 0; }
body.app-look .conv-input-row > input { flex-shrink: 1; }

/* Chat: the list, or one conversation full-width with a back arrow — the
   app's two screens instead of the desktop's side-by-side panes. */
body.app-look[data-app-page="chat"] .dash-body { max-width: 640px !important; padding: 0; }
body.app-look .chat-body { display: block; height: calc(100dvh - 72px - var(--nav-h)); }
/* The bar stays on the chat list and steps aside inside a conversation. */
body.app-look.chat-open .app-bottom-nav { display: none; }
body.app-look.chat-open { padding-bottom: 0; }
body.app-look.chat-open .chat-body { height: calc(100dvh - 72px); }
body.app-look .chat-body .thread-col { border-right: none; height: 100%; }
body.app-look .chat-body .conv-col { display: none; }
body.app-look.chat-open .chat-body .thread-col { display: none; }
body.app-look.chat-open .chat-body .conv-col { display: flex; }
.conv-back { display: none; font-size: 22px; cursor: pointer; color: var(--ink-1); margin-right: 2px; }
body.app-look .conv-back { display: inline-block; }

body.app-look .profile-head { flex-wrap: wrap; gap: 16px; }
body.app-look .profile-head .info { min-width: 0; }
body.app-look .profile-cover img[src=""] { visibility: hidden; }

/* ---------------------------------------------- mentions, voice, anon */
.mention-box { display: none; margin: 0 0 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--card-border-hi); max-height: 220px; overflow-y: auto; }
.mention-box.open { display: block; }
.mention-box .m-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; font-size: 14px; }
.mention-box .m-row:hover, .mention-box .m-row.on { background: rgba(255,255,255,.06); }
.mention-box .m-row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.mention-box .m-row small { display: block; color: var(--ink-3); font-size: 12px; }
.mention { color: var(--gold); font-weight: 700; }
.comment-modal .mention-box { margin: 0 18px 8px; }

.composer-voice { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 6px 8px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--card-border); }
.composer-voice .cv-mid { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; }
.composer-voice .cv-mid audio { width: 100%; height: 34px; }
.composer-voice .cv-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 19px; color: var(--gold); }
.composer-voice .cv-btn.danger { color: #ff6b6b; }
.composer-voice .rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4d4d; animation: recblink .8s infinite alternate; }
@keyframes recblink { from { opacity: .25; } to { opacity: 1; } }

.composer-anon { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.composer-anon select { padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--card-border); color: var(--ink-1); }
.composer-anon-hint { font-size: 12px; color: var(--ink-3); width: 100%; }
.cm-anon-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 18px 0; font-size: 13px; color: var(--ink-2); }
.cm-anon-row span { font-size: 12px; color: var(--ink-3); width: 100%; }
.cm-anon-row input:disabled + * { opacity: .6; }

/* Shared post embedded in a share. */
.shared-card { margin: 0 14px 12px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--violet) 28%, transparent); background: rgba(0,0,0,.25); overflow: hidden; cursor: pointer; }
.shared-card img.sc-media { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.shared-card .sc-body { padding: 10px 12px; }
.shared-card .sc-head { display: flex; align-items: center; gap: 10px; }
.shared-card .sc-head img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.shared-card .sc-head b { font-size: 14.5px; display: block; }
.shared-card .sc-head small { color: var(--ink-3); font-size: 12px; }
.shared-card .sc-text { margin-top: 6px; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }

/* Share sheet: people to send to. */
.send-people { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.send-people::-webkit-scrollbar { display: none; }
.send-person { width: 68px; flex-shrink: 0; text-align: center; cursor: pointer; font-size: 12px; color: var(--ink-2); }
.send-person .av { position: relative; width: 60px; height: 60px; margin: 0 auto 6px; border-radius: 50%; border: 2px solid transparent; padding: 2px; }
.send-person .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.send-person.on .av { border-color: var(--gold); }
.send-person.on .av::after { content: "✓"; position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #000; font-size: 13px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--panel); }
.send-person span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.send-row { display: flex; gap: 8px; margin-top: 6px; }
.send-row input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--card-border); color: var(--ink-1); outline: none; }

/* Community view inside the home page. */
.community-head { border-radius: 22px; overflow: hidden; border: 1px solid var(--card-border); margin: 6px 0 14px; background: var(--card); }
.community-head .cover { height: 130px; background: var(--grad-brand-soft) center/cover; }
.community-head .info { padding: 12px 16px 16px; }
.community-head h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.community-head .meta { color: var(--ink-3); font-size: 14px; margin: 2px 0 10px; }
.community-head .desc { font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.community-head .row { display: flex; gap: 8px; flex-wrap: wrap; }
.community-head .write { margin-top: 12px; padding: 12px 16px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--card-border); color: var(--ink-3); cursor: pointer; }
.post-status-banner { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); margin: 0 4px 6px; }
.review-row { display: flex; gap: 8px; margin: -8px 0 18px; }
.review-row button { flex: 1; }

/* Comment bubble with its tail on the right, matching the app. */
.icon-flip { display: inline-block; transform: scaleX(-1); }

/* Report + upload-rights dialogs (MatrixaSafety in shell.js). */
.ms-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
@media (min-width: 640px) { .ms-modal { align-items: center; } }
.ms-modal__card { width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto; background: var(--panel); color: var(--ink-1); border: 1px solid var(--card-border); border-radius: 18px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ms-modal__card h3 { margin: 0 0 6px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.ms-modal__card h3 .ph { color: var(--gold); }
.ms-sub { color: var(--ink-2); font-size: .9rem; margin: 0 0 12px; line-height: 1.45; }
.ms-list { display: flex; flex-direction: column; }
.ms-row { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--card-border); color: var(--ink-1); padding: 12px 4px; font: inherit; cursor: pointer; }
.ms-row:hover { background: rgba(255,255,255,.05); }
.ms-row--urgent { color: #ef4444; }
.ms-radio, .ms-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; line-height: 1.4; }
.ms-radio input, .ms-check input { margin-top: 3px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.ms-modal__card textarea { width: 100%; box-sizing: border-box; margin-top: 8px; background: var(--bg); color: var(--ink-1); border: 1px solid var(--card-border); border-radius: 12px; padding: 10px; font: inherit; resize: vertical; }
.ms-link { display: inline-block; margin-top: 8px; color: var(--gold); font-size: .85rem; }
.ms-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ms-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.ms-toast { position: fixed; left: 50%; bottom: calc(var(--nav-h, 64px) + 20px); transform: translateX(-50%); background: var(--panel); color: var(--ink-1); border: 1px solid var(--card-border); padding: 10px 16px; border-radius: 999px; z-index: 10000; }

/* Paid posts + ad slots */
.locked-box { margin: 4px 14px 10px; padding: 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 16%, transparent), var(--panel)); }
.locked-box .lb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.locked-box .lb-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #000; display: grid; place-items: center; font-size: 18px; flex: none; }
.locked-box .lb-head b { display: block; font-size: 14px; }
.locked-box .lb-head span { font-size: 12.5px; color: var(--ink-3); }
.locked-box .lb-note { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.chip-btn.paid.on { color: var(--gold); border-color: var(--gold); }
.ad-slot { position: relative; margin: 10px 0 14px; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--card-border); min-height: 120px; }
.ad-slot .ad-tag { position: absolute; top: 8px; left: 10px; font-size: 11px; font-weight: 800; background: var(--gold); color: #000; padding: 1px 6px; border-radius: 5px; z-index: 1; }

/* Full-size photo viewer */
.img-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; cursor: zoom-out; }
.img-lightbox.open { display: flex; }
.img-lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.img-lightbox-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer; }
