:root {
  --sidebar: #1d1f20;
  --bg: #2b2d2e;
  --panel: #3a3c3d;
  --text: #d6d6d6;
  --muted: #8a8c8d;
  --white: #fff;
  --sidebar-w: 200px;
  --thumbs-w: 110px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 "Droid Sans", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--white); }
h1, h2, h3, h4 { font-family: Lato, sans-serif; font-weight: 400; color: var(--white); }

/* Sidebar */
#header {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 10;
  background: var(--sidebar); padding: 60px 20px 20px;
  display: flex; flex-direction: column; text-align: right;
}
#menu ul { list-style: none; margin: 0; padding: 0; }
#menu a {
  display: block; padding: 1px 0; text-decoration: none; color: #b8b8b8;
  font: 12px/1.6 Lato, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap;
}
#menu a:hover, #menu .current a { color: var(--white); font-weight: 700; }
#copyright { margin-top: auto; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
#menu_toggle { display: none; }

/* Text pages */
#content {
  position: relative; margin-left: calc(var(--sidebar-w) + 20px); max-width: 760px;
  background: var(--panel); min-height: 100%; padding: 10px 30px 40px;
}
#content .title { font-size: 34px; margin: 10px 0 25px; }
#cross { position: absolute; top: 14px; right: 22px; font-size: 32px; line-height: 1; text-decoration: none; color: var(--muted); }
#cross:hover { color: var(--white); }
#content_wrap img { max-width: 100%; height: auto; display: block; margin: 0 0 15px; }
#content_wrap table { border-collapse: collapse; width: 100%; }
#content_wrap td { vertical-align: top; padding: 8px 10px 8px 0; }
.table-underlined td { border-bottom: 1px solid #4c4e4f; }
#content_wrap img.thumbnail { width: 110px; max-width: none; margin: 0; }
#content_wrap ul.circle { padding-left: 20px; }
#content_wrap ul.circle li { margin-bottom: 18px; }
#contact_form input[type=text], #contact_form input[type=email], #contact_form input[type=tel], #contact_form textarea {
  width: 100%; max-width: 420px; padding: 6px; margin-top: 4px;
  background: #262829; color: var(--text); border: 1px solid #555; font: inherit;
}
#contact_form input[type=submit] { padding: 6px 22px; background: #555; color: var(--white); border: 0; cursor: pointer; font: inherit; }

/* Gallery pages: fullscreen painting with a vertical thumbnail strip */
#stage { position: fixed; inset: 0 var(--thumbs-w) 0 var(--sidebar-w); display: flex; align-items: center; justify-content: center; }
#big { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .6s; }
#big.fading { opacity: 0; }
#thumbs { position: fixed; inset: 0 0 0 auto; width: var(--thumbs-w); background: #232526; display: flex; flex-direction: column; }
#thumb_list { flex: 1; overflow-y: auto; padding: 5px; }
#thumb_list a { display: block; margin-bottom: 5px; opacity: .55; border: 2px solid transparent; }
#thumb_list a:hover, #thumb_list a.active { opacity: 1; border-color: var(--white); }
#thumb_list img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
#controls { display: flex; justify-content: center; gap: 6px; padding: 8px 0; }
#controls button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #555; color: var(--white); font-size: 10px; cursor: pointer; }
#controls button:hover { background: #777; }

/* Phones */
@media (max-width: 760px) {
  #header { position: sticky; top: 0; width: auto; height: auto; padding: 10px 16px; text-align: left; }
  #menu_toggle { display: block; background: none; border: 0; color: var(--white); font-size: 24px; cursor: pointer; padding: 0; }
  #menu, #copyright { display: none; }
  #header.open #menu { display: block; padding-top: 10px; }
  #content { margin: 0; padding: 10px 16px 30px; }
  #stage { position: static; height: 70vh; padding: 10px 16px; }
  #thumbs { position: static; width: auto; }
  #thumb_list { display: flex; overflow-x: auto; overflow-y: hidden; gap: 5px; }
  #thumb_list a { flex: 0 0 80px; margin: 0; }
}
#content_wrap td:has(> img.thumbnail) { width: 125px; }
