@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap);


:root{
  /* default fallbacks */
  --vh: 1vh;                 /* 1% of (CSS) viewport height */
  --vh100: calc(var(--vh) * 100);
  --dvh100: var(--vh100);    /* will be upgraded in @supports below */
}

/* Prefer dynamic viewport units when supported */
@supports (height: 100dvh) {
  :root{
    --dvh100: 100dvh;
  }
}



:root {				     
  --ease-sfs: cubic-bezier(0.7,0,0.3,1);
  --panel-dur: 2000ms;
  --panel-ease: var(--ease-sfs);
  --panel-btn-dur: 2000ms;
  --panel-btn-ease: var(--ease-sfs);
  --holder-dur: calc(var(--panel-dur) * 0.35);
  --holder-ease: var(--ease-sfs);
  --sb-initial-dur: 2000ms;
  --sb-initial-ease: var(--ease-sfs);
  --sb-dur: 2000ms; /* pick your final value */
  --sb-ease: var(--ease-sfs);
  --sb-transition-dur: 2000ms;
  --sb-transition-ease: var(--ease-sfs);
  --slide-dur: 2000ms;
  --slide-ease: var(--ease-sfs);
  --img-dur: 2000ms;
  --img-ease: var(--ease-sfs);
  --img-placeholder-dur: 6000ms;
  --nav-dur: 2000ms;
  --nav-ease: var(--ease-sfs);
  --navtoggle-dur: 2000ms;
  --navtoggle-ease: var(--ease-sfs);

  --font-fallback: helvetica, arial, sans-serif;
  --font-primary: "Roboto", sans-serif;
  --font-secondary: "Playfair Display", serif;
  --main-font: 300 14px/22px var(--font-primary), var(--font-fallback);
  --title-font: 400 22px/24px var(--font-secondary), var(--font-fallback);
  --heading-font: 400 20px/26px var(--font-secondary), var(--font-fallback);
  --post-font: 300 1em/1.6em var(--font-primary), var(--font-fallback);
  --post-h123-font: 300 4em var(--font-secondary), var(--font-fallback);
  --post-h2-font: 300 1.2em var(--font-secondary), var(--font-fallback);
  --post-h3-font: 300 1.2em var(--font-secondary), var(--font-fallback);
  --post-h1-sub-font: 300 18px/22px var(--font-secondary), var(--font-fallback);
  --prev-next-a-font: 300 48px var(--font-primary), var(--font-fallback);
  --above-below-font: 300 16px/22px var(--font-primary), var(--font-fallback);
  --above-below-h-font: 300 16px/22px var(--font-secondary), var(--font-fallback);
}
:root[data-fontset="roboto-playfair"] {
  --font-primary: "Roboto", sans-serif;
  --font-secondary: "Playfair Display", serif;
}
:root[data-fontset="lato-libre"] {
  --font-primary: "Lato", sans-serif;
  --font-secondary: "Libre Baskerville", serif;
}
:root[data-fontset="montserrat-cormorant"] {
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Cormorant Garamond", serif;
}
:root[data-fontset="raleway-spectral"] {
  --font-primary: "Raleway", sans-serif;
  --font-secondary: "Spectral", serif;
}
:root[data-fontset="source-roboto"] {
  --font-primary: "Source Sans Pro", sans-serif;
  --font-secondary: "Roboto", sans-serif;
}
:root {
  --slide-bg-dark: #000000;
  --slide-text-dark: #ffffff;
  --slide-bg-light: #ffffff;
  --slide-text-light: #000000;
  --sb-left: 7px;                 /* single source of truth */
  --sb-width: 163px;
  /* theme vars the JS can set in one place */
  --sb-bg: var(--slide-bg-dark);
  --sb-fg: var(--slide-text-dark);
  --panel-hide-y: calc(var(--dvh100) - var(--toggle-bottom) - var(--toggle-size) - 12px);
  --main-left-open: calc(var(--sb-left) + var(--sb-width));  /* main when sidebar is open */
  --main-left-tucked: var(--sb-left);  /* main when sidebar is tucked */

  /* panel (inner) tuck geometry */
  --tuck-tx: 3px;
  --tuck-ty: -10px;
  --tuck-scale-x: 0.28;
  --tuck-scale-y: 0.28;

  /* hamburger placement/sizing */
  --toggle-left: 10px;
  --toggle-bottom: 10px;
  --toggle-size: 36px;
}


body.theme-light {
  background-color: var(--slide-bg-light);
  color: var(--slide-text-light);
}
body.theme-dark {
  background-color: var(--slide-bg-dark);
  color: var(--slide-text-dark);
}
body.theme-light .slide {
  font-family: var(--main-font);
}
//body.theme-dark #sidebar {
//  background-color: #000;
//  color: #fff;
//}
//body.theme-light #sidebar {
//  background-color: #fff;
//  color: #000;
//}
body.theme-dark .main-title,
body.theme-light .main-title {
  margin: 0;
  padding: 0px 0px 0 0;
  font: var(--title-font);
  text-align: center;
}
body.theme-dark .main-title {
  color: #fff;
}
body.theme-light .main-title {
  color: #000;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  font: var(--main-font);
}
a {
  text-decoration: none;
  transition: color 0.2s;
}
//a,
//a:hover {
//  color: #fff;
//}
/* NEW: only style links inside main slides */
body.theme-dark  #main a,
body.theme-dark  #main a:hover,
body.theme-dark  #main a:visited { color: #fff; }

body.theme-light #main a,
body.theme-light #main a:hover,
body.theme-light #main a:visited { color: #000; }

a.active,
li.active a {
  color: #ddd;
}
a.active:hover,
li.active a:hover {
  color: inherit;
  cursor: default;
}
#marker {
  z-index: 13;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sb-left);
  height: 100%;
}
#marker,
#marker li {
  margin: 0;
  padding: 0;
}
#marker li {
  display: block;
  list-style: none;
}
#marker li a {
  display: block;
  width: 100%;
  height: 100%;
  -moz-opacity: 0;
  -webkit-opacity: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
#marker li.active a,
#marker li:hover a {
  -moz-opacity: 1;
  -webkit-opacity: 1;
  opacity: 1;
}
.foreground {
  z-index: 12;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slide {
  transition:
    background-color var(--slide-dur) var(--slide-ease),
    color var(--slide-dur) var(--slide-ease);
}
body.theme-light .slide {
  background-color: var(--slide-bg-light);
  color: var(--slide-text-light);
}
body.theme-dark .slide {
  background-color: var(--slide-bg-dark);
  color: var(--slide-text-dark);
}
#copyright {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}
#control,
#control * {
  color: inherit !important;
}
#control {
  z-index: 20;
  position: absolute;
  bottom: 40px;
  left: 0;
}
#control,
#control li {
  margin: 0;
  padding: 0;
  list-style: none;
}
#control li {
  display: block;
  position: relative;
  height: 28px;
  line-height: 28px;
}
.icon {
  display: inline;
  width: 18px;
  height: 16px;
  margin: 6px 4px 0px 4px;
  float: left;
  mix-blend-mode: normal;
}
body.theme-dark .main-logo.logo-image {
  margin-left: 15px;
  background: url(img/lpLogoWhite.png) no-repeat center;
  background-size: contain;
  color: #fff;
}
body.theme-light .main-logo.logo-image {
  margin-left: 15px;
  background: url(img/lpLogoBlack.png) no-repeat center;
  background-size: contain;
  color: #000;
}
.logo-image,
.image.blank.logo-image,
.image.logo-image {
  display: block;
  width: 120px;
  height: 120px;
  margin-top: 0;
  margin-left: 0;
  background: url(img/logo90tx.png) no-repeat center;
  background-size: contain;
}
.icon.light {
  background: transparent url(img/light.png) no-repeat;
}
.icon.light.webkit {
  background-image: none;
  -webkit-mask-box-image: url(img/light_mask.png);
}
.icon.monitor {
  background: transparent url(img/monitor.png) no-repeat;
}
.icon.monitor.webkit {
  background-image: none;
  -webkit-mask-box-image: url(img/monitor_mask.png);
}
.icon.toggle {
  background: transparent url(img/text.png) no-repeat;
}
.icon.toggle.webkit {
  background-image: none;
  -webkit-mask-box-image: url(img/text_mask.png);
}
.icon.comment {
  background: transparent url(img/comment.png) no-repeat;
}
.icon.comment.webkit {
  background-image: none;
  -webkit-mask-box-image: url(img/comment_mask.png);
}
.icon.heart {
  background: transparent url(img/heart.png) no-repeat;
}
.icon.heart.webkit {
  background-image: none;
  -webkit-mask-box-image: url(img/heart_mask.png);
}
.icon.download {
  background: transparent url(img/download.png) no-repeat;
}
.icon.download.webkit {
  background-image: none;
  -webkit-mask-box-image: url(img/download_mask.png);
}
.icon.webkit {
  background-color: #ccc;
}
#share .icon {
  width: 26px;
  height: 24px;
  margin: var(--sb-left) 10px 0;
}
.icon.hackernews {
  background: transparent url(img/hackernews.png) no-repeat;
}
.icon.hackernews.webkit {
  background-image: none;
  -webkit-mask-box-image: url(img/hackernews_mask.png);
}
.icon.facebook {
  background: transparent url(img/facebook.png) no-repeat;
}
.icon.facebook.webkit {
  background-image: none;
  -webkit-mask-box-image: url(img/facebook_mask.png);
}
.icon.twitter {
  background: transparent url(img/twitter.png) no-repeat;
}
.icon.twitter.webkit {
  background-image: none;
  -webkit-mask-box-image: url(img/twitter_mask.png);
}
.icon.reddit {
  background: transparent url(img/reddit.png) no-repeat;
}
.icon.reddit.webkit {
  background-image: none;
  -webkit-mask-box-image: url(img/reddit_mask.png);
}
.icon.pinterest {
  background: transparent url(img/pinterest.png) no-repeat;
}
.icon.pinterest.webkit {
  background-image: none;
  -webkit-mask-box-image: url(img/pinterest_mask.png);
}
#textbutton {
  cursor: pointer;
}
#comments {
  display: none;
  width: 100%;
  width: 80%;
  max-width: 800px;
  height: auto;
  height: 100px;
  margin: 10px auto;
  padding: 10px;
  overflow: hidden;
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-weight: 200 !important;
  font-size: 14pt;
  line-height: 1.4;
}
#comments.active {
  display: block;
  animation: expandSection 1.5s ease-in-out;
}
@keyframes expandSection {
  from {
    min-height: 100px;
    max-height: 100px;
    opacity: 0;
  }
  to {
    max-height: 300px;
    opacity: 1;
  }
}
#disqus_thread {
  margin: 40px 70px 70px;
}
.close {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: #222 url(img/close.png) no-repeat;
  background-position: 95% 50%;
}
.close:hover {
  background-color: #444;
}
#resolution,
#share {
  z-index: 21;
  position: fixed;
  bottom: 0;
  left: var(--main-left-open);
  width: 0;
  height: 100%;
  overflow: hidden;
  -webkit-transition:
    color 1s,
    background-color 1s,
    width 0.5s;
  -moz-transition:
    color 1s,
    background-color 1s,
    width 0.5s;
  -ms-transition:
    color 1s,
    background-color 1s,
    width 0.5s;
  -o-transition:
    color 1s,
    background-color 1s,
    width 0.5s;
  font-size: 14px;
  transition:
    color 1s,
    background-color 1s,
    width 0.5s;
}
#resolution.active,
#share.active {
  width: var(--sb-width);
}
#resolution ul,
#share ul {
  display: block;
  position: absolute;
  bottom: 33px;
  left: 15px;
  width: 155px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.theme-light #resolution ul,
body.theme-light #share ul {
  background-color: var(--slide-bg-light);
}
body.theme-dark #resolution ul,
body.theme-dark #share ul {
  background-color: var(--slide-bg-dark);
}
#resolution ul li,
#share ul li {
  display: block;
  position: relative;
  height: 36px;
  margin: 0;
  padding: 0;
  float: left;
  clear: both;
  line-height: 36px;
  list-style: none;
}
#resolution.active {
  width: 120px;
}
#resolution ul {
  bottom: 40px;
}
#resolution ul li {
  height: 28px;
  margin-left: 10px;
  line-height: 28px;
}
#resolution ul li.active a {
  border-bottom: 1px solid #aaa;
}
#main{
  position: absolute;
  z-index:10;
  top: 0;
  left: var(--main-left-open);
  width: calc(100vw - var(--main-left-open));  /* keeps right edge flush to window */
  height: var(--dvh100);
  overflow: hidden;
  transition:
    left  var(--sb-dur) var(--sb-ease),
    width var(--sb-dur) var(--sb-ease);
}

/* When sidebar is tucked, slide main to 7px and reclaim width */
.sidebar-tucked #main{
  left: var(--main-left-tucked);
  width: calc(100vw - var(--main-left-tucked));
}

/* Optional explicit reset for clarity (not strictly required) */
.sidebar-open #main{
  left: var(--main-left-open);
  width: calc(100vw - var(--main-left-open));
}
#main.horizontal {
  display: flex;
  flex-direction: row;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
}
#main.horizontal .slide {
  box-sizing: border-box;
  flex-shrink: 0;
  width: calc(100vw - 340px);
  border: var(--slide-border, 0) solid var(--slide-border-color, currentColor);
  scroll-snap-align: start;
}
#main.horizontal .slide,
#comments,
.slide {
  align-self: flex-start;
  height: auto;
  max-height: var(--dvh100);
}
#comments,
.slide {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  clear: both;
  overflow: hidden;
}
.slide {
  --slide-frame: 0px;
  box-sizing: border-box;
  padding: var(--slide-frame);
}
#comments {
  min-height: 400px;
}
.progress {
  z-index: 3;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  -moz-opacity: 0;
  -webkit-opacity: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}
.progress.active {
  -moz-opacity: 1;
  -webkit-opacity: 1;
  opacity: 1;
}
.bar {
  height: 100%;
  transition: width 0.5s ease-in;
}
.bar,
a.internal {
  position: absolute;
  top: 0;
  left: 0;
}
.post {
  z-index: 5;
  font: var(--post-font);
  opacity: 1;
  transition: opacity 0.5s ease-in;
}
.post a:hover {
  text-decoration: underline;
}
.post.hidden {
  -moz-opacity: 0;
  -webkit-opacity: 0;
  opacity: 0;
}
.post .content {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  clear: both;
}
.image.active {
  visibility: visible;
}
video.image {
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
}
.image_post_container .post {
  position: relative !important;
}
.image_post_container .post img.image {
  position: absolute !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: var(--image-cap, var(--post-cap, var(--container-h))) !important;
  inset: 0 !important;
  -o-object-fit: contain !important;
  object-fit: contain !important;
}
.image_post_container .post img.placeholder {
  z-index: 1 !important;
}
.image_post_container .post .image-holder > video,
.image_post_container .post > video {
  z-index: 20 !important;
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  inset: 0 !important;
  -o-object-fit: contain !important;
  object-fit: contain !important;
  pointer-events: auto !important;
}
.image_post_container .post .image-holder > video.image,
.image_post_container .post > video.image {
  max-width: 100% !important;
  max-height: var(--image-cap, var(--post-cap, var(--container-h))) !important;
}
.slide[data-type="video"] video {
  z-index: 20 !important;
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: contain !important;
  object-fit: contain !important;
  pointer-events: auto !important;
}
.post[data-onlytext="1"] .image-holder,
.post[data-onlytext="1"] .image-overlay,
.post[data-onlytext="1"] .progress,
.post[data-onlytext="1"] img.image,
.post[data-onlytext="1"] img.placeholder,
.post[data-onlytext="1"] video.image {
  display: none !important;
}

.post h2,
.post h3 {
  display: block;
  margin: 0;
  padding: 10px 0;
  font: var(--post-h123-font);
}
.post h2 {
  font-size: 2em;
}
.post h2,
.post h3 {
  padding: 10px 0;
  clear: both;
}
.next,
.prev {
  width: 50%;
  float: left;
}
.next a,
.prev a {
  display: block;
  min-height: 100px;
  font: var(--prev-next-a-font);
  transition: all 0.5s;
}
.prev a {
  padding: 30px 0 30px 120px;
  background: transparent url(img/prev.png) no-repeat;
  background-position: 50px 42px;
}
.next a {
  padding: 30px 120px 30px 0;
  background: transparent url(img/next.png) no-repeat;
  background-position: 100% 42px;
  text-align: right;
}
.final.slide a .text {
  -webkit-text-stroke: 0.5px;
}
.next a:hover,
.prev a:hover {
  background-color: #222;
}
.image-text-outline {
  pointer-events: none;
}
.image-text-outline,
.image-text-keeper {
  width: 100%;
  height: 100%;
  margin: 0;
  white-space: nowrap;
}
.filler {
  display: inline-block;
  min-width: 1px;
  height: 10px;
}
#orientToggleButton {
  display: block;
  text-align: left;
  cursor: pointer;
}
#orientToggleButton .icon {
  background: transparent url(img/horizontal.png) no-repeat;
}
#orientToggleButton.active .icon {
  background: transparent url(img/horizontal_mask.png) no-repeat;
}
#themeToggleButton {
  display: block;
  text-align: left;
  cursor: pointer;
}
#themeToggleButton .icon {
  background: transparent url(img/light.png) no-repeat;
}
#themeToggleButton.active .icon {
  background: transparent url(img/light_mask.png) no-repeat;
}

/* Fade-in handling */
.transition-bar.fade-in {
  opacity: 0 !important;
}

/* Container setup */
.transition-bar-container {
  position: relative;
  overflow: hidden;
}

/* Transition bar positioning and animation */
.transition-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity var(--slide-dur) var(--slide-ease);
}

/* Bar styles for the dark theme */
.transition-bar-dark {
  z-index: 1;
  opacity: 0; /* Initially invisible */
}

/* Bar styles for the light theme */
.transition-bar-light {
  z-index: 2;
  opacity: 0; /* Initially invisible */
}

/* Theme-based opacity changes */
body.theme-light .transition-bar-dark {
  opacity: 0; /* Ensures it's invisible in light theme */
}

body.theme-light .transition-bar-light {
  opacity: 1; /* Shows the light bar in light theme */
}

body.theme-dark .transition-bar-dark {
  opacity: 1; /* Shows the dark bar in dark theme */
}

body.theme-dark .transition-bar-light {
  opacity: 0; /* Ensures it's invisible in dark theme */
}



.clickdescription_above,
.clickdescription_below,
.description_above,
.description_below,
.description_right,
.image_title {
  box-sizing: border-box;
  display: block;
  z-index: 10;
  position: relative;
  width: auto;
  min-width: 100px;
  height: auto;
  min-height: 0;
  padding: 0;
  font: var(--above-below-font);
  font-weight: 300;
  line-height: 1.3rem;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  opacity: 90%;
}
.clickdescription_above a,
.clickdescription_below a,
.description_above a,
.description_below a,
.description_right a {
  text-decoration: underline;
  text-underline-offset: 2px;  /* improves readability */
}
.clickdescription_above a:hover,
.clickdescription_below a:hover,
.description_above a:hover,
.description_below a:hover,
.description_right a:hover {
  text-decoration-thickness: 2px;
}

.image_title {
  padding-bottom: 5px;
  font-weight: 400;
  text-align: center;
}
.image_title:empty {
  padding-bottom: 0;
  font-weight: 400;
}

.clickdescription_above h2,
.clickdescription_above h3,
.description_above h3,
.description_right h2,
.description_right h3,
.image_title h2,
.image_title h3 {
  margin-block-start: 0;
  margin-block-end: 0;
  font: var(--above-below-h-font);
}
.clickdescription_above h2,
.description_above h2,
.description_right h2,
.image_title h2 {
  font-size: 2em;
}
.clickdescription_above h3,
.description_above h3,
.description_right h3,
.image_title h3 {
  font-size: 1.5em;
}
.image_post_container {
  --container-h: var(--dvh100);
  display: block;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: var(--container-h, var(--dvh100));
  overflow: hidden;
}
.image_post_container,
.image_post_container .post {
  box-sizing: border-box;
  position: relative;
  width: 100%;
}
.image_post_container .post {
  display: grid;
  z-index: 5;
  place-items: center;
  min-width: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0 !important;
  padding-top: 5px;
  overflow: visible;
}
.image_post_container .post img.image {
  position: relative;
}
.image_post_container .post .image-overlay {
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.image_post_container .post .image-text-keeper {
  visibility: hidden;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.image_post_container .post .image-text-keeper,
.image_post_container .post .image-text-outline {
  z-index: 5;
  position: absolute !important;
  overflow: visible !important;
  pointer-events: none;
}
.image_post_container .post .image-text-outline,
.image-overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.image-overlay {
  z-index: 10;
  position: absolute;
  background: 0 0;
}
.image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.image-overlay {
  pointer-events: all;
}
.image_post_container .post img.image {
  box-sizing: border-box;
  display: block;
  visibility: visible !important;
  z-index: 2 !important;
  position: relative !important;
  max-width: 100%;
  max-height: 100%;
  margin-bottom: 0 !important;
  -o-object-fit: contain;
  object-fit: contain;
  opacity: 0 !important;
  transition: opacity var(--img-dur) var(--slide-ease) !important;
}
.image_post_container .post img.image.active,
.image_post_container .post img.placeholder {
  visibility: visible !important;
  opacity: 1 !important;
}
.image_post_container .post img.placeholder {
  z-index: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: contain !important;
  object-fit: contain !important;
  transition: opacity var(img-placeholder-dur) var(--slide-ease) !important;
}
.image_post_container .post img.image.active ~ img.placeholder {
  opacity: 0 !important;
  pointer-events: none !important;
}
.image-holder {
  box-sizing: border-box;
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  transition: none;
}
.image-holder > .image-overlay {
  z-index: 10;
  position: absolute;
  inset: 0;
  pointer-events: all;
}
.image-holder > .content,
.image-holder > .image-text-outline {
  z-index: 5;
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}
.clickdescription_above,
.clickdescription_below {
  contain: layout paint;
  transition: max-height var(--panel-dur) var(--panel-ease);
}
.clickdescription_above.is-open,
.clickdescription_below.is-open {
  max-height: var(--panel-target, 0);
}
.post {
  align-items: center;
  justify-content: center;
}
.image-holder > img.image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100% !important;
  -o-object-fit: contain;
  object-fit: contain;
}
.slide.animating .image-holder {
  transition: height var(--holder-dur) var(--holder-ease);
  transition-duration: var(--holder-dur);
  transition-property: height;
  transition-timing-function: var(--holder-ease);
}
.resizing .image-holder,
.resizing .clickdescription_above,
.resizing .clickdescription_below {
  transition: none !important;
}
.info-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 1px solid;
  border-radius: 50%;
  background-color: transparent;
  color: inherit;
  line-height: 1rem;
  text-align: center;
  cursor: help;
}
.tooltip-replacement {
  padding: 0.5rem;
  border: 1px solid;
  border-radius: 4px;
  color: inherit;
  font: inherit;
  line-height: 1.2em;
  white-space: normal;
  word-break: break-word;
}
#control .control-dropdown {
  display: none;
  z-index: 100;
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  margin-bottom: 4px;
  padding-left: 25px;
  background-color: inherit;
  color: inherit;
  list-style: none;
}
#control .control-dropdown li {
  height: 24px;
  line-height: 24px;
}
#control .control-item.open .control-dropdown {
  display: block;
}
#control .control-button,
#control button,
#disqusbutton,
#download,
#orientToggleButton,
#sharebutton,
#textbutton,
#themeToggleButton {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: 0 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#resolution button,
#share button,
#sidebar button {
  background: inherit;
  color: inherit;
}
#control .control-button:focus,
#control .control-button:hover,
#control button:focus,
#control button:hover {
  outline: 2px solid transparent;
  outline-offset: 2px;
  text-decoration: underline;
}
.description_right {
  display: none;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}
.post.has-right {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--right-gap, 16px);
}
.post.has-right .image-holder {
  flex: 0 0 auto;
  margin-right: 0;
  margin-left: 0;
}
.post.has-right .description_right {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  max-height: var(--image-cap, var(--post-cap, var(--container-h)));
  overflow: auto;
}
.image_post_container .post.has-panel ~ .clickdescription_below {
  width: auto;
  max-width: var(--panel-max);
  margin-right: auto;
  margin-left: auto;
  font-size: 10pt;
}
.panel-details {
  margin: 0;
}
.photo-details {
  display: inline-table;
  max-width: 100%;
  border-collapse: collapse;
}
.photo-details,
.photo-details colgroup col {
  width: auto;
}
.photo-details td {
  padding: 0 !important;
  border: 0 !important;
  vertical-align: top;
}
.pd-inner {
  display: table;
  width: auto;
  border-collapse: collapse;
  table-layout: auto;
}
.pd-inner td {
  padding: 0 !important;
  border: 0 !important;
}
.pd-label,
.pd-value {
  white-space: nowrap;
}
.pd-cell.pd-price {
  position: relative;
}
.pd-pricing {
  display: table;
  width: auto;
  border-collapse: collapse;
  table-layout: auto;
}
.pd-pricing td {
  padding: 0 !important;
  white-space: nowrap;
}
.pd-pricing td:first-child {
  text-align: left;
}
.pd-pricing td:nth-child(2) {
  text-align: right;
}
.pd-pricing td:nth-child(3) {
  text-align: center;
}
.pd-pricing .pd-buy {
  white-space: nowrap;
}
.pd-cell.pd-price .pd-pricing {
  visibility: visible;
}
.pd-cell.pd-price[data-tip-open="1"] .pd-pricing {
  visibility: hidden;
}
.pd-pricing-overlay {
  display: none;
  overflow: visible;
  border: 1px solid;
}
.pd-pricing-overlay .tooltip-replacement {
  color: inherit;
  font: inherit;
  line-height: 1.2;
}
.info-icon {
  z-index: 21;
  position: relative;
}
.panel-details {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}
.photo-details {
  border-collapse: separate;
  border-spacing: 2em 0;
}
.pd-inner td,
.pd-pricing td,
.photo-details td {
  padding: 0 3em 0 0 !important;
}
.panel-details .pd-cell > strong,
.panel-details h2 {
  margin-bottom: 0.1rem !important;
  font-weight: 400 !important;
  font-size: inherit !important;
  text-transform: uppercase !important;
}
.pd-cell.pd-price[data-tip-open="1"] > :not(.pd-pricing-overlay) {
  visibility: hidden;
}
.pd-cell.pd-price .pd-pricing-overlay {
  display: none;
}
.pd-cell.pd-price[data-tip-open="1"] .pd-pricing-overlay {
  display: block;
}
.pd-pricing-overlay {
  z-index: 20;
  position: absolute;
  inset: 0;
  padding: 0;
  overflow: hidden;
  border: 0 solid;
  border-radius: 0;
  background: inherit;
  box-shadow: none;
  color: inherit;
  pointer-events: auto;
}
.pd-pricing-overlay .tooltip-replacement {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.photo-details {
  transform: translateX(0);
  will-change: transform;
}
:is(.panel-details .pd-pricing, .pd-form) .btn-primary {
  padding: 0;
  border-radius: 0;
  line-height: 1;
}
.panel-details .action-row {
  margin: 0;
  text-align: center;
}
.panel-details .action-row .btn-primary {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 1px solid;
  border-radius: 0;
  background: 0 0;
  color: currentColor;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
:is(.panel-details .pd-pricing, .pd-form) .btn-primary {
  display: inline-block;
  margin: 0;
  padding: 1px 8px;
  border: 1px solid;
  border-radius: 8px;
  background: 0 0;
  color: currentColor;
  font: inherit;
  line-height: 1.2;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  transition:
    background-color var(--panel-btn-dur) var(--panel-btn-ease),
    color var(--panel-btn-dur) var(--panel-btn-ease),
    border-color var(--panel-btn-dur) var(--panel-btn-ease),
    transform var(--panel-btn-dur) var(--panel-btn-ease);
}
:is(.panel-details .pd-pricing, .pd-form) .btn-primary:focus,
:is(.panel-details .pd-pricing, .pd-form) .btn-primary:hover {
  outline: 0;
  background-color: color-mix(in srgb, currentColor 12%, transparent);
}
:is(.panel-details .pd-pricing, .pd-form) .btn-primary:active {
  transform: translateY(0.5px);
}
body.theme-light
  :is(.panel-details .pd-pricing, .pd-form)
  td
  .btn-primary:focus,
body.theme-light
  :is(.panel-details .pd-pricing, .pd-form)
  td
  .btn-primary:hover {
  outline: 0;
  background-color: rgba(0, 0, 0, 0.12);
}
body.theme-dark :is(.panel-details .pd-pricing, .pd-form) td .btn-primary:focus,
body.theme-dark
  :is(.panel-details .pd-pricing, .pd-form)
  td
  .btn-primary:hover {
  outline: 0;
  background-color: rgba(255, 255, 255, 0.12);
}
@supports (background: color-mix(in srgb, white 12%, transparent)) {
  :is(.panel-details .pd-pricing, .pd-form) td .btn-primary:focus,
  :is(.panel-details .pd-pricing, .pd-form) td .btn-primary:hover {
    outline: 0;
    background-color: color-mix(in srgb, currentColor 12%, transparent);
  }
}
.clickdescription_above,
.clickdescription_below {
  max-height: var(--panel-target, 0);
  transition: max-height var(--panel-dur) var(--panel-ease);
}
.clickdescription_below > .pd-view.pd-pricing {
  display: contents;
}
.pd-form-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 0;
}
.pd-form-shell .pd-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 1rem 2rem;
}
.pd-form-shell .pd-head {
  margin-bottom: 0.25rem;
}
.pd-form-shell .pd-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  align-items: center;
  gap: 0.5rem;
}
.pd-form-shell .pd-label {
  font-weight: 600;
}
.pd-form-shell .pd-value {
  min-height: 1.2em;
}
.pd-form-shell .pd-col-right .pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.pd-form-shell .pd-col-right input,
.pd-form-shell .pd-col-right textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.25rem 0.5rem;
  font: inherit;
}
.pd-form-shell .pd-size-input {
  margin-top: 0.25rem;
}
.pd-form-shell .pd-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
  gap: 0.5rem;
}
.pd-form-shell .pd-status {
  margin-top: 0.5rem;
}
.pd-form-shell .pd-status.error {
  color: #a00;
}
.pd-form-shell .pd-success {
  padding: 0.5rem 0;
}
@media (max-width: 800px) {
  .pd-form-shell .pd-two-col,
  .pd-form-shell .pd-col-right .pd-grid {
    grid-template-columns: 1fr;
  }
  .pd-form-shell .pd-row {
    grid-template-columns: 7.5rem 1fr;
  }
}
[hidden] {
  display: none !important;
}
.pd-form-shell .row-span {
  grid-column: 1/-1;
}
.pd-form-shell {
  border: 0;
  background: 0 0;
  color: inherit;
  color-scheme: light dark;
}
.pd-form-shell input,
.pd-form-shell select,
.pd-form-shell textarea {
  box-sizing: border-box;
  padding: 0.25rem 0.55rem;
  border: 1px solid;
  border-radius: 6px;
  background: 0 0;
  color: inherit;
}
.pd-form-shell input::-moz-placeholder,
.pd-form-shell textarea::-moz-placeholder {
  opacity: 0.65;
}
.pd-form-shell input::placeholder,
.pd-form-shell textarea::placeholder {
  opacity: 0.65;
}
.pd-form-shell input:focus,
.pd-form-shell textarea:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.pd-form-shell .pd-two-col {
  gap: 0.75rem 1rem;
}
.pd-form-shell .pd-row {
  grid-template-columns: 8rem 1fr;
  gap: 0.35rem;
}
.pd-form-shell .pd-col-right .pd-grid {
  gap: 0.35rem;
}
.pd-form-shell .pd-actions {
  margin-top: 0.35rem;
  gap: 0.35rem;
}
.pd-form-shell input,
.pd-form-shell select,
.pd-form-shell textarea {
  padding: 0.18rem 0.35rem;
  border-radius: 4px;
}
.pd-form-shell .pd-terms {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95em;
  opacity: 0.85;
}
.pd-form-shell .pd-terms li {
  margin: 0.25rem 0;
}
.pd-form-shell .pd-col-right .pd-grid {
  gap: 3px;
}
.pd-form-shell .pd-col-right .pd-grid + .pd-grid,
.pd-form-shell .pd-size-input,
.pd-form-shell input[name="phone"],
.pd-form-shell textarea[name="notes"] {
  margin-top: 3px;
}
.pd-reserved-tag {
  display: inline-block;
  margin-left: 0.5rem;
  font-style: italic;
  font-size: 0.9em;
  opacity: 0.85;
}
.pd-pricing .btn-primary.is-reserved[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}
.pd-view[hidden] {
  display: none !important;
}
.image_post_container .clickdescription_above,
.image_post_container .description_above {
  width: min(100%, var(--holder-w, 100%));
  max-width: -moz-fit-content;
  max-width: fit-content;
  max-width: min(100%, var(--holder-w, 100%));
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}
.slide .image_post_container .clickdescription_above,
.slide .image_post_container .description_above {
  width: min(100%, var(--holder-w, 100%));
  margin-right: auto;
  margin-left: auto;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}
.photo-details {
  width: -moz-fit-content;
  width: fit-content;
  overflow-wrap: anywhere;
  table-layout: auto;
}

.pd-value {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.photo-details {
  border-spacing: clamp(0.25em, 2vw, 2em) 0;
}
.pd-inner td,
.pd-pricing td,
.photo-details td {
  padding-right: clamp(0.5em, 3vw, 3em) !important;
}
@media (max-width: 800px) {
  .panel-details {
    align-items: stretch;
  }
  .photo-details {
    max-width: 100%;
    border-spacing: 0;
  }
  .photo-details,
  .photo-details tbody,
  .photo-details tr,
  .photo-details td {
    display: block;
  }
  .photo-details td {
    width: auto !important;
    margin: 0 0 1rem;
    padding-right: 0 !important;
  }
  .pd-inner {
    width: 100% !important;
    table-layout: auto;
  }
  .pd-value {
    white-space: normal !important;
  }
  .photo-details {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    border-spacing: 0;
  }
  .photo-details > tbody,
  .photo-details > tbody > tr {
    display: contents;
  }
  .photo-details > tbody > tr > td {
    flex: 1 1 100%;
    min-width: 0;
    padding-right: 0 !important;
  }
  .pd-inner,
  .pd-pricing {
    display: block;
    width: 100%;
    table-layout: auto;
  }
  .pd-value {
    white-space: normal;
  }
  .panel-details .photo-details,
  .panel-details .photo-details tbody,
  .panel-details .photo-details td,
  .panel-details .photo-details tr {
    display: block;
    width: 100%;
  }
  .panel-details .photo-details {
    border-spacing: 0;
  }
  .panel-details .photo-details td {
    padding-right: 0 !important;
  }
  .panel-details .pd-inner,
  .panel-details .pd-pricing {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
  }
}
@media (max-width: 800px) {
}
@media (max-width: 800px) {
}
.clickdescription_above.is-open,
.clickdescription_below.is-open {
  max-height: 1000vh;
}
.slide:has(.clickdescription_above.is-open),
.slide:has(.clickdescription_below.is-open) {
  max-height: none;
  overflow: visible;
}
.panel-details .pd-pricing,
.panel-details .pd-inner {
  width: 100%;
  table-layout: fixed;
}
.panel-details .pd-inner tr,
.panel-details .pd-pricing tr {
  display: table-row;
}
.panel-details .pd-inner td,
.panel-details .pd-pricing td {
  display: table-cell;
  min-width: 0;
  vertical-align: top;
}
.panel-details .pd-label,
.panel-details .pd-value {
  white-space: nowrap;
}
.slide.has-open-panel {
  max-height: none;
  overflow: visible;
}
.clickdescription_above,
.clickdescription_below {
  contain: paint;
}
.clickdescription_below .photo-details {
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
}
@media (min-width: 801px) {
  .clickdescription_below .panel-details {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }
  .clickdescription_below .photo-details {
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    border-spacing: clamp(0.25em, 1.5vw, 1em) 0;
  }
  .clickdescription_below .pd-form,
  .clickdescription_below .pd-inner,
  .clickdescription_below .pd-pricing {
    width: auto;
    table-layout: auto;
  }
}
.pd-terms,
.pd-terms * {
  min-width: 0;
  hyphens: auto;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}
@media (min-width: 801px) {
  .panel-details .pd-pricing .pd-terms,
  .panel-details .pd-pricing td.pd-terms {
    white-space: normal !important;
  }
}
.clickdescription_above,
.clickdescription_below {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--panel-dur) var(--panel-ease);
  will-change: max-height;
}
.clickdescription_above.is-open,
.clickdescription_below.is-open {
  max-height: var(--panel-target, 1000vh);
}
.post.has-right .image-holder {
  width: auto;
}
:root {
  --h1-weight: 400;
  --h2-weight: 300;
  --h3-weight: 300;
  --h1-line: 1.25;
  --h2-line: 1.25;
  --h3-line: 1.25;
  --h1-scale: 1.3;
  --h2-scale: 1.1;
  --h3-scale: 1.05;
  --heading-opacity: 0.9;
}

h2,
h3 {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  opacity: var(--heading-opacity, 1);
}
h2 {
  font-weight: var(--h2-weight);
  font-size: calc(1em * var(--h2-scale));
  line-height: var(--h2-line);
}
h3 {
  font-weight: var(--h3-weight);
  font-size: calc(1em * var(--h3-scale));
  line-height: var(--h3-line);
}

.post h2,
.post h3 {
  margin: 0 0 0.25em;
  padding: 0;
  font: inherit !important;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

.clickdescription_above h2,
.clickdescription_above h3,
.clickdescription_below h2,
.clickdescription_below h3,
.description_above h2,
.description_above h3,
.description_below h2,
.description_below h3,
.description_right h2,
.description_right h3,
.image_title h2,
.image_title h3 {
  margin: 0 0 0.25em;
  color: inherit !important;
  font-weight: max(400, var(--h1-weight));
  line-height: inherit;
  opacity: var(--heading-opacity, 1) !important;
}
.image_title {
  font-weight: max(400, var(--h1-weight));
}
b,
strong {
  font-weight: 400;
}







/* === Sidebar stack: consolidated & authoritative === */
/* One source of truth for timings & geometry (shared with #main) */

#nav {
  margin: 0;
  padding: 10px 10px 0;
  float: left;
  clear: both;
  background-color: inherit;
  color: inherit;
}
#nav ul {
  padding: 0 0 15px 10px;
}
#nav ul,
#nav li {
  display: block;
  margin: 0;
}
#nav li {
  position: relative;
  padding: 0;
  overflow: hidden;
  list-style: none;
}
#nav li.active a {
  border-bottom: 1px solid #666;
}
#nav li a {
  transition: all var(--nav-dur) var(--nav-ease);
}
#nav li .year {
  display: inline-block;
  width: 50px;
}

/* Inherit theme colors cleanly for sidebar and its links/buttons */
#orientToggleButton a,
#resolution a,
#share a,
#sidebar,
#sidebar a,
#sidebarPanel,
#sidebarPanel a,
#themeToggleButton a{
//  background: inherit;
  background-color: inherit;
  color: inherit;
}

/* Sidebar shell: fixed container; does not animate (panel inside does) */
#sidebar{
  position: fixed;
  z-index: 10;
  top: 0;
  left: var(--sb-left);                 /* unit corrected */
  width: var(--sb-width);
  height: var(--dvh100);
  overflow: hidden;
  transform: none !important;    /* shell never transforms */
  /* remove stray earlier transitions on the shell */
//  transition: none !important;
//  transform: translate(0,0) scale(1,1);  /* add */
  pointer-events: auto;                   /* add */
//  transition: background-color var(--sb-dur) var(--sb-ease); /* harmless, smooth */
  font-size: 14px;
  opacity: 0;                             /* add */
  background-color: var(--sb-bg);
  color: var(--sb-fg);
//  transition: opacity var(--sb-initial-dur) var(--sb-initial-ease); /* Fade-in duration */
  transition:
   opacity var(--sb-initial-dur) var(--sb-initial-ease),
    background-color var(--sb-transition-dur) var(--sb-transition-ease); /* Transition for fade and color */
}

.sidebar-visible {
    opacity: 1; /* Make the parent fully visible, which will apply to children */
}

/* The only thing that animates: the inner panel */
#sidebarPanel{
  opacity: 0;      
  width: var(--sb-width);
  top: 0;
  bottom: 0;
  z-index: 3000;
  left: var(--sb-left);          /* match the shell */
  width: var(--sb-width);
  position: fixed;
  box-sizing: border-box;        /* avoid box math drift */
//  inset: 0;
  transform-origin: bottom left;
  transform: translateY(0);      /* IMPORTANT: no X transform = no click offset */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform, opacity, left, top, bottom, width, height;
  transition:
    transform var(--sb-dur) var(--sb-ease),
    opacity   var(--sb-dur) var(--sb-ease),
    left      var(--sb-dur) var(--sb-ease),
    top       var(--sb-dur) var(--sb-ease),
    bottom    var(--sb-dur) var(--sb-ease),
    width     var(--sb-dur) var(--sb-ease),
    height    var(--sb-dur) var(--sb-ease),
    background-color var(--sb-dur) var(--sb-ease),
    color            var(--sb-dur) var(--sb-ease);
//  background: inherit !important;
  font-size: 14px;
//  background-color: var(--sb-bg);
  background-color: #ffffff;
  color: var(--sb-fg);
//  transition: opacity var(--sb-initial-dur) var(--sb-initial-ease); /* Fade-in duration */
  transition:
    opacity var(--sb-initial-dur) var(--sb-initial-ease),
    background-color var(--sb-initial-dur) var(--sb-initial-ease); /* Transition for fade and color */
}
body.theme-dark #sidebarPanel {
    background-color: #000000; /* Set for dark theme */
}
/* Keep the inside structure; pins control/copyright to the bottom */
#sidebarPanel .sidebar-top,
#sidebarPanel .sidebar-bottom{
  display: flex;
  flex-direction: column;
}
#sidebarPanel .sidebar-bottom{
  align-items: stretch;
  margin-top: auto;
  margin-bottom: 60px;
}	      
#nav,
#control,
#copyright,
.foreground{
  margin: 0;
  padding: 10px 10px 0 10px;
  float: left;
  clear: both;
  position: static !important;
  z-index: auto !important;
}
.sidebarPanel * {
    opacity: inherit; /* Make sure all children inherit the opacity */
}
/* Trigger fade-in by adding the .sidebar-visible class */
.sidebarPanel.sidebar-visible {
    opacity: 1; /* Make the parent fully visible, which will apply to children */
}
/* Open vs tucked states for the animating panel */
.sidebar-open  #sidebarPanel{
  transform: translate(0,0) scale(1,1);
  opacity: 1;
  pointer-events: auto;
}
.sidebar-tucked #sidebarPanel{
  transform: translate(var(--tuck-tx), var(--tuck-ty))
             scale(var(--tuck-scale-x), var(--tuck-scale-y));
  opacity: 0.8;
  pointer-events: none;  /* avoid clicks on the tiny stowed panel */
//  background: inherit;
}
.sidebar-tucked #sidebarPanel,
.sidebar-open   #sidebarPanel{
  background-color: var(--sb-bg);  /* ? stays interpolable */
  color: var(--sb-fg);
}

///* When tucked, park the shell as a small non-interactive target near the hamburger */
//.sidebar-tucked #sidebar{
//  top: auto;
//  bottom: var(--toggle-bottom);
//  left:   var(--toggle-left);
//  width:  var(--toggle-size);
//  height: var(--toggle-size);
//  border-radius: 8px;
//  background: inherit;
//  pointer-events: none;
//  transform: translate(0,0) scale(1,1);  /* size change comes from width/height */
//}

/* Hamburger: fixed & clickable above the shell; no transform tricks */
#navToggle{
  z-index: 4000;
  position: fixed;
  display: grid;
  place-items: center;
  gap: 0;
  background: transparent;
  color: var(--sb-fg);
  border: 0;
  cursor: pointer;
  bottom: var(--toggle-bottom);
  left:  var(--toggle-left);
  min-width: var(--toggle-size);
  height:    var(--toggle-size);
  pointer-events: auto;
  transform: none !important;
  transition: none !important;
  background-color: inherit;
  border: 1px solid currentColor;   /* matches hamburger color */
  border-radius: 8px;               /* same rounding as tucked sidebar */
  box-sizing: border-box;           /* keep inner size consistent */
}
/* Screen-reader only helper */
#navToggle .sr-only{
  position:absolute !important;
  width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;
}
/* Hamburger: three parallel bars that never morph */
#navToggle .hamburger{
  position: relative;
  width: 62%;
  height: 46%;
  display: block;
}
#navToggle .hamburger i{
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  display: block;
  transition: opacity var(--navtoggle-dur) var(--navtoggle-ease);
}
#navToggle .hamburger i:nth-child(1){ top: 12%; }
#navToggle .hamburger i:nth-child(2){ top: 50%; transform: translateY(-50%); }
#navToggle .hamburger i:nth-child(3){ bottom: 12%; }
/* Label: hidden by default, only shows when the toolbar is open */
#navToggle .label{
  position: absolute;
  left: 100%;
  margin-left: 8px;
  white-space: nowrap;
  font: inherit;
  color: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--navtoggle-dur) var(--navtoggle-ease);
  /* Optional: keep label from wrapping off-screen on small viewports */
  max-width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Show label when open */
.sidebar-open #navToggle .label{
  opacity: 1;
  pointer-events: auto;
}



/* Apply theme background explicitly */
body.theme-light #sidebar,
body.theme-light #sidebarPanel {
  background-color: var(--slide-bg-light);
  color: var(--slide-text-light);
  opacity: 1;
}









body.theme-dark #sidebar,
body.theme-dark #sidebarPanel {
  background-color: var(--slide-bg-dark);
  color: var(--slide-text-dark);
  opacity: 1;
}

#sidebarPanel a,
#sidebarPanel a:hover,
#sidebarPanel a:focus,
#sidebarPanel a:active { color: inherit; }

/* All link states follow the panel color */
#sidebarPanel a:link,
#sidebarPanel a:visited,
#sidebarPanel a:hover,
#sidebarPanel a:active,
#sidebarPanel a:focus,
#sidebarPanel li.active a {
  color: var(--sb-fg) !important;
  text-decoration: none; /* keep your current look; change if you want underline */
}

/* Optional: a softer active look without changing color */
#sidebarPanel li.active a { opacity: 0.85; }


//#sidebar, #sidebarPanel {
//    opacity: 0; /* Initially hidden */
//    transition: opacity var(--sb-initial-dur) var(--sb-initial-ease); /* Apply the fade-in duration */
//}


/* Theme colors only — no opacity here */
body.theme-light #sidebarPanel {
  background-color: var(--slide-bg-light);
  color: var(--slide-text-light);
}

body.theme-dark #sidebarPanel {
  background-color: var(--slide-bg-dark);
  color: var(--slide-text-dark);
}

/* Initial fade-in (class added by JS after 100ms) */
#sidebar, #sidebarPanel {
  opacity: 0;
  transition: opacity var(--sb-initial-dur) var(--sb-initial-ease);
}
.sidebar-visible { opacity: 1; }

/* Ensure panel animation is visible on tuck/untuck */
#sidebarPanel {
  transition:
    transform var(--sb-dur) var(--sb-ease),
    opacity   var(--sb-dur) var(--sb-ease),
    background-color var(--sb-dur) var(--sb-ease),
    color            var(--sb-dur) var(--sb-ease);
}

/* State-driven animation (now no longer overridden) */
.sidebar-open  #sidebarPanel { transform: translate(0,0) scale(1,1); opacity: 1; }
.sidebar-tucked #sidebarPanel {
  transform: translate(var(--tuck-tx), var(--tuck-ty))
             scale(var(--tuck-scale-x), var(--tuck-scale-y));
  opacity: 0.8;
  pointer-events: none;
}

/* If you really want children to follow the parent’s fade */
#sidebarPanel * { opacity: inherit; }



/* === Sidebar: nav-only scroll, fix foreground overlay, 5-line minimum === */

/* 1) Sidebar panel is a flex column; the panel itself doesn't scroll */
#sidebarPanel {
  display: flex;
  flex-direction: column;
  min-height: var(--dvh100);
  overflow: hidden;
}

/* 2) Inside the sidebar, cancel the global absolute .foreground overlay */
#sidebarPanel .foreground {
  position: static;     /* override global absolute */
  width: auto;
  height: auto;
  z-index: auto;
  flex: 0 0 auto;       /* header content sizes to its content */
  min-height: 0;
}

/* 3) Nav is the ONLY scroller, with a ~5 line minimum height */
:root { --nav-line: 1.3rem; }  /* adjust if your nav line-height differs */

#sidebarPanel .sidebar-top {
  display: flex;
  flex-direction: column;
  min-height: 0;        /* critical so #nav can actually shrink/scroll */
}

#sidebarPanel #nav {
  flex: 1 1 auto;
  min-height: calc(5 * var(--nav-line));
  min-height: max(calc(5 * var(--nav-line)), 0px); /* robust across engines */
  overflow-y: auto;                 /* nav-only scroll */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 6px;               /* keep text off scrollbar gutter */
}

/* 4) Progressive hide: icon first, then title, at tight heights */
@media (max-height: 860px) {
  .main-logo.logo-image { display: none; }
}
@media (max-height: 700px) {
  .main-title { display: none; }
}

@media (max-height: 640px) {
  #control {
    display: none;
  }
}
