/* BC Website Editing: the Hero slideshow, Category card and Rating line widgets. */

/* ---- Hero slideshow: every slide sits in the same grid cell, so the frame is as tall as the tallest slide and never moves ---- */
.bcw-slideshow { --bcw-slide-h: 700px; --bcw-slide-pos: center; --bcw-slide-speed: 900ms; position: relative; display: grid; width: 100%; overflow: hidden; }
.bcw-slideshow__slide { grid-area: 1 / 1; margin: 0; min-width: 0; opacity: 0; pointer-events: none; }
.bcw-slideshow__slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.bcw-slideshow .bcw-slideshow__img { display: block; width: 100%; max-width: 100%; height: var(--bcw-slide-h); object-fit: cover; object-position: var(--bcw-slide-pos); }
.bcw-slideshow__caption { display: block; margin-top: 12px; }
/* fade */
.bcw-slideshow--fade .bcw-slideshow__slide { transition: opacity var(--bcw-slide-speed) ease; }
/* slide: the next photo comes in from the right while the old one leaves to the left */
.bcw-slideshow--slide .bcw-slideshow__slide { transform: translateX(100%); transition: transform var(--bcw-slide-speed) cubic-bezier(.22, .61, .36, 1), opacity 0s linear var(--bcw-slide-speed); }
.bcw-slideshow--slide .bcw-slideshow__slide.is-active { transform: translateX(0); transition: transform var(--bcw-slide-speed) cubic-bezier(.22, .61, .36, 1), opacity 0s; }
.bcw-slideshow--slide .bcw-slideshow__slide.is-leaving { transform: translateX(-100%); opacity: 1; }
.bcw-slideshow--cut .bcw-slideshow__slide, .bcw-slideshow--cut .bcw-slideshow__slide.is-active { transition: none; }
@media (prefers-reduced-motion: reduce) {
	.bcw-slideshow .bcw-slideshow__slide { transition: none; transform: none; }
}

/* ---- Category card ---- */
.bcw-card { --bcw-card-border: #DCD2C2; --bcw-card-border-hover: #C9BDA9; --bcw-card-lift: 4px; --bcw-card-grow: 1.012; --bcw-card-shadow: none; --bcw-card-duration: 280ms; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; padding: 18px; border: 1px solid var(--bcw-card-border); border-radius: 6px; color: inherit; text-decoration: none; transition: transform var(--bcw-card-duration) ease, box-shadow var(--bcw-card-duration) ease, border-color var(--bcw-card-duration) ease; }
.bcw-card:hover, .bcw-card:focus-within { transform: translateY(calc(-1 * var(--bcw-card-lift))) scale(var(--bcw-card-grow)); box-shadow: var(--bcw-card-shadow); border-color: var(--bcw-card-border-hover); }
.bcw-card__media { margin: 0; }
.bcw-card .bcw-card__img { display: block; width: 100%; max-width: 100%; height: 360px; object-fit: cover; border-radius: 2px; }
.bcw-card__caption { display: block; margin-top: 12px; font-style: italic; }
.bcw-card__title { margin: 0; }
.bcw-card__title a { color: inherit; text-decoration: none; }
.bcw-card__text { margin: 0; }
.bcw-card__link { display: inline-block; text-decoration: none; }
.bcw-card--whole { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
	.bcw-card, .bcw-card:hover, .bcw-card:focus-within { transform: none; transition: none; }
}

/* ---- Rating line ---- */
.bcw-rating { margin: 0; }
.bcw-rating a { text-decoration: none; }
.bcw-rating__stars { letter-spacing: 2px; margin-right: 8px; }

/* ---- what the editor shows while a widget has nothing to render ---- */
.bcw-editor-note { padding: 14px 16px; border: 1px dashed #B4573A; border-radius: 6px; background: rgba(180, 87, 58, .06); color: #211C17; font: 14px/1.5 "Albert Sans", system-ui, sans-serif; }

/* ---- Logo strip: the companies we have worked with, scrolling like the reviews strip ---- */
.bcw-logos { --bcw-logos-seconds: 60s; --bcw-logos-h: 44px; --bcw-logos-gap: 64px; --bcw-logos-opacity: .85; position: relative; overflow: hidden; display: flex; width: 100%; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.bcw-logos--no-fade { -webkit-mask-image: none; mask-image: none; }
.bcw-logos__track { display: flex; align-items: center; gap: var(--bcw-logos-gap); flex: none; padding-right: var(--bcw-logos-gap); animation: bcw-logos-scroll var(--bcw-logos-seconds) linear infinite; will-change: transform; }
.bcw-logos--reverse .bcw-logos__track { animation-direction: reverse; }
.bcw-logos--pause:hover .bcw-logos__track, .bcw-logos--pause:focus-within .bcw-logos__track { animation-play-state: paused; }
@keyframes bcw-logos-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.bcw-logos__item { flex: none; display: inline-flex; align-items: center; height: var(--bcw-logos-h); opacity: var(--bcw-logos-opacity); transition: opacity .2s ease; text-decoration: none; color: inherit; }
.bcw-logos__item:hover, .bcw-logos__item:focus-visible { opacity: 1; }
.bcw-logos .bcw-logos__item img { display: block; height: var(--bcw-logos-h); width: auto; max-width: none; }
.bcw-logos--gray .bcw-logos__item img { filter: grayscale(1); }
.bcw-logos--dark .bcw-logos__item img { filter: brightness(0); }
.bcw-logos--light .bcw-logos__item img { filter: brightness(0) invert(1); }
.bcw-logos__name { white-space: nowrap; color: #211C17; }
.bcw-logos--light .bcw-logos__name { color: #F4EFE6; }
@media (prefers-reduced-motion: reduce) {
	.bcw-logos { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.bcw-logos__track { animation: none; }
	.bcw-logos__track[aria-hidden="true"] { display: none; }
}
