/* Rainbow Carpet - e-catalogue viewer (fix48, js/rc-ecatbook.js): book, magazine, glide, scroll. --rceb-t = one page turn. */
.rceb { --rceb-t: 1050ms; --rceb-ease: cubic-bezier(.45,.05,.25,1); position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000;
	display: flex; flex-direction: column; color: #f2efe9; font: 14px/1.4 Arial, Helvetica, sans-serif; text-align: left;
	background: radial-gradient(ellipse at 50% 42%, #343c47 0%, #1b2027 58%, #101318 100%); opacity: 0; transition: opacity .4s ease; }
.rceb.rceb-on { opacity: 1; }
.rceb *, .rceb *::before, .rceb *::after { box-sizing: border-box; }
/* the top bar */
.rceb-bar { flex: none; display: flex; align-items: center; gap: 18px; padding: 12px 20px; background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,0)); position: relative; z-index: 3; }
.rceb-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.rceb-title b { font: 400 21px/1.1 Georgia, 'Times New Roman', serif; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rceb-title span { font: 700 10.5px/1 Arial, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #cfae6c; }
.rceb-pos { margin-left: auto; font-size: 13px; letter-spacing: .04em; color: rgba(242,239,233,.75); white-space: nowrap; }
.rceb-tools { display: flex; align-items: center; gap: 10px; }
.rceb-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.26);
	background: rgba(255,255,255,.06); color: #fff !important; font: 700 12.5px/1 Arial, sans-serif; letter-spacing: .04em; text-decoration: none !important; cursor: pointer;
	transition: background-color .2s, border-color .2s; }
.rceb-btn:hover, .rceb-btn[aria-pressed="true"] { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.rceb-x { width: 36px; padding: 0; font-size: 24px; font-weight: 400; }
/* the stage */
.rceb-stage { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rceb-view { position: relative; display: flex; align-items: center; justify-content: center; }
.rceb-zoomed .rceb-stage { overflow: auto; display: block; }
.rceb-zoomed .rceb-view { margin: 20px auto; width: max-content; }
.rceb-nav { position: absolute; z-index: 4; top: 50%; width: 54px; height: 54px; margin-top: -10px; border: 0; border-radius: 50%; cursor: pointer; opacity: .5;
	background: rgba(255,255,255,.1) no-repeat center / 22px; transition: opacity .25s, background-color .25s, transform .25s; }
.rceb-nav:hover, .rceb-nav:focus-visible { opacity: 1; background-color: rgba(255,255,255,.2); }
.rceb-prev { left: 18px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15 4 7 12l8 8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.rceb-next { right: 18px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 4l8 8-8 8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.rceb-nav[disabled] { opacity: 0; pointer-events: none; }
.rceb-m-scroll .rceb-nav { display: none; }
.rceb-msg { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px;
	background: rgba(0,0,0,.45); font-size: 14px; letter-spacing: .03em; transition: opacity .4s; }
.rceb-msg a { color: #cfae6c; margin-left: 6px; }
.rceb-msg.rceb-hide { opacity: 0; pointer-events: none; }
.rceb-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: rcebSpin .9s linear infinite; }
@keyframes rcebSpin { to { transform: rotate(360deg); } }
/* a page */
.rceb-page { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; background: #fff; }
.rceb-page img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.rceb-page.rceb-wait::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(100deg, #f1f1f1 30%, #fafafa 50%, #f1f1f1 70%) 0 0 / 300% 100%; animation: rcebWait 1.4s ease-in-out infinite; }
@keyframes rcebWait { from { background-position: 100% 0; } to { background-position: 0 0; } }
.rceb-page.rceb-blank { display: none; }

/* ---- book: two pages side by side, the leaf turns over the spine ---- */
.rceb-book { position: relative; width: calc(var(--pw) * 2); height: var(--ph); perspective: 2800px; transition: transform var(--rceb-t) var(--rceb-ease); }
.rceb-book.rceb-c-first { transform: translateX(calc(var(--pw) * -0.5)); }
.rceb-book.rceb-c-last { transform: translateX(calc(var(--pw) * 0.5)); }
.rceb-half { position: absolute; top: 0; width: var(--pw); height: var(--ph); }
.rceb-l { left: 0; } .rceb-r { left: var(--pw); }
.rceb-half > .rceb-page { box-shadow: 0 28px 44px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.05); }
.rceb-half.rceb-empty > .rceb-page { display: none; }
.rceb-half > .rceb-page::after, .rceb-face > .rceb-page::after { content: ''; position: absolute; top: 0; bottom: 0; width: 14%; pointer-events: none; z-index: 1; }
.rceb-l > .rceb-page::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.24), rgba(0,0,0,.06) 30%, rgba(0,0,0,0)); }
.rceb-r > .rceb-page::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.24), rgba(0,0,0,.06) 30%, rgba(0,0,0,0)); }
.rceb-book .rceb-c-first > .rceb-r > .rceb-page::after { opacity: .5; }
/* the page under the turning leaf darkens and lightens as the leaf passes */
.rceb-half.rceb-shade > .rceb-page::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; background: #000; opacity: 0; animation: rcebUnder var(--rceb-t) var(--rceb-ease); pointer-events: none; }
@keyframes rcebUnder { 0% { opacity: .38; } 100% { opacity: 0; } }
.rceb-leaf { position: absolute; top: 0; z-index: 5; width: var(--pw); height: var(--ph); transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform var(--rceb-t) var(--rceb-ease); }
.rceb-leaf-f { left: var(--pw); transform-origin: left center; }
.rceb-leaf-f.rceb-go { transform: rotateY(-180deg); }
.rceb-leaf-b { left: 0; transform-origin: right center; }
.rceb-leaf-b.rceb-go { transform: rotateY(180deg); }
.rceb-face { position: absolute; top: 0; right: 0; bottom: 0; left: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 28px 44px -20px rgba(0,0,0,.6); }
.rceb-back { transform: rotateY(180deg); }
.rceb-leaf-f .rceb-front > .rceb-page::after, .rceb-leaf-b .rceb-back > .rceb-page::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.24), rgba(0,0,0,0)); }
.rceb-leaf-f .rceb-back > .rceb-page::after, .rceb-leaf-b .rceb-front > .rceb-page::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.24), rgba(0,0,0,0)); }
/* light and shadow sweep over the turning leaf */
.rceb-face::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; opacity: 0; pointer-events: none; }
.rceb-leaf-f .rceb-front::before, .rceb-leaf-b .rceb-back::before { background: linear-gradient(to right, rgba(0,0,0,.35), rgba(0,0,0,.05) 55%, rgba(255,255,255,.18)); }
.rceb-leaf-f .rceb-back::before, .rceb-leaf-b .rceb-front::before { background: linear-gradient(to left, rgba(0,0,0,.35), rgba(0,0,0,.05) 55%, rgba(255,255,255,.18)); }
.rceb-leaf.rceb-go .rceb-face::before { animation: rcebSheen var(--rceb-t) var(--rceb-ease); }
@keyframes rcebSheen { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

/* ---- magazine: one page, turning away to the left ---- */
.rceb-mag { position: relative; width: var(--pw); height: var(--ph); perspective: 2400px; }
.rceb-mag > .rceb-page { transform-origin: left center; box-shadow: 0 28px 44px -20px rgba(0,0,0,.7);
	transition: transform var(--rceb-t) var(--rceb-ease), opacity var(--rceb-t) cubic-bezier(.6,0,.9,.4), box-shadow var(--rceb-t); }
.rceb-mag > .rceb-page.rceb-away { transform: rotateY(-118deg); opacity: 0; box-shadow: 40px 28px 60px -20px rgba(0,0,0,.4); }

/* ---- glide: pages side by side ---- */
.rceb-m-glide .rceb-view { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.rceb-glide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; }
.rceb-track { position: absolute; top: 50%; left: 50%; display: flex; gap: 56px; height: var(--ph); margin-top: calc(var(--ph) / -2); transition: transform .9s cubic-bezier(.22,.61,.36,1); }
.rceb-gp { position: relative; flex: none; width: var(--pw); height: var(--ph); transform: scale(.84); opacity: .35; transition: transform .9s cubic-bezier(.22,.61,.36,1), opacity .9s; }
.rceb-gp.rceb-on { transform: none; opacity: 1; }
.rceb-gp > .rceb-page { box-shadow: 0 28px 44px -20px rgba(0,0,0,.7); }
.rceb-thumbs { flex: none; position: relative; z-index: 2; display: flex; gap: 10px; justify-content: safe center; padding: 12px 20px 16px; overflow-x: auto; scrollbar-width: thin; }
.rceb-thumbs[hidden] { display: none; }
.rceb-th { position: relative; flex: none; width: 56px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 4px; cursor: pointer; opacity: .55;
	background: #fff center / cover no-repeat; transition: opacity .25s, border-color .25s, transform .25s; }
.rceb-th span { position: absolute; right: 2px; bottom: 2px; padding: 1px 4px; border-radius: 3px; background: rgba(0,0,0,.55); color: #fff; font: 700 9px/1.2 Arial, sans-serif; }
.rceb-th:hover { opacity: .9; }
.rceb-th.rceb-on { opacity: 1; border-color: #cfae6c; transform: translateY(-3px); }

/* ---- scroll: one under another ---- */
.rceb-m-scroll .rceb-stage { overflow-y: auto; display: block; }
.rceb-col { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 14px 0 60px; }
.rceb-sp { position: relative; width: var(--pw); height: var(--ph); }
.rceb-sp > .rceb-page { box-shadow: 0 22px 40px -20px rgba(0,0,0,.7); }

@media (prefers-reduced-motion: reduce) { .rceb { --rceb-t: 1ms; } .rceb-track, .rceb-gp { transition: none; } }
@media (max-width: 700px) { .rceb-title span, .rceb-zoom { display: none; } .rceb-nav { width: 44px; height: 44px; } .rceb-prev { left: 6px; } .rceb-next { right: 6px; } }
