.events-block div.emagic #ec_event_calendar .fc-header-toolbar.fc-toolbar.fc-toolbar-ltr {
    border:none !important;
}
.fc-header-toolbar.fc-toolbar.fc-toolbar-ltr > *:nth-child(3) {
    display: none !important;
}
 
.events-block .ec-calendar, .events-block .ec-events-blocks-fck{
    flex:1;
}


.events-block div.emagic,
.events-block .ec-calendar {
    /* width: 50%; */
    margin: 0 0 auto;
    flex: 1 1;
}
.fc-col-header {
  width: 100% !important;
}
.fc-daygrid-body.fc-daygrid-body-unbalanced.fc-daygrid-body-natural {
  width: 100% !important;
}
.container #ec_event_calendar.fc .fc-toolbar.fc-header-toolbar .fc-button-primary.fc-today-button {
  background-color: #91B1D8;
  border-color: transparent;
  color: #fff !important;
  border-radius: 50px !important;
  text-transform: capitalize;
  min-width: auto !important;
  max-height: 37px;
  vertical-align: middle;
  line-height: normal;
}
.container #ec_event_calendar.fc .fc-toolbar.fc-header-toolbar .fc-button-primary.fc-today-button:hover
.fc-scrollgrid-sync-table {
  width: inherit !important;
}


.events-block .ec-events-blocks-fck {
  max-height: 700px; /*потом надо заменить на нормальную*/
  overflow: auto;
}
.ec-events-blocks-fck,
.ec-events-blocks-fck * {
    scrollbar-width: 10px;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.ec-events-blocks-fck ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.ec-events-blocks-fck ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.ec-events-blocks-fck ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}


.ec-box-card-thumb,
.ec-card-footer-wrap
 {
    display: none;
}
.events-block div.emagic .ec-box-row{
    display:block;
}
.events-block div.emagic .ec-box-row .ec-event-card {
    width: inherit;
    max-width: 100%;
}

.ec-box-card-item.ec-border.ec-rounded-1 {
  background: transparent;
  border: none !important;
}
.ec-box-card-item .ec-card-event-date-wrap .ec-card-event-date-value {
    display: flex;
    gap:10px;
    height: 80px;
}
.ec-box-card-item.ec-border.ec-rounded-1 .ec-card-event-date-wrap  .ec-card-event-date-value p {
    margin: 0;
    padding: 0;
    height: auto;
    align-content: end;
}
.ec-box-card-item.ec-border.ec-rounded-1 .ec-card-event-date-wrap  .ec-card-event-date-value .day-event {
    text-shadow: 1px -1px 0 rgba(0,0,0,0.2), -1px 1px 0 rgba(255,255,255,0.5);
    color: #f6bf41 !important;
    font-size: 80px !important;
    line-height: 115% !important;
    text-decoration: none !important;
}
.ec-box-card-item.ec-border.ec-rounded-1 .ec-card-event-date-wrap  .ec-card-event-date-value .month-event {
    font-size: 20px !important;
    line-height: 170% !important;
    text-decoration: none !important;   
    color: #fff !important;
}
.ec-box-card-venue.ec-card-venue.ec-text-muted.ec-text-small.ec-text-truncate {
    display: none !important;
}
.ec-box-title a {
    color: #fff !important;
}
.ec-box-card-desc p {
    text-decoration: none;
}

.ec-box-card-content.ec-text-small.ec-p-3.ec-d-flex.ec-flex-column.ec-flex-1 {
    padding: 0 !important;
}

 div.emagic div#ec-events-container.ec-events-container div#ec-events-content-container  div.ec-event-card div.ec-box-card-content div.ec-box-title.ec-box-card-title a,
.ec-box-card-item.ec-border.ec-rounded-1 .ec-box-card-content .ec-box-title.ec-box-card-title p {   
    font-size: 20px !important;
    color: #fff !important;
    font-weight: 700 !important;
    line-height: 170% !important;
    letter-spacing: 5% !important;
    text-decoration: underline !important;
}

.ec-box-card-desc {
    font-size: 18px;
    line-height: 160%;
    color: #000;   
    font-weight: 700;
    -webkit-line-clamp: 4 !important;
    display: -webkit-box !important; 
}

.ec-box-title.ec-box-card-title {
    -webkit-line-clamp: 6 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: wrap !important;
    font-size: 22px !important;
    line-height: 100%;
    margin-top: 6px;    
}

.ec-box-card-item.ec-border.ec-rounded-1 .ec-box-card-title a {
   font-size: 18px !important;
    line-height: 135% !important;
    margin-top: 5px !important;
    text-decoration: none !important;
    color: rgb(21, 21, 21) !important;
    font-weight: 500 !important;
}

.container table tr:nth-child(2n) {
  background-color: none !important;
}
.fc-daygrid-day {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    border: none !important;
}
.fc-daygrid-day-frame  {
    aspect-ratio: 1 / 1;

}
.fc-daygrid-day-events {
    position: absolute !important;
    top: 0;
    right: 0;
}

#ec_event_calendar table.fc-scrollgrid-sync-table .fc-daygrid-day-top {
  align-content: flex-end !important;
  padding: 0 !important;
  /*width: 52px;*/
  height: 100%;
}
#ec_event_calendar.fc .fc-daygrid-day-number {
  font-size: 30px !important;
  color: #000;
  align-content: center !important;
  margin: auto !important;
  padding: 0 !important;
}

.event-btn-to-event {
  display: block;
  margin-left: auto;
  margin-right: 0;
  height: auto;
  padding: 20px 0 0 0;
  width: 100%;
  display: flex;
  justify-content: end;
}

#ec-sl-right-area .event-btn-to-event {
  padding: 20px 0 ;

}
.event-btn-to-event a {
    text-transform: uppercase;
    font-size: 16px;
    width: auto;
    padding: 8px 16px;
    font-weight: 500;
    color:#000 !important;
    line-height: 170%;
    letter-spacing: 0.05em;
    background: #f6bf41;
    border:none;
    border-radius: 30px;
}

.not-has-free-places-label {
    color:#000 !important;
    line-height: 170%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 500;
    margin-right: 16px;
}

@media (max-width: 767px) {
  #ec_event_calendar.fc .fc-daygrid-day-number  {
    font-size: 12px !important;
  }
}
.fc-day-sun .fc-daygrid-day-top a,.fc-day-sat .fc-daygrid-day-top a {
    color: #f67878 !important;
}

.fc-daygrid-day-events a.fc-daygrid-event {
  height: 20px;
  width: 20px;
  border-radius: none !important;
}
a.fc-daygrid-event {
    /*border: 1px solid aqua;*/
    border-radius: 50% !important;
    margin: auto !important;
}
.fc-event-title, .fc-event-time {
    display: none !important;
}

#ec-events-container .ec-event-types .ec-event-type {

    border-radius: 50px;
    border: 1px solid #91B1D8;
}
#ec-events-container .ec-event-types .ec-event-type:hover {

    background-color: #91B1D8;
}
#ec-events-container .ec-event-types .ec-event-type:hover p {
    color:#000;
}
#ec-events-container .ec-event-type p {
    font-size: 20px;
    font-weight: 700;
    padding: 0px 10px;
    margin: 0;
    line-height: 170%;
    letter-spacing: 5%;
    color: #91B1D8;
}

.not-found-events-block {
    font-size: 16px;
    padding: 20px;
    font-weight: 700;
    background-color: #fff;
}

.not-found-events-block-hidden {
    display: none;
}

#ec_single_event_title {
    font-size: 24px !important;
}

.scrollButton {
    position: absolute;
    max-width: 44px;
    min-width: 44px;
    max-height: 44px;
    min-height: 44px;
    background: white;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    /* Добавленные стили для анимации */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scrollButtonShowed {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.events-cards-frame {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    
    /* Скрываем полосу прокрутки */
    scrollbar-width: none; /* Для Firefox */
    -ms-overflow-style: none; /* Для IE и Edge */
}

/* Для Chrome, Safari, Edge */
.events-cards-frame::-webkit-scrollbar {
    display: none; /* Полностью скрываем */
    width: 0;
    height: 0;
}

#ec_events_front_views_square_grid .scrollButton img.scrollButtonIcon {
    width: 100% !important;
    height: 100% !important;
}

.scrollButtonLeft {
    left: 4px;
}

.scrollButtonRight {
    right: 4px;
}

@media (max-width: 1020px) {
   
}

@media (max-width: 860px) {
   
}

@media (max-width: 760px) {
    .scrollButtonLeft {
        left: 4px;
    }

    .scrollButtonRight {
        right: 4px;
    }
    
    .scrollButton {
        max-width: 36px;
        min-width: 36px;
        max-height: 36px;
        min-height: 36px;
    }
}

@media (max-width: 640px) {
    
}

@media (max-width: 420px) {
    
}