.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #c5c5c5;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: "Roboto", arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
}

.gsi-material-button:focus {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

.gsi-material-button:focus:not(:focus-visible) {
  outline: none;
}

.gsi-material-button {
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
  transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: center;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 0;
  flex-grow: 0;
  font-family: "Roboto", arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity 0.218s;
  transition: opacity 0.218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: rgba(255, 255, 255, 0.3803921569);
  border-color: rgba(31, 31, 31, 0.1215686275);
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}

/* ============================================
   CSS CUSTOM PROPERTIES — Theme Variables
   ============================================ */
:root {
  /* Calendar event colors (existing, unchanged) */
  --color-all: rgb(38, 40, 43);
  --color-exhibitions: #4CAF50;
  --color-deadlines: #F44336;
  --color-meetings: #2196F3;
  --color-workshops: #FF9800;
  --color-personal: #9C27B0;
  --color-other: #607D8B;

  /* Surfaces */
  --surface-body: #e2e3e6;
  --surface-raised: #dddad9;
  --surface-card: rgb(213, 210, 209);
  --surface-card-dim: rgb(175, 168, 166);
  --surface-footer: rgb(205, 201, 196);
  --surface-panel: #f8f9fa;
  --surface-cell: #ffffff;
  --surface-input: #000000;
  --surface-input-soft: #bbbbbb;
  --surface-overlay: rgba(255, 255, 255, 0.19);
  --surface-overlay-dim: rgba(255, 255, 255, 0.4);
  --surface-parchment: #e3d5bc;
  --surface-today: #e3d3a2;
  --surface-focus: #e9ecef;

  /* Text */
  --text-heading: #000000;
  --text-body: rgb(22, 22, 22);
  --text-muted: #6c757d;
  --text-faded: #adb5bd;
  --text-placeholder: #868686;
  --text-brand: #242424;
  --text-on-input: #ffffff;

  /* Borders */
  --border-default: #dee2e6;
  --border-card: #dddddd;
  --border-field: #d1d1d1;
  --border-input: #ced4da;
  --border-glass: rgba(255, 255, 255, 0.3);

  /* Buttons */
  --btn-neutral: #8b8b8b;
  --btn-neutral-hover: #6c6c6c;
  --btn-neutral-active: #5a5a5a;

  /* Note/Parchment theme */
  --note-bg: #fff9c4;
  --note-bg-alt: #fff59d;
  --note-rule: #e8d9a0;
  --note-text: #5d4e37;
  --note-text-secondary: #8b7355;

  /* Derived (auto-recompute when --surface-body changes) */
  --scrollbar-thumb: color-mix(in srgb, black 8%, var(--surface-body));
  --chevron-bg: color-mix(in srgb, black 9%, var(--surface-body));
  --chevron-bg-hover: color-mix(in srgb, black 15%, var(--surface-body));
  --chevron-text: color-mix(in srgb, white 9%, var(--surface-body));
  --user-color-blend: 100%;

  /* Spotlight — gallery lighting effect */
  --spotlight: radial-gradient(
    ellipse 90% 70% at 42% 30%,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.25) 25%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(255, 255, 255, 0.08) 60%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 90%
  );
}

[data-bs-theme="dark"] {
  --surface-body: #1a1a1a;
  --surface-raised: #2a2a2a;
  --surface-card: #333333;
  --surface-card-dim: #252525;
  --surface-footer: #2a2a2a;
  --surface-panel: #1e1e1e;
  --surface-cell: #252525;
  --surface-input: #1a1a1a;
  --surface-input-soft: #3a3a3a;
  --surface-overlay: rgba(0, 0, 0, 0.3);
  --surface-overlay-dim: rgba(0, 0, 0, 0.3);
  --surface-parchment: #3d3528;
  --surface-today: #4a3f2a;
  --surface-focus: #333333;

  --text-heading: #e0e0e0;
  --text-body: #cccccc;
  --text-muted: #999999;
  --text-faded: #666666;
  --text-placeholder: #777777;
  --text-brand: #cccccc;
  --text-on-input: #e0e0e0;

  --border-default: #3a3a3a;
  --border-card: #3a3a3a;
  --border-field: #4a4a4a;
  --border-input: #4a4a4a;
  --border-glass: rgba(255, 255, 255, 0.1);

  --btn-neutral: #5a5a5a;
  --btn-neutral-hover: #6a6a6a;
  --btn-neutral-active: #7a7a7a;

  --note-bg: #3a3020;
  --note-bg-alt: #4a3f2a;
  --note-rule: #5a4d3a;
  --note-text: #d4c4a8;
  --note-text-secondary: #a89070;
  --user-color-blend: 40%;

  --spotlight: radial-gradient(
    ellipse 90% 70% at 42% 30%,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.35) 25%,
    rgba(255, 255, 255, 0.2) 45%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0.04) 75%,
    transparent 90%
  );
}

[data-bs-theme="dark"] #main-nav .btn-outline-dark {
  --bs-btn-color: var(--text-body);
  --bs-btn-border-color: var(--text-body);
  --bs-btn-hover-color: var(--surface-body);
  --bs-btn-hover-bg: var(--text-body);
  --bs-btn-hover-border-color: var(--text-body);
  --bs-btn-active-color: var(--surface-body);
  --bs-btn-active-bg: var(--text-body);
  --bs-btn-active-border-color: var(--text-body);
}

[data-bs-theme="dark"] #main-nav .btn-dark {
  --bs-btn-bg: var(--text-body);
  --bs-btn-color: var(--surface-body);
  --bs-btn-border-color: var(--text-body);
  --bs-btn-hover-bg: #e0e0e0;
  --bs-btn-hover-color: var(--surface-body);
  --bs-btn-hover-border-color: #e0e0e0;
  --bs-btn-active-bg: #e0e0e0;
  --bs-btn-active-color: var(--surface-body);
  --bs-btn-active-border-color: #e0e0e0;
}

/* Gallery art labels — keep light museum-label appearance in dark mode */
[data-bs-theme="dark"] .gallery-artwork-detail .small-art-label,
[data-bs-theme="dark"] .gallery-artwork-detail .large-art-label {
  --surface-panel: #f8f9fa;
  --surface-card: rgb(213, 210, 209);
  --text-heading: #000000;
  --text-body: rgb(22, 22, 22);
  --text-muted: #6c757d;
  --text-faded: #adb5bd;
  --border-default: #dee2e6;
  --border-card: #dddddd;
  --scrollbar-thumb: color-mix(in srgb, black 8%, #e2e3e6);
  --bs-body-color: #212529;
  --bs-heading-color: #000000;
  --bs-secondary-color: rgba(33, 37, 41, 0.75);
  --bs-link-color: #0d6efd;
  --bs-link-hover-color: #0a58ca;
  color: #212529;
}
[data-bs-theme="light"] .gallery-artwork-detail .large-art-label .post-entry-content {
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.12);
  background: rgb(255 255 255);
}

[data-bs-theme="light"] body:not([data-admin-utc-offset]) {
  background-color: #e2e3e6;
}
[data-bs-theme="light"] .header-bg,
[data-bs-theme="light"] footer.main-footer,
[data-bs-theme="light"] .sidebar-card-bg {
  background-color: #f7f9ff;
}

[data-bs-theme="light"] .sidebar-card-bg {
    box-shadow: 0 8px 25px rgb(0 0 0 / 9%);
}

.my-55 {
  margin-top: 5.5rem !important;
  margin-bottom: 5.5rem !important;
}

.mx-55 {
  margin-left: 5.5rem !important;
  margin-right: 5.5rem !important;
}

.mt-n1 {
  margin-top: -1rem !important;
}

.mt-n2 {
  margin-top: -2rem !important;
}

.mt-n3 {
  margin-top: -3rem !important;
}

.mt-n4 {
  margin-top: -4rem !important;
}

.mt-n5 {
  margin-top: -5rem !important;
}

.mt-n6 {
  margin-top: -6rem !important;
}

.mt-n7 {
  margin-top: -7rem !important;
}

.mb-n1 {
  margin-bottom: -1rem !important;
}

.mb-n2 {
  margin-bottom: -2rem !important;
}

.mb-n3 {
  margin-bottom: -3rem !important;
}

.mb-n4 {
  margin-bottom: -4rem !important;
}

.mb-n5 {
  margin-bottom: -5rem !important;
}

.mb-n6 {
  margin-bottom: -6rem !important;
}

.mb-n7 {
  margin-bottom: -7rem !important;
}

/* Post detail - push footer below the fold */
#artwork-post,
#article-post {
  min-height: calc(100vh - 80px);
}

/* Spotlight effect for artwork posts - simulates gallery lighting */
#artwork-post {
  background: var(--spotlight);
}

#article-post a {
  word-wrap: break-word !important;
}

.category-detail-badge,
div#post-detail-article .badge {
  font-size: 1rem;
  margin-bottom: 2rem !important;
  float: right;
}

nav#main-nav {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1040; /* Below Bootstrap modal (1055) and backdrop (1050) */
}
nav#main-nav a.navbar-brand:hover {
  color: unset !important;
}

.sidebar-img-table {
  position: relative;
  width: 65px;
  height: 55px;
  overflow: hidden;
}
.sidebar-img-table img {
  width: 100px !important;
  height: auto !important;
  position: absolute;
  transform: translate(-20%, 0);
}

.header-bg {
  background-color: var(--surface-raised);
}

.header-footer-bg {
  background-color: var(--surface-raised);
}

.sidebar-card-bg {
  background-color: var(--surface-card);
}

button.btn-close {
  z-index: 1;
}

#toggle-close-left-offcanvas-sidebar {
  left: 0;
  top: 0;
  z-index: 1070;
  padding: 10px;
  position: relative;
}

#toggle-close-left-offcanvas-sidebar {
  color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

#toggle-open-left-offcanvas-sidebar {
  z-index: 2;
  touch-action: manipulation;
}

@media screen and (max-width: 991px) {
  #toggle-open-left-offcanvas-sidebar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  /* Invisible hit-area extension: widens the tap target into the
     surrounding gap/edge space without changing the button's
     layout box, so the icon lineup spacing is unaffected. */
  #toggle-open-left-offcanvas-sidebar::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    bottom: -0.5rem;
    left: -0.75rem;
    right: -0.5rem;
  }
}

div#sidebar-left-offcanvas {
  left: 0;
}

/* Notifications offcanvas panel */
#notifications-offcanvas {
  z-index: 1060;
}

@media (min-width: 576px) {
  #notifications-offcanvas {
    max-width: 400px;
  }
}

.notification-panel-item {
  border-bottom: 1px solid var(--bs-border-color);
}

.notification-panel-item:last-child {
  border-bottom: none;
}

.notification-unread {
  background-color: var(--bs-tertiary-bg);
}

.notification-message {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offcanvas-footer {
  flex-shrink: 0;
}


.sidebar .table {
  --bs-table-border-color: var(--border-field) !important;
}
.sidebar aside.sticky-top h2 {
  font-size: 18px !important;
}
.sidebar aside.sticky-top.overflow-y-scroll {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--surface-body);
}
.sidebar aside.sticky-top.overflow-y-scroll::-webkit-scrollbar {
  width: 6px;
  background-color: var(--surface-body);
}
.sidebar aside.sticky-top.overflow-y-scroll::-webkit-scrollbar-thumb {
  width: 3px;
  background-color: var(--scrollbar-thumb);
}

#post-detail-chevrons.post-navigation a {
  height: 45px;
  width: 45px;
  display: flex;
  align-items: center;
  background: var(--chevron-bg);
  color: var(--chevron-text);
  text-shadow: 0 0 1px var(--chevron-text);
  border-radius: 50%;
  padding: 0.8rem;
  transform: translate(0, 150%);
  box-shadow: 0 4px 8px rgba(163, 163, 163, 0.3803921569);
}
#post-detail-chevrons.post-navigation a:hover {
  background: var(--chevron-bg-hover);
}
#post-detail-chevrons.post-navigation a i {
  font-size: 2rem;
}
#post-detail-chevrons.post-navigation .left-group,
#post-detail-chevrons.post-navigation .right-group {
  position: fixed;
  top: 39%;
  z-index: 1000;
}
#post-detail-chevrons.post-navigation .left-group {
  left: 1rem;
}
#post-detail-chevrons.post-navigation .right-group {
  right: 1rem;
}
#post-detail-chevrons.post-navigation .right-group a {
  justify-content: end;
}

/* Museum Art Label */
#small-art-label {
  border-radius: 3px;
  width: 60px;
  height: 80px;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
  padding: 0;
  position: relative;
  cursor: pointer;
  background: #f8f9fa;
  overflow: hidden;
}
#small-art-label:hover {
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
}
#small-art-label #text-line-box-1 {
  height: 3px;
  width: 38px;
  background: #bbb;
  border-radius: 2px;
  position: absolute;
  left: 10px;
  top: 12px;
}
#small-art-label #text-line-box-2 {
  height: 2px;
  width: 24px;
  background: #ccc;
  border-radius: 2px;
  position: absolute;
  left: 10px;
  top: 19px;
}
#small-art-label #text-line-box-3 {
  height: 1px;
  width: 39px;
  background: #ddd;
  border-radius: 1px;
  position: absolute;
  left: 10px;
  top: 30px;
}
#small-art-label #text-line-box-4 {
  height: 1px;
  width: 34px;
  background: #ddd;
  border-radius: 1px;
  position: absolute;
  left: 10px;
  top: 35px;
}
#small-art-label #text-line-box-5 {
  height: 1px;
  width: 38px;
  background: #ddd;
  border-radius: 1px;
  position: absolute;
  left: 10px;
  top: 41px;
}
#small-art-label #text-line-box-6 {
  height: 1px;
  width: 32px;
  background: #ddd;
  border-radius: 1px;
  position: absolute;
  left: 10px;
  top: 46px;
}
#small-art-label #text-line-box-7 {
  height: 2px;
  width: 26px;
  background: #ccc;
  border-radius: 1px;
  position: absolute;
  left: 10px;
  top: 58px;
}

.lightboxOverlay {
  outline: none !important;
}
/* Lightbox vertical centering */
.lightbox {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}
/* Position close button at top-right of viewport */
.lb-data .lb-close {
  position: absolute !important;
  top: calc(-50vh + 1rem + 50%) !important;
  right: calc(-50vw + 1rem + 50%) !important;
  z-index: 10000 !important;
  width: 40px !important;
  height: 40px !important;
  background: transparent !important;
  opacity: 0.7 !important;
  transition: opacity 0.2s !important;
  cursor: pointer;
}
.lb-data .lb-close::before,
.lb-data .lb-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
}
.lb-data .lb-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.lb-data .lb-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.lb-data .lb-close:hover {
  opacity: 1 !important;
}
.lb-dataContainer .lb-caption {
  display: none !important;
}

.mt-n-1 {
  margin-top: -1rem !important;
}

.mt-n-2 {
  margin-top: -2rem !important;
}

.mt-n-3 {
  margin-top: -3rem !important;
}

.mt-n-4 {
  margin-top: -4rem !important;
}

.mt-n-5 {
  margin-top: -5rem !important;
}

.mt-n-6 {
  margin-top: -6rem !important;
}

.ms-n-05 {
  margin-left: -0.5rem !important;
}

.me-n-05 {
  margin-right: -0.5rem !important;
}

.mb-n-1 {
  margin-bottom: -1rem !important;
}

.mb-n-2 {
  margin-bottom: -2rem !important;
}

.mb-n-3 {
  margin-bottom: -3rem !important;
}

.mb-n-4 {
  margin-bottom: -4rem !important;
}

.mb-n-5 {
  margin-bottom: -5rem !important;
}

.mb-n-6 {
  margin-bottom: -6rem !important;
}

.modal-backdrop {
  opacity: 0.8 !important;
}

#post-row-wrapper .post-back-to-list {
  position: fixed;
  z-index: 2;
}

.login-form-wrapper {
  margin: 0 auto;
  width: 100%;
}

blockquote {
  margin: 1.3rem 1.1rem;
  font-style: italic;
  border-left: 5px solid #ccc;
  font-style: italic;
  overflow: hidden;
  padding-left: 1.5em;
  padding-right: 1.5em;
}
blockquote ::before {
  content: open-quote;
}
blockquote ::after {
  content: close-quote;
}

.g-recaptcha {
  transform: scale(1.15);
  transform-origin: 0 0;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  opacity: 0.8;
}
.g-recaptcha > div {
  width: 100% !important;
}

.navbar-brand.monofett-regular {
  font-size: xxx-large !important;
  margin-top: -9px;
  line-height: 1.1;
}

.main-footer .monofett-regular {
  font-size: xx-large;
  line-height: 0.7;
}

body:not(body[data-admin-utc-offset]) {
  background-color: var(--surface-body);
  font-size: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

ul.errorlist {
  list-style-type: none;
  padding-left: 0;
}
ul.errorlist > li {
  padding: 10px 10px 10px 15px;
  background: rgba(254, 194, 204, 0.4);
  border-radius: 5px;
  color: red;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.frontpage-card-list.list-group .list-group-item {
  background-color: var(--surface-overlay-dim);
}
.frontpage-card-list.list-group .list-group-item:first-child {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.grecaptcha-badge {
  bottom: 100px !important;
}

.bg-color-whitesmoke {
  background-color: var(--surface-raised);
}

.dropdown-button-no-after::after {
  display: none;
}

.bg-glass {
  background: var(--surface-overlay);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14.2px);
  -webkit-backdrop-filter: blur(14.2px);
  border: 1px solid var(--border-glass);
}
span.comment-wrapper a {
    text-shadow: none !important;
}
.comments-wrapper .left-group {
    width: -webkit-fill-available;
    width: -moz-available;
    height: auto !important;
}

.comments-wrapper .left-group-bottom button,
.comments-wrapper .left-group-bottom a {
    font-size: 14px !important;
    font-weight: 400 !important;
    text-shadow: none;
}

.comments-wrapper {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.comments-wrapper.replies-wrapper {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-default);
}

#comments-body-bottom {
  padding-left: 0.3rem;
}

.invalid-feedback {
  margin: 1.2rem auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Mulish", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

i.fa-solid.fa-heart,
i.fa-regular.fa-trash-can:hover {
  color: var(--bs-danger);
}

i.fa-solid.fa-comment-dots:hover {
  color: var(--bs-primary);
}

h2.list-post-title,
h2.post-title {
  font-weight: 600;
  margin-bottom: 0;
  font-size: 22px;
}

#post-row-wrapper .post-item-wrapper:not(:last-child) {
  margin-bottom: 2rem;
}

#homepage #post-row-wrapper .post-item-wrapper:not(:last-child) {
  margin-bottom: 1rem;
}

.dropdown-item:focus, .dropdown-item:hover {
  background-color: color-mix(in srgb, black 50%, rgba(255, 255, 255, 0.19));
  color: #bfbfbf;
}

#profile-header h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: -15px;
}
#profile-header .posts-follows {
  width: fit-content;
  margin: 0 auto;
}

.alert {
  backdrop-filter: blur(10px);
}

.alert-success {
  --bs-alert-color: var(--bs-success-text-emphasis);
  --bs-alert-bg: rgba(220, 240, 220, 0.5);
  --bs-alert-border-color: var(--bs-success-border-subtle);
  --bs-alert-link-color: var(--bs-success-text-emphasis);
}

.alert-info {
  --bs-alert-color: var(--bs-info-text-emphasis);
  --bs-alert-bg: rgba(207, 244, 252, 0.40);
  --bs-alert-border-color: var(--bs-info-border-subtle);
  --bs-alert-link-color: var(--bs-info-text-emphasis);
}

[data-bs-theme="dark"] .alert-success {
  --bs-alert-bg: #1a3a2a;
  --bs-alert-color: #7dcea0;
  --bs-alert-border-color: #2a5a3a;
  --bs-alert-link-color: #8dd8ae;
}
[data-bs-theme="dark"] .alert-info {
  --bs-alert-bg: #1a2f3a;
  --bs-alert-color: #7dc4d4;
  --bs-alert-border-color: #2a4a5a;
  --bs-alert-link-color: #8dd4e4;
}
[data-bs-theme="dark"] .alert-warning {
  --bs-alert-bg: #3a3020;
  --bs-alert-color: #d4b87a;
  --bs-alert-border-color: #5a4830;
  --bs-alert-link-color: #e0c88a;
}
[data-bs-theme="dark"] .alert-danger {
  --bs-alert-bg: #3a1a1a;
  --bs-alert-color: #d48080;
  --bs-alert-border-color: #5a2a2a;
  --bs-alert-link-color: #e09090;
}
[data-bs-theme="dark"] .alert .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.bg-body-tertiary {
  background-color: var(--surface-card-dim) !important;
}

.hero-banner-content {
  padding: 5rem 0;
}

.post-wrapper,
.content-wrapper {
  margin-bottom: 1rem;
}
.lb-outerContainer {
  background-color: unset !important;
}
.lightbox .lb-image {
  border: none !important;
}

/* Replace pixelated lightbox loading GIF with CSS spinner */
.lb-cancel {
  background: none !important;
  width: 40px !important;
  height: 40px !important;
  border: 3px solid rgba(var(--bs-primary-rgb), 0.3) !important;
  border-top-color: var(--bs-primary) !important;
  border-radius: 50% !important;
  animation: lb-spin 0.8s linear infinite !important;
}
@keyframes lb-spin {
  to {
    transform: rotate(360deg);
  }
}

.post-article {
  padding: 2rem 2rem 2.1rem;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
  background-color: var(--surface-parchment);
  margin-bottom: 2rem;
}

.post-article, .post-text-wrapper {
  max-width: 700px;
}

#div_id_height,
#div_id_width,
#div_id_depth,
#div_id_measurement_unit {
  width: 28.69%;
}

fieldset {
  border: 1px solid var(--border-field);
  border-radius: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.form-control:not(#id_captcha),
.form-control:not(#id_captcha):active,
.form-control:not(#id_captcha):focus {
  color: var(--text-on-input);
  background-color: var(--surface-input);
}

input#main-search.form-control:not(#id_captcha),
#div_id_comment .form-control:not(#id_captcha) {
  background-color: var(--surface-input-soft);
  border: none;
}
input#main-search.form-control:not(#id_captcha)::placeholder,
#div_id_comment .form-control:not(#id_captcha)::placeholder {
  opacity: 0.6;
}

input#main-search.form-control:not(#id_captcha):active,
input#main-search.form-control:not(#id_captcha):focus,
#div_id_comment .form-control:not(#id_captcha):active,
#div_id_comment .form-control:not(#id_captcha):focus {
  background-color: var(--surface-input);
}

[data-bs-theme="dark"] input#main-search.form-control:not(#id_captcha) {
  background-color: #1a1a1a;
}

.navbar-search span#search-addon {
  margin-left: -40px;
  position: relative;
  opacity: 0.3;
}

button.btn-close {
  position: absolute;
  right: 10px;
  top: 10px;
}

.modal.show .modal-dialog .modal-title {
  margin-bottom: 15px;
}

[data-bs-theme="dark"] .modal-header {
  border-bottom: unset !important;
  border-top-left-radius: unset !important;
  border-top-right-radius: unset !important;
}

[data-bs-theme="dark"] .modal-content {
  background-color: var(--surface-raised);
  border-color: var(--border-default);
}
[data-bs-theme="dark"] .modal-content .sidebar-card-bg {
  background-color: var(--surface-card);
}
[data-bs-theme="dark"] .modal-content .bg-success-subtle {
  background-color: #2a5a3a !important;
  color: #a0e0b8;
}
[data-bs-theme="dark"] .modal-content .bg-primary-subtle {
  background-color: #2a3f5e !important;
  color: #a0c4e4;
}
[data-bs-theme="dark"] .modal-content .bg-info-subtle {
  background-color: #2a4550 !important;
  color: #a0dae8;
}
[data-bs-theme="dark"] .modal-content .bg-warning-subtle {
  background-color: #4a3f28 !important;
  color: #e0c88a;
}

.btn-link {
  text-decoration: none;
}

.btn-sm {
  padding: 1px 8px;
}

.btn-default {
  background-color: var(--surface-focus);
  color: var(--text-muted);
}
.btn-default:hover {
  background-color: var(--border-default);
}
.btn-default.tag {
  border-radius: 0;
}

.bg-warning {
  color: #212529 !important;
}

[data-bs-theme="dark"] .btn-default {
  background-color: #444444;
  color: var(--text-body);
}
[data-bs-theme="dark"] .btn-default:hover {
  background-color: #555555;
}

[data-bs-theme="dark"] .btn-outline-secondary {
  --bs-btn-color: var(--text-body);
  --bs-btn-border-color: #6c757d;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #6c757d;
  --bs-btn-hover-border-color: #6c757d;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #6c757d;
  --bs-btn-active-border-color: #6c757d;
  --bs-btn-disabled-color: var(--text-muted);
  --bs-btn-disabled-border-color: var(--text-faded);
}

h1 span.smaller {
  font-size: 1.5rem;
}

#frontpage-jumbotron-wrapper {
  /* NOTE: this background previously also layered in a hero image,
     images/madonna_and_child_with_angels dot jpg, that was never
     committed to the repo and 404'd in every environment. Removed
     rather than left dead — WhiteNoise's manifest storage fails
     collectstatic on any background reference it can't resolve on
     disk (it's a regex scan, not comment-aware, so don't write that
     reference as real CSS syntax even in a comment). Re-add a real
     file under static/images/ here if the hero image is wanted back. */
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1993172269) 0%, rgba(0, 0, 0, 0.4458158263) 35%, rgba(0, 0, 0, 0.4458158263) 56%, rgba(0, 0, 0, 0.2021183473) 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.dropdown-toggle.ellipsis .fa-ellipsis {
  font-size: 1.4rem;
  margin-right: 1rem;
  color: var(--text-heading);
}
.dropdown-toggle.ellipsis::after {
  display: none;
}

.login-signup-image-left::before {
  content: "";
  background-color: rgba(14, 11, 19, 0.3);
  width: 100%;
  height: 100%;
  position: absolute;
}

.welcome-text-content-wrapper h1 {
  font-size: 3rem;
}

.styled-divider {
  width: 300px;
  height: 5px;
  background: #ffc6c6;
  margin: 1rem auto 0.2rem;
  border-radius: 9px;
}

.w-90 {
  width: 90% !important;
}

.lead-xxl {
  font-size: xx-large;
}

.card-icon-top i.fa-xxxl,
.card-icon-top i.fa-xxxl,
.card-icon-top i.fa-xxxl {
  font-size: 4rem;
}

a,
a.nav-link i,
footer.main-footer .btn.btn-link {
  text-decoration: none;
  /* color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
  text-shadow: 0 0 1px rgba(var(--bs-link-color-rgb)); */
}

a.post-title {
  color: var(--text-body);
}
a.post-title:hover {
  color: var(--text-muted);
}

#article-post .post-title h1 {
  color: var(--text-heading);
  font-size: 2rem;
}

#id_captcha.form-control {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.input-group .form-control a {
  color: #c3c3c3;
}

.container-x-small,
.container-med,
.container-small {
  max-width: 100%;
  margin: 0 auto;
}

button.like-button, button.comment-button {
  border: none;
  background: transparent;
  padding: 0;
}
button.unfollow-button:hover {
  color: red;
}
button.unfollow-button, button.follow-button, button.message-button, button.no-message-button {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
button.no-message-button {
  cursor: not-allowed;
}

.btn.btn-tertiary {
  background: var(--btn-neutral-hover);
  color: var(--text-on-input);
}
.btn.btn-tertiary.btn-lg {
  padding: 5px 10px !important;
}
.btn.btn-tertiary:hover {
  background: var(--btn-neutral-active);
}
.btn.btn-tertiary:first-child:active, .btn.btn-tertiary:active, .btn.btn-tertiary:focus {
  background: var(--btn-neutral-active);
  color: var(--text-on-input);
}

.hero-banner.profile-banner {
  background: black;
}

main {
  position: relative;
  padding-top: 82px; /* Fixed navbar height (~58px) + breathing room */
}
.sidebar aside.sticky-top {
  top: 82px;
}

a#create-new-post {
  color: gray;
}

a#create-new-post:hover {
    border-color: rgba(var(--bs-primary-rgb), var(--bs-border-opacity)) !important;
    color: #6ea8fe !important;
}

@media screen and (max-width: 991px) {
  main {
    padding-top: 128px; /* Mobile navbar height (~100px) + breathing room */
  }
  .sidebar aside.sticky-top {
    top: 50px;
  }
}
main:has(> .container-fluid > #login-wrapper) {
  padding-top: 58px; /* Exact desktop nav height - no gap above login image */
  flex: 1;
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 991px) {
  main:has(> .container-fluid > #login-wrapper) {
    padding-top: 100px; /* Exact mobile nav height */
  }
}
main .sidebar aside.sticky-top.rounded.p-4 {
  top: 5rem;
}

.post-entry-content {
  background: var(--surface-card);
  padding: 1.5rem;
  width: -webkit-fill-available;
  width: -moz-available;
}

.hero-banner.profile-banner {
  margin-top: -2.2rem;
}

.card-col-wrapper .card .card-header,
.card-col-wrapper .card .card-footer {
  background-color: unset;
}
.card-col-wrapper .card .img-top {
  text-align: center;
  background-color: black;
  height: auto;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.card-col-wrapper .card .img-top img:not(.gif) {
  height: auto;
  width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.card {
  overflow: hidden;
  border-color: var(--border-card) !important;
}
.card-hover {
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.card .card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.card .card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2px 16px 8px;
}

#frontpage-cards .card-item-wrapper {
  width: 100%;
}
#frontpage-cards .card-item-wrapper > .card {
  margin-bottom: 0;
}

#post-detail .post-img-wrapper .img-top {
  height: max-content;
  margin: 0 auto;
  line-height: 0;
  font-size: 0;
}
#post-detail .post-img-wrapper .img-top a {
  display: block;
  line-height: 0;
}
#post-detail .post-img-wrapper .img-top a picture {
  display: block;
  line-height: 0;
}
#post-detail .post-img-wrapper .img-top a img {
  height: auto;
  object-fit: contain;
  width: auto;
  display: block;
}

#join-community-button {
  position: relative;
}

.z-index-2 {
  z-index: 2 !important;
}

.profile-post-list .img-top.ratio.ratio-1x1 {
  overflow: hidden;
}

/* Text post cards (article/verse) in profile - fill ratio container */
.profile-post-list .ratio > .card-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(99, 99, 99, 0.85);
  text-shadow: 0 0 0 #000000;
}

/* Limit article/verse text in profile cards to prevent row stretching */
.profile-post-list .profile-card-wrapper .card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-card-wrapper .card {
  background-color: transparent;
}

[data-bs-theme="light"] .profile-card-contrast {
  background-color: #5f5f5f;
  color: #ffffff;
}
[data-bs-theme="dark"] .profile-card-contrast {
  background-color: #3f3f3f;
  color: #ffffff;
}

.profile-card-has-image {
  position: relative;
  color: #f0f0f0;
}
.profile-card-has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.profile-card-has-image > * {
  position: relative;
}

/* Responsive profile image */
.profile-image-wrapper {
  max-width: 190px;
  width: 100%;
  margin: 0 auto;
}

.profile-image-wrapper .profile-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

h1.profile-username {
  color: #e7e7e7;
  font-size: 5rem;
  margin-bottom: 0;
}

p:last-child {
  margin-bottom: 0.5rem;
}

.profile-userstat {
  margin-bottom: 0.5rem;
}

.profile-social-links a {
  color: var(--bs-secondary-color);
  font-size: 1.15rem;
  transition: opacity 0.2s;
}

.profile-social-links a:hover {
  opacity: 0.7;
}

.left-group {
  padding-right: 15px;
}

.lb-data .lb-caption {
  font-size: 1.5rem !important;
}

.calendar-navigation .user-calendar-prev-next {
  cursor: pointer;
}

textarea::placeholder,
input::placeholder {
  color: var(--text-placeholder) !important;
}

input#id_date_art_finished,
input#id_price,
input#id_currency {
  width: 100%;
}

.form-select {
  background-color: var(--surface-input);
  color: var(--text-on-input);
}

input.form-control[disabled],
.form-select:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: var(--surface-input);
}

.form-check-input {
  border: 1px solid var(--btn-neutral);
}

main > .container-fluid:has(#login-wrapper) {
  flex: 1;
  display: flex;
}

#login-wrapper {
  flex: 1;
  min-height: 95vh;
}
@media screen and (max-width: 575.98px) {
  #login-wrapper {
    background: url("/static/images/no-regerts-800.png") no-repeat center center;
    background-size: cover;
    position: relative;
    margin-bottom: 0 !important;
  }
  #login-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
  }
  #login-wrapper > .col-12 {
    position: relative;
    z-index: 0;
    padding-bottom: 1rem;
  }
  #login-wrapper .login-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 8px;
    margin: 0 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  [data-bs-theme="dark"] #login-wrapper .login-form-wrapper {
    background: rgb(67 67 67 / 95%);
  }
}
#login-wrapper .login-signup-image-left {
  background: url("/static/images/no-regerts-800.png") no-repeat;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
}

ul.nav.nav-tabs {
  --bs-nav-tabs-border-color: var(--border-field);
}

.ck.ck-editor__main > .ck-editor__editable {
  background: var(--surface-input) !important;
  color: var(--text-on-input);
}

.sidebar .right-sidebar {
  padding-bottom: 1rem;
}


#sidebar-left-offcanvas .left-sidebar {
  margin-bottom: 0 !important;
}

#user-links .deny-access-overlay {
  display: none;
}
#user-links .deny-access-overlay p {
  display: none;
}

#user-links:hover .deny-access-overlay {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100000;
}
[data-bs-theme="dark"] #user-links:hover .deny-access-overlay {
  background: rgba(0, 0, 0, 0.9);
}
#user-links:hover .deny-access-overlay p {
  display: block;
  text-align: center;
}
#user-links:hover .deny-access-overlay p button:hover {
  color: black;
}
.sidebar-cta-btn {
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
#user-links .deny-access-overlay p button.sidebar-cta-btn:hover {
  background-color: var(--bs-success);
  color: #fff;
}
.sidebar-login-btn {
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
#user-links .deny-access-overlay p a.sidebar-login-btn:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}
.edit-profile-button-wrapper a.lead {
    position: relative;
    z-index: 1000;
}
div#about-info-modal {
  transform: translate(0%, -20%);
  font-size: 1.2rem;
}
div#about-info-modal .modal-body {
  padding: 2rem 3rem 3rem;
}

.spinner-border,
.spinner-grow {
  position: absolute;
  z-index: 0;
}

.post-image-wrapper .spinner-border,
.post-content-area .spinner-border {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}

div#list-nav-wrapper {
  background: var(--surface-body);
  margin-top: -40px;
}

.sidebar-card-bg-darkened {
  background-color: var(--surface-card-dim);
}

/* Masonry Grid */
#masonry-grid {
  margin: 0 -6px;
}

#masonry-grid::after {
  content: '';
  display: block;
  clear: both;
}

.grid-sizer {
  width: 100%;
  padding: 0;
  height: 0;
  visibility: hidden;
}

.masonry-item {
  width: 100%;
  float: left;
  padding: 15px 10px;
  box-sizing: border-box;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.masonry-item[data-batch="initial"] {
  opacity: 1;
  transform: scale(1);
}

.masonry-item.visible {
  opacity: 1;
  transform: scale(1);
}

.list-view .masonry-item {
  padding: 8px;
}

.profile-post-list .profile-card-wrapper {
    width: 50%;
}

@media (min-width: 576px) {
  .grid-sizer,
  .masonry-item {
    width: 50%;
  }
  .masonry-item {
    padding: 15px;
  }
  .profile-post-list .profile-card-wrapper {
    width: 33%;
  }
}

@media screen and (min-width: 768px) {
  .profile-post-list .profile-card-wrapper {
    width: 33%;
  }  
}

@media (min-width: 1200px) {
  .grid-sizer,
  .masonry-item {
    width: 33.333%;
  }
  .login-form-wrapper {
    width: 80%;
  }
}

@media (min-width: 1199px) and (max-width: 1399px) {
  .grid-sizer,
  .masonry-item {
    width: 50%;
  }
}

@media (min-width: 1440px) {
  .grid-sizer,
  .masonry-item {
    width: 25%;
  }
  .login-form-wrapper {
    width: 70%;
  }
}

@media (min-width: 2560px) {
  .grid-sizer,
  .masonry-item {
    width: 16.666%;
  }
}

.masonry-item .card {
  height: 100%;
}

.masonry-item img.post-image {
  height: auto;
  width: 100%;
}

/* Category Filter Buttons */
.btn-category-filter {
  background-color: var(--btn-neutral);
  color: #ffffff;
  border: none;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-transform: uppercase;
}

.btn-category-filter:hover {
  background-color: var(--btn-neutral-hover);
  color: #ffffff;
}

.btn-category-filter.active {
  background-color: var(--btn-neutral-active);
  color: #ffffff;
}

/* Category navigation link (looks like filter button but navigates) */
.btn-category-link {
  background-color: var(--btn-neutral);
  color: #ffffff;
  border: none;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.55;
}

.btn-category-link:hover {
  background-color: var(--btn-neutral-hover);
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
}

.btn-category-link.active {
  background-color: var(--btn-neutral-active);
  color: #ffffff;
  opacity: 1;
}

/* View toggle buttons (grid/list) */
.btn-view-toggle {
  background-color: var(--btn-neutral);
  color: #ffffff;
  border: none;
  padding: 0.375rem 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.55;
}

.btn-view-toggle:hover {
  background-color: var(--btn-neutral-hover);
  color: #ffffff;
  opacity: 0.85;
}

.btn-view-toggle.active {
  background-color: var(--btn-neutral-active);
  color: #ffffff;
  opacity: 1;
}

.btn-view-toggle:disabled {
  cursor: default;
}

/* List view mode for masonry grid */
#masonry-grid.list-view {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  height: auto !important;
  position: relative !important;
}

#masonry-grid.list-view .grid-sizer {
  display: none !important;
}

#masonry-grid.list-view .masonry-item {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  max-width: 600px;
  margin-bottom: 1rem;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

#masonry-grid.list-view .masonry-item .card {
  width: 100%;
}

#masonry-grid.list-view .masonry-item .post-image {
  max-height: 500px;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .masonry-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.sidebar aside a.btn.sidebar-card-bg:hover {
  background: var(--btn-neutral);
  color: white !important;
  border-color: var(--btn-neutral);
}

.navbar {
  --bs-navbar-padding-y: 0;
}
.navbar .navbar-nav .dropdown-menu {
  position: absolute;
  z-index: 2000;
}

/* Hamburger X Navbar */
#main-nav .navbar-collapse {
  min-width: 0;
}

#main-nav.navbar .nav-link {
  font-size: 1.15rem;
}
@media screen and (max-width: 767px) {
  #main-nav .navbar-nav .nav-link i.fa-solid,
  #main-nav .navbar-nav .nav-link i.fas,
  #main-nav .navbar-nav button i.fa-solid {
    font-size: 1.2rem;
  }
  .post-article, .post-text-wrapper {
    max-width: 100% !important;
  }
}

#main-nav.navbar .dropdown-menu {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#main-nav.navbar .navbar-toggler {
  border-color: transparent;
}

#main-nav.navbar .navbar-toggler:focus {
  background: none;
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

#main-nav.navbar .navbar-toggler:focus:not(:focus-visible) {
  outline: none;
}

#main-nav.navbar .navbar-toggler span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 5px auto;
  background: var(--text-brand);
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#main-nav.navbar .navbar-toggler:hover span,
#main-nav.navbar .navbar-toggler:focus span {
  background: var(--text-muted);
}

/* rotate first span */
#main-nav.navbar .navbar-toggler[aria-expanded=true] span:first-of-type {
  transform: rotate(45deg) translate(6px, 6px);
}

/* hide second span */
#main-nav.navbar .navbar-toggler[aria-expanded=true] span:nth-of-type(2) {
  opacity: 0;
}

/* rotate third span */
#main-nav.navbar .navbar-toggler[aria-expanded=true] span:last-of-type {
  transform: rotate(-45deg) translate(5px, -5px);
}

#main-nav.navbar .navbar-toggler[aria-expanded=false] span {
  transform: none;
  opacity: 1;
}

.navbar-brand {
  color: var(--text-brand);
  font-size: 1.9rem;
}
.navbar-brand:hover {
  color: unset;
}

img.user-profile-img {
  margin-bottom: -1rem;
  outline: 8px solid var(--surface-raised);
  position: relative;
  background: var(--surface-raised);
  z-index: 2;
  border-color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

[data-bs-theme="light"] img.user-profile-img {
  outline: 8px solid #f7f9ff;
}

footer.main-footer {
  margin-top: auto;
  background-color: var(--surface-footer);
}
footer.main-footer span.bebas-neue-regular {
  font-size: 1.2rem;
}

/* Compact variant for footer.html duplicated into a sidebar <aside>
   (templates/includes/main-nav.html's offcanvas, base-list.html,
   home-base.html — pass `with in_sidebar=True` to the include). Same
   markup as the full-width footer, just sized to fit a narrow column
   instead of the page. Add future sidebar-specific tweaks here rather
   than branching more markup in footer.html itself. */
footer.main-footer.footer-in-sidebar {
  margin-top: 0;
  padding: 0.5rem 0.75rem 0.75rem;
  background-color: transparent;
}
footer.main-footer.footer-in-sidebar .small {
  font-size: 0.7rem;
  line-height: 1.4;
}

.table.table-striped {
  --bs-table-border-color: var(--border-field) !important;
  --bs-table-bg: var(--surface-panel) !important;
}


.calendar-dates li.active::before {
  background: unset !important;
}

.today-date a {
  color: black;
}

.today-date::before,
.table td.today-date {
  background-color: #9eafb7 !important;
}

/* Legend Styles */
.calendar-legend {
  margin-bottom: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.legend-color {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-right: 5px;
}

.legend-item.filtered .legend-color {
  opacity: 0.3;
}

/* Month Card Styles */
.month-card {
  border: 1px solid var(--border-default);
  border-radius: 0.25rem;
  overflow: hidden;
}

.month-header {
  background-color: var(--surface-panel);
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid var(--border-default);
}

.month-table {
  width: 100%;
  border-collapse: collapse;
}

.month-table th,
.month-table td {
  text-align: center;
  width: 14.28%;
  font-size: 1.2rem;
  padding: 15px 0 20px;
  position: relative;
}

.month-table th {
  font-weight: 500;
  color: var(--text-muted);
}

.day-cell {
  border: 1px solid var(--border-default);
  height: 32px;
  position: relative;
}

.other-month {
  background-color: var(--surface-panel);
  color: var(--text-faded);
}

.today {
  background-color: var(--surface-today) !important;
}

.day-number {
  display: block;
  color: inherit;
  text-decoration: none;
}

#calendar-year-page .day-events-indicator {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  width: 100%;
}

#calendar-year-page .day-events-indicator .event-dot {
  width: 5px;
  height: 5px;
  margin: 0 1px;
}

#calendar-month-page .day-events-indicator:has(div.event-badge) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: absolute;
  overflow-y: auto;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--surface-body);
}

.event-dot {
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-radius: 50%;
}

.event-dot-sm {
  width: 5px;
  height: 5px;
  margin: 0 auto;
  border-radius: 50%;
}

.event-badge {
  display: inline-block;
  height: 17px;
  width: 100%;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 2px;
}

.event-badge:last-child {
  margin-bottom: 0;
}

/* ============================================
   CSS GRID CALENDAR - MONTH VIEW
   ============================================ */

/* Main calendar grid - 7 columns for weekdays */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border-default);
  border-radius: 0.375rem;
  overflow: hidden;
}

/* Header cells for day names */
.calendar-grid-header {
  background-color: var(--bs-primary);
  color: white;
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-weight: 500;
  border-bottom: 1px solid var(--border-default);
}

/* Week container - spans all 7 columns, contains day cells as sub-grid */
.calendar-week {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  position: relative;
}

/* Events row - absolutely positioned below day headers */
.calendar-events-row {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
  z-index: 5;
  pointer-events: none;
}

/* Allow clicks on event bars */
.calendar-events-row > * {
  pointer-events: auto;
}

/* Hide events row when empty */
.calendar-events-row:empty {
  display: none;
}

/* Day cells */
.calendar-grid-day {
  min-height: 120px;
  padding: 0.5rem;
  padding-top: 0.5rem;
  border-right: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  background-color: var(--surface-cell);
  display: flex;
  flex-direction: column;
}

/* Remove right border on the last day cell of each week */
.calendar-week .calendar-grid-day:last-child {
  border-right: none;
}

/* Today styling */
.calendar-grid-day.is-today {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* Other month days (faded) */
.calendar-grid-day.is-other-month {
  background-color: var(--surface-panel);
  opacity: 0.5;
}

/* Day header with number and add button */
.calendar-grid-day .day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.calendar-grid-day .day-number {
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.calendar-grid-day .day-add-event {
  color: var(--bs-primary);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.calendar-grid-day .day-add-event:hover {
  opacity: 1;
}

/* Single-day events container - pushed down to leave room for multi-day bars */
.calendar-grid-day .day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
  flex-grow: 1;
}

/* ============================================
   EVENT BARS - Multi-day and Single-day
   ============================================ */

/* Base event bar styling */
.event-bar {
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.7rem;
  color: white;
  transition: opacity 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.event-bar:hover {
  opacity: 0.85;
}

/* Title text inside bar */
.event-bar .event-title {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Multi-day event - start segment (has left padding + rounded left corners) */
.event-bar.event-start {
  padding-left: 6px;
  padding-right: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  margin-left: 10px;
}

/* Multi-day event - middle segment (no padding, no radius) */
.event-bar.event-middle {
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
  margin-left: 0;
  margin-right: 0;
}

/* Multi-day event - end segment (has right padding + rounded right corners) */
.event-bar.event-end {
  padding-left: 0;
  padding-right: 6px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  margin-right: 10px;
}

.event-bar.event-start,
.event-bar.event-middle, 
.event-bar.event-end {
    margin-top: 8px;
}

/* Single-day event (both paddings + fully rounded) */
.event-bar.event-single {
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 4px;
  margin-left: 2px;
  margin-right: 2px;
}

/* When it's both start and end (single-day in events row) */
.event-bar.event-start.event-end {
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 4px;
  margin-left: 10px;
  margin-right: 10px;
}

/* "+N more" indicator */
.events-more-indicator {
  grid-column: 1 / -1;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 2px 6px;
  cursor: pointer;
}

.events-more-indicator:hover {
  color: var(--bs-primary);
}

.community-detail-body p {
  margin-bottom: 0.2rem;
}

/* Todo Lists Container */
.todo-lists-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  align-items: baseline;
}

.todo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.todo-actions {
  display: flex;
  gap: 10px;
}

.category-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Todo List */
.todo-list {
  width: 300px;
  min-height: 200px;
  background-color: var(--surface-panel);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  cursor: move;
}

.todo-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--surface-focus);
  padding-bottom: 10px;
}

.todo-list-title {
  margin: 0;
  padding: 5px;
  border-radius: 4px;
}

.todo-list-title:focus {
  background-color: var(--surface-focus);
  outline: 2px solid #0d6efd;
  outline-offset: 1px;
}

.todo-list-title:focus:not(:focus-visible) {
  outline: none;
}

.todo-list-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.todo-list-actions button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.todo-list-actions button:hover {
  color: var(--text-heading);
}

.todo-list-category {
  width: auto;
  min-width: 120px;
  font-size: 0.85rem;
  padding: 2px 5px;
  margin-right: 5px;
}

.todo-list-color {
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.todo-list-badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  background-color: var(--btn-neutral);
  color: white;
  margin-left: 8px;
}

/* Hide lists when filtered */
.todo-list.category-filtered {
  display: none;
}

/* Todo Items */
.todo-list-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-item {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 4px;
  background-color: var(--surface-cell);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.todo-item-checkbox {
  margin-right: 10px;
}

.todo-item-text {
  flex-grow: 1;
  padding: 3px;
  border-radius: 3px;
}

.todo-item-text:focus {
  background-color: var(--surface-focus);
  outline: 2px solid #0d6efd;
  outline-offset: 1px;
}

.todo-item-text:focus:not(:focus-visible) {
  outline: none;
}

.todo-item-due-date {
  font-size: 0.8rem;
  padding: 2px;
  border: 1px solid var(--border-input);
  border-radius: 4px;
  color: var(--text-muted);
  margin-right: 8px;
}

.todo-item-due-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

.todo-item.completed .todo-item-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.todo-item.overdue .todo-item-due-date {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-delete-item {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.2s;
}

.todo-item:hover .btn-delete-item {
  opacity: 1;
}

/* Drag and Drop Styling */
.todo-list.ui-sortable-helper {
  transform: rotate(2deg);
}

.todo-item.ui-sortable-helper {
  transform: rotate(1deg);
}

.todo-list-placeholder,
.todo-item-placeholder {
  border: 2px dashed var(--border-input);
  background-color: var(--surface-focus);
  visibility: visible !important;
}

@media screen and (min-width: 992px) {
  .sidebar aside.sticky-top {
    z-index: 1000;
  }
  #frontpage-cards .card-item-wrapper {
    width: 48%;
  }
  #frontpage-cards .card-item-wrapper > .card {
    margin-bottom: 0;
  }
  #main-nav .navbar-nav.mx-auto {
    gap: 1rem !important;
  }
  .container-small {
    max-width: 60%;
  }
  .profile-post-list .profile-card-wrapper {
    width: 25%;
  }

}
@media screen and (max-width: 991px) {
  #user-links .deny-access-overlay {
    border-radius: unset !important;
  }
  #post-detail-chevrons a {
    height: 40px;
    width: 40px;
    padding: 0.7rem;
  }
  #post-detail-chevrons a i {
    font-size: 1.8rem;
  }
  #post-detail .post-img-wrapper .img-top {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  #post-detail .post-img-wrapper .img-top img.post-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
  div#list-nav-wrapper {
    padding-top: 2rem !important;
  }
  div#list-nav-wrapper a {
    font-size: 1rem;
  }
  #brand-search-login-wrapper {
    width: 100% !important;
  }
}
@media screen and (max-width: 1199px) {
  #post-detail {
    height: unset;
  }
  #post-detail .post-img-wrapper .img-top a img {
    width: 100% !important;
  }
}

@media screen and (min-width: 1200px) {
  body {
    font-size: 18px;
  }
  footer.main-footer span.bebas-neue-regular {
    font-size: 1.3rem;
  }
  #artwork-post .post-entry-content {
    border-radius: var(--bs-border-radius);
  }
  .navbar-brand {
    font-size: 2rem;
  }
  .container-x-small {
    max-width: 400px !important;
    margin: 0 auto;
  }
  .container-small {
    max-width: 550px !important;
    margin: 0 auto;
  }
  .container-med {
    max-width: 1120px !important;
    margin: 0 auto;
  }
  .profile-post-list .profile-card-wrapper {
    width: 20%;
    margin-bottom: 1.5rem;
  }
  #div_id_medium {
    width: 69.48%;
  }
  #div_id_date_art_finished {
    width: 30%;
  }
  div#div_id_price {
    width: 30%;
  }
  div#div_id_currency {
    width: 20%;
  }
  span.like-wrapper,
  span.comment-wrapper {
    white-space: nowrap;
  }
  #post-row-wrapper > div.col-md-12 {
    height: 82vh;
  }
  #post-detail .post-img-wrapper {
    max-height: 650px;
    height: 650px;
  }
  #post-detail .post-img-wrapper .img-top a img {
    max-width: 90%;
    max-height: 650px;
  }
  #artwork-post .post-text-wrapper .post-entry {
    overflow-y: auto;
    scrollbar-color: var(--scrollbar-thumb) var(--surface-body);
    scrollbar-width: thin;
    max-height: calc(100vh - 250px);
    width: 100%;
  }
  #artwork-post .post-text-wrapper .post-entry::-webkit-scrollbar {
    width: 6px;
    background-color: var(--surface-body);
  }
  #artwork-post .post-text-wrapper .post-entry::-webkit-scrollbar-thumb {
    width: 3px;
    background-color: var(--scrollbar-thumb);
  }
  #main-nav .navbar-nav.mx-auto {
    gap: 2rem !important;
  }
}
@media screen and (max-width: 1399px) {
  .login-form-wrapper {
    padding: 1vw;
  }
}
@media screen and (min-width: 1400px) {
  #post-detail {
    height: 800px;
    flex-grow: 1;
  }
  #post-detail .post-img-wrapper {
    height: -webkit-fill-available;
    height: -moz-available;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #post-detail .post-wrapper {
    height: -webkit-fill-available;
    height: -moz-available;
  }
  #post-detail .post-wrapper .post-article-wrapper {
    height: -moz-available;
    min-height: min-content;
    max-height: 800px;
    max-width: 800px;
  }
  #post-detail .post-wrapper .post-article-wrapper .post-article {
    max-height: 800px;
    height: -webkit-fill-available;
    height: -webkit-max-content;
    width: max-content;
    overflow-y: scroll;
    scrollbar-color: var(--scrollbar-thumb) var(--surface-body);
    scrollbar-width: thin;
  }
  #frontpage-cards .card-item-wrapper {
    width: 30%;
  }
  #frontpage-cards .card-item-wrapper > .card {
    margin-bottom: 0;
  }
  #main-nav .navbar-nav.mx-auto {
    gap: 3rem !important;
  }
  .profile-post-list .profile-card-wrapper {
    width: 16.2%;
  }
}
@media (min-width: 1920px) {
  .grid-sizer,
  .masonry-item {
    width: 20%;
  }
  .profile-post-list .profile-card-wrapper {
    width: 14.2%;
  }
}
@media screen and (min-width: 2000px) {
  .col-xxxl-2 {
    width: 20% !important;
  }
}

#div_id_privacy fieldset {
  padding-top: 0.75rem;
  padding-bottom: 0.95rem;
}

/* Artwork Gallery Thumbnail Strip */
.artwork-gallery-strip {
  scrollbar-width: thin;
}
.artwork-thumb {
  background: none;
  border: 2px solid transparent;
  padding: 2px;
  cursor: pointer;
  flex-shrink: 0;
}
.artwork-thumb.active {
  border-color: var(--bs-primary);
}
.artwork-thumb:hover {
  opacity: 0.85;
}
.artwork-thumb img {
  height: 56px;
  width: auto;
  object-fit: cover;
}

/* Community Dashboard Styles */
.dashboard-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-post-card {
  width: 100%;
  box-sizing: border-box;
}

/* 2 columns on tablets */
@media (min-width: 576px) {
  .dashboard-post-card {
    width: calc(50% - 0.5rem);
  }
}

@media screen and (max-width: 575px) {
  .d-xs-none {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .grid-sizer,
  .masonry-item {
    width: 33.333%;
  }
}

/* 3 columns on medium screens */
@media (min-width: 992px) {
  .dashboard-post-card {
    width: calc(33.333% - 0.667rem);
  }
}

/* 4 columns on large screens */
@media (min-width: 1400px) {
  .dashboard-post-card {
    width: calc(25% - 0.75rem);
  }
}

#pending-members-sidebar .btn-group-sm form {
  display: inline-block;
}

/* Hero section for anonymous users on homepage */
.hero-section {
  position: relative;
  border: 1px solid var(--border-default);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  border-radius: inherit;
  
  z-index: 0;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  color: var(--text-heading);
  font-size: 1.75rem;
}

@media screen and (min-width: 768px) {
  .hero-section h1 {
    font-size: 2.25rem;
  }
}

/* Hero Carousel Section */
/* CSS Grid stacks all items in same cell - container sizes to tallest */
#heroCarousel .carousel-inner {
  display: grid;
  overflow: hidden;
}

#heroCarousel .carousel-item {
  grid-area: 1 / 1;
  width: 100%;
}

.hero-carousel-section .hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none;
  height: 100%;
}

.hero-carousel-section .hero-section::before {
  display: none; /* Use hero-overlay div instead for dynamic opacity */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border-radius: inherit;
}

.hero-content {
  z-index: 1;
}

/* Carousel indicators - circular dots */
.hero-carousel-section .carousel-indicators {
  bottom: 10px;
}

.hero-carousel-section .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 4px;
}

.hero-carousel-section .carousel-indicators button.active {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Carousel controls */
.hero-carousel-section .carousel-control-prev,
.hero-carousel-section .carousel-control-next {
  width: 40px;
  opacity: 0.7;
}

.hero-carousel-section .carousel-control-prev:hover,
.hero-carousel-section .carousel-control-next:hover {
  opacity: 1;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
  .hero-carousel-section .hero-section {
    padding: 2rem 1rem !important;
  }

  .hero-carousel-section .carousel-control-prev,
  .hero-carousel-section .carousel-control-next {
    display: none;
  }
}

/* Utility classes */
.border-dashed {
  border-style: dashed !important;
}

/* Password visibility toggle */
.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

.password-toggle-btn:hover {
  color: var(--text-muted);
}

.password-toggle-btn:focus {
  outline: none;
}

/* Sidebar social media links */
.sidebar-social-links a {
  color: var(--bs-secondary-color);
  font-size: 1.2rem;
  margin: 0 0.5rem;
  transition: opacity 0.2s;
}

.sidebar-social-links a:hover {
  opacity: 0.7;
}

.sidebar.left-sidebar-wrapper footer.main-footer.pb-4.header-footer-bg.w-100.bottom-0.left-0.small {
    background-color: transparent;
}

.small button.btn.btn-link.p-0.align-baseline {
    font-size: inherit;
}

/* Profile Tabs — uses shared .btn-category-link styles */

/* Collection overlay on Liked tab cards */
.collection-overlay {
    z-index: 2;
}
.collection-toggle-btn {
    opacity: 0.85;
    transition: opacity 0.15s;
}
.collection-toggle-btn:hover {
    opacity: 1;
}

/* Moderation table: allow dropdowns to overflow the card and table wrapper */
.moderation-card {
  overflow: visible;
}
.moderation-card > .card-body {
  overflow: visible;
}
.moderation-table-wrapper {
  overflow: visible;
}
.moderation-table-wrapper .dropdown-menu {
  z-index: 1050;
}

/* NSFW blur overlay */
.nsfw-overlay { position: relative; overflow: hidden; }
.nsfw-blur { filter: blur(15px); pointer-events: none; user-select: none; }
.nsfw-reveal-btn {
  position: absolute; 
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%); 
  z-index: 10;
  background: var(--bs-dark); 
  color: var(--bs-light);
  border: none; 
  padding: 0.5rem 1rem; 
  cursor: pointer; 
  white-space: nowrap;
  font-size: .9rem;
}
.nsfw-reveal-btn:hover { opacity: 0.85; }
.nsfw-overlay.revealed .nsfw-blur { filter: none; pointer-events: auto; user-select: auto; }
.nsfw-overlay.revealed .nsfw-reveal-btn { display: none; }
