/* Scoped adaptation of the supplied 3D folder; site-wide colours remain untouched. */
#template-library [class*="categories"] {display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr))!important;gap:22px!important;align-items:stretch!important}
.rf-mount{min-width:0;display:flex}.rf-folder{--folder-back:#ad694c;--folder-tab:#9b583e;--folder-front:#cb8965;box-sizing:border-box;position:relative;isolation:isolate;width:100%;min-height:342px;padding:25px 24px 20px;border:1px solid #d7cec5;border-radius:24px;background:linear-gradient(145deg,#fcfaf6,#eee7df);color:#29312d;box-shadow:inset 0 1px 0 #ffffffb3,0 6px 22px #33251b05;transition:border-color .35s,box-shadow .35s;display:flex;flex-direction:column;text-align:left;overflow:visible;font-family:inherit}
.rf-folder.rf-expanded{z-index:2;border-color:#bb8669;box-shadow:0 15px 36px #61463117}
.rf-art{position:relative;flex:none;align-self:center;width:218px;height:180px;perspective:1000px;margin:0 0 12px;pointer-events:none}
.rf-back,.rf-front,.rf-shine{position:absolute;width:146px;height:106px;left:36px;top:64px;border-radius:10px;transform-origin:bottom center;transition:transform .6s cubic-bezier(.34,1.56,.64,1)}
.rf-back{background:linear-gradient(135deg,#b77956,var(--folder-back));box-shadow:0 8px 12px #38251926;z-index:10}
.rf-tab{position:absolute;left:48px;top:51px;width:55px;height:20px;border-radius:8px 8px 0 0;background:var(--folder-tab);transform-origin:bottom;transition:transform .6s;z-index:10}
.rf-front{z-index:30;background:linear-gradient(155deg,#e1a77d,var(--folder-front) 55%,#b87350);box-shadow:inset 0 1px 1px #ffe4cbcf,0 8px 14px #6c3d2a30;border:1px solid #b57850;display:flex;align-items:flex-end;box-sizing:border-box;padding:16px}
.rf-front>span{font-size:10px;letter-spacing:.16em;font-weight:650;color:#603824}.rf-front>span>span{display:block;font-size:7px;letter-spacing:.19em;margin-top:4px;opacity:.7}
.rf-shine{z-index:31;pointer-events:none;background:linear-gradient(135deg,#fff4 0%,transparent 50%)}
.rf-expanded .rf-back{transform:rotateX(-15deg)}.rf-expanded .rf-tab{transform:rotateX(-25deg) translateY(-2px)}.rf-expanded .rf-front,.rf-expanded .rf-shine{transform:rotateX(28deg) translateY(8px)}
.rf-samples{position:absolute;left:50%;top:106px;z-index:20}.rf-sample{position:absolute;left:-43px;top:-54px;width:86px;height:112px;padding:0!important;margin:0!important;border:3px solid #fffc!important;border-radius:9px!important;background:linear-gradient(135deg,#f6f0e7,#c5c9bf)!important;box-shadow:0 7px 18px #3a312733;overflow:hidden;pointer-events:none;opacity:1;transform:translateY(0) rotate(calc(var(--rf-index)*-3deg)) scale(.87);transition:transform .6s cubic-bezier(.34,1.56,.64,1),box-shadow .3s;transition-delay:calc(var(--rf-index)*65ms);z-index:calc(23 - var(--rf-index));cursor:pointer}
.rf-expanded .rf-sample{transform:translateY(-58px) translateX(var(--rf-x)) rotate(var(--rf-rotation));pointer-events:auto}.rf-sample:hover,.rf-sample:focus-visible{box-shadow:0 0 0 3px #a95b39,0 12px 20px #47321f40;outline:0}.rf-sample iframe{width:1024px;height:720px;transform:scale(.079);transform-origin:top left;border:0;pointer-events:none;background:#f6f3ed}.rf-sample img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;pointer-events:none}.rf-sample>span{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#202820e6);padding:15px 4px 5px;color:#fff;font-size:7px;line-height:1.3;font-weight:500;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-align:left;pointer-events:none}
.rf-empty-paper{position:absolute;width:110px;height:100px;left:-55px;top:-47px;border-radius:7px;background:#eee9e0;transform:rotate(-5deg);box-shadow:0 0 0 1px #fff8}
.rf-caption{flex:1;min-width:0}.rf-count{font-size:10px!important;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#8b6450;display:block;margin:0 0 9px!important}.rf-caption h2{font-size:21px!important;line-height:1.25!important;letter-spacing:-.025em!important;font-weight:550!important;margin:0 0 10px!important;overflow-wrap:anywhere}.rf-caption h2 a{text-decoration:none!important;color:inherit!important}.rf-caption p{font-size:12px!important;line-height:1.6!important;color:#73776f!important;margin:0!important;padding:0!important;min-height:38px}
.rf-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #ddd2c6;padding-top:14px;margin-top:17px}.rf-actions a,.rf-actions button{min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-family:inherit;font-size:11px!important;font-weight:550;text-decoration:none!important;letter-spacing:0!important;line-height:1.3!important}.rf-actions a{color:#74422d!important;white-space:nowrap}.rf-actions button{background:#ffffff80;color:#665a4e;border:1px solid #d8cabe;border-radius:30px;padding:0 10px;cursor:pointer}.rf-actions a:focus-visible,.rf-actions button:focus-visible,.rf-caption a:focus-visible{outline:2px solid #a95b39;outline-offset:4px}
.rf-lightbox{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;box-sizing:border-box;margin:0;padding:24px;background:transparent;border:0;color:#29312d;overflow:auto;font-family:inherit;z-index:2147483000}.rf-lightbox[open]{display:flex;align-items:center;justify-content:center}.rf-lightbox::backdrop{background:#41372b60;backdrop-filter:blur(18px)}.rf-lightbox-panel{width:min(920px,100%);max-height:calc(100dvh - 48px);overflow:auto;border-radius:24px;background:#faf7f1;box-shadow:0 24px 100px #20150f50;border:1px solid #fff8;animation:rf-enter .4s cubic-bezier(.16,1,.3,1)}
@keyframes rf-enter{from{opacity:0;transform:translate(var(--rf-origin-x),var(--rf-origin-y)) scale(.25)}to{opacity:1;transform:translate(0) scale(1)}}
.rf-lightbox header{display:flex;align-items:center;justify-content:space-between;padding:12px 18px 12px 24px;gap:15px}.rf-lightbox header>span{font-size:10px;letter-spacing:.12em;color:#8b6450}.rf-lightbox button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;flex:none;border:1px solid #d8cabe;border-radius:50%;background:#fff9;color:#584637;cursor:pointer;padding:0}.rf-lightbox button:disabled{opacity:.3;cursor:default}.rf-lightbox :focus-visible{outline:2px solid #a95b39;outline-offset:3px}.rf-large-preview{height:min(57dvh,520px);background:#eee9e1;border-top:1px solid #e5ddd2;border-bottom:1px solid #e5ddd2;overflow:hidden}.rf-large-preview img{width:100%;height:100%;object-fit:contain;object-position:top}.rf-large-preview iframe{width:100%;height:100%;border:0;background:#f5f1ea}.rf-lightbox footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 24px 12px}.rf-counter{font-size:10px;letter-spacing:.1em;color:#96745d;margin:0 0 7px}.rf-lightbox h3{font-size:20px;font-weight:550;line-height:1.3;letter-spacing:-.02em;margin:0;overflow-wrap:anywhere}.rf-lightbox footer a{display:inline-flex;gap:8px;align-items:center;text-decoration:none;color:#804b32;font-size:12px;font-weight:550;min-height:44px;flex:none}.rf-lightbox nav{display:flex;align-items:center;justify-content:center;gap:18px;padding:8px 24px 20px}.rf-lightbox nav>div{display:flex}.rf-lightbox nav>div button{border:0;background:none;width:34px}.rf-lightbox nav>div button span{width:6px;height:6px;background:#c3b4a5;border-radius:50%;display:block}.rf-lightbox nav>div button[aria-current] span{background:#a95b39;width:20px;border-radius:10px}
@media(max-width:600px){#template-library [class*="categories"]{gap:18px!important}.rf-folder{padding:20px 22px;min-height:326px}.rf-art{height:175px;margin-bottom:6px}.rf-caption h2{font-size:22px!important}.rf-caption p{min-height:0}.rf-actions{margin-top:15px}.rf-lightbox{padding:14px}.rf-lightbox-panel{max-height:calc(100dvh - 28px);border-radius:20px}.rf-lightbox header{padding:10px 12px 10px 18px}.rf-large-preview{height:44dvh}.rf-lightbox footer{align-items:flex-start;flex-direction:column;padding:18px 20px 4px;gap:8px}.rf-lightbox h3{font-size:19px}.rf-lightbox footer a{font-size:12px}.rf-lightbox nav{padding-bottom:16px}}
@media(prefers-reduced-motion:reduce){.rf-folder *,.rf-lightbox-panel{transition:none!important;animation:none!important}}
.rf-lightbox footer{background:#faf7f1!important;color:#29312d!important;min-height:0!important;border:0!important;margin:0!important}.rf-lightbox footer h3{color:#29312d!important}.rf-lightbox footer a{color:#804b32!important}.rf-lightbox nav>div button{width:44px}
rivra-template-folder{display:flex;min-width:0}:host{display:block;min-width:0;height:100%}.rf-mount{height:100%}
/* 9 November: compact category folders across phones, tablets and laptops. */
#template-library [class*="categories"]{gap:18px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
#template-library{max-width:1200px!important;margin-inline:auto!important}
.rf-folder{min-height:0;padding:20px 20px 16px;border-radius:21px;height:100%}.rf-art{height:152px;max-width:100%;margin:0 0 0;transform:scale(.84);transform-origin:center center}.rf-back,.rf-front,.rf-shine{left:calc(50% - 73px)}.rf-tab{left:calc(50% - 61px)}.rf-caption h2{font-size:18px!important;min-height:45px;margin-bottom:7px!important;line-height:1.25!important}.rf-count{font-size:9px!important;margin-bottom:8px!important}.rf-caption p{font-size:11px!important;min-height:36px;line-height:1.6!important}.rf-actions{margin-top:12px;padding-top:10px}.rf-actions a,.rf-actions button{font-size:10px!important;min-height:44px}.rf-actions button{padding-inline:9px}
@media(min-width:1600px){#template-library [class*="categories"]{grid-template-columns:repeat(5,minmax(0,1fr))!important}#template-library{max-width:1440px!important}}
@media(min-width:700px) and (max-width:999px){#template-library [class*="categories"]{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}}
@media(max-width:699px){
 #template-library [class*="categories"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 #template-library [class*="intro"]{margin-bottom:23px!important}#template-library [class*="intro"] h1{font-size:40px!important;margin-bottom:14px!important}#template-library [class*="intro"]>p:last-child{font-size:13px!important;line-height:1.7!important;max-width:46ch!important}
 .rf-folder{padding:15px 11px 10px;border-radius:18px;min-height:0;overflow:hidden}.rf-art{width:120px;height:113px;max-width:none;transform:none;margin:0 0 5px}.rf-back,.rf-front,.rf-shine{width:96px;height:72px;left:calc(50% - 48px);top:36px;border-radius:7px}.rf-tab{left:calc(50% - 39px);top:27px;width:36px;height:14px;border-radius:6px 6px 0 0}.rf-front{padding:10px}.rf-front>span{font-size:7px}.rf-front>span>span{font-size:5px;margin-top:3px}.rf-samples{top:67px}.rf-sample{width:56px;height:74px;left:-28px;top:-37px;border-width:2px!important;border-radius:6px!important}.rf-expanded .rf-sample{transform:translateY(-36px) translateX(calc(var(--rf-x)*.5)) rotate(var(--rf-rotation))}.rf-sample iframe{transform:scale(.05)}.rf-sample>span{font-size:5px;line-height:1.3;padding:10px 3px 4px}.rf-empty-paper{width:72px;height:64px;left:-36px;top:-30px}
 .rf-caption h2{font-size:15px!important;line-height:1.35!important;min-height:41px;letter-spacing:-.025em!important;margin-bottom:7px!important;overflow-wrap:normal;hyphens:auto}.rf-count{font-size:8px!important;letter-spacing:.07em;margin-bottom:7px!important}.rf-caption p{font-size:9px!important;line-height:1.6!important;min-height:44px;overflow-wrap:anywhere}.rf-actions{gap:3px;margin-top:9px;padding-top:8px;flex-wrap:nowrap}.rf-actions a{font-size:9px!important;min-height:44px;white-space:normal;justify-content:flex-start;line-height:1.4!important}.rf-actions a svg{display:none}.rf-actions button{width:40px;min-width:40px;height:44px;padding:0;border-radius:14px}.rf-actions button span{display:none}
}
@media(max-width:359px){#template-library [class*="categories"]{gap:10px!important}.rf-folder{padding-inline:9px}.rf-caption h2{font-size:14px!important}.rf-caption p{font-size:8.5px!important}.rf-actions a{font-size:8.5px!important}.rf-actions button{width:36px;min-width:36px}}
@media(max-width:699px){.rf-caption p{font-size:10px!important}.rf-actions a{font-size:10px!important}.rf-actions button{width:44px;min-width:44px}}
@media(max-width:359px){.rf-caption p{font-size:9.5px!important}.rf-actions a{font-size:9.5px!important}.rf-actions button{width:44px;min-width:44px}}
@media(min-width:700px){.rf-art{transform-origin:top center}}
body #template-library [class*="categories"]{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:36px 28px!important;align-items:stretch!important}body #template-library rivra-template-folder{display:block;min-width:0} @media(max-width:699px){body #template-library [class*="categories"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 16px!important}}@media(max-width:359px){body #template-library [class*="categories"]{gap:22px 12px!important}}body #template-library [class*="categories"]{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:36px 28px!important;align-items:stretch!important}body #template-library rivra-template-folder{display:block;min-width:0} @media(max-width:699px){body #template-library [class*="categories"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 16px!important}}@media(max-width:359px){body #template-library [class*="categories"]{gap:22px 12px!important}}