/*
Theme Name: Brainforest Wordpress Starter FSE
Theme URI: https://bitbucket.org/rekyl/brainforest-wordpress-starter
Author: Brainforest
Author URI: https://brainforest.se/
Description: Brainforest default starter theme.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0
Text Domain: brainforest
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

header.wp-block-template-part {
  position: sticky;
  top: calc(0px + var(--wp-admin--admin-bar--height, 0px));
  right: 0;
  left: 0;
  z-index: 20;
}

.left-col-section {
  position: relative;
  z-index: 0;
}

.left-col-section::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  left: 50%;
  right: 50%;
  margin-left: -100vw;
  margin-right: -100vw;
  background: inherit;
}

.logos {
  overflow: hidden;
  padding: 30px 0;
  position: relative;
}

.logos::before,
.logos::after {
  position: absolute;
  top: 0;
  content: '';
  width: 32px;
  height: 100%;
  z-index: 2;
}

.logos::before {
  left: 0;
  background: linear-gradient(to left, rgba(248, 246, 244, 0), rgb(248, 246, 244));
}

.logos::after {
  right: 0;
  background: linear-gradient(to right, rgba(248, 246, 244, 0), rgb(248, 246, 244));
}

.logos__track {
  width: max-content; /* critical: track sizes to its content */
  will-change: transform;
  animation: marquee 40s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.logos:hover .logos__track {
  animation-play-state: paused;
}

.logos__track > figure {
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .logos::before,
  .logos::after {
    width: 250px;
  }
}
