:root {
  --cl-main: #ee6d11;
  --cl-hover: #c25400;
}

/*== SLIDER IMAGE - SINGLE POST ==*/
.single-album-gallery {
  margin-bottom: 12px;
}

.single-album-gallery .album-title {
  font-size: 24px !important;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px !important;
}

.single-album-gallery .album-title::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--linear-color);
}

.album-grid .album-item,
.single-album-video .item .video {
  padding: 0 6px;
}

.album-grid .album-item .img {
  position: relative;
  display: block;
}

.album-grid .album-item .img::before {
  content: "";
  display: block;
  padding-bottom: 75%;
}

.author .album-grid .album-item .img::before {
  padding-bottom: 100%;
  border: 1px solid #ccc;
  border-radius: 16px;
}

.album-grid .album-item .img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: fill;
}

/*== SLIDER VIDEO - SINGLE POST ==*/
.single-album-video .item {
  padding: 0;
}
.single-album-video .video .view_image::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.single-album-video .video .view_image img {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
}

.single-album-video .view_image i {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  color: var(--primary-color);
  background-color: #fff;
  font-size: 17px;
  border: 1px solid var(--primary-color);
  padding: 0 10px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
  cursor: pointer;
}

.single-album-video .view_image i:hover {
  background: var(--linear-color);
  color: #fff;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.view_image_popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.view_image_popup.show {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.view_image_popup .bg {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0.6;
}

#close_video {
  position: absolute;
  z-index: 2;
  top: -15px;
  right: -15px;
}

.view_image_popup #close_video i {
  font-size: 30px;
  color: #fff;
}

.view_image_popup .content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  z-index: 1;
  margin: 0 auto;
  position: initial;
  max-height: 90%;
  max-width: 90%;
  width: 50%;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.view_image_popup .content .video-wrapper {
  position: relative;
  padding-top: 56.25%;
  width: 100%;
  height: 0;
}

.view_image_popup .content iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.album-grid.has-tiktok .item {
  padding: 0 10px;
}

.tiktok-embed-wrapper {
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
}

.tiktok-embed-wrapper blockquote {
  width: 100% !important;
  max-width: 100% !important;
  min-width: auto !important;
  padding: 0;
  margin: 0 auto;
}

/* Play buttons & Close buttons SVG */
.btn_play-video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--cl-hover);
  cursor: pointer;
}

.btn_play-video svg {
  width: 22px;
  fill: var(--cl-hover);
}

a#close_video svg {
  width: 35px;
  height: 35px;
  fill: #fff;
}

/* Slick Arrows */
.album-grid .slick-arrow,
.album-main .slick-arrow {
  background: var(--linear-color);
  border-radius: 50%;
  margin: 0;
  min-height: auto;
  padding: 2px;
  width: 30px;
  height: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #fff;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: -10px;
}

.album-grid .slick-next.slick-arrow,
.album-main .slick-next.slick-arrow {
  left: initial;
  right: -10px;
  cursor: pointer;
}

.album-grid .slick-arrow i,
.album-main .slick-arrow i {
  color: #000 !important;
  font-size: 16px !important;
}

.album-grid .slick-arrow:hover,
.album-main .slick-arrow:hover {
  background-color: var(--cl-hover);
}

/* Ảnh lớn & Thumbnail */
.single-album-gallery .album-main.has-gallery .album-item a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.single-album-gallery .album-main.has-gallery .album-item a .img {
  position: relative;
  width: 100%;
  height: 100%;
}

.single-album-gallery .album-main.has-gallery .album-item a .img::before {
  content: "";
  justify-content: center;
  align-items: center;
  display: flex;
}

.single-album-gallery .album-main.has-gallery .album-item {
  height: 400px;
  overflow: hidden;
}

.single-album-gallery .album-main.has-gallery .album-item img {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.single-album-gallery .album-grid .slick-list {
  width: 100%;
}

.single-album-gallery .album-grid.has-gallery {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  margin-top: 5px;
}

.single-album-gallery .album-grid.has-gallery .thumb-item {
  flex: 0 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.single-album-gallery .album-grid.has-gallery .thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.single-album-gallery .album-grid.has-gallery .thumb-item.active img,
.single-album-gallery .album-grid.has-gallery .thumb-item.slick-current img {
  border: 2px solid #ff9800;
  box-sizing: border-box;
}

/* Responsive */
@media (max-width: 767px) {
  .album-grid .slick-arrow,
  .album-main .slick-arrow {
    left: -2px;
  }
  .album-grid .slick-next.slick-arrow,
  .album-main .slick-next.slick-arrow {
    right: -2px;
  }
  .view_image_popup .content {
    width: 90%;
  }

  .single-album-gallery .album-main.has-gallery .album-item {
    height: 250px;
    overflow: hidden;
  }

  .single-album-gallery .album-main.has-gallery .album-item img {
    height: auto;
  }
}
