@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);
/* LP5 */

:root{
  --sb-left: 7px;                 /* single source of truth */
  --sb-width: 185px;
}

: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 {
  /* Named transition curves for per-animation tuning. */
  /*   This controls the “feel” of slide, panel, nav, and image animations. */
  --curve-sfs: cubic-bezier(0.7,0,0.3,1);
  --curve-museum-calm: cubic-bezier(.22,.61,.36,1);
  --curve-cinematic-settle: cubic-bezier(.16,1,.3,1);
  --curve-architectural: cubic-bezier(.33,0,.2,1);

  --curve-sfs: cubic-bezier(.22,.61,.36,1);
  --curve-museum-calm: cubic-bezier(.22,.61,.36,1);
  --curve-cinematic-settle: cubic-bezier(.22,.61,.36,1);
  --curve-architectural: cubic-bezier(.22,.61,.36,1);

  /* Backward-compatible alias used by older timing variables. */
  --ease-sfs: var(--curve-sfs);

  /* Duration for panel expand/collapse (.clickdescription_* max-height transitions). */
  --panel-dur: 2199ms;
  /* Easing for panel expand/collapse. */
  --panel-ease: var(--curve-sfs);
  /* Duration for panel button state transitions (e.g. overlay / toggle button effects). */
  --panel-btn-dur: 2199ms;
  /* Easing for panel button transitions. */
  --panel-btn-ease: var(--curve-sfs);
  /* Duration for image holder/container resizing when panels open/close.
     Typically shorter than panel-dur so layout feels responsive. */
  --holder-dur: 2199ms;
  /* Easing for image holder resizing. */
  --holder-ease: var(--curve-sfs);
  /* Initial sidebar animation duration (first render / first state change). */
  --sb-initial-dur: 2199ms;
  /* Easing for initial sidebar animation. */
  --sb-initial-ease: var(--curve-sfs);
  /* General sidebar open/close animation duration after initial load. */
  --sb-dur: 2199ms; /* pick your final value */
  /* Easing for sidebar open/close transitions. */
  --sb-ease: var(--curve-sfs);
  /* Dedicated control for sidebar/menu collapse and untuck choreography. */
  --menu-collapse-dur: var(--sb-dur);
  --menu-collapse-ease: var(--sb-ease);
  /* Duration for sidebar transition property (layout shift of main content). */
  --sb-transition-dur: 2199ms;
  /* Easing for sidebar layout shift transitions. */
  --sb-transition-ease: var(--curve-sfs);
  /* Duration for slide-level theme/background transitions (color, etc.). */
  --slide-dur: 2199ms;
  /* Easing for slide theme/background transitions. */
  --slide-ease: var(--curve-sfs);
  /* Duration for image fade-in transitions when images load or swap. */
  --img-dur: 2199ms;
  /* Easing for image fade transitions. */
  --img-ease: var(--curve-museum-calm);
  /* Duration for placeholder fade-out before image is fully loaded.
     Often longer to avoid abrupt placeholder removal. */
  --img-placeholder-dur: 6000ms;
  /* Duration for navigation element transitions (next/prev controls, etc.). */
  --nav-dur: 2199ms;
  /* Easing for navigation transitions. */
  --nav-ease: var(--curve-sfs);
  /* Duration for nav toggle button animation (sidebar toggle control). */
  --navtoggle-dur: 2199ms;
  /* Easing for nav toggle button animation. */
  --navtoggle-ease: var(--curve-sfs);
  /* Reserved control for a future in-slide lower detail panel scale transition. */
  --detail-panel-scale-dur: var(--panel-dur);
  --detail-panel-scale-ease: var(--panel-ease);

  /* --------------------------------------------------------------------- */
  /* Slide + scroll timing variables (JS + CSS coordinated timing source) */
  /* These synchronize slide resize animations with scroll behavior.       */
  /* --------------------------------------------------------------------- */
  /* Duration of vertical slide resize (min-height / max-height transitions)
     when entering or exiting full-window mode. */
  --slide-resize-dur: 2199ms;
  /* Easing for slide vertical resize transitions. */
  --slide-resize-ease: var(--curve-sfs);
  /* Duration used by JS smooth-scroll when centering a slide on open.
     Should visually match slide-resize-dur for cohesive motion. */
  --scroll-center-duration: 2199ms;
  /* Easing for JS scroll-to-center and scroll pinning. */
  --scroll-center-ease: var(--curve-sfs);
  /* Default scroll-to-center duration used in lighter situations
     (e.g., small repositioning where full resize isn’t occurring). */
  --scroll-center-default-duration: 2199ms;
  /* Delay before follow-up scroll after panel begins opening.
     Allows layout to begin expanding before centering recalculates. */
  --scroll-follow-delay: 0ms;
  /* Safety timeout used by JS to guarantee cleanup after slide transitions
     (fallback if transitionend does not fire). Should be >= slide-resize-dur. */
  --slide-transition-safety-timeout: 2200ms;

  /* --------------------------------------------------------------------- */
  /* Minor in-slide micro-interactions (visual polish only)                */
  /* --------------------------------------------------------------------- */
  /* Duration for inline link color transitions. */
  --timing-link-color: 0.2s;
  /* Duration for marker (e.g., navigation dot) opacity changes. */
  --timing-marker-opacity: 0.3s;
  /* Duration for progress indicator fade transitions. */
  --timing-progress-opacity: 0.5s;
  /* Duration for progress bar width animations. */
  --timing-bar-width: 0.5s;
  /* Duration for .post opacity transitions inside slides. */
  --timing-post-opacity: 0.5s;
  /* Duration for next/prev hover opacity or subtle control transitions. */
  --timing-prevnext: 0.5s;

  --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);
  --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;
  /* 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 var(--timing-link-color);
}
//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 var(--timing-marker-opacity);
}
#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: 0px;
  background: url(img/lpLogoWhite.png) no-repeat center;
  background-size: contain;
  color: #fff;
}
body.theme-light .main-logo.logo-image {
  margin-left: 0px;
  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-y: scroll;
overflow-x: 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));
}
/* /* Optional snap behavior (toggle via JS by adding/removing #main.snap) */ */
/* #main.snap { */
/*   scroll-snap-type: y proximity; /* vertical default */ */
/* } */
/*  */
/* #main.horizontal.snap { */
/*   scroll-snap-type: x proximity; /* horizontal */ */
/* } */
/*  */
/* /* You already have scroll-snap-align:start on #main.horizontal .slide. */
/*    Ensure it applies in both orientations when snap is enabled. */ */
/* #main.snap .slide { */
/*   scroll-snap-align: start; */
/*   /* optional: stronger behavior (can feel "sticky") */ */
/*   /* scroll-snap-stop: always; */ */
/* } */
/*  */
/* #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); */
/* } */
/* #main:not(.horizontal) { */
/*   scroll-snap-type: none; */
/*   overflow-y: scroll;   /* should match your JS, but safe here */ */
/*   overflow-x: hidden; */
/* } */
/*  */
/* #main:not(.horizontal).snap .slide { */
/*   height: var(--dvh100); */
/*   max-height: var(--dvh100); */
/*   display: flex; */
/*   align-items: center; */
/*   justify-content: center; */
/*  */
/*   scroll-snap-align: start; */
/*   scroll-snap-stop: always; */
/* } */
/*  */
/* /* Actually center the post container (your flex props were inert) */ */
/* #main:not(.horizontal) .image_post_container { */
/*   display: flex; */
/*   flex-direction: column; */
/*   align-items: center; */
/*   justify-content: center; */
/* } */
    





/* Base vertical scrolling (no snap unless .snap is present) */
#main {
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: none;
}

/* Enable vertical snap when toggled on */
#main.snap {
  scroll-snap-type: y proximity;
}

/* When snap is enabled (either orientation), slides snap to start */
#main.snap .slide,
#main.horizontal .slide {
  scroll-snap-align: start;
}

/* Optional: make snap "stickier" only when toggled on */
#main.snap .slide {
  /* scroll-snap-stop: always; */ /* enable if you want the stronger feel */
}

/* ------------------------------------------------------------
   Horizontal mode (snap always on)
   ------------------------------------------------------------ */

#main.horizontal {
  display: flex;
  flex-direction: row;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x proximity; /* always on */
}

#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);
}

/* Optional: if you want stronger snapping in horizontal only when .snap is on */
#main.horizontal.snap {
  /* scroll-snap-type is already on; this only adds the stronger stop behavior */
}
#main.horizontal.snap .slide {
  /* scroll-snap-stop: always; */
}

/* ------------------------------------------------------------
   Common sizing (your existing behavior)
   ------------------------------------------------------------ */

#main.horizontal .slide,
#comments,
.slide {
  align-self: flex-start;
  height: auto;
  max-height: var(--dvh100);
}

/* If you want "full window" sizing in vertical ONLY when snap is enabled */
#main.snap:not(.horizontal) .slide {
  height: var(--dvh100);
  max-height: var(--dvh100);
  display: flex;
  align-items: center;
  justify-content: center;
  /* scroll-snap-stop: always; */ /* if desired */
}

/* Center the post container in vertical mode */
#main:not(.horizontal) .image_post_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Center content only when explicitly in full-window mode */
/* #main:not(.horizontal) .slide.slide-fullwindow { */
/*   display: flex; */
/*   align-items: center; */
/*   justify-content: center; */
/* } */
 
#main:not(.horizontal) .slide {
   /* transition: height 6000ms ease, max-height 6000ms ease; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
   transition: min-height var(--slide-resize-dur) var(--slide-resize-ease);
}
#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 var(--timing-progress-opacity) ease-in;
}
.progress.active {
  -moz-opacity: 1;
  -webkit-opacity: 1;
  opacity: 1;
}
.bar {
  height: 100%;
  transition: width var(--timing-bar-width) ease-in;
}
.bar,
a.internal {
  position: absolute;
  top: 0;
  left: 0;
}
.post {
  z-index: 5;
  font: var(--post-font);
  opacity: 1;
  transition: opacity var(--timing-progress-opacity) 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;
}

.next,
.prev {
  width: 50%;
  float: left;
}
.next a,
.prev a {
  display: block;
  min-height: 100px;
  font: var(--prev-next-a-font);
  transition: all var(--timing-prevnext);
}
.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 {
  color: inherit;
  text-decoration: none;
  position: relative;
}
.clickdescription_above a::after,
.clickdescription_below a::after,
.description_above a::after,
.description_below a::after,
.description_right a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 1px;
  background: currentColor;
  opacity: 0.30;
}
.clickdescription_above a:hover,
.clickdescription_below a:hover,
.description_above a:hover,
.description_below a:hover,
.description_right a:hover {
//  text-decoration: underline;
//  box-shadow: inset 0 -1px 0 currentColor;
//  text-decoration-thickness: 2px;
}
.clickdescription_above a:hover::after,
.clickdescription_below a:hover::after,
.description_above a:hover::after,
.description_below a:hover::after,
.description_right a:hover::after {
  opacity: 0.85;
}


.image_title {
  padding-bottom: 5px;
  font-weight: 400;
  text-align: center;
}
.image_title:empty {
  padding-bottom: 0;
  font-weight: 400;
}

.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: 1px solid rgba(0, 0, 0, 0.4);
  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: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  color: inherit;
  font: inherit;
  line-height: 1.2em;
  white-space: normal;
  word-break: break-word;
}
/* =========================
   3) global.css: formatting control ONLY for pricing tooltips opened
      from info-icon-pre
   - Default tooltip remains unchanged (white-space: normal)
   - Only when the pricing cell is marked data-tip-pre="1" do we honor newlines
   ========================= */

/* Leave your existing rule(s) alone, e.g.:
.pd-pricing-overlay .tooltip-replacement { white-space: normal; }
*/

/* Add this rule AFTER the existing tooltip-replacement rules so it overrides */
.pd-cell.pd-price[data-tip-pre="1"] .pd-pricing-overlay .tooltip-replacement{
  white-space: pre-line;
}

#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;
}


/* === DS Work Details tooltips (left pane) ===
   Keeps pricing tooltips on the right (.pd-price) and info tooltips on the left (.pd-tech).
   Requires JS to create a .pd-tech-overlay container inside .pd-cell.pd-tech.
*/
.pd-cell.pd-tech {
  position: relative;
}

/* Hide work-details content while a left tooltip is open */
.pd-cell.pd-tech[data-tip-open="1"] > :not(.pd-tech-overlay) {
  visibility: hidden;
}

/* Left-pane overlay container (mirrors pricing overlay behavior) */
.pd-tech-overlay {
  display: none;
  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;
}

/* Show left overlay only when open */
.pd-cell.pd-tech[data-tip-open="1"] .pd-tech-overlay {
  display: block;
}

/* Tooltip text box formatting (reuses existing .tooltip-replacement styles) */
.pd-tech-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-open-panel {
  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;
}








/* === Sidebar stack: consolidated & authoritative === */
/* One source of truth for timings & geometry (shared with #main) */

#nav {
  margin: 0;
  padding: 0px 10px 0;
  float: left;
  clear: both;
  background-color: inherit;
  color: inherit;
}
#nav ul {
  padding: 0 0 15px 15px;
}
#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(--menu-collapse-dur) var(--menu-collapse-ease),
    opacity   var(--menu-collapse-dur) var(--menu-collapse-ease),
    left      var(--menu-collapse-dur) var(--menu-collapse-ease),
    top       var(--menu-collapse-dur) var(--menu-collapse-ease),
    bottom    var(--menu-collapse-dur) var(--menu-collapse-ease),
    width     var(--menu-collapse-dur) var(--menu-collapse-ease),
    height    var(--menu-collapse-dur) var(--menu-collapse-ease),
    background-color var(--menu-collapse-dur) var(--menu-collapse-ease),
    color            var(--menu-collapse-dur) var(--menu-collapse-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: 0;
  margin-bottom: 60px;
}	      
#nav,
#control,
#copyright,
.foreground{
  margin: 0;
  padding: 0px 0px 0 5px;
  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(--menu-collapse-dur) var(--menu-collapse-ease),
    opacity   var(--menu-collapse-dur) var(--menu-collapse-ease),
    background-color var(--menu-collapse-dur) var(--menu-collapse-ease),
    color            var(--menu-collapse-dur) var(--menu-collapse-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;
  container-type: size;
  container-name: sidebar;
}

/* 2) Inside the sidebar, cancel the global absolute .foreground overlay */
#sidebarPanel .foreground {
  position: static;     /* override global absolute */
  width: auto;
  height: auto;
  z-index: auto;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: clamp(0.2rem, 1.2cqh, 0.8rem);
}

/* 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,
#sidebarPanel .sidebar-bottom {
  min-height: 0;
}

#sidebarPanel .sidebar-top {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;        /* critical so #nav can actually shrink/scroll */
}

#sidebarPanel .sidebar-bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-height: 0;
}

#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: 0px;               /* keep text off scrollbar gutter */
}

#sidebarPanel .logo-link,
#sidebarPanel .main-title,
#sidebarPanel #control {
  min-height: 0;
}

#sidebarPanel .logo-link {
  flex: 0 1 120px;
  min-height: 72px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sidebarPanel .main-logo {
  width: 100%;
  height: 100%;
  max-width: 120px;
  max-height: 120px;
}

#sidebarPanel .main-title {
  flex: 0 0 auto;
  overflow: hidden;
  font-size: 22px;
  line-height: 24px;
}

#sidebarPanel #control {
  flex: 0 0 auto;
  overflow: hidden;
  font-size: 14px;
  line-height: 28px;
}

/* 4) Progressive hide: icon first, then title, then controls, only after shrink */
@container sidebar (max-height: 50rem) {
  #sidebarPanel .logo-link {
    flex-basis: clamp(72px, 10cqh, 120px);
  }
}
@container sidebar (max-height: 42rem) {
  #sidebarPanel .logo-link {
    display: none;
  }
}
@container sidebar (max-height: 34rem) {
  #sidebarPanel .main-title {
    display: none;
  }
}

@container sidebar (max-height: 28rem) {
  #sidebarPanel #control {
    display: none;
  }
}


.v-space { display: block !important; height: var(--vspace, 2em) !important; }

/* Divider wrapper controls spacing */
.section-divider {
  padding: 3rem 0;        /* vertical whitespace */
  width: 100%;
  box-sizing: border-box;
}

/* The line itself */
.section-divider > hr {
  border: 0;
  border-top: 1px solid currentColor;
  width: 75%;             /* controllable width */
  margin: 0 auto;         /* center horizontally */
  opacity: 0.25;
}

.section-divider.before-lg { padding-top: 4rem; padding-bottom: 2rem; }
.section-divider.after-lg  { padding-top: 2rem; padding-bottom: 4rem; }
/* center the logo block itself */
.logo-link {
  display: block;
  width: 100%;
  text-align: center;
}

.main-logo {
  display: inline-block;
  width: 120px;
  height: 120px;

  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}




b,
strong {
  font-weight: 400;
}

:root {
  /* Global heading tuning */
  --heading-opacity: 0.9;

  --h1-weight: 400;
  --h2-weight: 400;
  --h3-weight: 400;

  --h1-line: 1.25;
  --h2-line: 1.25;
  --h3-line: 1.25;

  /* Scales are multipliers of the surrounding text size */
  --h1-scale: 1.45;
  --h2-scale: 1.3;
  --h3-scale: 1.05;
}

/* Base heading reset: inherit normal text look, only apply shared heading behavior */
h1, h2, h3 {
  margin: 0 0 0.25em;
  color: inherit;
  font-family: inherit;
  font-style: inherit;
  font-variant: inherit;
  letter-spacing: inherit;
  margin-block-end: 0em;
  opacity: var(--heading-opacity, 1);
}

/* Per-level sizing/weight */
h1 {
  font-weight: var(--h1-weight);
  font-size: calc(1em * var(--h1-scale));
  line-height: var(--h1-line);
}

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);
}

/* Image title should look like h2, regardless of tag used */
.image_title,
.image_title,
.image_title {
  font-weight: var(--h2-weight);
  font-size: calc(1em * var(--h2-scale));
  line-height: var(--h2-line);
  opacity: var(--heading-opacity, 1);
}
.image_title,
.image_title,
.image_title {
  font-family: var(--font-secondary), var(--font-fallback);
}
/* generalize text align center class */
.text-center { text-align: center; }

.tight-heading {
  margin-bottom: 0;
}
.tight-heading + .tagline {
  margin-top: 0.25rem;   /* fine control */
}
p {
  margin-block-start: 0.5em;
}

























/* --- Fix: keep the action/button cell left-aligned even if column positions shift --- */
.pd-pricing td.pd-buy {
  text-align: left !important;
}

/* Optional safety net: if pd-buy class is missing for any reason, keep last column left */
.pd-pricing td:last-child {
  text-align: left;
}


/* General inquiry button: same size/shape as primary, calmer outline */
/* .btn-inquiry-outline { */
/*   background: transparent !important; */
/*   border: 1px solid rgba(255,255,255,0.40) !important; */
/* } */

/* Keep text consistent with theme */
/* .btn-inquiry-outline { */
/*   color: inherit !important; */
/* } */

/* Optional: slightly stronger on hover/focus */
/* .btn-inquiry-outline:hover, */
/* .btn-inquiry-outline:focus { */
/*   border-color: rgba(255,255,255,0.60) !important; */
/* } */
.pd-pricing td.pd-geninq { text-align: left; }




/* click-below panel: keep compact instead of filling available width */
.clickdescription_below .panel-details{
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.clickdescription_below .photo-details{
  width: fit-content;
  max-width: 100%;
  table-layout: auto;
  border-spacing: clamp(0.25em, 1.5vw, 1em) 0;
}

.clickdescription_below .pd-inner,
.clickdescription_below .pd-pricing{
  width: auto;
  table-layout: auto;
}

.clickdescription_below .pd-inner td,
.clickdescription_below .pd-pricing td,
.clickdescription_below .photo-details td{
  width: auto;
}

.clickdescription_below .pd-label{
  white-space: nowrap;
}

.clickdescription_below .pd-value,
.clickdescription_below .pd-terms{
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}


.clickdescription_below .photo-details{
  border-spacing: 0.4em 0;
}

.clickdescription_below .pd-inner td,
.clickdescription_below .pd-pricing td,
.clickdescription_below .photo-details td{
  padding-right: 0.75em !important;
}


.clickdescription_below .panel-details,
.clickdescription_below .pd-inner,
.clickdescription_below .pd-pricing{
  width: auto;
}

.clickdescription_below .pd-inner,
.clickdescription_below .pd-pricing{
  table-layout: auto;
}



.panel-details .pd-pricing .btn-primary{
  line-height: 1.1;
  border-width: 1px;
}
 



//.clickdescription_below .pd-inner:not(.pd-pricing){
//  border-right: 1px solid currentColor;
//   padding-right: 0.6em;
//}
//
//.clickdescription_below .pd-pricing{
//  padding-left: 0.6em;
//}


.clickdescription_below .pd-inner:not(.pd-pricing){
  position: relative;
}

.clickdescription_below .pd-inner:not(.pd-pricing)::after{
  content: "";
  position: absolute;
  top: 0.25em;
  bottom: 0.25em;
  right: 0;
  width: 1px;
  background: currentColor;
  opacity: 0.3;
  pointer-events: none;
}


.clickdescription_below .panel-details{
  position: relative;
  padding: 0.35em 0.6em;
}

.clickdescription_below .panel-details::before{
  content: "";
  position: absolute;
  inset: 0;
//  border: 1px solid currentColor;
  opacity: 0.22;
  pointer-events: none;
}


.pd-pricing td.pd-geninq{
  text-align: left;
  padding-right: 0 !important;
}

.pd-pricing td.pd-geninq .btn-primary{
  display: inline-block;
}








.panel-details .pd-pricing .btn-primary{
  position: relative;
  border: none;
}

.panel-details .pd-pricing .btn-primary::after{
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid currentColor;
  opacity: 0.45;
  border-radius: inherit;
  pointer-events: none;
}






//.clickdescription_below{
//  display: flex;
//  justify-content: flex-end;   /* center | flex-start | flex-end */
//}


//.slide {
//  box-shadow: inset 0 0 0 2px red;
//}


//.clickdescription_below{
//  height: 0px;
//}


/* ==========================================================
POST TEXT WIDTH / LAYOUT OPTIONS (opt-in)

Default behavior
----------------
If no data-textlayout attribute is present, text behaves exactly
as before:
  - width follows the image holder (--holder-w)
  - block is centered
  - text inside remains left aligned

Layout modes (data-textlayout)
-------------------------------
holder-center   width follows image holder, block centered
holder-left     width follows image holder, block flush left

readable-center width constrained to readable column (~72ch),
                block centered
readable-left   readable column (~72ch), block flush left

fixed-center    width set via data-textwidth, block centered
fixed-left      width set via data-textwidth, block flush left

data-textwidth
--------------
Used only with fixed-* layouts. Examples:
  data-textwidth="60ch"
  data-textwidth="840px"
  data-textwidth="65vw"

Applies to
----------
.image_title
.clickdescription_above / .description_above
.clickdescription_below / .description_below

Text always remains left-aligned; only the block width and
page placement change.
========================================================== */

/* === Optional per-post text layout presets (opt-in only) === */
.image_post_container.tl-holder-center {
  --post-text-block-w: var(--holder-w, 100%);
  --post-text-block-ml: auto;
  --post-text-block-mr: auto;
}

.image_post_container.tl-holder-left {
  --post-text-block-w: var(--holder-w, 100%);
  --post-text-block-ml: 0;
  --post-text-block-mr: auto;
}

.image_post_container.tl-readable-center {
  --post-text-block-w: var(--post-readable-width, 72ch);
  --post-text-block-ml: auto;
  --post-text-block-mr: auto;
}

.image_post_container.tl-readable-left {
  --post-text-block-w: var(--post-readable-width, 72ch);
  --post-text-block-ml: 0;
  --post-text-block-mr: auto;
}

.image_post_container.tl-fixed-center {
  --post-text-block-w: var(--post-textwidth, var(--post-readable-width, 72ch));
  --post-text-block-ml: auto;
  --post-text-block-mr: auto;
}

.image_post_container.tl-fixed-left {
  --post-text-block-w: var(--post-textwidth, var(--post-readable-width, 72ch));
  --post-text-block-ml: 0;
  --post-text-block-mr: auto;
}


.image_post_container.has-textlayout .clickdescription_above,
.image_post_container.has-textlayout .description_above,
.image_post_container.has-textlayout .description_below {
  width: min(100%, var(--post-text-block-w, var(--holder-w, 100%)));
  max-width: min(100%, var(--post-text-block-w, var(--holder-w, 100%)));
  margin-left: var(--post-text-block-ml, auto);
  margin-right: var(--post-text-block-mr, auto);
  text-align: left;
}


/* === Optional per-post text overflow expansion (opt-in only) === */
.slide.textoverflow-expand {
  max-height: none;
  overflow: visible;
  justify-content: flex-start;
}

#main:not(.horizontal) .slide.textoverflow-expand {
  height: auto;
  min-height: var(--dvh100);
  max-height: none;
  align-items: stretch;
  justify-content: flex-start;
}

#main.snap:not(.horizontal) .slide.textoverflow-expand {
  height: auto;
  min-height: var(--dvh100);
  max-height: none;
  align-items: stretch;
  justify-content: flex-start;
}

.slide.textoverflow-expand .image_post_container {
  max-height: none;
  overflow: visible;
  justify-content: flex-start;
}

.em-light {
  font-size: 1.35em;
  line-height: 1.35;
  max-width: 40em;
}


/* === General inquiry page form ========================================= */
.description_below .pd-generalinquiry-shell {
  width: min(100%, 48rem);
  margin: 0 auto;
}

.description_below .pd-generalinquiry-form {
  display: block;
}

.description_below .pd-generalinquiry-form .pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.description_below .pd-generalinquiry-form textarea[name="notes"] {
  display: block;
  width: 100%;
  margin-top: 3px;
  resize: vertical;
}

.description_below .pd-generalinquiry-form .pd-actions {
  justify-content: flex-start;
}

@media (max-width: 800px) {
  .description_below .pd-generalinquiry-form .pd-grid {
    grid-template-columns: 1fr;
  }
}


.pd-form-shell .pd-head {
  margin-bottom: 0.5rem;
  font-weight: 400;
  text-transform: none;
}

.pd-form-shell .pd-label {
  font-weight: 400;
}

.pd-form-shell .pd-grid-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.pd-form-shell .pd-grid-single + .pd-grid-single,
.pd-form-shell .pd-grid-single + .pd-size-input,
.pd-form-shell .pd-size-input + .pd-grid-single,
.pd-form-shell .pd-grid-single + .pd-status {
  margin-top: 0.35rem;
}



.pd-form-shell .pd-head {
  margin-bottom: 0.35rem;
  font-weight: 400;
  font-size: inherit;
  text-transform: none;
}

.pd-form-shell .pd-label {
  font-weight: 400;
}

.pd-form-shell .pd-grid-single {
  display: block;
  width: 100%;
}

.pd-form-shell .pd-grid-single + .pd-grid-single,
.pd-form-shell .pd-grid-single + .pd-size-input,
.pd-form-shell .pd-size-input + .pd-grid-single,
.pd-form-shell .pd-grid-single + .pd-status,
.pd-form-shell .pd-size-input + .pd-status {
  margin-top: 0.35rem;
}

.pd-form-shell input,
.pd-form-shell select,
.pd-form-shell textarea,
.pd-form-shell .pd-size-input {
  box-sizing: border-box;
  width: 100%;
  display: block;
}


.pd-form-shell .pd-col-right .pd-grid.pd-grid-single {
  display: block;
  grid-template-columns: none;
  width: 100%;
}

.pd-form-shell .pd-col-right .pd-grid.pd-grid-single > input,
.pd-form-shell .pd-col-right .pd-grid.pd-grid-single > textarea,
.pd-form-shell .pd-col-right .pd-grid.pd-grid-single > select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
}




