.events-list-container{
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
.event-item{
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #F9F9F9;
  padding:24px
}
.event-time-container{
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.event-time-container .start-time{
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  color:#447BB5;
}
.event-time-container .end-time{
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  color:#447BB5;
}
.event-time-container .separator{
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  color:#447BB5;
}
.event-title h3{
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; 
  color:#222222;
  margin:0;
}
.event-place{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  color:#4E4E4E;
}
 .event-place .icon-location{
  flex: 0 0 16px;
  height: 16px;
  object-fit: contain;
  margin: 0;
}
.events-accordion {  
  overflow: hidden;
}

.events-year-accordion { 
  margin-bottom: 16px;
  background: #F0F7FF;
}

.events-year-accordion:last-child {
  border-bottom: none;
}

.events-year-header {
 
  padding: 16px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center; 
  border: none;
  width: 100%;
}
 
.events-year-title {
  margin: 0;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  color:#155AA2;
  
}

.events-year-toggle { 
  font-weight: bold;
  transition: transform 0.3s ease;
  background: url('../img/icons/icon-arrow-3.svg') no-repeat center center;
  background-size: 14px;
  flex: 0 0 16px;
  height: 16px;
}
.active .events-year-toggle {
  transform: rotate(180deg); 
}
.events-year-content {
  display: none;
  padding: 0 0 10px 0;
  background: #F0F7FF;
}

.events-month-group { 
  padding: 0px 24px 0px 24px;
  margin-bottom: 24px;
}

.events-month-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.events-month-title {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  color:#222222;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.events-month-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.events-month-list li{
  display: flex; 
  gap: 8px;
}
.events-month-list li:before{
  content: "";
  display: inline-block;
  flex: 0 0 5px;
  height: 5px;
  background: #222;
  border-radius: 50%;
  margin-top: 8px;
}
.event-sidebar-item {
  margin-bottom: 8px;
}
 
.event-sidebar-title {
  display: block;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  color:#222222;
}
.gallery-item-info h3{
  font-size: 14px;
  margin:0;
}
 
.gallery-content .gallery-item{
  padding: 12px;
}
.gallery-content .gallery-item .img-container{
  width: 100%;
  height: 180px;
  transition: all 0.3s ease;
}
.gallery-content .gallery-item .img-container img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.gallery-item .img-container:hover{
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}
.events-filter-container{
  margin-bottom: 40px;
}
.btn-wrap{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.counter{
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  color:#8C9196;
}
.custom-slider-btn:after{
  content: '';
  display: block;
  background: url('../img/icons/icon-arrow-blue.svg') no-repeat center center;
  background-size: 16px;
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}
.prev-btn.custom-slider-btn ,.next-btn.custom-slider-btn{
  flex: 0 0 40px;
  height: 40px;
  background: #F0F7FF; 
  display: flex;
  justify-content: center;
  align-items: center;
  border:0;
}
.custom-slider-btn:hover{
  background: var(--hover-color);
}
.custom-slider-btn:hover:after{
  background: url('../img/icons/icon-arrow-white.svg') no-repeat center center;
  background-size: 16px;
}
.prev-btn.custom-slider-btn:after{
  transform: rotate(0deg);
}
 
.gallery-title h2{
  text-align: center;
  margin: 0 0 16px;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}
.gallery-module { 
    position: relative;
    margin-bottom: 80px;
    .slick-arrow {
        position: absolute;
        top: 50%;
        width: 52px;
        height: 52px;
        margin-top: -26px;
        background-color: #000;
        padding: 0;
        font-size: 0;
        z-index: 1;
        border-radius: 0;
        overflow: hidden;
        &.slick-prev {
            left: 0; 
            &::before {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                width: 13px;
                height: 13px;
                margin-left: -4px;
                margin-top: -8px;
                border-top: solid 4px #fff;
                border-left: solid 4px #fff; 
                -ms-transform: rotate(-45deg);
                -webkit-transform: rotate(-45deg);
                transform: rotate(-45deg);
            }
            &::after {
                left: 100%;
            }
        }
        &.slick-next {
            right: 0; 
            &::before {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                width: 13px;
                height: 13px;
                margin-left: -9px;
                margin-top: -8px;
                border-right: solid 4px #fff;
                border-bottom: solid 4px #fff;
                -ms-transform: rotate(-45deg);
                -webkit-transform: rotate(-45deg);
                transform: rotate(-45deg);
            }
            &::after {
                left: -100%;
            }
        }
        &:after {
            content: '';
            position: absolute;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: red;
            z-index: -1;
            transition: left 0.15s;
        }
        &:hover {
            &::after {
                left: 0;
            }
        }
    }
    .gallery-slider {
        position: relative;
        padding: 0 26px;
        li {
            margin: 0 2px;
            img {
                width: 100%;
            }
        }
    }
}

.mfp-wrap {
    .mfp-container {
        max-width: 1100px;
        left: 50%;
        -ms-transform: translateX(-50%);
        -webkit-transofmr: translateX(-50%);
        transform: translateX(-50%);
        padding: 0 20px;
    }
    .mfp-content {
        width: 100%;
        background-color: transparent;
        padding: 0;
        z-index: 0;
        img {
            width: 100%;
            padding: 0;
        }
    }
    .mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
        top: 0px;
        right: 0;
        width: 50px;
        height: 50px;
        padding: 0;
        padding-left: 5px;
        background-color: #000; 
        opacity: 1;
        text-align: center;
    }

    .mfp-arrow {
        position: absolute;
        top: 50%;
        width: 52px;
        height: 52px;
        margin-top: -26px;
        background-color: #000;
        padding: 0;
        font-size: 0;
        z-index: 2;
        border-radius: 0;
        overflow: hidden;
        &.mfp-arrow-left {
            left: 25px; 
            &::before {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                width: 13px;
                height: 13px;
                margin-left: -4px;
                margin-top: -8px;
                border-top: solid 4px #fff;
                border-left: solid 4px #fff; 
                -ms-transform: rotate(-45deg);
                -webkit-transform: rotate(-45deg);
                transform: rotate(-45deg);
            }
            &::after {
                left: 100%;
            }
        }
        &.mfp-arrow-right {
            right: 25px; 
            &::before {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                width: 13px;
                height: 13px;
                margin-left: -9px;
                margin-top: -8px;
                border-right: solid 4px #fff;
                border-bottom: solid 4px #fff;
                -ms-transform: rotate(-45deg);
                -webkit-transform: rotate(-45deg);
                transform: rotate(-45deg);
            }
            &::after {
                left: -100%;
            }
        }
        &:after {
            content: '';
            position: absolute;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: red;
            z-index: -1;
            transition: left 0.15s;
        }
        &:hover {
            &::after {
                left: 0;
            }
        }
    }
}

/* Magnific Popup CSS */
.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: 0.8; }

.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden; }

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  box-sizing: border-box; }

.mfp-container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle; }

.mfp-align-top .mfp-container:before {
  display: none; }

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045; }

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto; }

.mfp-ajax-cur {
  cursor: progress; }

.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: -moz-zoom-out;
  cursor: -webkit-zoom-out;
  cursor: zoom-out; }

.mfp-zoom {
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in; }

.mfp-auto-cursor .mfp-content {
  cursor: auto; }

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none; }

.mfp-loading.mfp-figure {
  display: none; }

.mfp-hide {
  display: none !important; }

.mfp-preloader {
  color: #CCC;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044; }
  .mfp-preloader a {
    color: #CCC; }
    .mfp-preloader a:hover {
      color: #FFF; }

.mfp-s-ready .mfp-preloader {
  display: none; }

.mfp-s-error .mfp-content {
  display: none; }

button.mfp-close,
button.mfp-arrow {
  cursor: pointer;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  box-shadow: none;
  touch-action: manipulation; }

button::-moz-focus-inner {
  padding: 0;
  border: 0; }

.mfp-close {
  width: 44px;
  height: 44px;
  line-height: 44px;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  padding: 0 0 18px 10px;
  color: #FFF;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace; }
  .mfp-close:hover,
  .mfp-close:focus {
    opacity: 1; }
  .mfp-close:active {
    top: 1px; }

.mfp-close-btn-in .mfp-close {
  color: #333; }

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  color: #FFF;
  right: -6px;
  text-align: right;
  padding-right: 6px;
  width: 100%; }

.mfp-counter {

  display: none;
}

.mfp-arrow {
  position: absolute;
  margin: 0;
  top: 50%;
  padding: 0;
  width: 90px;
  height: 110px;
  -webkit-tap-highlight-color: transparent; }
  .mfp-arrow:hover,
  .mfp-arrow:focus {
    opacity: 1; }

.mfp-arrow-left {
  left: 0; }

.mfp-arrow-right {
  right: 0; }

.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px; }
  .mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px; }
  .mfp-iframe-holder .mfp-close {
    top: -40px; }

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%; }
  .mfp-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #000; }

/* Main image in popup */
img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  box-sizing: border-box;
  padding: 40px 0 40px;
  margin: 0 auto; }

/* The shadow behind the image */
.mfp-figure {
  line-height: 0; }
  .mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #444; }

/* Event Gallery Styles */
.event-gallery-container {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.event-gallery-title h4 {
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  margin: 0 0 12px 0;
}

.popup-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.img-container {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
}

.gallery-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-thumbnail {
  opacity: 0.9;
}

.img-container a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.img-container a:hover {
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .popup-gallery {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 6px;
  }
  
  .img-container {
    height: 60px;
  }
}

/* Past Event Popup Styles */
.past-event-popup {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.past-event-popup:hover span {
  color: #155AA2;
  text-decoration: underline;
}

.past-event-popup .event-sidebar-title {
  position: relative;
}
 
.past-event-popup  .event-sidebar-item a:hover{
  text-decoration: underline;
  color: #155AA2;
}
.popup-title {
  text-align: left;
  line-height: 18px;
  color: #F3F3F3;
  word-wrap: break-word;
  margin-top: 10px;
}

.popup-date {
  display: block;
  font-size: 12px;
  color: #BDBDBD;
  margin-top: 4px;
  font-style: italic;
}

/* Event Title Clickable Styles */
.event-title-clickable {
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
}

.event-title-clickable:hover {
  color: #447BB5;
}
 

/* No Events Message */
.no-events-message {
  text-align: center;
  padding: 40px 20px;
  background: #f9f9f9; 
  margin: 0px 0;
}

.no-events-message p { 
  color: #999999;
  margin: 0; 
  line-height: 150%;
}
  .mfp-figure small {
    color: #BDBDBD;
    display: block;
    font-size: 12px;
    line-height: 14px; }
  .mfp-figure figure {
    margin: 0; }

.mfp-bottom-bar {
  position: static;
  top:auto;
  left: 0;
  bottom: 0;
  width: 100%;
  cursor: auto; }

.mfp-title {
  text-align: left;
  line-height: 18px;
  color: #F3F3F3;
  word-wrap: break-word; 
  padding:20px;
  background: rgba(0, 0, 0, 0.8);
}
.mfp-title small {
  display: block;
  font-size: 12px;
  color: #BDBDBD;
  margin-top: 4px;
  font-style: italic; }

/* Touch performance optimizations */
.gallery-container,
.gallery-container * {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.gallery-container img {
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}
 
.mfp-image-holder .mfp-content {
  max-width: 100%; }

.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer; }
.homepage-gallery .slick-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border:0;
  font-size: 0;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: url('../img/icons/icon-arrow-blue.svg') no-repeat center center #fff;
  background-size: 16px;
  &.slick-prev {
    left: 0;
  }
  &.slick-next {
    right: 0;
    transform: translateY(-50%) rotate(180deg);
  }
  
}


@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  /**
       * Remove all paddings around the image on small screen
       */
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0; }
  .mfp-img-mobile img.mfp-img {
    padding: 0; }
  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0; }
  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px; }
  .mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    box-sizing: border-box; }
    .mfp-img-mobile .mfp-bottom-bar:empty {
      padding: 0; }
  .mfp-img-mobile .mfp-counter {
    display: none;
  }
  .mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0; } 
    
}

@media all and (max-width: 900px) {
  .mfp-arrow {
    -webkit-transform: scale(0.75);
    transform: scale(0.75); }
  .mfp-arrow-left {
    -webkit-transform-origin: 0;
    transform-origin: 0; }
  .mfp-arrow-right {
    -webkit-transform-origin: 100%;
    transform-origin: 100%; }
  .mfp-container {
    padding-left: 6px;
    padding-right: 6px; } }

 @media screen and (min-width: 768px) {
  .gallery-content .gallery-item .img-container{
    width: 100%;
    height: 240px;
    transition: all 0.3s ease;
  } 
  .gallery-content .gallery-item{
    padding: 16px;
  }
  .mfp-bottom-bar {
    position: absolute;
  }
  .mfp-wrap {
    .mfp-container {
        padding: 0 50px;
    }
  }
}
