@media(min-width:761px){
/* Prevent oversized uninitialized or undecoded first frames. Reserve the stage,
   reveal the photograph only once the final carousel geometry is applied. */
body:not(.home) article[data-gallery-layout="carousel"] .entry-content .dp-series>figure img,
body:not(.home) article[data-gallery-layout="carousel"] .entry-content .dp-series>figure video{
  visibility:hidden!important;
}
body:not(.home) article[data-gallery-layout="carousel"].dz-carousel-ready .entry-content .dp-series>figure.is-active img,
body:not(.home) article[data-gallery-layout="carousel"].dz-carousel-ready .entry-content .dp-series>figure.is-active video{
  visibility:visible!important;
}
/* Reserve the final landscape-shaped stage before JS/image load.
   Identical aspect ratio for every slide prevents layout shift. */
body:not(.home) article[data-gallery-layout="carousel"] .entry-content .dp-series,
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"],
body:not(.home) article.post-1753.dz-carousel-redesign .project-layout.project-layout-below .dz-gallery[data-dz-v2="yes"]{
  aspect-ratio:2000/1335!important;
  height:auto!important;
  min-height:0!important;
}
@media(max-width:760px){
 body:not(.home) article[data-gallery-layout="carousel"] .entry-content .dp-series,
 body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"]{
  aspect-ratio:2000/1335!important;height:auto!important;
 }
}
/* Only the redesigned caption row is permitted on project carousels.
   Legacy counters sometimes remain visible in Firefox due to older CSS. */
body:not(.home) article[data-gallery-layout="carousel"] .carousel-count,
body:not(.home) article[data-gallery-layout="carousel"] .carousel-legend,
body:not(.home) article[data-gallery-layout="carousel"] .dz-carousel-caption-row,
body:not(.home) article[data-gallery-layout="carousel"] .entry-content>.carousel-count,
body:not(.home) article[data-gallery-layout="carousel"] .entry-content>.carousel-legend {
  display:none!important;visibility:hidden!important;
}
/* Browser-consistent gallery surface: never show inherited black frame. */
body:not(.home) article[data-gallery-layout="carousel"] .entry-content .dp-series,
body:not(.home) article[data-gallery-layout="carousel"] .entry-content .dp-series>figure,
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"],
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"]>figure,
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"]>figure>a{
  background:#181818!important;background-color:#181818!important;
}
/* Gigi Lou only: slightly smaller photos, same photo/caption/description alignment. */
@media(min-width:761px){
 body:not(.home) article.post-1753.dz-carousel-redesign .project-layout.project-layout-below>.entry-content{
  width:70%!important;max-width:895px!important;
 }
}
@media(max-width:760px){
 body:not(.home) article.post-1753.dz-carousel-redesign .project-layout.project-layout-below>.entry-content{
  width:calc((100% - 56px) * .85)!important;
 }
}
/* Prevent first-paint image flash before carousel JavaScript initializes.
   Scope to portfolio carousel pages only; other gallery modes remain unchanged. */
body:not(.home) article[data-gallery-layout="carousel"] .project-layout>.entry-content{
  width:76.5%!important;max-width:977.5px!important;margin-inline:auto!important;
}
/* Gigi Lou must have its FINAL width before JS adds dz-carousel-redesign. */
body:not(.home) article.post-1753[data-gallery-layout="carousel"] .project-layout.project-layout-below>.entry-content,
body:not(.home) article.post-1753.dz-carousel-redesign .project-layout.project-layout-below>.entry-content{
  width:70%!important;max-width:895px!important;
}
body:not(.home) article[data-gallery-layout="carousel"] .entry-content .dp-series{
  width:100%!important;max-width:100%!important;min-height:0!important;
  height:auto!important;overflow:hidden!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
body:not(.home) article[data-gallery-layout="carousel"] .entry-content .dp-series>figure{
  display:none!important;
}
body:not(.home) article[data-gallery-layout="carousel"] .entry-content .dp-series>figure:first-of-type{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;max-height:100%!important;
}
body:not(.home) article[data-gallery-layout="carousel"] .entry-content .dp-series>figure:first-of-type img{
  display:block!important;width:auto!important;height:auto!important;
  max-width:100%!important;max-height:100%!important;object-fit:contain!important;
}
body:not(.home) article.dz-carousel-redesign .entry-content .dp-series[data-dz-v2="yes"]{
  overflow:visible!important;
}
body:not(.home) article.dz-carousel-redesign .entry-content .dp-series[data-dz-v2="yes"]>figure:first-of-type:not(.is-active){
  display:none!important;
}
@media(max-width:760px){
  body:not(.home) article[data-gallery-layout="carousel"] .project-layout>.entry-content{
    width:calc((100% - 56px) * .85)!important;
  }
}
/* Portfolio text-position choices — Kalium-like side layouts, Dave Zehnder palette. */
@media(min-width:1001px){
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-side,
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-left{
   display:grid!important;align-items:center!important;
   grid-template-columns:minmax(0,2fr) minmax(230px,1fr)!important;
   column-gap:clamp(24px,3vw,54px)!important;
   width:min(96%,1500px)!important;max-width:1500px!important;margin-inline:auto!important;
 }
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-left{
   grid-template-columns:minmax(230px,1fr) minmax(0,2fr)!important;
 }
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-side>.entry-content,
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-left>.entry-content{
   order:initial!important;width:100%!important;max-width:none!important;min-width:0!important;
   grid-row:1!important;
 }
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-side>.entry-content{grid-column:1!important}
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-left>.entry-content{grid-column:2!important}
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-side>.project-description,
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-left>.project-description{
   order:initial!important;grid-row:1!important;align-self:center!important;
   width:100%!important;max-width:100%!important;margin:0!important;
   padding:clamp(18px,2vw,30px)!important;
 }
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-side>.project-description{grid-column:2!important}
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-left>.project-description{grid-column:1!important}
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-side .dz-gallery[data-dz-v2="yes"],
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-left .dz-gallery[data-dz-v2="yes"]{
   height:auto!important;
 }
}
@media(max-width:1000px){
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-side,
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-left{
   display:flex!important;flex-direction:column!important;align-items:center!important;
 }
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-side>.entry-content,
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-left>.entry-content{
   order:0!important;width:90%!important;max-width:977px!important;margin-inline:auto!important;
 }
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-side>.project-description,
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-left>.project-description{
   order:1!important;width:90%!important;max-width:977px!important;margin:32px auto 0!important;
 }
}
@media(max-width:760px){
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-side>.entry-content,
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-left>.entry-content,
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-side>.project-description,
 body:not(.home) article.dz-carousel-redesign .project-layout.project-layout-left>.project-description{
   width:calc((100% - 56px) * .85)!important;
 }
}

/* Dave Zehnder — project carousel, canonical component.
   Homepage slideshow and masonry/lightbox intentionally untouched. */
body:not(.home) article.dz-carousel-redesign .project-layout{
  display:flex!important;flex-direction:column!important;align-items:center!important;gap:0!important;
  width:100%!important;max-width:none!important;
}
body:not(.home) article.dz-carousel-redesign .project-layout>.entry-content{
  order:0!important;flex:none!important;min-width:0!important;
  width:76.5%!important;max-width:977.5px!important;margin:0 auto!important;
}
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"]{
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:relative!important;box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;
  height:auto!important;min-height:0!important;
  margin:0 auto!important;padding:0!important;
  overflow:visible!important;background:#181818!important;
}
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"]>figure{
  display:none!important;visibility:hidden!important;opacity:0!important;
  margin:0!important;padding:0!important;position:relative!important;
  background:transparent!important;
}
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"]>figure.is-active{
  display:flex!important;visibility:visible!important;opacity:1!important;
  align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;max-height:100%!important;
}
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"]>figure.is-active>a{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;background:transparent!important;
}
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"]>figure.is-active img{
  display:block!important;visibility:visible!important;opacity:1!important;
  width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;
  min-width:0!important;min-height:0!important;object-fit:contain!important;
  margin:auto!important;padding:0!important;box-shadow:none!important;cursor:pointer!important;
}
body:not(.home) article.dz-carousel-redesign .dz-gallery[data-dz-v2="yes"] figcaption{display:none!important}
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"] .dz-v2-arrow{
  display:grid!important;place-items:center!important;position:absolute!important;
  top:50%!important;transform:translateY(-50%)!important;
  width:40px!important;height:52px!important;padding:0!important;
  border:0!important;background:transparent!important;color:#FFF8CC!important;
  font-size:0!important;z-index:6!important;cursor:pointer!important;
}
body:not(.home) article.dz-carousel-redesign .dz-v2-arrow::before{
  content:""!important;display:block!important;width:17px!important;height:17px!important;
  border-top:2px solid currentColor!important;border-right:2px solid currentColor!important;
  background:none!important;mask:none!important;-webkit-mask:none!important;
}
/* Fixed carousel navigation positions for both portrait and landscape photos. */
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"] .dz-v2-prev,
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"].dz-landscape-active .dz-v2-prev{
  left:12px!important;right:auto!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;
}
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"] .dz-v2-next,
body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"].dz-landscape-active .dz-v2-next{
  right:12px!important;left:auto!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;
}
body:not(.home) article.dz-carousel-redesign .dz-v2-prev::before{transform:rotate(-135deg)!important}
body:not(.home) article.dz-carousel-redesign .dz-v2-next::before{transform:rotate(45deg)!important}
body:not(.home) article.dz-carousel-redesign .entry-content .dz-v2-meta{
  display:flex!important;align-items:baseline!important;justify-content:space-between!important;
  position:static!important;box-sizing:border-box!important;gap:16px!important;
  width:100%!important;max-width:100%!important;
  margin:24px auto 0!important;padding:0!important;
  background:transparent!important;color:#FFF8CC!important;
  font-size:11px!important;line-height:1.45!important;
}
body:not(.home) article.dz-carousel-redesign .dz-v2-title{color:#FFF8CC!important;text-align:left!important}
body:not(.home) article.dz-carousel-redesign .dz-v2-counter{
  margin-left:auto!important;color:#FFF8CC!important;text-align:right!important;white-space:nowrap!important;
}
/* Hide any orphan legacy UI only in the rebuilt carousel. */
body:not(.home) article.dz-carousel-redesign .entry-content>.carousel-legend,
body:not(.home) article.dz-carousel-redesign .entry-content>.dz-carousel-caption-row,
body:not(.home) article.dz-carousel-redesign .dz-gallery .carousel-button,
body:not(.home) article.dz-carousel-redesign .dz-gallery .carousel-count{display:none!important}
body:not(.home) article.dz-carousel-redesign .project-layout>.project-description,
body:not(.home) article.dz-carousel-redesign .project-layout>.project-description[style]{
  order:1!important;align-self:center!important;position:static!important;
  box-sizing:border-box!important;width:76.5%!important;max-width:977.5px!important;
  margin:43px auto 0!important;padding:clamp(18px,2.5vw,30px)!important;
  background:#FFF8CC!important;color:#111!important;text-align:left!important;
  overflow-wrap:anywhere!important;
}
body:not(.home) article.dz-carousel-redesign .project-layout>.project-description *,
body:not(.home) article.dz-carousel-redesign .project-layout>.project-description[style] *{
  text-align:left!important;color:#111!important;
}
@media(max-width:760px){
  body:not(.home) article.dz-carousel-redesign .project-layout>.entry-content,
  body:not(.home) article.dz-carousel-redesign .project-layout>.project-description{
    width:calc((100% - 56px) * .85)!important;
  }
  body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"] .dz-v2-prev{left:-20px!important}
  body:not(.home) article.dz-carousel-redesign .entry-content .dz-gallery[data-dz-v2="yes"] .dz-v2-next{right:-20px!important}
}



/* Shared, selectable text-right layout for single image and carousel.
   More specific than legacy carousel's forced vertical layout. */
@media(min-width:1001px){
 body:not(.home) article[data-gallery-layout="carousel"].dz-carousel-redesign .project-layout.project-layout-side{
  display:grid!important;grid-template-columns:minmax(0,2fr) minmax(230px,1fr)!important;
  align-items:stretch!important;column-gap:clamp(24px,3vw,54px)!important;
  width:min(96%,1500px)!important;max-width:1500px!important;margin-inline:auto!important;
 }
 body:not(.home) article[data-gallery-layout="carousel"].dz-carousel-redesign .project-layout.project-layout-side>.entry-content{
  order:initial!important;grid-column:1!important;grid-row:1!important;
  width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
 }
 body:not(.home) article[data-gallery-layout="carousel"].dz-carousel-redesign .project-layout.project-layout-side>.project-description{
  order:initial!important;grid-column:2!important;grid-row:1!important;
  position:static!important;align-self:stretch!important;
  width:100%!important;max-width:none!important;margin:0!important;
 }
 article[data-gallery-layout="single"] .project-layout.project-layout-side{
  display:grid!important;grid-template-columns:minmax(0,2fr) minmax(230px,1fr)!important;
  column-gap:clamp(12px,1.5vw,27px)!important;row-gap:0!important;align-items:start!important;
 }
 article[data-gallery-layout="single"] .project-layout.project-layout-side>.entry-content{
  grid-column:1!important;grid-row:1!important;min-width:0!important;
 }
 article[data-gallery-layout="single"] .project-layout.project-layout-side>.project-description{
  grid-column:2!important;grid-row:1!important;box-sizing:border-box!important;
  align-self:start!important;height:var(--dz-single-image-height,auto)!important;
  max-height:var(--dz-single-image-height,none)!important;
  min-height:0!important;margin:0!important;min-width:0!important;
  overflow:auto!important;
 }
}

}
@media(max-width:760px){
body:not(.home):not(.front-page) article[data-gallery-layout] .entry-content :is(article[data-gallery-layout="carousel"] .dp-series,.dz-gallery[data-mode="masonry"]:not(.dz-single-gallery),.dz-gallery[data-dz-v2="yes"]){display:block!important;columns:auto!important;column-count:1!important;aspect-ratio:auto!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;overflow:visible!important;scroll-snap-type:none!important;background:transparent!important;}
body:not(.home):not(.front-page) article[data-gallery-layout] .entry-content :is(article[data-gallery-layout="carousel"] .dp-series,.dz-gallery[data-mode="masonry"]:not(.dz-single-gallery),.dz-gallery[data-dz-v2="yes"])>figure{display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0 0 12px!important;background:transparent!important;}
body:not(.home):not(.front-page) article[data-gallery-layout] .entry-content :is(article[data-gallery-layout="carousel"] .dp-series,.dz-gallery[data-mode="masonry"]:not(.dz-single-gallery),.dz-gallery[data-dz-v2="yes"])>figure img{display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;height:auto!important;max-height:none!important;touch-action:manipulation;}
body:not(.home):not(.front-page) article[data-gallery-layout] .entry-content :is(article[data-gallery-layout="carousel"] .dp-series,.dz-gallery[data-mode="masonry"]:not(.dz-single-gallery),.dz-gallery[data-dz-v2="yes"])>figure>a{display:block!important;height:auto!important;background:transparent!important;touch-action:manipulation;}
body:not(.home):not(.front-page) article[data-gallery-layout="carousel"] .entry-content :is(.dp-series,.dz-gallery[data-dz-v2="yes"])>figure :is(video,iframe){height:auto!important;}
body:not(.home):not(.front-page) article[data-gallery-layout="carousel"] .entry-content :is(.dp-series,.dz-gallery[data-dz-v2="yes"])>figure>figcaption:not(:empty){display:block!important;}
body:not(.home):not(.front-page) article[data-gallery-layout="carousel"] .project-layout>.entry-content{width:100%!important;max-width:none!important;min-width:0!important;}
body:not(.home):not(.front-page) article[data-gallery-layout="carousel"] .dz-v2-arrow,body:not(.home):not(.front-page) article[data-gallery-layout="carousel"] .dz-v2-meta{display:none!important;}
}

