/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

#stories-container {
    width: 100%;
    padding: 10px;
  }
  
  .stories-box {
    width: 100%;
    max-width: 940px;
    position: relative;
    margin: 0 auto;
  }
  
  #stories-container.ativo {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.8);
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
  }
  
  #stories-carousel {
    overflow-x: auto;
    display: flex;
    width: 100%;
    scrollbar-color: #888 #f1f1f1; 
  }
  
  #stories-container.ativo #stories-carousel {
    width: calc( 100% - 60px );*/
  }
  
  .stories-item {
    flex: 0 0 auto;
    width: calc(100% / 5);
    margin: 3px;
  }
  
  .stories-item:hover {
    cursor: pointer;
  }
  
  #stories-container.ativo .stories-item {
    width: 100px;
  }
  @media (max-width: 600px)
  {
  
  .stories-item {
    width: calc(100% / 3);
  }
  #stories-container.ativo .stories-item {
    width: 100px;
  }
    
  }
  
  #stories-carousel img {
      width: 100%;
  }
  
  #stories-container .image-wrapper {
      position: relative;
      width: 100%;
      padding-bottom: 125%; 
      overflow: hidden;
  }
  
  #stories-container .image-wrapper img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
  }
  
  #stories-container.ativo .image-wrapper {
      position: relative;
      width: 100%;
      padding-bottom: 100%; /* Isso garante a proporção 1:1 */
      overflow: hidden;
      border-radius: 300px;
  }
  
  #stories-container.ativo .image-wrapper img {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100%;
      height: auto;
  }

  .image-wrapper.ativo {
    border: solid #fff 2px;
  }
  
  /**/
  
  #stories-full {
      display: none;
      text-align: center;
      padding-top: 10px;
      width: 100%;
  }
  
  #stories-full.ativo {
      display: flex;
      height: calc( 100vh - 135px );
      align-items: center;
      justify-content: center;
  }
  
  .stories-full-image {
      max-width: 100%;
      max-height: calc( 95vh - 135px );
      height: auto;
      box-shadow: black 0px 0px 10px;
      pointer-events: none;
  }
  
  .stories-abrir {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
  }
  
  .stories-abrir a {
    background-color: #8430D4;
    color: #fff;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 16px;
    text-transform: uppercase;
    text-decoration: none;
  }
  
  #prev-story, #next-story {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 128px;
    top: 48%;
  }
  
  #prev-story {
    left: 5px;
  }
  
  #next-story {
    right: 5px;
  }
  
  #prev-story:hover, #next-story:hover {
    cursor: pointer;
  }
  
  #stories-fechar {
    display: none;
    position: absolute;
    right: 0px;
    top: 25px;
    width: 45px;
  }
  
  #stories-fechar:hover {
    cursor: pointer;
  }
  
  #stories-container.ativo #stories-fechar {
    display: block;
  }
  
  /**/
  
  #stories-carousel::-webkit-scrollbar {
    height: 5px;
  }
  
  #stories-carousel::-webkit-scrollbar-track {
      background: rgba(168, 1, 255, 0.2);
  }
   
  #stories-carousel::-webkit-scrollbar-thumb {
      background: #8430D4; 
  }