/* Site styles that Tailwind utilities do not cover. */

/* Content from the old CKEditor carries fixed widths, floats and inline fonts: keep it readable on phones. */
.rich{overflow-wrap:anywhere}
.rich img{max-width:100%!important;height:auto!important;border-radius:12px}
/* Old tables carry style="height:30px", which clips every row once the table scrolls. */
.rich table{display:block;max-width:100%;overflow-x:auto;height:auto!important;border-collapse:collapse}
.rich th,.rich td{height:auto!important;padding:.5rem .75rem!important;border:1px solid #dfe7da;white-space:nowrap}
.rich thead th{background:#f2f7f0}
.rich iframe{max-width:100%}
.rich [style*="font-family"]{font-family:inherit!important}
.rich [style*="width"]:not(img):not(table):not(td):not(th){max-width:100%!important}
@media (max-width:767px){
  .rich img[style*="float"],.rich [style*="float"]{float:none!important;display:block;margin:12px auto!important}
}

/* Hero slideshow */
.hero{position:relative;overflow:hidden;background:#1d2b1c}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity 1s ease,visibility 0s 1s;visibility:hidden}
.hero-slide.is-on{opacity:1;visibility:visible;transition:opacity 1s ease,visibility 0s}
.hero-slide img{width:100%;height:100%;object-fit:cover;transform:scale(1.06);transition:transform 7s ease-out}
.hero-slide.is-on img{transform:scale(1)}
.hero-dot{width:10px;height:10px;border-radius:999px;background:rgba(255,255,255,.45);transition:width .4s cubic-bezier(.2,.8,.2,1),background .3s}
.hero-dot[aria-current="true"]{width:30px;background:#fff}
@media (prefers-reduced-motion:reduce){.hero-slide,.hero-slide img{transition:none!important;transform:none!important}}

/* Horizontal scroller (projects) */
.snap-row{scroll-snap-type:x mandatory;scrollbar-width:thin}
.snap-row > *{scroll-snap-align:start}

.img-zoom img{transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.img-zoom:hover img{transform:scale(1.05)}
