/*****************************  contenedore del texto comentario historias **********/
.contenedor_historias_textclass{
    padding: 2px;   
    color:white;
    border: 3px solid  #928300;
    border-radius: 5px;
    height: 120px;
}

/*****************************   icono historias **********/
.story-containercrop {
   
    padding: 2px;   
    border-radius: 50%;
    width: 120px;
    height: 120px;
    z-index: 500;
    background-color: #928300;
    clip-path: circle(42%);
}

.img_hist {
    display: block;
    max-width: 100%;
}

/*<div class="modal fade " id="modalhistoria" role="dialog" aria-hidden="true" tabindex="-1" style="background-color:black;">
      <div class="modal-dialog ">
      

        <div class="modal-content" style="background-color:black;">
        <div class="container">
          <div class="row">
           <div class="col" style="width:150px; max-width: 150px;" >
              <div class="story-containercrop " style="text-align: center;">           
                  <img  id="imgHist" src="" alt="" class="story-containercrop">        
              </div>
            </div>  
            <div class="col"> 
            <div  id="contenedor_historias_text" class="contenedor_historias_textclass"  ></div>
            </div> 
            </div> 
            </div>   
        
          <div data-slide="slide_hist" class="slide_hist" id="slide_hist_content">
          <div class="slide_hist-items" id="contenedor_historias">
      
          </div>
          <nav class="slide_hist-nav">
              <div class="slide-thumbs"></div>
              <button class="slide_hist-prev">Previous</button>
              <button class="slide_hist-next">Next</button>
          </nav>
      </div>
           

      
      </div>
     
      </div>
    </div>*/

/*****************************  contenedore de medios historias **********/

.slide_hist {
    box-shadow: var(--slide-width);
    display: grid;
    margin: 20px auto;
    max-width: var(--slide-width);
  
}

.slide_hist-items {
    border-radius: 5px;
    grid-area: 1/1;
    overflow: hidden;
    position: relative;
}

.slide_hist-items>* {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
}

.slide_hist-items .active {
    opacity: 1;
    pointer-events: initial;
    position: relative;
}

.slide_hist-nav {
    display: grid;
    grid-area: 1/1;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    z-index: 100000;
}

.slide-thumbs {
    display: flex;
    grid-column: 1 / 3;
}

.slide-thumb-item {
    background-color:   rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    display: block;
    flex: 1;
    height: var(--slide-thumb-height);
    margin: 5px;
    overflow: hidden;
  
}


/*version 1 a la vez*/
.slide-thumb-item.active::after {

    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 5s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
}

.slide-thumb-item.active6::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 6s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}

.slide-thumb-item.active7::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 7s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}

.slide-thumb-item.active8::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 8s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}

.slide-thumb-item.active9::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 9s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}

.slide-thumb-item.active10::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 10s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}

.slide-thumb-item.active11::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 11s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}

.slide-thumb-item.active12::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 12s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}

.slide-thumb-item.active13::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 13s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}


.slide-thumb-item.active14::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 14s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}

.slide-thumb-item.active15::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 15s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}


.slide-thumb-item.active16::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 16s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}

.slide-thumb-item.active17::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 17s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}


.slide-thumb-item.active18::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 18s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}

.slide-thumb-item.active19::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 19s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}


.slide-thumb-item.active20::after  {
 
    animation-name: thumb;
    background-color:   rgba(255, 255, 255, 0.5);
    animation-duration : 20s ;
    animation-timing-function: linear;
    animation-direction:normal;
    animation-fill-mode:forwards;
    border-radius: 3px;
    content: '_';
    display: block;
    height: inherit;
    transform: translateX(-100%);
    
}


.slide_hist-next,
.slide_hist-prev {
    opacity: 0;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

@keyframes thumb {
    to {
        transform: initial;
    }
}

.slide-thumb-border{
    width: 20%;
}


/****************galeria *************************************/
.galeria{
    background-color: black;
}
.galeria.row > .column {
    padding: 0 8px;
  }
  
  .galeria.row:after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* Create four equal columns that floats next to eachother */
  .galeria.column {
    float: left;
    width: 25%;
  }
  
  /* The Modal (background) */
  .galeria.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
  }
  
  /* Modal Content */
  .galeria.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 90%;
    
  }
  
  /* The Close Button */
  .galeria.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
  }
  
  .galeria.close:hover,
  .galeria.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Hide the slides by default */
  .galeria.mySlides {
    display: none;
  }
  
  /* Next & previous buttons */
  .galeria.prev,
  .galeria.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
  }
  
  /* Position the "next button" to the right */
  .galeria.next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .galeria.prev:hover,
  .galeria.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  /* Number text (1/3 etc) */
  .galeria.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }
  
  /* Caption text */
  .galeria.caption-container {
    text-align: center;
    background-color: black;
    padding: 2px 16px;
    color: white;
  }
  
  .galeria.img.demo {
    opacity: 0.6;
  }
  
  .galeria.active,
  .galeria.demo:hover {
    opacity: 1;
  }
  
  .galeriaimg.hover-shadow {
    transition: 0.3s;
  }
  
  .galeria.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }


  .gal_modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
  }
  
  /* Modal Content */
  .gal_modal-content {
    position: relative;
     text-align: center;
    margin: auto;
    padding: 0;
    width: 90%;
    height: 80%;
    /*max-width: 1400px;*/
  }


  .galeria-next {
    
    border-radius: 3px 0 0 3px;
  } 
  .galeria-prev,
  .galeria-next {
    cursor: pointer;
    position: relative;
    top: 40%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 50px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
  }

/****************************** parche *********************************/
.story-container {
    position: relative;
    width: 600px;
    height: 800px;
}


 .story {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
            display: none;
        }

        .story video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1;
        }

        .progress-bar-container {
            position: absolute;
            top: 10px;
            left: 0;
            width: 100%;
            height: 20px;
            display: flex;
            justify-content: space-between;
            padding: 0 10px;
            z-index: 2;
        }

        .progress-bar {
            height: 100%;
            background: rgba(255, 255, 255, 0.5);
            flex: 1;
            margin: 0 5px;
            position: relative;
        }

        .progress {
            height: 100%;
            background: rgba(255, 255, 255, 0.8);
            width: 0;
            transition: width 0.1s linear;
        }
