#activity-popup.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 998;
    overflow-y: auto;
  }
  
  #activity-popup .popup-content {
    background: #fff;
    padding: 0;
    width: 86%;
    max-width: 839px;
    position: relative;
  }
  
  #activity-popup .popup-close {
    position: absolute;
    right: -23px;
    top: -23px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 22;
  }
  
  #activity-popup .popup-close:focus {
    outline: none;
  }
  

  .activity-popup-wrap {
    background-color: #FFFFFF;
    position: relative;
}

.activity-popup-wrap .right-column {
    padding-bottom: 85px;
    
}



.activity-popup-wrap .container-activities {
    height: 100%;
    margin: 0;
}

.main-image-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    max-height: 100%;
}



.activity-popup-wrap .carousel {
    padding-right: 2px;
}

.activity-popup-wrap .carousel-inner {
    max-height: 300px;
}

.activity-popup-wrap .carousel-item .thumb {
    /*width: 33.3333%;*/
    cursor: pointer;
    float: left;
   padding: 0 2px;
}

.activity-popup-wrap .carousel-item .thumb img,
.activity-popup-wrap .carousel-item .thumb iframe {
    width: 100%;
    /*margin: 2px;*/
    height: 120px;
    object-fit: cover;
}

.activity-popup-wrap .carousel-item img {
    width: 100%;
}

.carousel-video {
    position: relative;
    height: 120px;
    
}

.carousel-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    background-color: transparent;
}

.carousel-video iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    padding: 0 4px;
}
.main-image-container iframe{
    /*height: 300px;*/
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover; 
    /*padding: 5px;*/
    padding: 4px 4px 2px 0;
}

.main-image-container {
    max-width: 100%;
    position: relative;
    height:300px;
    padding: 4px 4px 2px 0;
    margin-bottom: 2px;
}
.main-video-container{
    overflow: hidden;
    padding-bottom: 56.25%;
    height: 0;
    max-width: 100%;
}

.activity-buttons-container {
    column-gap: 20px;
    margin-top: auto;
    position: absolute;
    bottom: 20px;
    right: 0;
    justify-content: flex-end;
}

.activity-buttons-container .btn {
    margin: 5px;
}
#thumbCarousel .carousel-control-next-icon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300ADCE'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
#thumbCarousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300ADCE'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
#thumbCarousel .carousel-control-prev{
  justify-content: flex-start;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}
#thumbCarousel .carousel-control-next{
  justify-content: flex-end;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}
#thumbCarousel .carousel-control-prev, 
#thumbCarousel .carousel-control-next{
z-index: 14;
}

#thumbCarousel::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  box-shadow: 0px 0px 0px 0px rgba(255,255,255,1);
}

#thumbCarousel::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  box-shadow: 0px 0px 0px 0px  rgba(255,255,255,1);
}
#thumbCarousel::before,
#thumbCarousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px; /* Ширина градиентного эффекта */
    z-index: 1;
    pointer-events: none; /* Чтобы кнопки оставались интерактивными */
}
#thumbCarousel .carousel-indicators button {
  background-color: #fff;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid #00ADCE;
}

#thumbCarousel .carousel-indicators .active {
  background-color: #00ADCE !important;
}
#thumbCarousel .carousel-indicators{
  bottom: -35px;
}
#thumbCarousel .carousel-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); 
  z-index: 1;
}
.activity-popup-wrap .carousel-item .thumb{
  width: 100%;
}

.image-carousel .carousel-inner {
  display: flex;
}
.image-carousel .carousel-item {
  margin-right: 0;
  flex: 0 0 33.333333%;
  display: block;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .activity-popup-wrap .right-column{
    padding-left: 0;
  }
  .activity-popup-wrap .left-column {
    padding-right: 0;
}


}
@media (max-width: 768px) {
  .main-image-container{
    padding: 4px 4px 2px 4px;
  }
  .activity-popup-wrap .container-activities{
    margin: 0 auto;
    max-width: 100%;
    border-bottom: 0;
  }
  .activity-buttons-container{
    flex-direction: column;
  }
  .activity-popup-wrap .right-column{
    padding-bottom: 153px;
  }
    .activity-buttons-container .btn{
    padding: 4px;
    font-size: 15px;
    margin: 5px 0 0;
  }
   /* #popup-activity-content{
    max-height: 90vh;
   overflow-y: auto;
    overflow-x: hidden;
  }*/
  #activity-popup .popup-content{
      top: 22%;
      margin:auto;
  }
   .row-activities>.col{
    flex: 1 0 100%;
  }
  #activity-popup .popup-close{
          right: -27px;
          top: -27px;
  }
}
