/* 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;
 }
 body:not(.home) article.post-1753.dz-carousel-redesign .project-layout.project-layout-below .dz-gallery[data-dz-v2="yes"]{
  height:min(70vh,720px)!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;
}
body:not(.home) article[data-gallery-layout="carousel"] .entry-content .dp-series{
  width:100%!important;max-width:100%!important;min-height:0!important;
  height:min(77vh,790px)!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;
  }
  body:not(.home) article[data-gallery-layout="carousel"] .entry-content .dp-series{
    height:66svh!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:min(65vh,680px)!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:min(77vh,790px)!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"]{
    height:66svh!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}
}
