/*
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.1
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
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

.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__track {
  display: flex;
  align-items: center;
  gap: 2rem;
  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;
  margin: 0;
  /* Override .size-full so each logo keeps its size instead of 100% width */
  width: auto !important;
  height: auto !important;
}

.logos__track > figure img {
  width: auto;
  height: auto;
  max-height: 5rem;
  display: block;
}

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