/*------------------------ 
Home last event CSS
--------------------------*/
#wpart-home-loop {
  position: absolute;
  margin: 0;
  padding: 0;
  height: 100vh;
  background: transparent;
  align-items: center;  
  z-index: 99999991; 
  display: flex;
  justify-content: center; 
  width: 100%;
}
#wpart-home-loop #wpart-command {
  height: auto;
  width: 100%;
  background: rgba(255,255,255,0.9);
}
#wpart-home-loop #wpart-close {
  color: var(--cat-theme-secondary-color);
  height:20px;
  width: 20px;
  display:block;
  vertical-align: middle;
  float: right;
  cursor: pointer;
}
#wpart-home-loop .wpart-home-event {
  background: transparent;
  width: 50%  !important;
}
#wpart-home-loop .wpart-home-event .inside-article {
  align-self: center !important;
}
#wpart-home-loop .wpart-home-event .article-content {
  margin: 0 !important;
  padding: 40px !important;
  width:  auto !important;
  height: auto !important;
  background: rgba(255,255,255,0.9);
  color: var(--cat-theme-color);
}
#wpart-home-loop .wpart-home-event .entry-header {
  font-size: 2rem;
  line-height: 1.2;
  font-family: var(--cat-theme-head-font) !important;
  color: var(--bs-primary);
  text-transform: uppercase;
  margin: 0 !important;
}
#wpart-home-loop .wpart-home-event .entry-excerpt {
  color: var(--cat-theme-secondary-color) !important;
  padding: 6px 0 !important;
}
#wpart-home-loop .wpart-home-event .entry-excerpt {
  font-size: 1.2rem !important;
}
#wpart-home-loop .wpart-home-event .wpart-entry-footer {
  padding: 0 !important;
}
#wpart-home-loop .wpart-home-event a.wpart-list-button {
  display: inline-block;
  background: transparent !important;
  padding: 0 20px;
  font-size: var(--wpart-list-button-size);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  border: 2px solid var(--wpart-list-button-border);
  line-height: 38px !important;
  height: 40px;
  width: auto;
}
#wpart-home-loop .wpart-home-event a.wpart-list-button:hover {
  color: var(--cat-theme-secondary-color) !important;
  border-color: var(--cat-theme-secondary-color) !important;
}
@media screen and (max-width: 782px) {
  article#wpart-home-loop .wpart-home-event {
    box-shadow: none;
    margin: 0 0 .4rem 0;
    height: auto;
  }
  article#wpart-home-loop .wpart-home-event .article-content {
    width: 100%;
    padding: .2rem .3rem 0 .3rem;
    display: block;
    height: auto;
  }
  article#wpart-home-loop .wpart-home-event .article-thumb {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 12rem;
    margin: 0 0 0 .3rem;
    padding: 0;
  }
  article#wpart-home-loop .wpart-home-event .wpart-list-date .wpart-list-day,
  article#wpart-home-loop .wpart-home-event .wpart-list-date .wpart-list-month,
  article#wpart-home-loop .wpart-home-event .wpart-list-date .wpart-list-year {
    font-size: .9rem;
    font-weight: 500;
  }
  article#wpart-home-loop .wpart-home-event .entry-header {
    margin-bottom: .9rem;
  }
  article#wpart-home-loop .wpart-home-event .entry-title a {
    line-height: 1.2rem;    
  }
  article#wpart-home-loop .wpart-home-event .wpart-entry-footer {
    padding: .3rem .2rem .4rem .2rem;
  }
  article#wpart-home-loop .wpart-home-event a.wpart-list-button {
    width: 130px;
    font-weight: 500;
    font-size: .8rem;
    line-height: 25px;
    height: 25px;
  }
}
@media screen and (max-width: 540px) {    
    #wpart-home-loop .wpart-home-event {
      width: 95% !important;
    }
    #wpart-home-loop .wpart-home-event .article-content {
      padding: 20px !important;
    }
    #wpart-home-loop .wpart-home-event .entry-header {
      font-size: 1.2rem;
      line-height: 1;
      color: var(--bs-primary);
      text-transform: capitalize;
      width:auto;
    }    
    #wpart-home-loop .wpart-home-event .entry-excerpt,
    #wpart-home-loop .wpart-home-event .wpart-list-date{
      font-size: .9rem !important;
    }
    #wpart-home-loop .wpart-home-event .wpart-entry-footer .btn {
      border-width: 1px;
      text-transform: uppercase;
      padding: 5px 10px;
    }
}