/* Story keeps its original photo fitting, image windows and source assets. */
body:has(.story-refined),body #page .story-refined,
body #page .story-refined > .entry-content,
body #page .story-refined :is(#our-story-heading,#story-cactus-today,#story-story,.story-slideshow,.slider-counter,#cactus-classic-one) { background:var(--cactus-content-background,#302e2b) !important; }
body #page main.story-refined { padding-top:110px; }
body #page .story-refined #our-story-heading.cst-content-columns { padding:0 0 var(--story-history-lower-gap,25px); }
body #page .story-refined #our-story-heading.cst-content-columns .columns-container .column h2 {
 font:400 clamp(26px,2.2vw,36px)/1.25 'ivymode',sans-serif; color:#fff;
 text-transform:none; letter-spacing:0; text-align:center; margin:0;
}
body #page .story-refined #story-cactus-today.cst-content-columns { padding:11.4px 0 16px; }
body #page .story-refined #story-cactus-today.cst-content-columns .columns-container .column h2 {
 font:300 46px/1.33 'ivymode',sans-serif; letter-spacing:4.6px; color:#fff;
 text-transform:none; text-align:center; margin:0;
}
body #page .story-slideshow { --story-photo-width:100%; --story-photo-height:max(60vh,670px); --story-control-gap:12px; padding:0; min-height:0; }
body #page .story-slideshow .sliders-list { width:var(--story-photo-width); margin-inline:auto; }
body #page .story-slideshow .owl-stage-outer { overflow:hidden; }
body #page .story-slideshow .owl-item { width:var(--home-slide-width) !important; }
body #page .story-slideshow .slider-back::after { content:none; }
body #page .story-slideshow .custom-nav { position:absolute; inset:0; height:var(--story-photo-height); width:100%; transform:none; pointer-events:none; z-index:4; }
body #page .story-slideshow .story-slide-control {
 position:absolute; top:50%; transform:translateY(-50%); display:grid; place-items:center;
 width:52px; height:64px; margin:0; padding:10px; border:0; border-radius:4px;
 background:#5b5753; cursor:pointer; pointer-events:auto; transition:background-color .2s;
}
body #page .story-slideshow .story-slide-control:hover { background:#726e69; }
body #page .story-slideshow .story-slide-control:focus-visible { outline:2px solid #d2c8ae; outline-offset:3px; }
body #page .story-slideshow .owl-prev { right:calc((100% + var(--story-photo-width))/2 + var(--story-control-gap)); }
body #page .story-slideshow .owl-next { left:calc((100% + var(--story-photo-width))/2 + var(--story-control-gap)); }
body #page .story-arrow { display:block; width:23.1px; height:44px; background:#d2c8ae; mask:center / contain no-repeat; }
body #page .story-arrow-prev { mask-image:url('/media/source/wp-content/themes/cactus_st/images/angle-left.png'); }
body #page .story-arrow-next { mask-image:url('/media/source/wp-content/themes/cactus_st/images/angle-right.png'); }
body #page .story-slideshow .slider-counter { padding:8px 12px 12px; }
body #page .story-slideshow .slider-counter::before { content:none; }
/* These are Owl's original central window widths, without adjacent images. */
@media(min-width:1024px) { body #page .story-slideshow { --story-photo-width:calc((100vw - 160px)/1.1); } }
@media(min-width:1400px) { body #page .story-slideshow { --story-photo-width:calc((100vw - 160px)/1.5); } }
@media(max-width:1399px) { body #page .story-slideshow { --story-control-gap:8px; } body #page .story-slideshow .story-slide-control { width:46px; } }
/* The original narrow window spans the viewport: retain it and inset controls. */
@media(max-width:1023px) { body #page .story-slideshow .owl-prev { right:auto; left:8px; } body #page .story-slideshow .owl-next { left:auto; right:8px; } }
body #page .story-refined #cactus-classic-one .container .glightbox-video { flex:1 1 50%; min-width:0; display:block; overflow:hidden; height:calc(min(48vw,800px) * 948 / 1160 * .6 + 6px); }
body #page .story-refined #cactus-classic-one .container .glightbox-video img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
body #page .story-refined #cactus-classic-one .container .glightbox-video .content h2 { margin:0 0 18px; }
body #page .story-refined #cactus-classic-one .container .glightbox-video .content h2 span { color:#d2c8ae; }
body #page .story-refined #cactus-classic-one .container .glightbox-video .content .cst-video-play { display:flex; align-items:center; justify-content:center; }
body #page .story-refined #cactus-classic-one .cst-video-play .icon { display:grid; place-items:center; flex:none; line-height:1; }
body #page .story-refined #story-story > .container > .columns-container { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; padding:0 5vw; }
body #page .story-refined #story-story .column-0 .story-information-block + .story-information-block { border-top:1px solid #575552; padding-top:18px; margin-top:20px; }
body #page .story-refined #story-story .story-information-block ul { margin:14px 0 0; padding-left:22px; }
body #page .story-refined #story-story .story-information-block li + li { margin-top:6px; }
body #page .story-refined #story-story .column-1 { align-self:stretch; }
body #page .story-refined #story-story .column-1 .column-content > div { padding-bottom:0; }
body #page .story-refined #story-quote { background-color:#423e3a !important; }
body #page .story-refined #story-quote::before { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(to right,transparent 32%,rgba(66,62,58,.45) 48%,#423e3a 72%); }
body #page .story-refined #story-quote > .container { z-index:1; }
body #page .story-refined #story-quote .container .column-content p.quote+p { letter-spacing:1.6px; }
@media(max-width:1300px) { body #page .story-refined #story-cactus-today.cst-content-columns .columns-container .column h2 { font-size:36px; letter-spacing:3.6px; } }
@media(max-width:1199px) { body #page main.story-refined { padding-top:106px; } }
@media(max-width:900px) {
 body #page .story-refined #story-cactus-today.cst-content-columns { padding-top:12px; }
 body #page .story-refined #cactus-classic-one .container .glightbox-video { height:21.6vh; }
 body #page .story-refined #cactus-classic-one .container .glightbox-video .content h2 { font-size:24px; line-height:1.25; letter-spacing:2px; margin-bottom:12px; }
 body #page .story-refined #cactus-classic-one .container .glightbox-video .content h2 span { font-size:14px; line-height:24px; letter-spacing:3px; margin-bottom:6px; }
 body #page .story-refined #story-story > .container > .columns-container { grid-template-columns:1fr; }
 body #page .story-refined #story-story .columns-container .column.column-1 { border-left:0; border-top:1px solid #575552; margin-top:24px; padding-top:24px; }
 body #page .story-refined #story-story .columns-container .column.column-1 div :is(h3,p,ul) { padding-left:0; text-align:left; }
 body #page .story-refined #story-quote::before { background:linear-gradient(to bottom,transparent 100px,#423e3a 210px); }
}
@media(max-width:650px) { body #page .story-refined #our-story-heading.cst-content-columns .columns-container .column h2 { font-size:28px; } }
@media(max-width:500px) { body #page .story-refined #cactus-classic-one .container .glightbox-video .content h2 { font-size:20px; } }
@media(max-width:900px) { body #page main.story-refined { padding-top:100px; } }
@media(max-width:599px) { body #page main.story-refined { padding-top:90px; } }

/* Reserve the original attribution line box so the portrait section keeps its
   accepted dimensions even when tighter lettering removes a wrapped line. */
body #page .story-refined #story-quote .quote+p { display:grid; }
body #page .story-refined #story-quote .quote+p::after { content:attr(data-original-attribution); visibility:hidden; letter-spacing:5px; grid-area:1 / 1; }
body #page .story-refined #story-quote .story-attribution-text { grid-area:1 / 1; }

/* Follow-up: match Our history while retaining the accepted visible ink gaps. */
body #page .story-refined #story-cactus-today.cst-content-columns {
 padding:var(--story-today-upper-gap,11.4px) 0 var(--story-today-lower-gap,16px);
}
body #page .story-refined #story-cactus-today.cst-content-columns .columns-container .column h2 {
 font:400 clamp(26px,2.2vw,36px)/1.25 'ivymode',sans-serif; letter-spacing:0;
}
@media(max-width:650px) { body #page .story-refined #story-cactus-today.cst-content-columns .columns-container .column h2 { font-size:28px; } }
/* Extend only the rule through the existing 10% column gutter; text stays put. */
@media(min-width:901px) {
 body #page .story-refined #story-story .column-0 .story-information-block + .story-information-block { position:relative; }
 body #page .story-refined #story-story .column-0 .story-information-block + .story-information-block::after {
  content:''; position:absolute; top:-1px; left:100%; right:calc(-100% / 9); border-top:1px solid #575552; pointer-events:none;
 }
}

/* Match the accepted invitation gutter, taken from the two inner edges. The
   source thumbnails contain their darkening; lighten only their display. */
body #page .story-refined #cactus-classic-one .container { gap:14px; }
body #page .story-refined #cactus-classic-one .glightbox-video img { filter:brightness(1.75); }
@media(max-width:500px) {
 body #page .story-refined #cactus-classic-one .container .glightbox-video + .glightbox-video { margin-top:14px; }
}
