
:root {
  --coral: #E85D63;
  --green: #2E9C7E;
  --turquoise: #1C8CA8;
  --dark-blue: #0F3A47;
  --beige: #C9B79C;
  --light-gray: #E6E6E6;
  --cta-primary: #1C8CA8;
  --bg-main: #FFFFFF;
  --bg-soft: #F7F7F7;
  --text-primary: #0F3A47;
  --text-secondary: #5F6B6F;
  --border: #E6E6E6;
}

html[lang=fi] .mm-gallery-desc-en { display: none; }
html:not([lang=fi]) .mm-gallery-desc-fi { display: none; }

body.section-categories,
body.section-tags,
body.section-recent_pics,
body.section-most_visited,
body.section-best_rated,
body#thePicturePage {
  min-height: 100vh;
  margin: 0;
  background: var(--bg-soft);
  color: var(--text-primary);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.section-categories a,
body.section-tags a,
body.section-recent_pics a,
body.section-most_visited a,
body.section-best_rated a,
body#thePicturePage a {
  color: var(--turquoise);
  text-decoration: none;
}

body.section-categories a:hover,
body.section-tags a:hover,
body#thePicturePage a:hover {
  color: var(--coral);
}

body.section-categories #content,
body.section-tags #content,
body.section-recent_pics #content,
body.section-most_visited #content,
body.section-best_rated #content,
body#thePicturePage #content {
  box-sizing: border-box;
  max-width: 1120px;
  min-height: auto;
  margin: 0 auto;
  padding: 24px 18px 48px;
  background: transparent;
}

body.section-categories #content.contentWithMenu,
body.section-tags #content.contentWithMenu,
body#thePicturePage #content.contentWithMenu {
  margin-left: auto;
}

body.section-categories .titrePage,
body.section-tags .titrePage,
body#thePicturePage .titrePage {
  position: relative;
  margin: 0 0 18px;
  padding: 22px 20px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

body.category-1 .titrePage {
  padding-bottom: 18px;
}

body.section-categories #breadcrumb h2,
body.section-tags #breadcrumb h2,
body#thePicturePage #breadcrumb h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(1.75rem, 3.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

body.category-1 #breadcrumb h2 {
  font-family: 'Baloo 2', Montserrat, Arial, sans-serif;
  font-weight: 700;
  width: 100%;
  text-align: center;
}

body.section-categories .additional_info,
body.section-tags .additional_info {
  max-width: 760px;
  margin: 0 0 22px;
  padding: 0 2px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 500;
}

body.section-categories .categoryActions,
body.section-tags .categoryActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}

body.section-categories .categoryActions li,
body.section-tags .categoryActions li {
  margin: 0;
  list-style: none;
}

body.section-categories .pwg-button,
body.section-tags .pwg-button,
body#thePicturePage .pwg-button,
body.section-categories input[type=submit],
body.section-tags input[type=submit] {
  box-sizing: border-box;
  min-height: 44px;
  border: 2px solid var(--cta-primary);
  border-radius: 16px;
  background: var(--cta-primary);
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
}

body.section-categories .pwg-button:hover,
body.section-tags .pwg-button:hover,
body#thePicturePage .pwg-button:hover,
body.section-categories input[type=submit]:hover,
body.section-tags input[type=submit]:hover {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
}

body.section-categories .pwg-button .pwg-button-text,
body.section-tags .pwg-button .pwg-button-text,
body#thePicturePage .pwg-button .pwg-button-text {
  color: inherit;
}

body.section-categories .switchBox,
body.section-tags .switchBox,
body#thePicturePage .switchBox {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,58,71,.14);
  color: var(--text-primary);
}

body.section-categories .switchBoxTitle,
body.section-tags .switchBoxTitle {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 600;
}

body.section-categories .switchBox a,
body.section-tags .switchBox a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-primary);
}

body.section-categories .switchBox a:hover,
body.section-tags .switchBox a:hover {
  background: var(--bg-soft);
  color: var(--turquoise);
}

body.section-categories #albumActionsSwitcher,
body.section-tags #albumActionsSwitcher,
body.section-categories #menuSwitcher,
body.section-tags #menuSwitcher {
  width: 44px;
  min-width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.category-1 #menubar {
  box-sizing: border-box;
  position: static;
  width: min(1120px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

body.category-1 #menubar dl {
  margin: 0;
  padding: 0;
}

body.category-1 #menubar dt,
body.category-1 #menubar dd {
  margin: 0;
  padding: 0;
}

body.category-1 #menubar dt > a,
body.category-1 #menubar dd > ul a,
body.category-1 #menuTagCloud a,
body.category-1 #qsearchInput,
body.category-1 #quickconnect input[type=text],
body.category-1 #quickconnect input[type=password] {
  box-sizing: border-box;
  min-height: 44px;
  border-radius: 16px;
  font-family: Montserrat, Arial, sans-serif;
}

body.category-1 #menubar dt > a,
body.category-1 #menuTagCloud a,
body.category-1 #menubar dd > ul a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-soft);
  color: var(--text-primary);
  font-weight: 600;
}

body.category-1 #menuTagCloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.category-1 #menuTagCloud a {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--turquoise);
}

body.category-1 #menuTagCloud a:hover,
body.category-1 #menubar dd > ul a:hover,
body.category-1 #menubar dt > a:hover {
  border-color: var(--turquoise);
  background: rgba(28,140,168,.08);
  color: var(--turquoise);
}

body.category-1 #mbSpecials,
body.category-1 #mbMostVisited,
body.category-1 #menubar dl:has(#quicksearch),
body.category-1 #quickconnect,
body.category-1 #menubar fieldset {
  display: none;
}

body.category-1 #menubar dl[style*="float:right"] {
  margin-left: auto !important;
}

body.category-1 #menubar dl[style*="float:right"] dd {
  display: none;
}

body.section-categories #thumbnails,
body.section-tags #thumbnails,
body.section-recent_pics #thumbnails,
body.section-most_visited #thumbnails,
body.section-best_rated #thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  text-align: left;
  overflow: visible;
}

body.section-categories #thumbnails > li,
body.section-tags #thumbnails > li,
body.section-recent_pics #thumbnails > li,
body.section-most_visited #thumbnails > li,
body.section-best_rated #thumbnails > li {
  position: relative !important;
  width: auto !important;
  height: auto !important;
  min-height: 0;
  margin: 0 !important;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

body.section-categories #thumbnails > li > a,
body.section-tags #thumbnails > li > a,
body.section-recent_pics #thumbnails > li > a,
body.section-most_visited #thumbnails > li > a,
body.section-best_rated #thumbnails > li > a {
  position: static !important;
  display: block;
  min-height: 44px;
  border: 0;
}

body.section-categories #thumbnails img,
body.section-tags #thumbnails img,
body.section-recent_pics #thumbnails img,
body.section-most_visited #thumbnails img,
body.section-best_rated #thumbnails img {
  display: block;
  width: 100% !important;
  height: min(300px, 58vw) !important;
  max-height: 300px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

body.section-categories #thumbnails .overDesc,
body.section-tags #thumbnails .overDesc,
body.section-recent_pics #thumbnails .overDesc,
body.section-most_visited #thumbnails .overDesc,
body.section-best_rated #thumbnails .overDesc {
  position: static;
  min-height: 52px;
  padding: 14px 16px 16px;
  background: #fff;
  color: var(--text-primary);
  font-family: 'Baloo 2', Montserrat, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  opacity: 1;
  text-shadow: none;
}

body.section-categories #thumbnails .albSymbol,
body.section-tags #thumbnails .albSymbol {
  color: var(--coral);
}

body.section-categories .loader,
body.section-tags .loader {
  display: none;
}

body.section-categories #copyright,
body.section-tags #copyright,
body#thePicturePage #copyright {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px 30px;
  color: var(--text-secondary);
  font-family: Montserrat, Arial, sans-serif;
}

body#thePicturePage #theImage img,
body#thePicturePage #theImageAndInfos img,
body#thePicturePage #theMainImage {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

@media (max-width: 720px) {
  body.section-categories #content,
  body.section-tags #content,
  body#thePicturePage #content {
    padding: 16px 14px 36px;
  }

  body.category-1 #menubar {
    width: calc(100% - 28px);
    margin-top: 14px;
    padding: 12px;
  }

  body.category-1 #menubar,
  body.section-categories .categoryActions,
  body.section-tags .categoryActions {
    gap: 8px;
  }

  body.category-1 #menubar dl[style*="float:right"] {
    margin-left: 0 !important;
  }

  body.section-categories #thumbnails,
  body.section-tags #thumbnails {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* Mobile-first refinements. Keep the gallery comfortable on phones first, then expand. */
body.section-categories #content,
body.section-tags #content,
body#thePicturePage #content {
  padding: 16px 14px 36px;
}

body.section-categories .titrePage,
body.section-tags .titrePage,
body#thePicturePage .titrePage {
  margin-bottom: 14px;
  padding: 18px 16px;
  border-radius: 20px;
}

body.category-1 #menubar {
  width: calc(100% - 28px);
  margin-top: 14px;
  padding: 12px;
  gap: 8px;
}

body.section-categories .categoryActions,
body.section-tags .categoryActions {
  gap: 8px;
}

body.category-1 #menubar dl[style*="float:right"] {
  margin-left: 0 !important;
}

body.section-categories #thumbnails,
body.section-tags #thumbnails,
body.section-recent_pics #thumbnails,
body.section-most_visited #thumbnails,
body.section-best_rated #thumbnails {
  grid-template-columns: 1fr;
  gap: 14px;
}

body.section-categories #thumbnails img,
body.section-tags #thumbnails img,
body.section-recent_pics #thumbnails img,
body.section-most_visited #thumbnails img,
body.section-best_rated #thumbnails img {
  height: min(300px, 72vw) !important;
}

@media (min-width: 721px) {
  body.section-categories #content,
  body.section-tags #content,
  body.section-recent_pics #content,
  body.section-most_visited #content,
  body.section-best_rated #content,
  body#thePicturePage #content {
    padding: 24px 18px 48px;
  }

  body.section-categories .titrePage,
  body.section-tags .titrePage,
  body#thePicturePage .titrePage {
    margin-bottom: 18px;
    padding: 22px 20px;
  }

  body.category-1 #menubar {
    width: min(1120px, calc(100% - 36px));
    margin-top: 18px;
    padding: 14px 16px;
    gap: 12px;
  }

  body.category-1 #menubar dl[style*="float:right"] {
    margin-left: auto !important;
  }

  body.section-categories #thumbnails,
  body.section-tags #thumbnails,
  body.section-recent_pics #thumbnails,
  body.section-most_visited #thumbnails,
  body.section-best_rated #thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
  }

  body.section-categories #thumbnails img,
  body.section-tags #thumbnails img,
  body.section-recent_pics #thumbnails img,
  body.section-most_visited #thumbnails img,
  body.section-best_rated #thumbnails img {
    height: min(300px, 58vw) !important;
  }
}


/* Public album layout cleanup. The physical game only needs the album content here. */
body.category-1 #menubar,
body.category-1 #menuSwitcher {
  display: none !important;
}

body.category-1 #content,
body.category-1 #content.contentWithMenu {
  width: calc(100% - 28px) !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
}

body.category-1 .titrePage {
  width: 100%;
}

body.category-1 .categoryActions {
  justify-content: flex-start;
}

@media (min-width: 721px) {
  body.category-1 #content,
  body.category-1 #content.contentWithMenu {
    width: min(1120px, calc(100% - 36px)) !important;
    margin: 24px auto 0 !important;
  }

  body.category-1 .titrePage {
    display: flex;
    flex-direction: column;
  }

  body.category-1 #breadcrumb h2 {
    max-width: none;
  }
}


/* Keep the album header focused: one visible action, language selection. */
body.category-1 #albumActionsSwitcher,
body.category-1 #cmdRelatedTags,
body.category-1 #cmdSlideshow,
body.category-1 .categoryActions > li:not(#languageSwitch) {
  display: none !important;
}

body.category-1 .titrePage {
  padding-right: 78px;
}

body.category-1 .categoryActions {
  position: absolute;
  top: 18px;
  right: 16px;
  margin: 0;
  padding: 0;
}

body.category-1 #languageSwitch .pwg-button {
  width: 44px;
  min-width: 44px;
  padding: 0;
  overflow: hidden;
}

body.category-1 #languageSwitch .pwg-button-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

body.category-1 #languageSwitchBox {
  right: 0;
  left: auto !important;
}

@media (min-width: 721px) {
  body.category-1 .titrePage {
    padding-right: 92px;
  }

  body.category-1 .categoryActions {
    top: 22px;
    right: 20px;
  }
}


/* Defeat Modus mobile action switcher on the single public album. */
body.category-1 .titrePage > a.pwg-button,
body.category-1 .titrePage > a.pwg-button:first-child,
body.category-1 .titrePage .pwg-icon-ellipsis {
  display: none !important;
}

body.category-1 .titrePage .categoryActions {
  display: flex !important;
}


body.category-1 #languageSwitchBox:not([style*="display: block"]) {
  display: none;
}


/* Final public album header: no Piwigo action chrome. */
body.category-1 .titrePage .categoryActions,
body.category-1 #languageSwitch,
body.category-1 #languageSwitchBox {
  display: none !important;
}

body.category-1 .titrePage,
body.category-1 .titrePage[style] {
  padding-right: 16px;
}

@media (min-width: 721px) {
  body.category-1 .titrePage,
  body.category-1 .titrePage[style] {
    padding-right: 20px;
  }
}


/* iPhone overflow guard: no public gallery element may exceed the viewport. */
html,
body.category-1 {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.category-1 * {
  box-sizing: border-box;
}

body.category-1 #content,
body.category-1 #content.contentWithMenu,
body.category-1 .titrePage,
body.category-1 .additional_info,
body.category-1 #thumbnails,
body.category-1 #thumbnails > li,
body.category-1 #thumbnails img,
body.category-1 #copyright {
  max-width: 100% !important;
}

body.category-1 #content,
body.category-1 #content.contentWithMenu {
  width: 100% !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

body.category-1 .titrePage,
body.category-1 .additional_info,
body.category-1 #thumbnails {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.category-1 .additional_info {
  overflow-wrap: anywhere;
}

body.category-1 #thumbnails {
  min-width: 0 !important;
  overflow-x: hidden !important;
}

body.category-1 #thumbnails > li,
body.category-1 #thumbnails > li > a {
  min-width: 0 !important;
}

body.category-1 .switchBox,
body.category-1 #languageSwitchBox,
body.category-1 .categoryActions {
  max-width: calc(100vw - 28px) !important;
}

@media (min-width: 721px) {
  body.category-1 #content,
  body.category-1 #content.contentWithMenu {
    width: min(1120px, calc(100% - 36px)) !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}


/* Picture page: turn Piwigo's default photo view into a clean mobile-first detail page. */
body#thePicturePage,
body#thePicturePage * {
  box-sizing: border-box;
}

body#thePicturePage {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body#thePicturePage #content {
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 16px 14px 40px !important;
}

body#thePicturePage #imageHeaderBar {
  min-height: 0;
  margin: 0 0 16px;
  padding: 10px 16px 14px;
}

body#thePicturePage #imageHeaderBar .imageNumber,
body#thePicturePage #imageHeaderBar .browsePath > a,
body#thePicturePage #imageHeaderBar .browsePathSeparator {
  display: none !important;
}

body#thePicturePage #imageHeaderBar .browsePath {
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

body#thePicturePage #imageHeaderBar h2 {
  display: block;
  margin: 0;
  color: var(--text-primary);
  font-family: 'Baloo 2', Montserrat, Arial, sans-serif;
  font-size: clamp(1.75rem, 7vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
}

body#thePicturePage #imageToolBar,
body#thePicturePage .actionButtonsWrapper,
body#thePicturePage .actionButtons,
body#thePicturePage #imageActionsSwitch,
body#thePicturePage #infoSwitcher,
body#thePicturePage .navThumbs,
body#thePicturePage #imageInfos {
  display: none !important;
}

body#thePicturePage #theImageAndInfos {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body#thePicturePage #theImage {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  background: transparent !important;
}

body#thePicturePage #theMainImage {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 720px !important;
  max-height: none !important;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  object-fit: contain;
  cursor: pointer;
}

body#thePicturePage .img-loader-derivatives {
  display: none !important;
}

body#thePicturePage .imageComment {
  width: 100%;
  max-width: 720px;
  margin: 18px auto 0;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  color: var(--text-primary);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  overflow-wrap: anywhere;
}

body#thePicturePage .imageComment::first-line {
  font-weight: 700;
}

body#thePicturePage #copyright {
  max-width: 1120px;
  padding-left: 14px;
  padding-right: 14px;
}

@media (min-width: 721px) {
  body#thePicturePage #content {
    width: min(1120px, calc(100% - 36px)) !important;
    padding: 24px 18px 48px !important;
  }

  body#thePicturePage #imageHeaderBar {
    padding: 12px 20px 16px;
  }

  body#thePicturePage #theMainImage,
  body#thePicturePage .imageComment {
    max-width: 760px !important;
  }
}


html[lang=fi] .mm-back-en { display: none; }
html:not([lang=fi]) .mm-back-fi { display: none; }

body#thePicturePage .mm-back-to-gallery {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0 0 16px;
  padding: 10px 16px;
  border: 2px solid var(--cta-primary);
  border-radius: 16px;
  background: transparent;
  color: var(--cta-primary);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 600;
}

body#thePicturePage .mm-back-to-gallery::before {
  content: "‹";
  margin-right: 8px;
  font-size: 1.4rem;
  line-height: 1;
}

body#thePicturePage .mm-back-to-gallery:hover {
  border-color: var(--coral);
  color: var(--coral);
}


html[lang=fi] .mm-comment-en { display: none; }
html:not([lang=fi]) .mm-comment-fi { display: none; }


/* 2026-05-01: align public Piwigo pages with the app's in-game dark theme. */
:root {
  --mm-game-surface: #E6E6E6;
  --mm-game-card: #FFFFFF;
  --mm-game-soft-line: rgba(255,255,255,.12);
  --mm-game-muted: rgba(255,255,255,.76);
  --mm-card-shadow: 0 2px 6px rgba(15,58,71,.06);
}

body.section-categories,
body.section-tags,
body.section-recent_pics,
body.section-most_visited,
body.section-best_rated,
body#thePicturePage {
  background: var(--dark-blue);
  color: #fff;
}

.mm-gallery-hero {
  display: none;
}

body.section-categories .mm-gallery-hero,
body.section-tags .mm-gallery-hero,
body.section-recent_pics .mm-gallery-hero,
body.section-most_visited .mm-gallery-hero,
body.section-best_rated .mm-gallery-hero,
body#thePicturePage .mm-gallery-hero {
  display: block;
  width: min(calc(100% - 2rem), 28rem);
  margin: 1.4rem auto .25rem;
}

.mm-gallery-hero img {
  display: block;
  width: 100%;
  height: auto;
}

body.section-categories #content,
body.section-tags #content,
body.section-recent_pics #content,
body.section-most_visited #content,
body.section-best_rated #content,
body#thePicturePage #content,
body#thePicturePage #content.contentWithMenu,
body.category-1 #content,
body.category-1 #content.contentWithMenu {
  padding-top: 1rem !important;
}

body.section-categories .titrePage,
body.section-tags .titrePage,
body#thePicturePage .titrePage,
body#thePicturePage #imageHeaderBar {
  background: var(--mm-game-surface);
  border: 0;
  box-shadow: none;
  color: var(--dark-blue);
}

body.section-categories #breadcrumb h2,
body.section-tags #breadcrumb h2,
body#thePicturePage #breadcrumb h2,
body#thePicturePage #imageHeaderBar h2 {
  color: var(--dark-blue);
}

body.section-categories .additional_info,
body.section-tags .additional_info,
body.section-recent_pics .additional_info,
body.section-most_visited .additional_info,
body.section-best_rated .additional_info {
  color: var(--mm-game-muted);
}

body.section-categories #thumbnails > li,
body.section-tags #thumbnails > li,
body.section-recent_pics #thumbnails > li,
body.section-most_visited #thumbnails > li,
body.section-best_rated #thumbnails > li {
  background: var(--mm-game-surface);
  border: 0;
  box-shadow: none;
}

body.section-categories #thumbnails .overDesc,
body.section-tags #thumbnails .overDesc,
body.section-recent_pics #thumbnails .overDesc,
body.section-most_visited #thumbnails .overDesc,
body.section-best_rated #thumbnails .overDesc {
  background: var(--mm-game-surface);
  color: var(--dark-blue);
}

body.section-categories #thumbnails img,
body.section-tags #thumbnails img,
body.section-recent_pics #thumbnails img,
body.section-most_visited #thumbnails img,
body.section-best_rated #thumbnails img,
body#thePicturePage #theImage img,
body#thePicturePage #theImageAndInfos img,
body#thePicturePage #theMainImage {
  box-shadow: none;
}

body#thePicturePage .imageComment {
  background: var(--mm-game-surface);
  border: 0;
  box-shadow: none;
  color: var(--dark-blue);
}

body#thePicturePage .mm-back-to-gallery {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

body#thePicturePage .mm-back-to-gallery:hover {
  border-color: var(--turquoise);
  background: var(--turquoise);
  color: #fff;
}

body.section-categories #copyright,
body.section-tags #copyright,
body#thePicturePage #copyright {
  color: var(--mm-game-muted);
}

@media (max-width: 390px) {
  body.section-categories .mm-gallery-hero,
  body.section-tags .mm-gallery-hero,
  body.section-recent_pics .mm-gallery-hero,
  body.section-most_visited .mm-gallery-hero,
  body.section-best_rated .mm-gallery-hero,
  body#thePicturePage .mm-gallery-hero {
    width: min(calc(100% - 1.5rem), 24rem);
    margin-top: 1rem;
  }
}
