/* THNE affiliate product carousel. Scoped so Showit templates are unchanged. */
.thne-affiliate-carousel{--thne-ac-gap:18px;box-sizing:border-box;width:100%;max-width:100%;margin:2rem auto;padding:1.4rem 0 1.5rem;border-top:1px solid #dedbd8;border-bottom:1px solid #dedbd8;color:#332d29}
.thne-affiliate-carousel *{box-sizing:border-box}
.thne-ac-heading-row{display:flex;align-items:center;justify-content:center;margin-bottom:.9rem}
.thne-ac-heading{margin:0!important;font-family:"Bradley Hand","Segoe Print",cursive;font-size:clamp(1.5rem,3vw,2rem);line-height:1.45;font-weight:400;letter-spacing:-.03em;color:inherit;text-align:center}
.thne-ac-disclosure-top{font-size:.95rem!important;line-height:1.55!important;margin:0 0 1.25rem!important;opacity:1}
.thne-ac-slider-wrap{position:relative;padding:0 2.2rem}
.thne-ac-slider-wrap.is-static{padding:0}
.thne-ac-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - var(--thne-ac-gap)*3)/4);justify-content:start;gap:var(--thne-ac-gap);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;max-width:100%;padding:0 0 6px}
.thne-ac-track::-webkit-scrollbar{display:none}
/* Center small collections instead of leaving two tiny products at one edge. */
.thne-ac-track[data-count="1"]{grid-auto-columns:minmax(0,min(230px,100%));justify-content:center}
.thne-ac-track[data-count="2"]{grid-auto-columns:minmax(0,min(230px,calc((100% - var(--thne-ac-gap))/2)));justify-content:center}
.thne-ac-track[data-count="3"]{grid-auto-columns:minmax(0,min(210px,calc((100% - var(--thne-ac-gap)*2)/3)));justify-content:center}
.thne-ac-product{display:flex;flex-direction:column;align-items:center;min-width:0;scroll-snap-align:start;color:inherit!important;text-decoration:none!important;background:transparent;text-align:center}
.thne-ac-image{display:block;width:100%;aspect-ratio:1/1;overflow:hidden;background:#fff}
.thne-ac-image img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .3s ease}
.thne-ac-product:hover .thne-ac-image img{transform:scale(1.04)}
.thne-ac-name{display:-webkit-box!important;position:static!important;width:auto!important;height:auto!important;margin:.55rem 0 0!important;padding:0!important;overflow:hidden!important;clip:auto!important;white-space:normal!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.35;font-size:.86rem;font-weight:500;max-width:100%;min-height:2.7em}
.thne-ac-slider-wrap>button{position:absolute;top:38%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;padding:0!important;width:30px;height:36px;min-width:30px;border:0!important;border-radius:0!important;background:transparent!important;color:#79716c!important;font-size:19px;font-weight:400;cursor:pointer}
.thne-ac-slider-wrap.is-static>button{display:none!important}
.thne-ac-slider-wrap>.thne-ac-prev{left:0}
.thne-ac-slider-wrap>.thne-ac-next{right:0}
.thne-ac-slider-wrap>button:hover:not(:disabled),.thne-ac-slider-wrap>button:focus-visible{color:#332d29!important}
.thne-ac-slider-wrap>button:disabled{opacity:.2;cursor:default}
.thne-ac-product:focus-visible,.thne-ac-slider-wrap>button:focus-visible{outline:2px solid #6c625b;outline-offset:3px}
@media(max-width:850px){
  .thne-ac-track{grid-auto-columns:calc((100% - var(--thne-ac-gap)*2)/3)}
  .thne-ac-track[data-count="1"]{grid-auto-columns:minmax(0,min(230px,100%))}
  .thne-ac-track[data-count="2"]{grid-auto-columns:minmax(0,min(230px,calc((100% - var(--thne-ac-gap))/2)))}
  .thne-ac-track[data-count="3"]{grid-auto-columns:calc((100% - var(--thne-ac-gap)*2)/3)}
}
@media(max-width:560px){
  .thne-affiliate-carousel{--thne-ac-gap:12px}
  .thne-ac-slider-wrap{padding:0 1.4rem}
  .thne-ac-track{grid-auto-columns:calc((100% - var(--thne-ac-gap))/2)}
  .thne-ac-track[data-count="1"]{grid-auto-columns:minmax(0,min(230px,100%))}
  .thne-ac-track[data-count="2"]{grid-auto-columns:calc((100% - var(--thne-ac-gap))/2)}
  .thne-ac-track[data-count="3"]{grid-auto-columns:calc((100% - var(--thne-ac-gap))/2);justify-content:start}
  .thne-ac-slider-wrap>button{width:24px;min-width:24px}
  .thne-ac-name{font-size:.8rem}
}
@media(prefers-reduced-motion:reduce){.thne-ac-image img{transition:none}}

/* Related posts: three columns on desktop, two on tablets, one on phones. */
.thne-related{box-sizing:border-box;width:100%;max-width:100%;margin:2.5rem auto;padding:1.8rem 0;border-top:1px solid #dedbd8;color:inherit}
.thne-related *{box-sizing:border-box}
.thne-related-heading{margin:0!important;text-align:center;font-family:inherit;font-size:clamp(1.65rem,3vw,2.15rem);font-weight:500;line-height:1.25;color:inherit}
.thne-related-intro{margin:.3rem 0 1.35rem!important;text-align:center;font-size:.9rem;opacity:.78}
.thne-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3rem}
.thne-related-card{display:flex;flex-direction:column;gap:.55rem;min-width:0;text-decoration:none!important;color:inherit!important}
.thne-related-image{display:block;aspect-ratio:4/3;overflow:hidden;background:#eeeae5;border-radius:2px}
.thne-related-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.thne-related-card:hover .thne-related-image img{transform:scale(1.03)}
.thne-related-image-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:1.2rem;letter-spacing:.15em;color:#867f65}
.thne-related-card-title{display:block;font-size:1.05rem;line-height:1.35;font-weight:600}
.thne-related-card-cta{display:block;margin-top:auto;color:#8e3d48;font-size:.76rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.thne-related-card:focus-visible{outline:2px solid #8e3d48;outline-offset:4px}
@media(max-width:850px){.thne-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.thne-related-grid{grid-template-columns:1fr;gap:1.5rem}}
@media(prefers-reduced-motion:reduce){.thne-related-image img{transition:none}}
