*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.gallery {
  column-count: 4;
  --webkit-column-count: 4;
  --moz-column-count: 4;
  gap: 1rem;
  padding: 4rem;
}

.image img {
  height: auto;
  width: 100%;
}

/* Responsive-ness for different screen-sizes */
@media screen and (max-width: 810px) {
  .gallery {
    column-count: 3;
    --webkit-column-count: 3;
    --moz-column-count: 3;
  }
}

@media screen and (max-width: 500px) {
  .gallery {
    column-count: 2;
    --webkit-column-count: 2;
    --moz-column-count: 2;
  }
}

@media screen and (max-width: 400px) {
  .gallery {
    column-count: 1;
    --webkit-column-count: 1;
    --moz-column-count: 1;
  }
}
#header-placeholder .window {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Fonts ===== */
@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("https://files.catbox.moe/1za99g.woff") format("woff");
}

@font-face { 
  font-family: ecoder;
  src: url(https://dl.dropbox.com/s/2wrgv8i3jsqkv6p/Ecoder-Italic.otf);
}

@font-face {
  font-family: handy;
  src: url(https://dl.dropbox.com/s/ga9hf4idu3egjb5/handy00.ttf);
}

/* ===== Body & Layout ===== */
/* ===== Outer Container ===== */
.outer-container {
  width: 1200px;
  height: 600px;
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Base background */
  background-color: #f5f2ee;
  background-image: url('https://i.pinimg.com/1200x/5d/41/a0/5d41a0717acf49176c4a6d7e9afe7598.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative; /* Needed for pseudo-element */
}

/* GIF Overlay with gradient opacity */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: url('https://i.pinimg.com/originals/21/d5/22/21d5224ad91d1da66625f32b5875f94e.gif');
  background-repeat: repeat;
  background-attachment: fixed;
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,1) 100%);
}

#header-placeholder {
  width: 870px;
  margin-top: 125px;
}

/* ===== Homepage Layout ===== */
.page-column {
  width: 870px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  padding-bottom: 60px;
}

.row-flex {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: stretch;
}

.flex-window {
  display: flex;
  flex-direction: column;
}

/* ===== Stamp Section ===== */
.stamp-grid {
  flex: 1;
  padding: 6px 8px;
  min-height: 100px;
  background-image: url('https://i.pinimg.com/originals/3b/22/21/3b2221ecb8e9b6b72999c3a0ad092af9.gif');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  align-content: center;
  justify-content: flex-end;
}

.stamp {
  max-width: 90px;
  height: auto;
}

/* ===== Aquarium ===== */
.aquarium-body {
  height: 300px;
  padding: 0;
  background-image: url('https://i.pinimg.com/originals/29/73/a0/2973a0011235ca440b6adfaa9c2ddd00.gif');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.fish {
  width: 100px;
  position: absolute;
  left: 0;
}

/* ===== Chat Column ===== */
.chat-column {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
}

/* ===== Lineup ===== */
.lineup-body {
  padding: 0;
  background-image: url('https://i.pinimg.com/originals/7a/c0/88/7ac088ed2725f97504dec1cb6ec9a8db.gif');
  background-size: cover;
  background-position: center bottom;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.lineup-img {
  width: 90%;
  display: block;
}

/* ===== Decoration ===== */
.decoration-fixed {
  position: fixed;
  right: 19%;
  bottom: 0;
  height: 430px;
  z-index: -1;
  pointer-events: none;
}

#header-container {
  width: 100%;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

#scroll-container {
  width: 500px;
  max-width: 100vw;
  max-height: 1000px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  padding: 0;
  margin: 40px 0 40px 0;
}

/* Main container with flex layout (for gallery page) */
.flex-layout, #main-container.flex-layout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  height: auto;
  overflow: visible;
}

/* ===== Custom Scrollbar ===== */
* {
  scrollbar-width: thin;
  scrollbar-color: #34cb73 #f7f7f8;
}

*::-webkit-scrollbar {
  width: 10px;
}


*::-webkit-scrollbar-thumb {
  background-color: #34cb73;
  border-radius: 5px;
}

/* ===== Window Styles ===== */
.window {
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #5eb3e6, inset 2px 2px #ffffff;
  background: #c0c0c0;
  padding: 2px;
  width: 100%;
  margin-bottom: 0px;
}

.title-bar {
  background: linear-gradient(90deg, #5eb3e6, #73d9a6);
  padding: 2px 2px 2px 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-bar-text {
  font-weight: bold;
  color: white;
  font-size: 11px;
  margin-right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-bar-text img {
  height: 16px;
  width: 16px;
  margin: 0;
  display: inline-block;
}

.title-bar-controls {
  display: flex;
  gap: 2px;
}

.title-bar-controls button {
  padding: 0;
  display: block;
  min-width: 16px;
  min-height: 14px;
  border: none;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #5eb3e6, inset 2px 2px #73d9a6;
  background: silver;
  cursor: default;
}

.title-bar-controls button:active {
  box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px grey;
}

.title-bar-controls button[aria-label=Minimize] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/minimize.svg");
  background-position: bottom 3px left 4px;
  background-repeat: no-repeat;
}

.title-bar-controls button[aria-label=Maximize] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/4a2282dd9170cabf730fb5803d1153d86b2e94e3/icon/maximize.svg");
  background-position: top 2px left 3px;
  background-repeat: no-repeat;
}

.title-bar-controls button[aria-label=Close] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/close.svg");
  background-position: top 3px left 4px;
  background-repeat: no-repeat;
  margin-left: 2px;
}

.window-body {
  margin: 4px;
  padding: 6px;
  background-color: white;
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
}

.welcome-body {
  background-image: url('https://i.pinimg.com/736x/97/d0/10/97d01010b4ba4f2e75828b3a80218830.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px !important;
}

/* ===== Text Styles ===== */
.textborder {
  filter: drop-shadow(0 3px #5eb3e6) drop-shadow(2px 0 #5eb3e6) drop-shadow(0 -1px #73d9a6) drop-shadow(-1px 0 #5eb3e6) drop-shadow(0 5px white) drop-shadow(5px 0 white) drop-shadow(0 -5px white) drop-shadow(-5px 0 white) drop-shadow(1px 1px 0 rgba(172,172,172,0.6)) drop-shadow(1px 1px 0 rgba(172,172,172,0.6)) drop-shadow(0 0 2px #424242);
  color: #e0f7ff;
  font-family: ecoder;
  font-size: 80px;
  text-align: center;
  margin: 10px 0;
}

.bio-text {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-family: 'Pixelated MS Sans Serif', Arial;
  color: #ffffff;
  text-shadow: 3px 3px 0 #5eb3e6, -1px -1px 0 #5eb3e6, 1px -1px 0 #5eb3e6, -1px 1px 0 #5eb3e6, 1px 1px 0 #5eb3e6, 2px 2px 6px rgba(0,0,0,0.8);
  font-weight: bold;
  z-index: 10;
  position: relative;
}

/* ===== Navigation Buttons ===== */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 20px;
}

.nav-button {
  cursor: pointer;
  background: linear-gradient(135deg, #73d9a6 0%, #5eb3e6 100%);
  padding: 8px 14px;
  border-radius: 10px;
  border: 2px solid #ffffff;
  transition: transform 0.2s;
  text-decoration: none;
  display: inline-block;
}

.nav-button:hover {
  transform: scale(1.05);
}

.nav-button p {
  margin: 0;
  font-size: 12px;
  font-family: 'Pixelated MS Sans Serif', Arial;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* ===== Dropdown Nav ===== */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  background: linear-gradient(180deg, #f8f8f8, #e8e8e8);
  min-width: 200px;
  border: 1px solid #999;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 4px 0;
}
.dropdown:hover > .dropdown-menu { display: block; }
.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.dropdown-item:hover {
  background: linear-gradient(90deg, #e0f0ff, #d0e8ff);
  border-left-color: #4a9ede;
}

/* ===== Gallery Layout (Two Column) ===== */
#commentary {
  flex: 0 0 250px;
  font-family: monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
}

#posts {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
}

/* When #posts is used with #commentary in two-column layout */
#main-container.flex-layout #posts {
  max-width: calc(100% - 260px);
}

#posts > .window {
  width: calc(100% - 10px);
}

/* ===== Art Layout (Art + Text Side by Side) ===== */
.art-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#art {
  flex: 0 0 auto;
}

#art .window {
  width: 100%;
  box-sizing: border-box;
}

#art .window-body {
  padding: 0;
  display: inline-block;
}

#art img {
  display: block;
}

#texte {
  flex: 1;
  min-width: 0;
}

#texte .window {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#texte .window-body {
  flex: 1;
  overflow-y: auto;
}

/* ===== Gallery Grid (Wrapped Items) ===== */
.art-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 10px;
}

.art-container img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.text-container {
  width: 100%;
  height: 300px;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 16px;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.gallery-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  background: none;
  box-shadow: none;
  margin-bottom: 10px;
}

.gallery-container img {
  flex: 0 0 auto;
  width: calc(25% - 10px);
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0;
}
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.gallery-item {
  flex: 0 0 auto;
}

.gallery-item .window {
  width: auto;
  display: inline-block;
}

.gallery-item .window-body {
  padding: 0;
}

.gallery-item img {
  display: block;
}

/* ===== Emote Grid ===== */
.emote-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  width: 100%;
  box-sizing: border-box;
}

.emote-grid img {
  height: 90px !important;
  width: auto !important;
  display: block !important;
  max-width: none !important;
}

/* ===== Music Player ===== */
#musicplayer {
  display: grid;
  grid-template-columns: 20px auto;
  align-items: center;
  width: 100%;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

/* Ensure .welcome-body and #header-container are not affected by .window-body min-height */

.marquee {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

/* ===== Made by Girl Badge ===== */
#made-by-girl {
  position: fixed;
  top: 880px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 102;
}

#made-by-girl img {
  height: 360px;
  width: auto;
}

/* ===== Virus Popup Window Styles ===== */

.status-popup-wrap {
  position: fixed;
  top: 28px;
  right: 28px;
  width: 248px;
  z-index: 999;
}

.status-popup {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.status-popup-drip {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -2px;
  pointer-events: none;
}

.status-popup-bar {
  cursor: move;
}

.status-popup .title-bar-text {
  letter-spacing: 0.2px;
}

.status-popup-media {
  position: relative;
  width: 100%;
  min-height: 168px;
  overflow: hidden;
  background: #111;
}

.status-popup-image {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}

.status-popup-caption-wrap {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
}

.status-popup-caption {
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  color: #ffd5e9;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  background: rgba(10, 16, 25, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 6px;
}

@media (max-width: 700px) {
  .status-popup-wrap {
    width: min(248px, calc(100vw - 20px));
    top: 10px;
    right: 10px;
  }

  .status-popup-media,
  .status-popup-image {
    height: 156px;
    min-height: 156px;
  }
}



/* ===== Window Wrapper ===== */
.window-wrapper {
  position: relative;
  display: inline-block;
}

/* ===== Utility Classes ===== */
img.one {
  height: 180px;
  width: auto;
}

.zoom:hover {
  transform: scale(1.1);
}

.big-button {
  background: #73d9b8;
  border-radius: 11px;
  padding: 10px 33px;
  color: #ffffff;
  display: inline-block;
  font: normal bold 15px/1 "Arvo", serif;
  text-align: center;
}

/* ===== Header Placeholder Fix ===== */
#header-placeholder .nav-buttons {
  margin-bottom: 0 !important;
}

/* ===== Page Shell ===== */
.page-shell {
  width: min(870px, calc(100vw - 24px));
}

/* ===== Text Popup ===== */
.text-popup {
  position: fixed;
  width: 254px;
  max-width: calc(100vw - 24px);
  cursor: move;
  z-index: 2000;
}

.text-popup .window {
  display: flex;
  flex-direction: column;
}

.text-popup .window-body {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

/* ===== Scroll Horizontal ===== */
.scroll-horizontal {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.scroll-horizontal img {
  display: block;
  flex: 0 0 auto;
  max-height: 390px;
  width: auto;
}

/* ===== Emote Scroll (Marseille layout) ===== */
.emote-scroll .window-body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  padding: 0 !important;
}

.kofi-button-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

/* ===== Dropdown Navigation ===== */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  background: linear-gradient(180deg, #f8f8f8, #e8e8e8);
  min-width: 200px;
  border: 1px solid #999;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 4px 0;
}
.dropdown:hover > .dropdown-menu {
  display: block;
}
.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.dropdown-item:hover {
  background: linear-gradient(90deg, #e0f0ff, #d0e8ff);
  border-left-color: #4a9ede;
}

/* ===== Homepage Updates Panel ===== */
.updates-layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.updates-window,
.updates-side-window,
.updates-third-window {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.updates-titlebar {
  background: #5eb3e6;
}

.updates-body,
.updates-side-body {
  background: #ffffff;
  box-sizing: border-box;
  margin: 4px;
  height: 15em;
  padding: 8px;
}


.updates-feed {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
}

.updates-feed q {
  font-weight: bold;
  color: #333;
}

.updates-feed hr {
  border: 0;
  border-top: 1px solid #d2d2d2;
  margin: 8px 0;
}

.updates-feed a {
  color: #005f8a;
}

.updates-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.preview-gif-img {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: auto;
  height: 92%;
  max-width: 98%;
  max-height: calc(100% - 22px);
  transform: translateX(-50%);
  object-fit: contain;
}

.preview-marquee-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  color: #8b1e5a;
  border-top: 1px solid rgba(139, 30, 90, 0.35);
}

.preview-marquee {
  display: block;
  height: 21px;
  line-height: 21px;
  font-size: 11px;
  font-weight: bold;
}

.updates-feed-compact {
  font-size: 11px;
}

/* ===== 2000s Blog Updates ===== */
.updates-outer {
  position: relative;
  margin-bottom: 50px;
}

.updates-overlay-img {
  position: absolute;
  bottom: -60px;
  left: -30px;
  height: 390px;
  width: auto;
  z-index: 10;
  pointer-events: none;
}

.blog-updates-titlebar {
  background: linear-gradient(90deg, #1e6abf, #4eb8f0, #7dd4f8);
  font-family: 'Courier New', monospace;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.blog-updates-body {
  background: linear-gradient(180deg, #dff0fb 0%, #f5faff 100%);
  padding: 0 0 0 170px;
  border-top: 3px double #4eb8f0;
}

.blog-entry {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 2px dashed #a8d8f0;
}

.blog-entry:last-child {
  border-bottom: none;
}

.blog-entry-date {
  font-size: 20px;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  font-style: italic;
  color: #1450a3;
  min-width: 80px;
  white-space: nowrap;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.blog-entry-text {
  font-size: 14px;
  font-family: 'Courier New', monospace;
  color: #111;
  line-height: 1.4;
}

.blog-entry-text::before {
  content: '»» ';
  color: #1e6abf;
  font-weight: bold;
}

.blog-entry-text a {
  color: #1450a3;
  font-weight: bold;
  text-decoration: underline;
}

.blog-entry-text a:visited {
  color: #0a2e6e;
}

.sitemap-feed {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: left;
  font-size: 12px;
  line-height: 1.15;
  padding-right: 2px;
  color: #111;
}

.sitemap-folder {
  margin: 0;
  margin-bottom: 2px;
  padding: 0;
}

.sitemap-folder > summary {
  position: relative;
  cursor: pointer;
  font-weight: normal;
  color: #111;
  margin: 0;
  text-transform: lowercase;
  list-style: none;
  padding-left: 15px;
}

.sitemap-folder > summary::-webkit-details-marker,
.sitemap-subfolder > summary::-webkit-details-marker {
  display: none;
}

.sitemap-folder > summary::before,
.sitemap-subfolder > summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 1px;
  width: 9px;
  height: 9px;
  border: 1px solid #8a8a8a;
  background: #f7f7f7;
  color: #444;
  font-size: 9px;
  line-height: 8px;
  text-align: center;
}

.sitemap-folder[open] > summary::before,
.sitemap-subfolder[open] > summary::before {
  content: "-";
}

.sitemap-subfolder {
  position: relative;
  margin: 0;
  padding: 0;
}

.sitemap-subfolder > summary {
  position: relative;
  cursor: pointer;
  color: #111;
  margin: 0;
  list-style: none;
  padding-left: 15px;
}

.sitemap-subfolder > summary a {
  color: #111;
  text-decoration: underline;
}

.sitemap-subfolder > summary a:hover {
  text-decoration: underline;
}

.sitemap-tree {
  list-style: none;
  margin: 0 0 0 4px;
  padding-left: 16px;
  border-left: 1px dotted #777;
}

.sitemap-tree li {
  position: relative;
  margin: 1px 0;
  padding-left: 12px;
}

.sitemap-tree li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0.7em;
  width: 10px;
  border-top: 1px dotted #777;
}

.sitemap-tree.nested {
  margin-top: 0;
  padding-left: 16px;
}

.sitemap-tree a {
  color: #111;
  text-decoration: underline;
}

.sitemap-tree a:hover {
  text-decoration: underline;
}

.dead-link {
  color: #666;
  text-decoration: line-through;
}

@media (max-width: 930px) {
  .page-column {
    width: min(870px, calc(100vw - 24px));
  }

  .updates-layout {
    flex-direction: column;
  }

  .updates-window,
  .updates-side-window,
  .updates-third-window {
    flex: 1 1 auto;
  }

  .updates-placeholder {
    width: 100%;
  }
}



#gallery-wrapper {
    display: flex;
    width: 100%;
    margin: 0 auto;
    padding: 2em 0 4em;
    justify-content: center;
}

#gallery-wrapper .art {
    width: 520px;
    flex-shrink: 0;
    padding: 2em;
}

#gallery-wrapper .navigation {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 280px;
    flex-shrink: 0;
    padding: 2em;
}

#gallery-wrapper .navigation .list {
    display: flex;
    flex-direction: column;
}

#gallery-wrapper .navigation .list label {
    padding: 10px 16px;
    margin-bottom: 10px;
    background-color: whitesmoke;
    width: 100%;
    writing-mode: vertical-lr;
    text-align: center;
    transform: rotate(180deg);
    cursor: pointer;
    color: #603852;
    font-weight: bold;
    border: 1px solid #d0b0d0;
    box-shadow: 2px 2px rgba(214, 147, 159, 40%);
}

#gallery-wrapper .navigation .list label:hover {
    background-color: cornflowerblue;
    color: white;
}

#gallery-wrapper .tabs_radio,
#gallery-wrapper .tabs_content {
    display: none;
}

#gallery-wrapper .tabs_content {
    order: 1;
}

#gallery-wrapper .tabs_radio:checked + .tabs_content {
    display: initial;
}

#gallery-wrapper .sec {
    padding: 1em;
    background-color: rgba(248, 236, 250, 0.95);
    box-shadow: 5px 5px rgba(214, 147, 159, 50%);
    height: 600px;
    overflow: hidden;
}

#gallery-wrapper .sec h1 {
    font-size: 14px;
    text-align: center;
    color: #666699;
    font-weight: bold;
    margin: 0.3em 0 0.6em;
}

#gallery-wrapper .art .sec {
    max-width: 500px;
}

#gallery-wrapper .art_content,
#gallery-wrapper .art_radio {
    display: none;
}

#gallery-wrapper .artimg {
    object-fit: scale-down;
    max-width: 100%;
    overflow: auto;
}

#gallery-wrapper .art_radio:checked + .art_content {
    display: initial;
}

#gallery-wrapper .container {
    height: 100%;
    overflow: auto;
    padding: 1em;
    margin: 0.5em;
}

#gallery-wrapper .art .container {
    padding: 0;
    margin: 0;
    overflow: auto;
    text-align: center;
}

/* ---- Stamp grid ---- */

#gallery-wrapper .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6em;
    justify-items: center;
    padding: 0.2em;
}

#gallery-wrapper .gallery label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    color: #603852;
    margin: 0.5em;
    text-align: center;
    gap: 4px;
}

#gallery-wrapper .gallery label img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border: thin dashed brown;
    box-shadow: 5px 5px rgba(214, 147, 159, 50%);
    filter: brightness(90%);
    transition-duration: 0.5s;
    display: block;
}

#gallery-wrapper .gallery label img:hover {
    transform: scale(115%);
    filter: brightness(105%);
    transition-duration: 0.5s;
}

/* Placeholder stamp for sections with no image yet */
#gallery-wrapper .gallery label .stamp-ph {
    height: 80px;
    width: 80px;
    border: thin dashed brown;
    box-shadow: 5px 5px rgba(214, 147, 159, 50%);
    background: linear-gradient(135deg, #d0b0d0, #b0c8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    filter: brightness(90%);
    transition-duration: 0.5s;
}

#gallery-wrapper .gallery label:hover .stamp-ph {
    transform: scale(115%);
    filter: brightness(110%);
    transition-duration: 0.5s;
}


#gallery-wrapper {
    display: flex;
    width: 100%;
    margin: 0 auto;
    padding: 2em 0 4em;
    justify-content: center;
}

#gallery-wrapper h1 {
    color: #666699;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.8em;
}

/* ---- NAVIGATION PANEL (outer tabs) ---- */

#gallery-wrapper .navigation {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    min-width: 200px;
    padding: 2em;
}

#gallery-wrapper .navigation .list {
    display: flex;
    flex-direction: column;
}

/* Outer vertical tab labels */
#gallery-wrapper .navigation .list > .tabs_label {
    padding: 10px 14px;
    margin-bottom: 10px;
    background-color: whitesmoke;
    width: 100%;
    writing-mode: vertical-lr;
    text-align: center;
    transform: rotate(180deg);
    cursor: pointer;
    color: #603852;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #d0b0d0;
    box-shadow: 2px 2px rgba(214, 147, 159, 40%);
    transition: 0.25s;
}

#gallery-wrapper .navigation .list > .tabs_label:hover {
    background-color: cornflowerblue;
    color: white;
    border-color: cornflowerblue;
}

/* ---- TAB RADIO SYSTEM ---- */

#gallery-wrapper .tabs_radio,
#gallery-wrapper .tabs_content {
    display: none;
}

#gallery-wrapper .tabs_content {
    order: 1;
}

#gallery-wrapper .tabs_radio:checked + .tabs_content {
    display: initial;
}

/* ---- SECTION BOX ---- */

#gallery-wrapper .sec {
    padding: 1.2em;
    background-color: rgba(248, 236, 250, 0.95);
    box-shadow: 5px 5px rgba(214, 147, 159, 50%);
    height: 600px;
    overflow: hidden;
    border: 1px solid #d0b0d0;
}

#gallery-wrapper .container {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5em;
}

/* ---- SUB-SECTION CARDS (inside each tab) ---- */

.subsection-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 4px;
}

.subsection-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 90px;
    text-align: center;
    padding: 6px;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: 0.25s;
}

.subsection-card img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border: thin dashed #8b4513;
    box-shadow: 2px 2px rgba(214, 147, 159, 50%);
    filter: brightness(90%);
    display: block;
    transition: 0.3s;
}

.subsection-card .thumb-placeholder {
    width: 78px;
    height: 78px;
    background: linear-gradient(135deg, #d0b0d0, #b0c8e8);
    border: thin dashed #8b4513;
    box-shadow: 2px 2px rgba(214, 147, 159, 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.subsection-card span {
    font-size: 10px;
    margin-top: 5px;
    color: #603852;
    font-weight: bold;
    line-height: 1.3;
    word-break: break-word;
}

.subsection-card:hover img,
.subsection-card:hover .thumb-placeholder {
    filter: brightness(110%);
    transform: scale(1.08);
}

.subsection-card:hover {
    border-color: cornflowerblue;
}

/* Active state when the corresponding art_radio is checked */
#gallery-wrapper:has(#art-main-latest:checked)   label[for="art-main-latest"],
#gallery-wrapper:has(#art-main-hof:checked)      label[for="art-main-hof"],
#gallery-wrapper:has(#art-main-gift:checked)     label[for="art-main-gift"],
#gallery-wrapper:has(#art-am-sketch:checked)     label[for="art-am-sketch"],
#gallery-wrapper:has(#art-am-canon:checked)      label[for="art-am-canon"],
#gallery-wrapper:has(#art-am-noncanon:checked)   label[for="art-am-noncanon"],
#gallery-wrapper:has(#art-am-spice:checked)      label[for="art-am-spice"],
#gallery-wrapper:has(#art-jdr-jabra:checked)     label[for="art-jdr-jabra"],
#gallery-wrapper:has(#art-jdr-motw:checked)      label[for="art-jdr-motw"],
#gallery-wrapper:has(#art-vtm-marseille:checked) label[for="art-vtm-marseille"],
#gallery-wrapper:has(#art-vtm-liege:checked)     label[for="art-vtm-liege"],
#gallery-wrapper:has(#art-vtm-fol:checked)       label[for="art-vtm-fol"],
#gallery-wrapper:has(#art-vtm-s4s:checked)       label[for="art-vtm-s4s"] {
    border-color: cornflowerblue;
    background-color: #e8f0fe;
}

#gallery-wrapper:has(#art-main-latest:checked)   label[for="art-main-latest"] span,
#gallery-wrapper:has(#art-main-hof:checked)      label[for="art-main-hof"] span,
#gallery-wrapper:has(#art-main-gift:checked)     label[for="art-main-gift"] span,
#gallery-wrapper:has(#art-am-sketch:checked)     label[for="art-am-sketch"] span,
#gallery-wrapper:has(#art-am-canon:checked)      label[for="art-am-canon"] span,
#gallery-wrapper:has(#art-am-noncanon:checked)   label[for="art-am-noncanon"] span,
#gallery-wrapper:has(#art-am-spice:checked)      label[for="art-am-spice"] span,
#gallery-wrapper:has(#art-jdr-jabra:checked)     label[for="art-jdr-jabra"] span,
#gallery-wrapper:has(#art-jdr-motw:checked)      label[for="art-jdr-motw"] span,
#gallery-wrapper:has(#art-vtm-marseille:checked) label[for="art-vtm-marseille"] span,
#gallery-wrapper:has(#art-vtm-liege:checked)     label[for="art-vtm-liege"] span,
#gallery-wrapper:has(#art-vtm-fol:checked)       label[for="art-vtm-fol"] span,
#gallery-wrapper:has(#art-vtm-s4s:checked)       label[for="art-vtm-s4s"] span {
    color: cornflowerblue;
}

/* ---- ART PANEL (right) ---- */

#gallery-wrapper .art {
    width: 520px;
    padding: 2em;
}

#gallery-wrapper .art .sec {
    max-width: 480px;
}

#gallery-wrapper .art .container {
    padding: 0;
    margin: 0;
    overflow-y: auto;
}

#gallery-wrapper .art_radio,
#gallery-wrapper .art_content {
    display: none;
}

#gallery-wrapper .art_radio:checked + .art_content {
    display: block;
}

/* Grid of images inside art panel */
.art-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 6px;
    justify-content: center;
}

.art-gallery img {
    height: 150px;
    width: auto;
    object-fit: cover;
    border: 1px solid #d0b0d0;
    cursor: zoom-in;
    transition: 0.3s;
    filter: brightness(95%);
}

.art-gallery img:hover {
    transform: scale(1.06);
    filter: brightness(110%);
    box-shadow: 2px 2px 8px rgba(100, 100, 200, 0.3);
    z-index: 1;
    position: relative;
}

/* Empty placeholder (for unfilled sections) */
.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: #aaa;
    font-size: 12px;
    text-align: center;
    padding: 2em;
    gap: 0.6em;
}

.gallery-empty .empty-icon {
    font-size: 32px;
    opacity: 0.4;
}


