.image-item .wrap {
  border-radius: 10px;
  position: relative;
  padding: 5px;
  transition: all 0.3s ease-out 0s;

  &:hover {

    .actions,
    .desc {
      opacity: 1;
    }
  }

  img {
    border-radius: 10px;
  }

  .play-time {
    display: flex;
    position: absolute;
    padding: 10px 20px 10px 10px;
    width: 100%;
    justify-content: space-between;
    bottom: 5px;

    .lni-play {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--white);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: var(--black);
      cursor: pointer;

      &:hover {
        background-color: var(--red);
        color: var(--white);
      }
    }

    span {
      display: flex;
      padding: 10px;
      border-radius: 30px;
      background-color: var(--white);
      color: #7c7c7c;
      font-size: 16px;
      font-weight: 500;
    }
  }

  .actions {
    opacity: 0;
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;

    a {
      width: 32px;
      height: 32px;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 10px;
      transition: all 0.3s ease-out 0s;

      &.delete {
        border: 1px solid #ffa2a230;
        background-color: #ffa2a230;

        &:hover {
          background-color: #ffa2a28a;
        }
      }

      &.edit {
        background-color: #fff;

        &:hover {
          background-color: #dedede5e;
        }
      }
    }
  }

  .desc {
    opacity: 0;
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: #00000070;
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    width: calc(100% - 10px);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: all 0.3s ease-out 0s;

    h4 {
      color: var(--white);
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      font-size: 15px;
    }

    p {
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
  }
}

#media-detail .sec-title {
  gap: 20px;
}

.sec-title .title-txt h2 {
  font-size: 18px;
  line-height: 23px;
}

.sec-title .btn-actions {
  display: flex;
  gap: 10px;

  .btn {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #dedede;
    border-radius: 10px;
    background-color: #FFF;

    &:hover {
      background-color: #dedede5e;
      color: var(--black);
    }
  }

  .btn-delete {
    border: 1px solid #ffa2a230;
    background-color: #ffa2a230;

    &:hover {
      background-color: #ffa2a28a;
    }

    box-shadow: 0px 1px 0.5px 0.05px #17171705;
    border: transparent;
  }
}

.slider-gallery {
  display: flex;
  gap: 30px;
}

.slider-gallery .gallery-thumb {
  width: 85px;
  max-height: 70vh;
  overflow-y: scroll;

  .swiper-thumbs {
    width: 100%;

    .swiper-wrapper {
      flex-direction: column;
      gap: 10px;

      .swiper-slide {
        width: 100% !important;
        opacity: 0.4;
      }

      .swiper-slide-thumb-active {
        opacity: 1;
      }

      img {
        width: 100%;
        height: 64px;
        border-radius: 5px;
        object-fit: cover;
      }
    }
  }
}

.slider-gallery .gallery-big {
  width: 90%;

  .swiper-slide {
    border-radius: 10px;
    overflow: hidden;

    img {
      max-width: 1152px;
      max-height: 648px;
      border-radius: 10px;
    }
  }
}

.slider-wrap {
  position: relative;
  max-width: 80%;
  margin: 0 auto;
}

.btn-nav {
  position: absolute;
  top: calc(50% - 25px);
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 10px;
  border: 1px solid #dedede;
  background-color: #f1f1f1;
  z-index: 10;
  color: var(--black);
  font-size: 20px;
  transition: all 0.3s ease-out 0s;

  &.btn-next {
    left: -80px;
  }

  &.btn-prev {
    right: -80px;
  }

  &:hover {
    color: var(--white);
    background-color: var(--red);
  }
}

#html5lightbox-watermark {
  display: none !important;
}

.slider-gallery {
  .swiper-slide {
    position: relative;

    i.lni-play {
      position: absolute;
      border-radius: 50%;
      background: var(--white);
      color: var(--black);
      left: 50%;
      top: 50%;
      text-align: center;

      &:hover {
        background-color: var(--red);
        color: var(--white);
      }
    }
  }

  .gallery-thumb i.lni-play {
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    font-size: 10px;
    line-height: 20px;
  }

  .gallery-big i.lni-play {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    font-size: 18px;
  }
}

.ds-frm {
  label {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 10px;
  }

  .required {
    color: var(--red);
  }
}

.upload-container {
  display: flex;
  gap: 20px;
  max-width: 600px;
  align-items: center;

  /* padding-bottom: 45px; */
  .thumbnail {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .upload-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .dropzone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px dashed #dedede;
    border-radius: 12px;
    padding: 8px 12px 8px 16px;
    background-color: var(--white);
    gap: 30px;
    background-color: #fbfbfb;

    .file-name {
      font-size: 16px;
      color: var(--black);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 200px;
    }

    .browser-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background-color: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      padding: 8px 16px;
      font-size: 14px;
      font-weight: 500;
      color: #374151;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .browser-btn:hover {
      background-color: #f3f4f6;
      border-color: #d1d5db;
    }

    .paperclip-icon {
      width: 16px;
      height: 16px;
      transform: rotate(-45deg);
    }

    .hint {
      font-size: 13px;
      margin-top: 10px;
      margin-bottom: 0;
    }
  }
}

.ds-frm {
  .title {
    input {
      padding-right: 60px;
    }

    .close {
      position: absolute;
      bottom: 0;
      right: 0;
      color: #7c7c7c;
      border: none;
      height: 53px;
      width: 53px;

      &:hover {
        background-color: var(--black);

        img {
          filter: brightness(0) invert(1);
        }

        border: none;
      }
    }
  }
}

.image-item::hover {}