/**
 * FotoTJ5M - modern FOTO.TJ design.
 *
 * A quiet, neutral frame so the members' photographs lead; one bold place: the dark stage of the photo page.
 * The logo's red, blue and yellow are used as signals only (links/actions, favourites, photo of the week).
 * Bootstrap 5 stays underneath because the components' markup uses its classes; its variables are mapped here.
 *
 * Sections: tokens | base | bootstrap mapping | layout and header | menu | rows, panels, body | footer | drawer |
 *           photo grid | home modules | photo page | comments | component views | upload | contests |
 *           forum (Kunena) | profiles and messages (CB, uddeIM) | shoutbox | error, offline | motion
 */

/* ======================================================================= tokens */
:root {
  --m-paper: #f6f7f8;
  --m-surface: #ffffff;
  --m-ink: #16191d;
  --m-ink-2: #4e5661;
  --m-ink-3: #6b737e;
  --m-line: #e3e6ea;
  --m-line-2: #d3d8de;
  --m-fill: #eef0f3;

  --m-blue: #0070b8;
  --m-blue-ink: #005d99;
  --m-blue-wash: #e8f2fa;
  --m-red: #e81820;
  --m-red-ink: #c8141b;
  --m-yellow: #f8c008;

  --m-stage: #1c1e21;
  --m-stage-ink: #eceef1;
  --m-stage-muted: #a9b0b8;

  /* one slim family for everything (the logo is artwork, not type) */
  --m-font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --m-display: var(--m-font);
  --m-text-size: .875rem;
  --m-leading: 1.3;          /* body line spacing (font lab: ?fontlab=1, "Интервал") */

  --m-r-photo: 6px;
  --m-r-ctrl: 10px;
  --m-r-panel: 16px;
  --m-r-pill: 999px;

  --m-gutter: clamp(16px, 3.2vw, 40px);
  --m-max: 1440px;
  --m-header-h: 68px;
  --m-ease: cubic-bezier(.2, .7, .2, 1);

  /* variables of FotoTJv5 that component stylesheets read (upload-modern.css) */
  --fototj-font: var(--m-font);
  --fototj-primary: var(--m-blue);
  --fototj-primary-dark: var(--m-blue-ink);
  --fototj-text: var(--m-ink);
  --fototj-muted: var(--m-ink-3);
  --fototj-gray: var(--m-ink-2);
  --fototj-border: var(--m-line);

  /* Bootstrap 5 */
  --bs-body-font-family: var(--m-font);
  --bs-body-font-size: var(--m-text-size);
  --bs-body-line-height: var(--m-leading);
  --bs-body-color: var(--m-ink);
  --bs-body-bg: var(--m-paper);
  --bs-secondary-color: var(--m-ink-2);
  --bs-tertiary-bg: var(--m-fill);
  --bs-border-color: var(--m-line);
  --bs-primary: var(--m-blue);
  --bs-primary-rgb: 0, 112, 184;
  --bs-link-color: var(--m-blue);
  --bs-link-color-rgb: 0, 112, 184;
  --bs-link-hover-color: var(--m-blue-ink);
  --bs-link-hover-color-rgb: 0, 93, 153;
  --bs-border-radius: var(--m-r-ctrl);
  --bs-border-radius-sm: 8px;
  --bs-border-radius-lg: var(--m-r-panel);
  --bs-focus-ring-color: rgba(0, 112, 184, .35);
}

/* ======================================================================= base */
html { scroll-padding-top: calc(var(--m-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body.m5 {
  margin: 0;
  font-family: var(--m-font);
  font-size: var(--m-text-size);
  font-weight: 400;
  line-height: var(--m-leading);
  color: var(--m-ink);
  background: var(--m-paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.m5 h1, .m5 h2, .m5 h3, .m5 h4, .m5 h5, .m5 h6 { color: var(--m-ink); line-height: 1.2; text-wrap: balance; }
.m5 h1, .m5 .h1 { font-family: var(--m-display); font-weight: 400; font-size: clamp(1.45rem, 1.25rem + .9vw, 1.9rem); letter-spacing: -.01em; margin: 0 0 .7em; }
.m5 h2, .m5 .h2 { font-family: var(--m-display); font-weight: 450; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); letter-spacing: -.005em; margin: 0 0 .7em; }
.m5 h3, .m5 .h3 { font-weight: 500; font-size: 1.08rem; margin: 0 0 .6em; }
.m5 b, .m5 strong { font-weight: 560; }
.m5 h4, .m5 .h4 { font-weight: 500; font-size: 1rem; }
.m5 h5, .m5 .h5, .m5 h6, .m5 .h6 { font-weight: 500; font-size: .95rem; }
.m5 p { margin: 0 0 1em; }
.m5 a { color: var(--m-blue); text-decoration: none; text-underline-offset: .18em; transition: color .15s; }
.m5 a:hover { color: var(--m-blue-ink); text-decoration: underline; }
.m5 img { max-width: 100%; height: auto; }
.m5 hr { border: 0; border-top: 1px solid var(--m-line); opacity: 1; margin: 2rem 0; }
.m5 small, .m5 .small { font-size: .875rem; }
.m5 ::selection { background: #cfe4f4; }
.m5 :focus-visible { outline: 2px solid var(--m-blue); outline-offset: 2px; border-radius: 4px; }
.m5 .text-muted { color: var(--m-ink-2) !important; }
.m-muted { color: var(--m-ink-2); }
.m5 blockquote { margin: 0 0 1.25rem; padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--m-line-2); color: var(--m-ink-2); }

.m-skip {
  position: absolute; left: 12px; top: -100px; z-index: 2000;
  padding: .6rem 1rem; border-radius: var(--m-r-ctrl);
  background: var(--m-ink); color: #fff !important; font-weight: 500;
}
.m-skip:focus { top: 12px; text-decoration: none; }
.m-main:focus { outline: none; }

/* ======================================================================= bootstrap mapping */
.m5 .btn {
  --bs-btn-padding-x: 1.05rem; --bs-btn-padding-y: .55rem; --bs-btn-font-weight: 500; --bs-btn-border-radius: var(--m-r-ctrl);
  --bs-btn-font-size: .95rem;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.m5 .btn:active { transform: translateY(1px); }
.m5 .btn-primary {
  --bs-btn-bg: var(--m-blue); --bs-btn-border-color: var(--m-blue);
  --bs-btn-hover-bg: var(--m-blue-ink); --bs-btn-hover-border-color: var(--m-blue-ink);
  --bs-btn-active-bg: #004f82; --bs-btn-active-border-color: #004f82;
  --bs-btn-disabled-bg: var(--m-blue); --bs-btn-disabled-border-color: var(--m-blue);
}
.m5 .btn-secondary, .m5 .btn-outline-secondary, .m5 .btn-light, .m5 .btn-default {
  --bs-btn-color: var(--m-ink); --bs-btn-bg: var(--m-surface); --bs-btn-border-color: var(--m-line-2);
  --bs-btn-hover-color: var(--m-ink); --bs-btn-hover-bg: var(--m-fill); --bs-btn-hover-border-color: var(--m-line-2);
  --bs-btn-active-color: var(--m-ink); --bs-btn-active-bg: var(--m-line); --bs-btn-active-border-color: var(--m-line-2);
}
.m5 .btn-link { --bs-btn-color: var(--m-blue); --bs-btn-hover-color: var(--m-blue-ink); text-decoration: none; }
.m5 .form-control, .m5 .form-select, .m5 .inputbox, .m5 textarea, .m5 select,
.m5 input[type="text"], .m5 input[type="email"], .m5 input[type="password"], .m5 input[type="search"], .m5 input[type="number"], .m5 input[type="url"] {
  border: 1px solid var(--m-line-2); border-radius: var(--m-r-ctrl); background-color: var(--m-surface); color: var(--m-ink);
  font: inherit; font-size: 1rem; min-height: 44px; padding: .5rem .8rem;
}
.m5 textarea { min-height: 7rem; }
.m5 .form-control:focus, .m5 .form-select:focus, .m5 textarea:focus, .m5 input:focus, .m5 select:focus {
  border-color: var(--m-blue); box-shadow: 0 0 0 3px rgba(0, 112, 184, .18); outline: none;
}
.m5 .form-label, .m5 .control-label label, .m5 label { font-weight: 500; }
.m5 .form-check-input:checked { background-color: var(--m-blue); border-color: var(--m-blue); }
.m5 .card { --bs-card-border-color: var(--m-line); --bs-card-border-radius: var(--m-r-panel); --bs-card-bg: var(--m-surface); --bs-card-cap-bg: transparent; box-shadow: none; }
.m5 .card-header { font-weight: 500; border-bottom-color: var(--m-line); padding: .85rem 1.1rem; }
.m5 .list-group { --bs-list-group-border-color: var(--m-line); --bs-list-group-bg: transparent; }
.m5 .table { --bs-table-bg: transparent; --bs-table-border-color: var(--m-line); }
.m5 .badge.text-bg-light { background: var(--m-fill) !important; color: var(--m-ink-2) !important; font-weight: 500; }
.m5 .alert { border-radius: var(--m-r-ctrl); border: 0; }
.m5 .alert-info, .m5 .alert-message { background: var(--m-blue-wash); color: #0b3d5e; }
.m5 .nav-pills { --bs-nav-pills-border-radius: var(--m-r-pill); --bs-nav-pills-link-active-bg: var(--m-ink); gap: .35rem; }
.m5 .nav-pills .nav-link { color: var(--m-ink); font-weight: 500; padding: .45rem 1rem; }
.m5 .nav-pills .nav-link:hover { background: var(--m-fill); text-decoration: none; }
.m5 .nav-pills .nav-link.active { color: #fff; }
.m5 .nav-tabs { --bs-nav-tabs-border-color: var(--m-line); --bs-nav-tabs-link-active-border-color: var(--m-line) var(--m-line) var(--m-surface); }
.m5 .bg-body-tertiary { background: var(--m-surface) !important; border: 1px solid var(--m-line); }
.m5 .page-header { margin: 0 0 1.5rem; padding: 0; border: 0; }

/* pagination (Joomla's ul.pagination, wrapped in div.pagination by some layouts) */
.m5 div.pagination { display: block; margin: 2rem 0 0; }
.m5 ul.pagination { --bs-pagination-border-radius: var(--m-r-ctrl); display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin: 0; padding: 0; }
.m5 .pagination .page-link {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--m-line); border-radius: var(--m-r-ctrl) !important; background: var(--m-surface); color: var(--m-ink); font-weight: 500;
}
.m5 .pagination .page-link:hover { background: var(--m-fill); text-decoration: none; }
.m5 .pagination .active > .page-link, .m5 .pagination .page-link.active { background: var(--m-ink); border-color: var(--m-ink); color: #fff; }
.m5 .pagination .disabled > .page-link { color: var(--m-ink-3); background: transparent; }
.m5 .counter, .m5 .pagination__counter { text-align: center; color: var(--m-ink-2); font-size: .875rem; margin-top: .75rem; }

/* ======================================================================= layout and header */
.m-wrap { width: 100%; max-width: var(--m-max); margin-inline: auto; padding-inline: var(--m-gutter); box-sizing: border-box; }

.m-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--m-line);
}
.m-header__bar { display: flex; align-items: center; gap: 1.25rem; min-height: var(--m-header-h); }

.m-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--m-ink) !important; text-decoration: none !important; flex: none; }
.m-brand__name { font-family: var(--m-display); font-weight: 500; font-size: 1.15rem; letter-spacing: .06em; }
.m-brand__img { max-height: 40px; width: auto; }
/* the original FOTO.TJ artwork (images/fototj-logo.svg): wordmark in its own lettering, never re-typeset */
.m-logo { display: block; height: 32px; width: auto; color: #231f20; overflow: visible; }
.m-logo__mark path { stroke-width: 1.7; }   /* the artwork's 1-unit outlines fade at header size; as heavy as the old PNG logo */

.m-collapse { display: flex; align-items: center; gap: 1rem; flex: 1 1 auto; min-width: 0; }
.m-nav { flex: 1 1 auto; min-width: 0; }
.m-header__extra { display: flex; align-items: center; gap: .75rem; flex: none; }
.m-header__tools { display: flex; align-items: center; gap: .5rem; flex: none; margin-left: auto; }

/* header search (mod_finder) and the social links (mod_custom) */
.m-header__extra form, .m-header__extra .mod-finder { margin: 0; }
.m-header__extra .mod-finder__search, .m-header__extra .input-group { position: relative; display: flex; align-items: center; }
.m-header__extra input[type="text"], .m-header__extra input[type="search"] {
  width: 220px; min-height: 40px; padding-left: 2.3rem; border-radius: var(--m-r-pill); background: var(--m-fill); border-color: transparent;
}
.m-header__extra input[type="text"]:focus, .m-header__extra input[type="search"]:focus { background: var(--m-surface); }
.m-header__extra .mod-finder__search .icon-search, .m-header__extra .input-group .icon-search,
.m-header__extra .mod-finder__search > span[class*="search"] { position: absolute; left: .85rem; z-index: 5; color: var(--m-ink-2); pointer-events: none; }
.m-header__extra .btn, .m-header__extra button[type="submit"] { display: none; }
.m-header__extra .mod-custom p { margin: 0; display: flex; gap: .35rem; align-items: center; }
.m-header__extra .mod-custom img { height: 22px; width: auto; opacity: .85; transition: opacity .15s; }
.m-header__extra .mod-custom a:hover img { opacity: 1; }
.m-header__extra .awesomplete > ul { border-radius: var(--m-r-ctrl); border-color: var(--m-line); }

/* buttons of the header */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.1rem; border-radius: var(--m-r-pill);
  border: 1px solid var(--m-line-2); background: var(--m-surface); color: var(--m-ink) !important;
  font-weight: 500; font-size: .95rem; line-height: 1.2; text-decoration: none !important; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.m-btn:hover { background: var(--m-fill); }
.m-btn:active { transform: translateY(1px); }
.m-btn--primary { background: var(--m-blue); border-color: var(--m-blue); color: #fff !important; }
.m-btn--primary:hover { background: var(--m-blue-ink); border-color: var(--m-blue-ink); }
.m-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--m-r-pill); background: transparent; color: var(--m-ink); font-size: 1.2rem; cursor: pointer;
  transition: background-color .15s;
}
.m-iconbtn:hover { background: var(--m-fill); }
.m-header__menu { display: none; }
.m-burger { position: relative; width: 20px; height: 14px; display: inline-block; }
.m-burger::before, .m-burger::after, .m-burger span { content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--m-ease), opacity .2s; }
.m-burger::before { top: 0; }
.m-burger span { top: 6px; }
.m-burger::after { top: 12px; }
[aria-expanded="true"] > .m-burger::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] > .m-burger span { opacity: 0; }
[aria-expanded="true"] > .m-burger::after { transform: translateY(-6px) rotate(-45deg); }

.m-navhelper { padding-top: 1rem; font-size: .9rem; }
.m-navhelper .breadcrumb { margin: 0; }

/* ======================================================================= main menu */
.m-menu { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.m-menu > .m-menu__item { position: relative; display: flex; align-items: center; }
.m-menu > .m-menu__item > .m-menu__link {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .45rem .8rem;
  border: 0; border-radius: var(--m-r-pill); background: transparent;
  color: var(--m-ink); font: inherit; font-weight: 500; font-size: .97rem; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color .15s;
}
.m-menu > .m-menu__item > .m-menu__link:hover { background: var(--m-fill); text-decoration: none; }
.m-menu > .m-menu__item.is-active > .m-menu__link { color: var(--m-ink); box-shadow: inset 0 -2px 0 var(--m-blue); border-radius: 0; }
.m-menu > .m-menu__item.has-children > a.m-menu__link { padding-right: .2rem; }
.m-menu__toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 44px; padding: 0;
  border: 0; background: transparent; color: var(--m-ink-2); cursor: pointer; border-radius: var(--m-r-pill);
}
.m-menu__toggle:hover { color: var(--m-ink); }
.m-menu__chev { display: inline-block; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--m-ease); }
.m-menu__item.is-open .m-menu__chev { transform: translateY(1px) rotate(-135deg); }

.m-menu__panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 1040; min-width: 230px;
  padding: .5rem; border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-surface);
  box-shadow: 0 18px 40px -18px rgba(22, 25, 29, .28);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s, transform .16s var(--m-ease), visibility 0s .16s;
}
.m-menu__item.is-open > .m-menu__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s var(--m-ease); }
.m-menu__sub { margin: 0; padding: 0; list-style: none; }
.m-menu__sub.is-wide { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); column-gap: 1rem; }
.m-menu__sub .m-menu__link {
  display: flex; align-items: center; min-height: 40px; padding: .45rem .75rem; border-radius: 8px;
  color: var(--m-ink); font-weight: 400; text-decoration: none; white-space: nowrap;
}
.m-menu__sub .m-menu__link:hover { background: var(--m-fill); text-decoration: none; }
.m-menu__sub .is-current > .m-menu__link { color: var(--m-blue); font-weight: 500; }

/* ======================================================================= rows, panels, body */
.m-main { display: block; min-height: 50vh; }
.m-row { padding-block: clamp(1.75rem, 3vw, 3rem); }
.m-row + .m-row { padding-top: 0; }
.m-section + .m-section { margin-top: clamp(2rem, 4vw, 3rem); }
/* module titles */
.m5 .m-section__title { font-family: var(--m-font); font-weight: 500; font-size: clamp(1.15rem, 1.05rem + .35vw, 1.35rem); letter-spacing: -.005em; margin-bottom: 1rem; }
.m-body { padding-block: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.m-row + .m-body { padding-top: 0; }
@media (min-width: 992px) {
  .m-body.has-sidebar-1, .m-body.has-sidebar-2 { grid-template-columns: minmax(0, 1fr) 300px; }
  .m-body.has-sidebar-1.has-sidebar-2 { grid-template-columns: 260px minmax(0, 1fr) 260px; }
  .m-body.has-sidebar-1 .m-sidebar--1 { order: -1; }
  .m-body.has-sidebar-1:not(.has-sidebar-2) { grid-template-columns: 300px minmax(0, 1fr); }
}
.m-sidebar { display: grid; gap: 1.25rem; align-content: start; }

.m-row--panels { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.m-panels { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .m-panels--2, .m-panels--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .m-panels--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-panels__col { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }

.m-panel { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r-panel); padding: 1.25rem 1.35rem; min-width: 0; }
.m5 .m-panel__title { font-family: var(--m-font); font-weight: 500; font-size: 1.02rem; margin: 0 0 .85rem; }
/* module titles in a small-caps style: Exo 2 has no real small-cap glyphs (no smcp feature), so real capitals,
   set smaller and letter-spaced, give the look without the thin synthetic small caps */
.m5 .m-section__title, .m5 .m-panel__title { text-transform: uppercase; letter-spacing: .09em; font-weight: 650; color: #000; }
.m5 .m-section__title { font-size: 1rem; margin-bottom: .9rem; }
.m5 .m-panel__title { font-size: .875rem; margin-bottom: .75rem; }
.m-panel__body > :last-child { margin-bottom: 0; }
.m-card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r-panel); padding: 1.25rem 1.35rem; }

/* ======================================================================= footer */
/* one slim row: logo, rights text, "all rights reserved" on the right (the two paragraphs of the footer module) */
.m-footer { border-top: 1px solid var(--m-line); background: var(--m-surface); color: var(--m-ink-2); font-size: .8rem; line-height: 1.4; }
.m-footer__cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-block: 2rem 0; }
.m-footer__base { display: flex; align-items: center; gap: 2rem; padding-block: 1.1rem; }
.m-brand--small .m-logo { height: 24px; }
.m-footer__text { flex: 1; min-width: 0; }
.m-footer__text > .mod-custom { display: flex; align-items: center; justify-content: space-between; gap: .4rem 2.5rem; }
.m-footer__text p { margin: 0; max-width: 125ch; text-align: left !important; text-wrap: pretty; }
.m-footer__text p:last-child { flex: none; white-space: nowrap; }
@media (max-width: 767.98px) {
  .m-footer__base { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .m-footer__text > .mod-custom { flex-direction: column; align-items: flex-start; }
}

/* ======================================================================= user drawer */
.m-drawer { position: fixed; inset: 0; z-index: 1060; }
.m-drawer[hidden] { display: none; }
.m-drawer__backdrop { position: absolute; inset: 0; background: rgba(22, 25, 29, .45); opacity: 0; transition: opacity .22s; }
.m-drawer__sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
  display: flex; flex-direction: column; background: var(--m-paper);
  box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .5);
  transform: translateX(100%); transition: transform .26s var(--m-ease);
  outline: none;
}
.m-drawer.is-open .m-drawer__backdrop { opacity: 1; }
.m-drawer.is-open .m-drawer__sheet { transform: none; }
.m-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .75rem .75rem 1.35rem; border-bottom: 1px solid var(--m-line); background: var(--m-surface); }
.m5 .m-drawer__title { font-family: var(--m-font); font-weight: 500; font-size: 1.05rem; margin: 0; }
.m-drawer__body { flex: 1; overflow-y: auto; padding: 1rem; display: grid; gap: 1rem; align-content: start; }
.m-drawer .m-panel { padding: 1.1rem; }
.m-drawer .mod-login__options { margin: .75rem 0 0; font-size: .92rem; }
.m-drawer .mod-login__options li { margin: .25rem 0; }
.m-drawer .mod-login .btn-primary, .m-drawer .cbLoginForm .btn-primary, .m-drawer button[type="submit"] { width: 100%; }
.m-drawer .form-group { margin-bottom: .75rem; }
.m-drawer .mod-login__remember { display: flex; align-items: center; gap: .5rem; }
/* logged in (mod_cblogin logout layout): greeting and avatar centred in the panel */
.m-drawer .cbLogoutForm .login-greeting, .m-drawer .cbLogoutForm .login-avatar { text-align: center; }
.m-drawer .cbLogoutForm .login-avatar img { display: inline-block; width: 120px; height: 120px; object-fit: cover; margin-inline: auto; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: 0 0 0 1px var(--m-line); }   /* CB adds img-thumbnail padding + border: the photo now fills the circle */
html.m-locked { overflow: hidden; }

/* ======================================================================= photo grid (com_fototj layouts/thumbs.php, com_afc thumbs: same .thumb / .imgtitle markup) */
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) { padding: 0; max-width: none; }
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) > .row {
  display: grid; margin: 0; --bs-gutter-x: 0;
  /* the same columns as FotoTJv5 (col-6 col-md-4 col-lg-2): the photo counts are set in multiples of 6 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}
@media (min-width: 768px) { .m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) > .row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) > .row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 992px) { .m5 .fototj-cb-photos > .row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }   /* CB profile: 25 photos = 5 rows of 5 */
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) > .row > * { width: auto; max-width: none; flex: none; padding: 0; margin: 0; min-width: 0; }
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .thumb a {
  display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--m-r-photo); background: var(--m-fill);
}
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--m-ease), filter .3s; }
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .thumb a:hover img, .m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .thumb a:focus-visible img { transform: scale(1.03); }
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .thumb img.image-unpublished { opacity: .3; }
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .imgtitle {
  display: flex; flex-direction: column; margin-top: .5rem;
  text-align: left; font-size: .8rem;   /* same as the home page last photos */ font-weight: 500; line-height: 1.35; color: var(--m-ink);
  overflow-wrap: anywhere;
}
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .imgtitle br { display: none; }
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .imgtitle > a:first-child { order: 1; margin-top: .1rem; font-size: inherit; font-weight: 400; color: var(--m-ink-2); }
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .imgtitle > a:first-child:hover { color: var(--m-blue); }
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .imgtitle > *:not(:first-child) { order: 2; margin-top: .35rem; }
/* last photos module (FotoTJ5M override): author name in front of the title, "Name · Title"; the separator is outside the link */
.m5 .fototj-thumbs .imgtitle.m-imgtitle--byline { display: block; }
.m5 .fototj-thumbs .imgtitle.m-imgtitle--byline > a.m-imgtitle__author { display: inline; text-decoration: none; order: 0; margin: 0; font-size: inherit; font-weight: 400; color: var(--m-ink-2); }
.m5 .fototj-thumbs .imgtitle.m-imgtitle--byline > a.m-imgtitle__author:hover { color: var(--m-blue); text-decoration: none; }
.m5 .fototj-thumbs .imgtitle.m-imgtitle--byline > span { display: inline; margin: 0; }
.m5 .fototj-thumbs .imgtitle .m-imgtitle__sep { color: var(--m-ink-3); }
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .imgtitle .btn { align-self: flex-start; }
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .imgtitle img.yvSmiley { order: 0; align-self: flex-start; width: auto; height: 1.25em; margin-top: .1rem; } /* smileys in titles stay small, with the title */

/* contests: author in <strong> first, then the title, then the contest link */
.m5 .afc-thumbs .imgtitle > strong:first-child { order: 1; margin-top: .1rem; font-size: inherit; font-weight: 400; color: var(--m-ink-2); }
.m5 .afc-thumbs .imgtitle > a { order: 2; margin-top: .2rem; font-size: inherit; font-weight: 400; }
.m5 .afc-thumbs .imgtitle .afc-place { order: 3; align-self: flex-start; }
.m5 .com-afc div.imgtitle, .m5 .mod-afc div.imgtitle { margin-bottom: 0; }

/* ======================================================================= home modules */
/* banner (mod_custom) */
.m-row--home-1 .mod-custom img, .m-row--home-2 .mod-custom img { border-radius: var(--m-r-panel); }
.m5 .mod-custom .text-center { text-align: left !important; }
.m5 .mod-custom p:has(> img:only-child) { margin: 0 0 1rem; }

/* random photos slider (mod_fototj_randimg, Bootstrap carousel): rounded like the photo of the week */
.m5 .mod-fototj-randimg { border-radius: var(--m-r-panel); overflow: hidden; isolation: isolate; }   /* isolation keeps the clip during slide transforms */
.m5 .mod-fototj-randimg .carousel-item > a { border-radius: var(--m-r-panel); }

/* photo of the week (mod_fototj_weekly), the kudos cards (mod_fototj_kudos) under it */
.m5 .mod-fototj-weekly { position: relative; text-align: center; }   /* photo and caption centred */
/* the frame takes the photo's own size (no letterbox bars behind it): full width when it fits, else limited by height */
.m5 .mod-fototj-weekly > a { display: block; width: fit-content; max-width: 100%; margin-inline: auto; overflow: hidden; border-radius: var(--m-r-panel); line-height: 0; }
.m5 .mod-fototj-weekly img { display: block; width: auto; height: auto; max-width: 100% !important; max-height: 78vh; }   /* original proportions, no hover zoom */
.m5 .mod-fototj-weekly.is-landscape > a { width: 100%; }
.m5 .mod-fototj-weekly.is-landscape img { width: 100%; max-height: none; }   /* landscape: full column width, aligned with the other modules */
.m5 .mod-fototj-weekly p { margin-top: .9rem !important; font-size: 1.05rem; }
.m5 .mod-fototj-weekly .m-byline { font-weight: 500; line-height: 1.35; color: var(--m-ink); overflow-wrap: anywhere; }   /* same look as the last photos captions, own size */
.m5 .mod-fototj-weekly .m-byline__author { font-weight: 400; color: var(--m-ink-2); text-decoration: none; }
.m5 .mod-fototj-weekly .m-byline__author:hover { color: var(--m-blue); text-decoration: none; }
.m5 .mod-fototj-weekly .m-byline__sep { color: var(--m-ink-3); }
.m-mod--mod_fototj_weekly .m-section__title::before {
  content: ""; display: inline-block; width: .62em; height: .62em; margin-right: .5em; vertical-align: .05em;
  border: 3px solid var(--m-yellow); border-radius: 2px;
}
.m5 .mod-fototj-kudos { padding: 0; max-width: none; }
.m5 .mod-fototj-kudos > .row { --bs-gutter-x: 1.25rem; }   /* the module's own columns (col-md-4 col-sm-6, centred) */

/* kudos flip cards (mod_fototj_kudos, own cards.css): hairline instead of the heavy shadow */
.m5 .mod-fototj-kudos .fk-container, .m5 .mod-fototj-kudos .fk-front, .m5 .mod-fototj-kudos .fk-back { height: 430px; box-shadow: none !important; border-radius: var(--m-r-panel); }
.m5 .mod-fototj-kudos .fk-front, .m5 .mod-fototj-kudos .fk-back { display: flex; flex-direction: column; border: 1px solid var(--m-line); }
.m5 .mod-fototj-kudos .fk-cover { border-radius: var(--m-r-panel) var(--m-r-panel) 0 0; flex: none; }
.m5 .mod-fototj-kudos .fk-content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.m5 .mod-fototj-kudos .fk-main { min-height: 0; }
.m5 .mod-fototj-kudos .fk-footer { margin-top: auto; padding-top: .6rem; border-top-color: var(--m-line); }
/* back side: the icon row gets the same box as the front "more" row (53px high, 20px inset, 21px below) */
.m5 .mod-fototj-kudos .fk-back .fk-footer { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 53px; margin: auto 20px 21px; padding: .6rem 0 0; }
.m5 .mod-fototj-kudos .fk-back .fk-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; margin: 0; color: var(--m-ink-3); }
.m5 .mod-fototj-kudos .fk-back .fk-links a:hover { color: var(--m-blue); }
.m5 .mod-fototj-kudos .fk-profession { color: var(--m-ink-2); margin-bottom: .9rem; }
.m5 .mod-fototj-kudos .fk-content p { font-size: .95rem; }
.m5 .mod-fototj-kudos .fk-container { margin-bottom: 1.25rem; }
.m5 .mod-fototj-kudos .fk-name { font-family: var(--m-font); font-weight: 500; font-size: 1.1rem; }
.m5 .mod-fototj-kudos .fk-user img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; } /* non-square avatars fill the circle */
.m5 .mod-fototj-kudos .fk-user { border: 0; box-shadow: 0 0 0 1px var(--m-line); }   /* ring outside the photo instead of a white border inside the circle */

/* latest comments (mod_fototj_comments) */
/* last comments: styled together with the shoutbox, see "feed lists" in the shoutbox section */

/* latest forum posts (mod_kunenalatest) */
.m5 .klatest { margin: 0; }
.m5 .klatest-items, .m5 .klatest-itemdetails { list-style: none; margin: 0; padding: 0; }
.m5 .klatest-item { padding: .65rem 0; border-top: 1px solid var(--m-line); }
.m5 .klatest-item:first-child { border-top: 0; padding-top: 0; }
.m5 .klatest-itemdetails { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); column-gap: .5rem; font-size: .88rem; color: var(--m-ink-2); }
.m5 .klatest-itemdetails > li { grid-column: 2; }
.m5 .klatest-itemdetails > li.klatest-topicicon { grid-column: 1; grid-row: 1 / span 3; color: var(--m-ink-3); padding-top: .1rem; }
.m5 .klatest-subject a { font-size: .97rem; font-weight: 500; color: var(--m-ink); }
.m5 .klatest-subject a:hover { color: var(--m-blue); }
.m5 .klatest-avatar { display: none; }

/* site statistics on /site (com_fototj fototj view) */
.m5 .com-fototj-home > h3, .m5 .com-afc > h3 { font-family: var(--m-display); font-weight: 450; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.1rem; }
.m5 .com-afc > h3:first-child { margin-top: 0; }
.m5 .com-fototj-home > .container-fluid:not(.fototj-thumbs) { padding: 0; }
.m5 .com-fototj-home > .container-fluid:not(.fototj-thumbs) > .row { --bs-gutter-x: 1.25rem; }
.m5 .com-fototj-home > .container-fluid:not(.fototj-thumbs) > .row > [class*="col"] { display: flex; }
.m5 .com-fototj-home .card { flex: 1; margin-bottom: 1.25rem !important; }
.m5 .com-fototj-home .card { height: auto; }
.m5 .com-fototj-home .list-group-item { padding: .55rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.m5 .com-fototj-home .badge { font-variant-numeric: tabular-nums; }

/* ======================================================================= photo page (html/com_fototj/image) */
.m5.view-image .m-body { padding-top: 0; }
.m5 .m-photo, .m5 #foto-container.m-photo { display: block; text-align: left; margin-bottom: 0; width: auto; }
.m-photo__stage {
  margin-inline: calc(50% - 50vw); padding: clamp(1rem, 3vw, 2.5rem) var(--m-gutter);
  background: var(--m-stage); display: flex; align-items: center; justify-content: center;
  min-height: min(56vh, 560px);
}
.m-photo__img {
  display: block; width: auto; height: auto; max-width: 100%;
  max-height: calc(100vh - var(--m-header-h) - 5rem);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.m-photo__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.5rem 0 1.25rem; border-bottom: 1px solid var(--m-line); margin-bottom: 2rem;
}
.m-photo__who { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.m-photo__avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--m-fill); display: inline-flex; align-items: center; justify-content: center; color: var(--m-ink-3);
  box-shadow: 0 0 0 1px var(--m-line); }
.m-photo__avatar img { width: 100%; height: 100%; object-fit: cover; }
.m5 .m-photo__title { margin: 0 0 .2rem; font-size: clamp(1.15rem, 1rem + .55vw, 1.45rem); font-weight: 450; letter-spacing: -.005em; line-height: 1.2; overflow-wrap: anywhere; }
.m-photo__author { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; margin: 0; font-size: .82rem; color: var(--m-ink-3); }
.m-photo__author > a { font-weight: 500; color: var(--m-ink); text-decoration: none; }
.m-photo__author a:hover { color: var(--m-blue); }
.m5 .m-photo__cat a { color: var(--m-ink-2); text-decoration: none; }
.m5 .m-photo__author > a { color: var(--m-ink); }
.m5 .m-photo__author a:hover { color: var(--m-blue); }
.m-photo__sep { color: var(--m-line-2); }
.m-photo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.m-action {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .9rem;
  border: 1px solid var(--m-line-2); border-radius: var(--m-r-pill); background: var(--m-surface);
  color: var(--m-ink) !important; font: inherit; font-weight: 500; font-size: .93rem; text-decoration: none !important; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.m-action:hover { background: var(--m-fill); }
.m-action:active { transform: translateY(1px); }
.m-action--icon { width: 44px; padding: 0; justify-content: center; }
.m-action--fav .fa-heart { color: var(--m-red); }
.m-action--fav.is-on { border-color: #f6c3c5; background: #fff5f5; }
a.m-action--fav.is-on:hover { border-color: var(--m-red); background: #ffecec; }
.m-action--fav.is-static { cursor: default; }
.m-action--fav.is-static:hover { background: var(--m-surface); }
.m-action__count { color: var(--m-ink-2); font-variant-numeric: tabular-nums; }
.m-action--danger { color: var(--m-red-ink) !important; }
.m-action--plain { border-color: transparent; padding-inline: .5rem; }
.m-photo__edit { margin-bottom: 2rem; }

.m-photo__body { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .m-photo__body { grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; } .m-photo__aside { grid-column: 2; } }   /* aside stays right even without the comments card */
.m-photo__aside { display: grid; gap: 1.25rem; align-content: start; }
@media (max-width: 991.98px) { .m-photo__aside { order: -1; } }
.m5 .m-photo__h2 { font-size: 1.15rem; font-weight: 500; margin-bottom: 1.25rem; }
.m5 .m-photo__h3 { font-family: var(--m-font); font-weight: 500; font-size: 1.05rem; margin: 0 0 .9rem; }
.m-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; padding: .1em .55em; margin-left: .3em; border-radius: var(--m-r-pill); background: var(--m-fill); color: var(--m-ink-2); font-family: var(--m-font); font-size: .7em; font-weight: 500; vertical-align: .2em; }
.m-photo__text { margin-bottom: 1rem; }
/* photo info card: stat tiles, score bars, camera + exposure strip, small details list */
.m5 .m-photo__info { font-size: .8rem; }
.m5 .m-photo__info .m-photo__h3 { margin-bottom: .75rem; }
.m-stats { display: flex; gap: .4rem; margin: 0 0 .9rem; }
.m-stats__item { flex: 1 1 auto; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .1rem; padding: .55rem .6rem; border-radius: 10px; background: var(--m-fill); min-width: 0; }
.m-stats dt { font-size: .7rem; font-weight: 400; color: var(--m-ink-3); text-transform: lowercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-stats dd { margin: 0; line-height: 1.15; white-space: nowrap; }
.m-stats__value { font-size: 1.05rem; font-weight: 500; color: var(--m-ink); font-variant-numeric: tabular-nums; }
.m-stats__value--date { font-size: .85rem; }
.m-stats__note { font-size: .7rem; color: var(--m-ink-3); }
.m-stats__note::before { content: "· "; }

.m-score { display: grid; gap: .2rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.m-score li { display: grid; grid-template-columns: 1.1rem 1fr 1.6rem; align-items: center; gap: .5rem; font-size: .72rem; color: var(--m-ink-3); font-variant-numeric: tabular-nums; }
.m-score__star::after { content: "★"; margin-left: .1rem; color: var(--m-yellow); }
.m-score__bar { height: 5px; border-radius: 999px; background: var(--m-fill); overflow: hidden; }
.m-score__bar > span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: var(--m-yellow); }
.m-score__n { text-align: right; }

.m-exif { margin: 0 0 .9rem; padding: .75rem .8rem; border-radius: 10px; background: var(--m-stage); color: #e9ecef; }
.m-exif__camera { display: flex; align-items: center; gap: .45rem; margin: 0 0 .6rem; font-size: .85rem; font-weight: 500; color: #fff; }
.m-exif__camera [class^="icon-"] { font-size: .9rem; color: rgba(255, 255, 255, .6); }
.m-exif__camera + .m-exif__taken { margin-top: -.45rem; }
.m-exif__taken { margin: 0 0 .6rem; padding-left: 1.35rem; font-size: .75rem; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.m-exif__taken-label { color: rgba(255, 255, 255, .55); }
.m-exif__strip { display: flex; gap: 0; margin: 0; }
.m-exif__strip > div { flex: 1 1 auto; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .1rem; padding: 0 .5rem; border-left: 1px solid rgba(255, 255, 255, .14); min-width: 0; }
.m-exif__strip > div:first-child { padding-left: 0; border-left: 0; }
.m-exif__strip dt { font-size: .64rem; font-weight: 400; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-exif__strip dd { margin: 0; font-size: .88rem; font-weight: 500; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.m-exif:only-child, .m-exif:last-child { margin-bottom: 0; }

.m-facts { margin: 0; display: grid; gap: 0; }
.m-facts > div { display: grid; grid-template-columns: minmax(6.5rem, 42%) 1fr; gap: .75rem; padding: .4rem 0; border-top: 1px solid var(--m-line); font-size: .78rem; line-height: 1.35; }
.m-facts > div:first-child { border-top: 0; padding-top: 0; }
.m-facts dt { font-weight: 400; color: var(--m-ink-3); }
.m-facts dd { margin: 0; font-weight: 450; color: var(--m-ink-2); text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.m-votes { margin-top: 1rem; border-top: 1px solid var(--m-line); padding-top: .75rem; }
.m-votes > summary { cursor: pointer; font-weight: 500; font-size: .8rem; min-height: 32px; display: flex; align-items: center; gap: .25rem; }
.m-votes > summary:hover { color: var(--m-blue); }
.m5 .m-photo__scores { margin: .5rem 0 0; font-size: .8rem; }
.m5 .m-photo__scores td { padding: .3rem .25rem; white-space: nowrap; }
.m5 .m-photo__scores td:first-child { white-space: normal; }
.m-photo__form { margin-top: 2rem; }
.m-photo__comments .m-photo__form.m-card { margin-top: 1rem; padding: 1rem 0 0; border: 0; border-top: 1px solid var(--m-line); border-radius: 0; background: none; }
.m5 .m-photo__comments .m-photo__form .m-photo__h3 { font-size: .95rem; margin-bottom: .5rem; }
.m5 .m-photo__comments .m-photo__replyto { display: none; font-size: .75rem; color: var(--m-ink-3); }
.m5 .m-photo__comments:has(.fototj-reply-target) .m-photo__replyto { display: block; }   /* only while replying (comments.js highlights the target) */
.m5 .m-photo__comments .m-photo__form .control-label label, .m5 .m-photo__comments .m-photo__form .form-label { font-size: .78rem; color: var(--m-ink-2); margin-bottom: .25rem; }
.m5 .m-photo__comments .m-photo__form textarea { min-height: 110px; height: 110px; font-size: .85rem; border-radius: 10px; }
.m5 .m-photo__comments .m-photo__form .form-text, .m5 .m-photo__comments .m-photo__form small.form-text { font-size: .72rem; color: var(--m-ink-3); }
.m5 .m-photo__comments .m-photo__form .m-action--plain { font-size: .78rem; }
.m5 .m-photo__comments .m-photo__form .btn-primary { font-size: .85rem; padding: .45rem 1rem; }
.m5 .m-photo__comments .m-photo__form .control-group { margin-bottom: .6rem; }
.m-photo__replyto { display: block; margin-top: .25rem; font-weight: 400; font-size: .85rem; color: var(--m-ink-2); }
.m-photo__submit { margin: 1rem 0 0; }
.m-smileys { padding: .75rem; margin-top: .5rem; border: 1px solid var(--m-line); border-radius: var(--m-r-ctrl); background: var(--m-paper); }
.m-smileys img { cursor: pointer; }

/* vote: the five scores as a segmented row */
.m5 #voteForm .control-group, .m5 #voteForm .form-group { margin-bottom: 1rem; }
.m5 #voteForm .control-label, .m5 #voteForm legend { font-weight: 500; font-size: 1.05rem; margin-bottom: .75rem; }
.m5 #voteForm .radio, .m5 #voteForm fieldset > div { display: flex; flex-wrap: wrap; gap: .4rem; }
.m5 #voteForm .form-check { margin: 0; padding: 0; position: relative; }
.m5 #voteForm .form-check-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.m5 #voteForm .form-check-label {
  display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: .4rem .8rem;
  border: 1px solid var(--m-line-2); border-radius: var(--m-r-ctrl); background: var(--m-surface);
  font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.m5 #voteForm .form-check-label:hover { background: var(--m-fill); }
.m5 #voteForm .form-check-input:focus-visible + .form-check-label { outline: 2px solid var(--m-blue); outline-offset: 2px; }
.m5 #voteForm .form-check-input:checked + .form-check-label { background: var(--m-ink); border-color: var(--m-ink); color: #fff; }
.m5 #voteForm .btn { width: 100%; }

/* ======================================================================= comments (com_fototj layouts/comment.php) */
/* comments (html/layouts/com_fototj/comment.php via the photo page override): threads in the comments card */
.m5 .m-photo__comments.m-card { align-self: start; }
.m5 .m-photo__comments .m-photo__h2 { display: flex; align-items: center; font-size: 1.05rem; margin: 0 0 .75rem; }
.m5 .m-photo__comments > .m-muted { font-size: .82rem; margin: 0; }
.m-comments { display: flex; flex-direction: column; }
.m-thread { padding: .85rem 0; border-top: 1px solid var(--m-line); }
.m-thread:first-child { border-top: 0; padding-top: .25rem; }
.m-thread__replies { display: flex; flex-direction: column; gap: .2rem; margin: .4rem 0 0 19px; padding-left: calc(21px + .75rem - 2px); border-left: 2px solid var(--m-line); }   /* line drops from the parent avatar; replies align with the parent text */
.m-comment { display: flex; gap: .75rem; align-items: flex-start; border-radius: 10px; transition: background-color .3s; }
.m5 .m-comment--reply { gap: .6rem; padding: .35rem 0; margin-left: 0; }   /* component fototj.css indents .fototj-reply by 3rem */
.m-comment__avatar { flex: none; }
.m-comment__avatar img, .m5 .m-comment .fototj-avatar-placeholder { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--m-fill); color: var(--m-ink-3); font-size: .9rem; }
.m-comment--reply .m-comment__avatar img, .m5 .m-comment--reply .fototj-avatar-placeholder { width: 30px; height: 30px; font-size: .75rem; }
.m-comment__main { flex: 1; min-width: 0; }
.m-comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; margin-bottom: .15rem; font-size: .72rem; color: var(--m-ink-3); line-height: 1.3; }
.m5 .m-comment__name { font-size: .82rem; font-weight: 560; color: var(--m-ink); text-decoration: none; }
.m5 a.m-comment__name:hover { color: var(--m-blue); }
.m-comment__badge { padding: .05rem .4rem; border-radius: 999px; background: #e6f1f9; color: var(--m-blue); font-size: .66rem; font-weight: 500; }
.m-comment__date { font-variant-numeric: tabular-nums; }
.m5 .m-comment__num { color: var(--m-ink-3); text-decoration: none; font-variant-numeric: tabular-nums; }
.m5 .m-comment__num:hover { color: var(--m-blue); }
.m-comment__ip { padding: 0 .35rem; border-radius: 4px; background: var(--m-fill); font-size: .66rem; font-variant-numeric: tabular-nums; }
.m5 .m-comment__text { font-size: .85rem; line-height: var(--m-leading); color: var(--m-ink); overflow-wrap: anywhere; }
.m5 .m-comment__text img.yvSmiley { height: 1.4em; width: auto; vertical-align: -.35em; }
.m-comment__tools { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .3rem; }
.m5 .m-comment__tool { display: inline-flex; align-items: center; gap: .3rem; min-height: 24px; padding: 0; border: 0; background: none; font: inherit; font-size: .72rem; color: var(--m-ink-3); text-decoration: none; cursor: pointer; }
.m-comment__tool .fa-solid, .m-comment__tool .fa-regular { font-size: .68rem; }
.m5 .m-comment__tool:hover { color: var(--m-blue); }
.m5 .m-comment__tool--danger:hover { color: var(--m-red); }
.m5 .fototj-reply-target { background: #fff8d6; box-shadow: 0 0 0 6px #fff8d6; }
@media (max-width: 575.98px) { .m-thread__replies { padding-left: .9rem; } }

/* ======================================================================= component views */
.m5 [class^="com-fototj-"] > h1:first-child, .m5 [class^="com-fototj-"] > .page-header:first-child { margin-top: 0; }
.m5 .com-fototj-new .nav-pills .nav-link.disabled { padding-left: 0; color: var(--m-ink-2); }
.m5 .com-fototj-new .p-5 { padding: 2.5rem !important; border-radius: var(--m-r-panel) !important; }
.m5 .com-fototj-new .p-5 h1, .m5 .com-fototj-new .p-5 .display-5 { font-size: 1.35rem; margin: 0; }
.m-empty { padding: 3rem 0; }
.m-empty__title { font-size: 1.4rem; }

/* my comments (com_fototj mycomments) */
.m5 .com-fototj-mycomments > .d-flex { gap: 1.25rem; margin: 0 !important; padding: 1.1rem 0; border-top: 1px solid var(--m-line); }
.m5 .com-fototj-mycomments > .d-flex:first-child { border-top: 0; padding-top: 0; }
.m5 .com-fototj-mycomments .thumb { margin: 0 !important; width: clamp(88px, 14vw, 140px); }
.m5 .com-fototj-mycomments .thumb a { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--m-r-photo); background: var(--m-fill); }
.m5 .com-fototj-mycomments .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--m-ease); }
.m5 .com-fototj-mycomments .thumb a:hover img { transform: scale(1.03); }
.m5 .com-fototj-mycomments .comment { margin: 0; width: auto; min-width: 0; }
.m5 .com-fototj-mycomments .comment-details { width: auto; padding: 0; margin: 0 0 .35rem; border: 0; font-weight: 400; font-size: .85rem; color: var(--m-ink-2); }
.m5 .com-fototj-mycomments .comment-details a { font-size: .95rem; font-weight: 500; color: var(--m-ink); }
.m5 .com-fototj-mycomments .blockquote { margin: 0 0 .5rem; padding: .35rem .75rem; border-left: 2px solid var(--m-line-2) !important; background: transparent; font-size: .88rem; }
.m5 .com-fototj-mycomments .comment > p { margin: 0; overflow-wrap: anywhere; }

/* remove-from-list links under photos (my photos, favourites: a.text-danger > .icon-trash): quiet until hovered */
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .imgtitle a.text-danger { color: var(--m-ink-3) !important; align-self: flex-start; display: inline-flex; min-width: 32px; min-height: 32px; align-items: center; }
.m5 :is(.fototj-thumbs, .afc-thumbs, .fototj-cb-photos) .imgtitle a.text-danger:hover { color: var(--m-red) !important; }

/* rankings (html/com_fototj/best): heading, ranking tabs, year chips */
.m5 .m-best__head { margin-bottom: 1rem; }
.m5 .m-best__title { margin: 0; }
.m5 .m-best__sub { margin: .2rem 0 0; color: var(--m-ink-2); }
.m5 .m-best__filters { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.75rem; }
.m5 .m-tabs, .m5 .m-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.m5 .m-tabs { gap: .25rem; align-self: flex-start; padding: .25rem; border-radius: 999px; background: var(--m-fill); max-width: 100%; }
.m5 .m-tabs__item { display: inline-flex; align-items: center; min-height: 36px; padding: 0 1rem; border-radius: 999px; color: var(--m-ink-2); text-decoration: none; font-weight: 450; white-space: nowrap; transition: background-color .15s, color .15s; }
.m5 .m-tabs__item:hover { color: var(--m-ink); }
.m5 .m-tabs__item.is-active { background: var(--m-surface, #fff); color: var(--m-ink); box-shadow: 0 1px 3px rgba(22, 25, 29, .12); }
.m5 .m-chips__item { display: inline-flex; align-items: center; min-height: 32px; padding: 0 .75rem; border: 1px solid var(--m-line); border-radius: 999px; background: var(--m-surface, #fff); color: var(--m-ink-2); text-decoration: none; font-size: .82rem; transition: border-color .15s, color .15s, background-color .15s; }
.m5 .m-chips__item:hover { border-color: var(--m-blue); color: var(--m-blue); }
.m5 .m-chips__item.is-active { border-color: var(--m-ink); background: var(--m-ink); color: #fff; }
.m5 .m-best__empty { color: var(--m-ink-2); }
@media (max-width: 575.98px) {
  .m5 .m-tabs, .m5 .m-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .m5 .m-chips { margin-inline: -16px; padding-inline: 16px; }
  .m5 .m-chips__item { white-space: nowrap; }
  .m5 .m-tabs__item { padding: 0 .8rem; }
}

/* ======================================================================= upload (com_fototj upload "modern" layout) */
.m5 .fototj-upload-modern, .m5 .com-fototj-upload { --fu-radius: var(--m-r-panel); }

/* yes/no switches (Joomla's switcher field, media/system/css/fields/switcher.css): rounded track, round knob, blue when "yes" */
.m5 .switcher { width: auto; min-width: 9rem; height: 24px; margin: .35rem 0 .4rem; }
.m5 .switcher input { width: 44px; height: 24px; }
.m5 .switcher label { margin-inline-start: 54px; min-width: 3rem; line-height: 24px; font-size: .875rem; color: var(--m-ink-2); }
.m5 .switcher .toggle-outside { width: 44px; border: 0; border-radius: 999px; background: var(--m-line-2); transition: background-color .2s; }
.m5 .switcher input ~ input:checked ~ .toggle-outside { background: var(--m-blue); }
.m5 .switcher .toggle-inside { top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(22, 25, 29, .25); transition: left .2s ease; }
.m5 .switcher input ~ input:checked ~ .toggle-outside .toggle-inside { left: 22px; }
.m5 .switcher input:focus ~ .toggle-outside { border-color: transparent; box-shadow: none; }
.m5 .switcher input:focus-visible ~ .toggle-outside { box-shadow: 0 0 0 3px rgba(0, 112, 184, .3); }
.m5 .switcher:hover .toggle-outside { filter: brightness(.96); }

/* ======================================================================= contests (com_afc) */
.m5 .com-afc .thumbnail, .m5 [class*="afc"] img.img-thumbnail { border-radius: var(--m-r-photo); border-color: var(--m-line); }

/* ======================================================================= forum (Kunena) */
/* Kunena (Aurelia): site fonts and sizes, pill menu, sections and posts as cards, compact tables, pagination and buttons.
   #kunena is an id, so these rules win over Aurelia's own css without !important in most places. */
.m5 #kunena { font-family: var(--m-font); font-size: .875rem; color: var(--m-ink); }
.m5 #kunena table, .m5 #kunena .btn, .m5 #kunena .form-control, .m5 #kunena .form-select { font-family: var(--m-font); }
.m5 #kunena .kmsg, .m5 #kunena .kmsg *:not(code):not(pre) { font-family: var(--m-font) !important; }   /* Aurelia sets Segoe UI on posts with a stronger rule */
.m5 #kunena.layout .card, .m5 #kunena .kfrontend, .m5 #kunena .shadow, .m5 #kunena .shadow-lg, .m5 #kunena .shadow-sm { box-shadow: none !important; }
.m5 #kunena a { text-decoration: none; }
.m5 #kunena h1, .m5 #kunena h2, .m5 #kunena h3, .m5 #kunena h4 { font-family: var(--m-font); font-weight: 500; letter-spacing: 0; }

/* top menu (Index, Recent Topics, …): pills in a white bar */
.m5 #kunena > .navbar { padding: .35rem .45rem; background: var(--m-surface) !important; border: 1px solid var(--m-line) !important; border-radius: var(--m-r-panel) !important; }
.m5 #kunena > .navbar .container-fluid { padding: 0; }
.m5 #kunena > .navbar .navbar-nav { gap: .15rem; }
.m5 #kunena > .navbar .nav-link { display: inline-flex; align-items: center; min-height: 34px; padding: 0 .85rem !important; border-radius: 999px; color: var(--m-ink-2); font-size: .82rem; }
.m5 #kunena > .navbar .nav-link:hover { color: var(--m-ink); background: var(--m-fill); }
.m5 #kunena > .navbar .nav-link.active, .m5 #kunena > .navbar .active > .nav-link { background: var(--m-ink); color: #fff; }
.m5 #kunena > .navbar .dropdown-toggle { border-radius: 999px; }
.m5 #kunena .dropdown-menu { border: 1px solid var(--m-line); border-radius: 12px; box-shadow: 0 12px 30px -12px rgba(22, 25, 29, .25); padding: .35rem; font-size: .82rem; }
.m5 #kunena .dropdown-item { border-radius: 8px; padding: .4rem .7rem; }

/* breadcrumb and quick jump */
.m5 #kunena .breadcrumb { margin: .9rem 0 .6rem; font-size: .78rem; }
.m5 #kunena .breadcrumb-item, .m5 #kunena .breadcrumb-item a { color: var(--m-ink-3); }
.m5 #kunena .breadcrumb-item a:hover { color: var(--m-blue); }
.m5 #kunena .breadcrumb-item.active, .m5 #kunena .breadcrumb-item:last-child a { color: var(--m-ink-2); }
.m5 #kunena #jumpto .selector { width: auto; max-width: 280px; padding: 0; }
.m5 #kunena .form-select, .m5 #kunena .form-control { min-height: 36px; border-color: var(--m-line-2); border-radius: 10px; font-size: .82rem; }
.m5 #kunena .input-group > .form-control { border-radius: 10px 0 0 10px; }
.m5 #kunena .input-group > .btn { border-radius: 0 10px 10px 0 !important; }

/* sections (category groups on the index, the category header) */
.m5 #kunena .kfrontend { margin-top: 1.25rem; background: var(--m-surface); border: 1px solid var(--m-line) !important; border-radius: var(--m-r-panel) !important; overflow: hidden; }
.m5 #kunena .kfrontend > .collapse, .m5 #kunena .kfrontend > .collapsing { border-radius: 0 !important; }
.m5 #kunena h1.card-header, .m5 #kunena .card-header h1 { margin: 0; padding: .95rem 1.1rem .55rem; font-size: 1.05rem; font-weight: 500; background: transparent; border: 0; }
.m5 #kunena h1.card-header a { color: var(--m-ink); }
.m5 #kunena .kfrontend h2, .m5 #kunena .kfrontend h2.card-header { margin: 0; padding: .95rem 1.1rem .4rem; font-size: 1rem; font-weight: 500; background: transparent; border: 0; }
.m5 #kunena .kfrontend h2 a { font-size: inherit; color: var(--m-ink); }
.m5 #kunena .kfrontend h2 a:hover { color: var(--m-blue); }
.m5 #kunena .kfrontend .bi-people, .m5 #kunena .kfrontend .bi-bar-chart, .m5 #kunena .kfrontend [class*='kwho'] + .bi { color: var(--m-ink-3); }
.m5 #kunena h1.card-header a:hover { color: var(--m-blue); }
.m5 #kunena h1.card-header small, .m5 #kunena h2 small, .m5 #kunena h3 small { font-size: .72rem; font-weight: 400; color: var(--m-ink-3); }
.m5 #kunena .kfrontend > .btn-toolbar { margin: .7rem .8rem 0 0; }
.m5 #kunena .kfrontend > .btn-toolbar .btn { padding: .2rem .45rem; border-color: transparent; color: var(--m-ink-3); }
.m5 #kunena .kfrontend > .btn-toolbar .btn:hover { color: var(--m-blue); background: var(--m-fill); }

/* tables: category list and topic list */
.m5 #kunena .table { margin: 0; --bs-table-bg: transparent; --bs-table-accent-bg: transparent; font-size: .82rem; }
.m5 #kunena .table > :not(caption) > * > * { padding: .7rem .6rem; border-bottom-color: var(--m-line); background: transparent; box-shadow: none; }
.m5 #kunena .table th { font-weight: 400; }
.m5 #kunena .table td { vertical-align: top; }
.m5 #kunena .table tbody tr:hover > * { background: #fafbfc; }
.m5 #kunena .table tbody tr:first-child:not(.category):not([class*="category-"]) > * { padding-top: .35rem; padding-bottom: .35rem; font-size: .72rem; color: var(--m-ink-3); background: transparent; }
.m5 #kunena .table tbody tr:first-child:not(.category):not([class*="category-"]) .p-2 { padding: 0 !important; }
.m5 #kunena .table thead .bg-faded { padding: 0 .5rem .4rem !important; font-size: .8rem; color: var(--m-ink-2); background: none; }
.m5 #kunena .table .bi { width: 1.25rem; height: 1.25rem; color: var(--m-ink-3); }
.m5 #kunena #kcat-icon .bi, .m5 #kunena tr > th:first-child .bi { width: 1.4rem; height: 1.4rem; color: var(--m-blue); }
.m5 #kunena tr.category h3 { margin: 0 0 .15rem; font-size: .95rem; font-weight: 500; }
.m5 #kunena tr.category h3 a { color: var(--m-ink); }
.m5 #kunena tr.category h3 a:hover { color: var(--m-blue); }
.m5 #kunena tr.category h3 .bi-rss { width: .8rem; height: .8rem; }
.m5 #kunena tr.category td { color: var(--m-ink-2); }
.m5 #kunena .topictitle { font-size: .9rem; font-weight: 500; color: var(--m-ink); }
.m5 #kunena .topictitle:hover { color: var(--m-blue); }
.m5 #kunena tr:has(.topictitle) td { color: var(--m-ink-3); font-size: .78rem; }   /* topic rows (sticky and normal) */
.m5 #kunena tr:has(.topictitle) td a:not(.topictitle):not(.page-link) { color: var(--m-ink-2); }
.m5 #kunena tr:has(.topictitle) td a:not(.topictitle):not(.page-link):hover { color: var(--m-blue); }
.m5 #kunena .table:has(.topictitle) { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r-panel); border-collapse: separate; border-spacing: 0; overflow: hidden; }   /* topic list as a card */
.m5 #kunena .table:has(.topictitle) > thead th, .m5 #kunena .table:has(.topictitle) > thead td { font-size: .75rem; font-weight: 400; color: var(--m-ink-3); }
.m5 #kunena .table:has(.topictitle) tbody tr:last-child > * { border-bottom: 0; }
.m5 #kunena tr.kcontenttablespacer > * { padding: .25rem !important; border: 0 !important; background: transparent !important; }
.m5 #kunena tr.category-stickymsg > * { background: #fbfaf4 !important; }   /* sticky topics: a faint warm tint instead of grey */
.m5 #kunena tr.category-stickymsg:hover > * { background: #f7f5ea !important; }
.m5 #kunena .replies, .m5 #kunena .views { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; color: var(--m-ink-3); }
.m5 #kunena .repliesnum, .m5 #kunena .viewsnum { color: var(--m-ink); font-variant-numeric: tabular-nums; }
.m5 #kunena .lastpostlink, .m5 #kunena .datepost { font-size: .75rem; }
.m5 #kunena .datepost { color: var(--m-ink-3); }
.m5 #kunena .kwho-user, .m5 #kunena .kwho-guest, .m5 #kunena .kwho-moderator, .m5 #kunena .kwho-admin { font-weight: 500; }
/* page links inside a topic row: small chips */
.m5 #kunena td .pagination { gap: .2rem; margin: .35rem 0 0; }
.m5 #kunena td .pagination .page-link { min-width: 24px; min-height: 22px; padding: 0 .4rem; font-size: .7rem; border-radius: 6px; }

/* pagination, buttons */
.m5 #kunena .pagination { flex-wrap: wrap; gap: .25rem; }
.m5 #kunena .pagination .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; padding: 0 .7rem; margin: 0 !important; border: 1px solid var(--m-line); border-radius: 10px !important; background: var(--m-surface); color: var(--m-ink-2); font-size: .8rem; }
.m5 #kunena .pagination .page-link:hover { border-color: var(--m-blue); color: var(--m-blue); }
.m5 #kunena .pagination .active > .page-link, .m5 #kunena .pagination .page-item.active .page-link { border-color: var(--m-ink); background: var(--m-ink); color: #fff; }
.m5 #kunena .pagination .disabled > .page-link { color: var(--m-ink-3); background: transparent; }
.m5 #kunena .btn { font-size: .8rem; border-radius: 999px; }
.m5 #kunena .btn-group > .btn:not(:last-child):not(.dropdown-toggle), .m5 #kunena .btn-group > .btn-group:not(:last-child) > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.m5 #kunena .btn-group > .btn:nth-child(n+2), .m5 #kunena .btn-group > .dropdown-toggle-split { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.m5 #kunena .btn-outline-primary, .m5 #kunena .btn-light, .m5 #kunena .btn-outline-secondary { border-color: var(--m-line-2); background: var(--m-surface); color: var(--m-ink-2); }
.m5 #kunena .btn-outline-primary:hover, .m5 #kunena .btn-light:hover, .m5 #kunena .btn-outline-secondary:hover { border-color: var(--m-blue); background: var(--m-surface); color: var(--m-blue); }
.m5 #kunena .btn .bi { width: .9em; height: .9em; vertical-align: -.1em; }
.m5 #kunena .pagination-container-links { padding-top: 1rem !important; }

/* topic page: title, posts as cards (profile card + message card) */
.m5 #kunena .kunena-topic-item > h1 { margin: 1rem 0 .75rem; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 450; line-height: 1.25; }
.m5 #kunena .kunena-topic-item > h1 .bi { width: .9em; height: .9em; color: var(--m-ink-3); }
.m5 #kunena .topic-item-messages { margin-top: 1rem; }
.m5 #kunena .row.message { --bs-gutter-x: 1rem; margin-bottom: 1rem; }
.m5 #kunena .row.message > .col-md-2 { padding: 1rem .75rem; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r-panel) !important; align-self: flex-start; }
.m5 #kunena .profilebox { margin: 0; padding: 0; list-style: none; font-size: .75rem; color: var(--m-ink-2); }
.m5 #kunena .profilebox > li { margin-bottom: .3rem; }
.m5 #kunena .profilebox strong a { font-size: .85rem; color: var(--m-ink); }
.m5 #kunena .profilebox img[width="144"], .m5 #kunena .profilebox .rounded img { width: 88px; height: 88px; margin: .25rem auto; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--m-line); }
.m5 #kunena .profilebox li, .m5 #kunena .profilebox li > a, .m5 #kunena .profilebox span:not(.badge) { border: 0 !important; box-shadow: none !important; background: none; }
.m5 #kunena .topic-starter { margin-top: .4rem; font-size: .66rem; font-weight: 500; letter-spacing: .02em; color: var(--m-blue); text-transform: lowercase; }
.m5 #kunena .profilebox .badge { padding: .2rem .5rem; border-radius: 999px; font-size: .66rem; font-weight: 500; background: var(--m-fill) !important; color: var(--m-ink-3); }
.m5 #kunena .profilebox .badge.bg-success { background: #e3f4ea !important; color: #1f8a4c; }
.m5 #kunena .profile-expand .btn { padding: .15rem .6rem; font-size: .7rem; }
.m5 #kunena .profile-expand { margin-top: .35rem; }
/* "Больше" panel under the avatar: stat lines, then the profile icons (gender, birthday, location, site, message…) as small chips */
.m5 #kunena .profile-expand .content { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--m-line); }
.m5 #kunena .profile-expand .content ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; padding: 0; margin: 0; list-style: none; font-size: .72rem; color: var(--m-ink-2); }
.m5 #kunena .profile-expand .content li { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; gap: .3rem; line-height: 1.35; }
.m5 #kunena .profile-expand .content li:has(svg):not(:has([href*="task-karma"])) { flex: none; }
.m5 #kunena .profile-expand .content li:has(svg):not(:has([href*="task-karma"])) > span,
.m5 #kunena .profile-expand .content li:has(svg):not(:has([href*="task-karma"])) > a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--m-fill); color: var(--m-ink-3); }
.m5 #kunena .profile-expand .content li:has(svg):not(:has([href*="task-karma"])) > a:hover { background: #e6f1f9; color: var(--m-blue); }
.m5 #kunena .profile-expand .content svg { width: 14px !important; height: 14px !important; fill: currentColor; }
.m5 #kunena .profile-expand .content svg path { fill: currentColor; }
.m5 #kunena .profile-expand .content .btn { min-height: 0; padding: 0; border: 0; background: none; }
/* reputation −/+ */
.m5 #kunena .profile-expand .content a[href*="task-karma"] { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--m-fill); color: var(--m-ink-3); }
.m5 #kunena .profile-expand .content a[href*="task-karma"]:hover { background: #e6f1f9; color: var(--m-blue); }
.m5 #kunena .profile-expand .content a[href*="task-karma"] svg { width: 10px !important; height: 10px !important; }
.m5 #kunena .profile-expand .content a[href*="task-karmadown"] svg { width: 8px !important; height: 8px !important; }   /* the minus glyph is drawn heavier than the plus */
.m5 #kunena .message-published, .m5 #kunena .row.message > .col-md-10 { padding: .85rem 1.1rem 1rem; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r-panel) !important; }
.m5 #kunena .message-published > small.float-end { float: none !important; display: block; margin-bottom: .45rem; text-align: right; font-size: .7rem; color: var(--m-ink-3); }
.m5 #kunena .message-published > small.float-end a { color: var(--m-ink-3); }
.m5 #kunena .message-published > small.float-end a:hover { color: var(--m-blue); }
.m5 #kunena .message-published > small .bi { width: .85em; height: .85em; }
.m5 #kunena .message-published > .shadow-none { padding: .25rem 0 0 !important; margin-bottom: 1rem !important; }
.m5 #kunena .mykmsg-header { margin: 0 0 .9rem !important; padding: .5rem .75rem; border-radius: 10px; background: var(--m-fill); font-size: .78rem; color: var(--m-ink-2); }
.m5 #kunena .mykmsg-header em { font-style: normal; }
.m5 #kunena .mykmsg-header a { font-weight: 500; }
.m5 #kunena .kmsg { font-size: .9rem; line-height: var(--m-leading); color: var(--m-ink); overflow-wrap: anywhere; }
.m5 #kunena .kmsg img { max-width: 100%; height: auto; border-radius: 8px; }
.m5 #kunena .kmsg img[src*="smiley"], .m5 #kunena .kmsg img[src*="emoticons"] { border-radius: 0; }
.m5 #kunena .kmsg blockquote, .m5 #kunena .kmsg .kmsgtext-quote { margin: .5rem 0; padding: .5rem .8rem; border-left: 3px solid var(--m-line-2); border-radius: 0 8px 8px 0; background: #fafbfc; color: var(--m-ink-2); font-size: .85rem; }
.m5 #kunena .report { padding-bottom: .75rem !important; }
.m5 #kunena .report .btn { padding: .2rem .7rem; font-size: .72rem; color: var(--m-ink-3); }
.m5 #kunena .message-published > .alert-info { margin: 0 0 .75rem; padding: .45rem .75rem; border: 0; border-radius: 10px; background: var(--m-fill); color: var(--m-ink-3); font-size: .72rem; }
.m5 #kunena .kmessagepadding { gap: .35rem; }
.m5 #kunena .kmessagepadding .btn { padding: .3rem .8rem; }
@media (max-width: 767.98px) {
  .m5 #kunena > .navbar .nav-link { min-height: 40px; }
  .m5 #kunena .row.message > .col-md-10 { padding: .75rem .85rem; }
}

/* ======================================================================= profiles and messages (CB, uddeIM) */
/* CB profile page (userprofile): avatar | name + stat tiles + message button, pill menu and pill tabs, tab panes as cards.
   CSS only: the positions are flattened into one grid (display: contents), CB markup is untouched. */
.m5 .cbProfile { display: grid; grid-template-columns: 168px minmax(0, 1fr); column-gap: 2rem; align-items: start; }
.m5 .cbProfile > .cbPosHead, .m5 .cbProfile > .cbPosTop { display: contents; }
.m5 .cbProfile > .cbPosSeparator { display: none; }
.m5 .cbProfile > .cbPosHead > .cb_tab_content:has(.cbNavBar) { grid-column: 1 / -1; grid-row: 1; margin-bottom: 1.25rem; }
.m5 .cbProfile > .cbPosHead > .cb_tab_content:has(.cbProfileTitle) { grid-column: 2; grid-row: 2; }
.m5 .cbProfile > .cbPosTop > .cbPosMiddle { grid-column: 1; grid-row: 2 / span 2; max-width: none; padding: 0; }
.m5 .cbProfile > .cbPosTop > .cbPosRight { grid-column: 2; grid-row: 3; max-width: none; padding: 0 !important; }
.m5 .cbProfile > .cbPosTabMain { grid-column: 1 / -1; grid-row: 4; margin-top: 2rem; }

/* CB menu (Смотреть / Сообщения / Модерация): small pills, no grey bar */
.m5 .cbProfile .cbMenuNavBar { padding: 0; border: 0 !important; background: none !important; }
.m5 .cbProfile .cbMenuNavBar .cbNavBarMenu { gap: .35rem; }
.m5 .cbProfile .cbMenuNavBar .cbNavBarLink { display: inline-flex; align-items: center; gap: .25rem; min-height: 32px; padding: 0 .8rem !important; border: 1px solid var(--m-line); border-radius: 999px; background: var(--m-surface); color: var(--m-ink-2); font-size: .8rem; }
.m5 .cbProfile .cbMenuNavBar .cbNavBarLink:hover, .m5 .cbProfile .cbMenuNavBar .show > .cbNavBarLink { border-color: var(--m-blue); color: var(--m-blue); }
.m5 .cbMenuDropdown .dropdown-menu, .m5 .cbSubMenu { border: 1px solid var(--m-line); border-radius: 12px; box-shadow: 0 12px 30px -12px rgba(22, 25, 29, .25); padding: .35rem; font-size: .82rem; }
.m5 .cbSubMenu .dropdown-item { border-radius: 8px; padding: .4rem .7rem; }

/* name */
.m5 .cbProfile .cbProfileTitle { margin: 0 0 .9rem !important; padding: 0; border: 0 !important; }
.m5 .cbProfile .cb-page-header-title { margin: 0 !important; font-family: var(--m-font); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); font-weight: 450; letter-spacing: -.01em; line-height: 1.15; }

/* avatar: round, cropped, no label */
.m5 .cbProfile .cbPosMiddle .cb_form_line { margin: 0; }
.m5 .cbProfile .cbPosMiddle .cb_form_line > .col-form-label { display: none; }
.m5 .cbProfile .cbPosMiddle .cb_form_line > .cb_field { flex: 0 0 100%; max-width: 100%; padding: 0; }
.m5 .cbProfile .cbPosMiddle .form-control-plaintext { padding: 0; }
.m5 .cbProfile .cbImgAvatar { display: block; width: 168px; height: 168px; padding: 0; border: 0; border-radius: 50% !important; object-fit: cover; box-shadow: 0 0 0 1px var(--m-line); }

/* stats: tiles like the photo info card */
.m5 .cbProfile .cbPosRight .cbFieldsContentsTab { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 768px) and (max-width: 1099.98px) { .m5 .cbProfile .cbPosRight .cbFieldsContentsTab { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m5 .cbProfile .cbPosRight .cb_form_line { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .15rem; margin: 0; padding: .6rem .75rem; border: 1px solid var(--m-line); border-radius: 12px; background: var(--m-surface); min-width: 0; }
.m5 .cbProfile .cbPosRight .cb_form_line > .col-form-label, .m5 .cbProfile .cbPosRight .cb_form_line > .cb_field { flex: none; max-width: 100%; width: 100%; padding: 0; }
.m5 .cbProfile .cbPosRight .cb_form_line > .col-form-label { font-size: .7rem; font-weight: 400; line-height: 1.3; color: var(--m-ink-3); }
.m5 .cbProfile .cbPosRight .form-control-plaintext { padding: 0; min-height: 0; font-size: .95rem; font-weight: 500; line-height: 1.3; color: var(--m-ink); overflow-wrap: anywhere; }
.m5 .cbProfile .cbPosRight .form-control-plaintext img { margin-top: .25rem; }
.m5 .cbProfile .cb_online, .m5 .cbProfile .cb_offline { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 500; text-transform: lowercase; }
.m5 .cbProfile .cb_offline { color: var(--m-ink-3) !important; }
.m5 .cbProfile .cb_online { color: #1f8a4c !important; }
.m5 .cbProfile .cb_online .fa, .m5 .cbProfile .cb_offline .fa { font-size: .6rem; }
/* "send a private message": a button under the tiles */
.m5 .cbProfile .cbPosRight .fieldCell { width: auto !important; margin-top: .9rem; }
.m5 .cbProfile .cbPosRight .fieldCell a { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: 0 1rem; border-radius: 999px; background: var(--m-blue); color: #fff; font-size: .85rem; font-weight: 500; text-decoration: none; }
.m5 .cbProfile .cbPosRight .fieldCell a::before { content: "\f0e0"; font-family: "Font Awesome 6 Free"; font-weight: 400; }
.m5 .cbProfile .cbPosRight .fieldCell a:hover { background: #005d99; }

/* tabs: pills; each pane is a card */
.m5 .cbProfile .cbTabsNav { display: inline-flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1rem !important; padding: .25rem; border: 0 !important; border-radius: 999px; background: var(--m-fill) !important; max-width: 100%; }   /* CB's bootstrap copy styles .nav-tabs with stronger selectors */
.m5 .cbProfile .cbTabsNav .nav-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 1rem; margin: 0 !important; border: 0 !important; border-radius: 999px !important; background: none !important; color: var(--m-ink-2); font-size: .85rem; white-space: nowrap; }
.m5 .cbProfile .cbTabsNav .nav-link:hover { color: var(--m-ink); }
.m5 .cbProfile .cbTabsNav .nav-link.active { background: var(--m-surface) !important; color: var(--m-ink); box-shadow: 0 1px 3px rgba(22, 25, 29, .12); }
.m5 .cbProfile .cbTabsContent > .tab-pane { padding: 1.1rem 1.35rem; border: 1px solid var(--m-line); border-radius: var(--m-r-panel); background: var(--m-surface); font-size: .85rem; }
.m5 .cbProfile .cbTabPane .cb_form_line { display: grid; grid-template-columns: minmax(9rem, 30%) 1fr; gap: 1rem; margin: 0; padding: .55rem 0; border-top: 1px solid var(--m-line); }
.m5 .cbProfile .cbTabPane .cb_form_line:first-child { border-top: 0; padding-top: 0; }
.m5 .cbProfile .cbTabPane .cb_form_line > .col-form-label, .m5 .cbProfile .cbTabPane .cb_form_line > .cb_field { max-width: none; width: auto; padding: 0; }
.m5 .cbProfile .cbTabPane .cb_form_line > .col-form-label { font-weight: 400; color: var(--m-ink-3); }
.m5 .cbProfile .cbTabPane .form-control-plaintext { padding: 0; min-height: 0; font-size: inherit; line-height: inherit; color: var(--m-ink); }
.m5 .cbProfile .cbTabPane fieldset legend { font-size: .95rem; font-weight: 500; margin-bottom: .5rem; }
.m5 .cbProfile .fototj-cb-photos { padding: 0; }
.m5 .cbProfile .cbTabPane table { width: 100%; margin: 0; border-collapse: collapse; font-size: .82rem; }
.m5 .cbProfile .cbTabPane table th { padding: 0 .6rem .5rem; font-size: .72rem; font-weight: 400; color: var(--m-ink-3); text-align: left; border-bottom: 1px solid var(--m-line); }
.m5 .cbProfile .cbTabPane table td { padding: .5rem .6rem; border-bottom: 1px solid var(--m-line); vertical-align: middle; }
.m5 .cbProfile .cbTabPane table tr:last-child td { border-bottom: 0; }
.m5 .cbProfile .cbTabPane table tbody tr:hover td { background: #fafbfc; }
.m5 .cbProfile .cbTabPane table a { color: var(--m-ink); text-decoration: none; }
.m5 .cbProfile .cbTabPane table a:hover { color: var(--m-blue); }
.m5 .cbProfile .cbTabPane table img.yvSmiley, .m5 .cbProfile .cbTabPane table img[src*="smiley"] { height: 1.3em; width: auto; vertical-align: -.3em; }
.m5 .cbProfile .cbTabPane > .cb_tab_content > br:first-child, .m5 .cbProfile .cbTabPane > .cb_tab_content > p:empty { display: none; }
.m5 .cbPoweredBy { margin-top: 1.5rem; font-size: .7rem; opacity: .55; }

@media (max-width: 767.98px) {
  .m5 .cbProfile { grid-template-columns: minmax(0, 1fr); }
  .m5 .cbProfile > .cbPosTop > .cbPosMiddle { grid-column: 1; grid-row: 2; justify-self: center; margin-bottom: 1rem; }
  .m5 .cbProfile > .cbPosHead > .cb_tab_content:has(.cbProfileTitle) { grid-column: 1; grid-row: 3; text-align: center; }
  .m5 .cbProfile > .cbPosTop > .cbPosRight { grid-column: 1; grid-row: 4; }
  .m5 .cbProfile > .cbPosTabMain { grid-row: 5; }
  .m5 .cbProfile .cbImgAvatar { width: 128px; height: 128px; }
  .m5 .cbProfile .cbPosRight .cbFieldsContentsTab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m5 .cbProfile .cbPosRight .fieldCell { text-align: center; }
  .m5 .cbProfile .cbTabsNav { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 14px; }
  .m5 .cbProfile .cbTabPane .cb_form_line { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}
/* uddeIM and other old forms: plain submit inputs get the button look */
.m5 [id^="uddeim"] input[type="submit"], .m5 [id^="uddeim"] input[type="button"], .m5 [class*="uddeim"] input[type="submit"] {
  min-height: 40px; padding: .4rem 1rem; border: 1px solid var(--m-line-2); border-radius: var(--m-r-ctrl); background: var(--m-surface); color: var(--m-ink); font: inherit; font-weight: 500; cursor: pointer;
}
.m5 [id^="uddeim"] input[type="submit"]:hover, .m5 [class*="uddeim"] input[type="submit"]:hover { background: var(--m-fill); }
.m5 .cbProfile .card, .m5 #cbcheckedadminForm .card, .m5 .cb_template .card { border-radius: var(--m-r-panel); }
.m5 .cb_template, .m5 .cbLoginForm { font-family: var(--m-font); }
.m5 #uddeim-overall, .m5 .uddeim-container { font-family: var(--m-font); }

/* ======================================================================= shoutbox (mod_shoutbox, own shoutbox.css) */
/* feed lists: last comments (mod_fototj_comments, _ajax) and shoutbox share one look —
   name inline before the message, no rules between entries, same scroll height */
.m5 :is(.mod-fototj-comments, .mod-fototj-comments-ajax), .m5 .shoutbox-list { margin: 0; padding: 0; list-style: none; }
.m5 .mod-fototj-comments-ajax, .m5 .shoutbox-output { max-height: 380px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--m-line) transparent; }
.m5 .shoutbox-output { border: 0 !important; padding: 0 !important; margin: 0 !important; background: transparent !important; height: auto; color: var(--m-ink-2); font-size: inherit; }
.m5 :is(.mod-fototj-comments, .mod-fototj-comments-ajax) .lastcomment, .m5 .shoutbox-list li {
  position: relative; width: auto; margin: 0 !important; padding: .3rem 0 !important; border: 0;
  font-size: .875rem; line-height: var(--m-leading); color: var(--m-ink-2); overflow-wrap: anywhere; text-overflow: clip;
}
.m5 :is(.mod-fototj-comments, .mod-fototj-comments-ajax) .lastcomment:first-child, .m5 .shoutbox-list li:first-child { border-top: 0; padding-top: 0 !important; }
.m5 .shoutbox-list li::first-line { line-height: inherit; }
.m5 :is(.mod-fototj-comments, .mod-fototj-comments-ajax) .lastcomment strong, .m5 .shoutbox-output li span.name {
  display: inline; margin: 0 .3em 0 0; font-size: inherit; font-weight: 560; color: var(--m-ink);
}
.m5 :is(.mod-fototj-comments, .mod-fototj-comments-ajax) .lastcomment strong a, .m5 .shoutbox-output li span a { color: inherit; font-weight: inherit; border-bottom: 0 !important; }
.m5 .shoutbox-output li span.name { margin-right: 0; } /* the module already writes a space after the name */
.m5 .mod-fototj-comments-ajax .lastcomment > a { display: block; }
.m5 :is(.mod-fototj-comments, .mod-fototj-comments-ajax) .lastcomment > a { color: var(--m-ink-2); text-decoration: none; }
.m5 :is(.mod-fototj-comments, .mod-fototj-comments-ajax) .lastcomment > a:hover, .m5 :is(.mod-fototj-comments, .mod-fototj-comments-ajax) .lastcomment > a:hover strong { color: var(--m-blue); }
.m5 :is(.lastcomment, .shoutbox-list li) img.yvSmiley { height: 1.25em; width: auto; vertical-align: -.3em; }
.m5 .shoutbox-output a { color: var(--m-blue); font-weight: 400; }
.m5 .shoutbox-last-message { display: flex; gap: .35rem; flex-wrap: wrap; border: 0 !important; padding: 0 0 .6rem; margin: 0; color: var(--m-ink-3); font-size: .78rem; text-align: left; }
.m5 .shoutbox-last-message span, .m5 .shoutbox-response-time { display: inline; font: inherit; font-weight: 400; color: inherit; }
.m5 .shoutbox-delete { position: absolute; top: .3rem; right: 0; padding: 0 .25rem; border: 0; background: none; line-height: 1.2; font-size: .8rem; color: var(--m-ink-3) !important; }
.m5 .shoutbox-list li:first-child .shoutbox-delete { top: 0; }
.m5 .shoutbox-list li:has(.shoutbox-delete) { padding-right: 1.25rem !important; }
.m5 .shoutbox-delete:hover { color: var(--m-red) !important; }
.m5 .shoutbox { --shoutbox-fade-from: #e3f0fa !important; --shoutbox-fade-to: transparent !important; }
.m5 .shoutbox-form { margin-top: .75rem; }
.m5 .shoutbox-form label { font-weight: 500; font-size: .9rem; }
.m5 .shoutbox-form textarea, .m5 .shoutbox-form input[type="text"] { width: 100%; }
.m5 .shoutbox-form button, .m5 .shoutbox-form input[type="submit"] { min-height: 40px; }

/* ======================================================================= error and offline pages */
.m-error { padding-block: clamp(3rem, 10vh, 7rem); }
.m-error > * { max-width: 760px; }
.m5 .m-error__code { font-family: var(--m-display); font-weight: 300; font-size: clamp(4rem, 12vw, 8rem); line-height: 1; margin: 0 0 .15em; color: var(--m-line-2); }
.m-error__text { color: var(--m-ink-2); font-size: 1.1rem; max-width: 56ch; }
.m-error__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }

/* ======================================================================= responsive header */
@media (max-width: 1199.98px) {
  .m-header__extra input[type="text"], .m-header__extra input[type="search"] { width: 170px; }
}
@media (max-width: 1099.98px) {
  /* a backdrop-filter would make the header the containing block of the fixed menu panel (clipping it) */
  .m-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--m-surface); }
  .m-header__bar { gap: .75rem; }
  .m-header__menu { display: inline-flex; }
  .m-collapse {
    position: fixed; left: 0; right: 0; top: var(--m-header-h); bottom: 0; z-index: 1035;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1rem var(--m-gutter) 2rem; background: var(--m-surface); overflow-y: auto;
    border-top: 1px solid var(--m-line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s, transform .18s var(--m-ease), visibility 0s .18s;
  }
  .m-collapse.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s var(--m-ease); }
  .m-nav { flex: none; }
  .m-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .m-menu > .m-menu__item { flex-wrap: wrap; border-bottom: 1px solid var(--m-line); }
  .m-menu > .m-menu__item > .m-menu__link { flex: 1; min-height: 52px; padding: .6rem 0; font-size: 1.05rem; border-radius: 0; justify-content: space-between; }
  .m-menu > .m-menu__item > .m-menu__link:hover { background: transparent; }
  .m-menu > .m-menu__item.is-active > .m-menu__link { box-shadow: none; color: var(--m-blue); }
  .m-menu__toggle { width: 52px; height: 52px; }
  .m-menu__panel {
    position: static; flex-basis: 100%; min-width: 0; padding: 0 0 .75rem; border: 0; border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none; display: none;
  }
  .m-menu__item.is-open > .m-menu__panel { display: block; }
  .m-menu__sub.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-menu__sub .m-menu__link { min-height: 44px; padding-left: .75rem; white-space: normal; }
  .m-header__extra { flex-direction: column; align-items: stretch; }
  .m-header__extra input[type="text"], .m-header__extra input[type="search"] { width: 100%; min-height: 48px; }
  .m-header__extra .mod-custom p { justify-content: flex-start; }
  .m-header__extra .mod-custom img { height: 28px; }
}
@media (max-width: 575.98px) {
  :root { --m-header-h: 60px; }
  .m-logo { height: 26px; }
  .m5 .afc-thumbs > .row { gap: 1.25rem .85rem; }
  .m-brand__name { font-size: 1rem; }
  .m-header__upload { width: 44px; padding: 0; }
  .m-header__upload-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .m-menu__sub.is-wide { grid-template-columns: minmax(0, 1fr); }
  .m5 .fototj-thumbs > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .85rem; }
  .m-photo__stage { padding: .5rem 0; min-height: 0; }
  .m-photo__img { box-shadow: none; }
  .m-photo__actions { width: 100%; }
  .m-panel { padding: 1.1rem; }
}

/* ======================================================================= motion */
@media (prefers-reduced-motion: reduce) {
  .m5 *, .m5 *::before, .m5 *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .m5 .fototj-thumbs .thumb a:hover img { transform: none; }
}
