.media_list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0 24px;
  /* margin-bottom: 2.5rem; */
  /* Add a 20px gap between items */
}

.media_list .media_item {
  -webkit-box-flex: 1;
  -ms-flex: 0 1 calc(50% - 12px);
  flex: 0 1 calc(50% - 12px);
  /* Adjust width to account for the gap */
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  margin-bottom: 44px;
  display: block;
}

.media_list .media_item::before {
  content: '';
  flex: 1;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  opacity: 1;
}

.media_list .media_item img,
.media_list .media_item video {
  width: 100%;
  /* Ensure images take up the full width of their container */
  /* max-height: 400px; */
  height: 80%;
  object-fit: cover;
}

.library-video {
  /* border: 1px solid #000000; */
  background-image: url('../../images/web/placeholder.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.mobile-select-category {
  display: none;
}

.media_list .media_title {
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  margin: 1.5rem 0 0 0;
  /* padding-top: 24px;
  padding-bottom: 44px; */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.thumbnail-hover .media_title {
  color: #0560FD;
}

.media_list option {
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
}

.schedule_select {
  text-transform: uppercase;
}

.weekly_schedule .schedule_select {
  width: 150px;
}

select.form-control.active.schedule_select {
  background-color: var(--PRIMARY, #0560FD);
  color: #fff;
}

.media_slect {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 44px;
}

/* album popup */
.album-image {
  width: 100%;
}

#album-image-modal .modal-dialog {
  max-width: 100%;
  margin: 0 !important;
}

#album-image-modal .lSSlideOuter .lSPager.lSGallery li a img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

#album-image-modal .modal-content {
  background-color: #000000;
  min-height: 300px;
}

.title-no-data {
  color: #ffffff;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.text-black {
  color: #000000 !important;
}

#album-image-modal .box-lSPager {
  margin-bottom: 1rem;
  transition: transform 0.2s;
  position: relative;
}

#album-image-modal .box-lSPager:hover {
  transform: translateY(-50px);
}

.btn-close-album-image-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 80px;
  height: 80px;
  background-color: #ffffff !important;
  border-radius: 100%;
  opacity: 1;
  font-size: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-album-image-modal:focus {
  outline: none;
}

.album-image-lightSlider {
  height: 50% !important;
}

.album-image-lightSlider li {
  position: relative;
}

.album-image-lightSlider img {
  max-width: 100vw;
  width: 100%;
  height: 80vh;
  object-fit: contain;
}

#album-image-modal .download-gallery {
  position: absolute;
  top: auto;
  bottom: 25px;
  left: 23px;
}

#album-image-modal .btn-download-gallery {
  padding: 15px 20px;
  border-radius: 50px;
  opacity: 1;
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 14px;
  text-transform: uppercase;
  border: none;
}

#album-image-modal .btn-download-gallery i {
  margin-left: 0.5rem;
}

#album-image-modal .image-count {
  position: absolute;
  top: auto;
  bottom: 20px;
  right: 20px;
  font-size: 36px;
  line-height: 48.6px;
  color: #ffffff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 200;
}

#album-image-modal .image-count p {
  margin-bottom: 0;
}

#album-image-modal .total-image {
  font-size: 36px;
  line-height: 48.6px;
  color: #FFFFFF66;
}

#album-image-modal .box-lSPager:hover .modal-album-name {
  display: block;
}

.modal-album-name {
  display: none;
  position: absolute;
  top: auto;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -100px);
  color: #ffffff;
  font-size: 52px;
  text-transform: uppercase;
  height: 113px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-change-tab {
  padding: 15px 20px !important;
  font-size: 14px;
  color: #000000;
  text-transform: uppercase;
  width: 129px !important;
  text-wrap: nowrap;
  border: 1px solid #0560FD;
  border-radius: 0;
  margin-left: 0 !important;
  margin-right: 12px;
}

.btn-change-tab.active,
.btn-change-tab:hover {
  color: #ffffff !important;
  background: #0560FD;
  box-shadow: none;
}

.media_list_container.hide {
  display: none;
}

.collapse-library {
  display: block;
}

.thumbnail-album {
  /* height: 300px !important; */
  width: 100% !important;
  aspect-ratio: 1 / 0.676;
}


@media screen and (max-width: 769px) {
  .modal-album-name {
    font-size: 32px;
  }

  #album-image-modal .box-lSPager:hover {
    transform: translateY(-20px);
  }

  .btn-close-album-image-modal {
    width: 40px;
    height: 40px;
  }

  .mobile-select-category {
    display: block;
    margin-bottom: 2rem;
  }

  .mobile-select-category .form-group {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-select-category .form-group select {
    background-color: #F6F6F6 !important;
    width: 100%;
    padding: 0 12px;
  }

  .collapse-library {
    display: none;
  }
}

@media screen and (max-width: 576px) {
  .media_list_container {
    display: block;
  }

  .media_slect {
    margin-bottom: 2rem;
  }

  .media_list .media_title {
    margin: 1rem 0 2rem 0;
    /* padding-top: 1rem;
    padding-bottom: 2rem; */
  }
}

@media screen and (max-width: 769px) {
  #mobile-category-select {
    height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url(/images/tintuc/angle-down.png) no-repeat;
    background-position: right 20px top 50%;
  }
}