.container-story {
  padding-block: 20px;
  padding-inline: 16px;
}
.h-story {
}
.btn-post {
  color: #669933;
  background-color: transparent;
  border: none;
  padding: 5px 0;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}
.body-story {
  margin-top: 16px;
}
.list-story {
  --item: 4;
  --space: calc(var(--item) - 1);
  --mr-item: 24px;
  display: flex;
}
.list-story .item {
  margin-right: var(--mr-item);
  flex: calc(100% / var(--item) - var(--mr-item) / var(--item) * var(--space)) 0
    0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 156/222;
  cursor: pointer;
}
.list-story .item .bg-media {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.list-story .item .bg-media img,
.list-story .item .bg-media video,
.list-story .item .bg-media .color {
  width: 100%;
  height: 100%;
  display: block;
}

.list-story .item .bg-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.3)
  );
}
.bg-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) brightness(0.9);
  z-index: 1;
}
.media-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: transparent;
  object-fit: contain;
}

.list-story .item .bg-content p {
  width: 100%;
  margin: 0;
  padding: 0;
  color: white;
  line-height: 1.2;
}
.list-story .item .bg-content .time {
}
.list-story .item .bg-content .desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.list-story .item .bg-content .desc2 {
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
._modal2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999999999999;
}

._modal2 .container-modal {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}
._modal2 .container-popup {
  background-color: white;
  height: 100%;
  width: 100%;
  max-width: 500px;
  max-height: 850px;
  margin: auto;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
._modal2 .container-popup-2 {
  aspect-ratio: 156/222;
}
._modal2 .close-popup {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  background-color: rgba(37, 37, 37, 0.28);
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-size: 20px;
  cursor: pointer;
  z-index: 99999;
}
._modal2 .close-popup::before,
._modal2 .close-popup::after {
  content: "";
  background: rgba(255, 255, 255, 1);
  width: 3px;
  height: 20px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
._modal2 .close-popup::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
._modal2 .close-popup::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
._modal2 .container-popup .h-popup {
  display: flex;
  border-bottom: 1px solid #ccc;
  padding: 30px 20px 12px;
  gap: 8px;
}

._modal2 .container-popup .h-popup .btn-func {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(43, 99, 24, 1);
  color: rgba(43, 99, 24, 1);
  padding: 8px 4px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  cursor: pointer;
  border-radius: 100px;
  line-height: 1.1;
}
._modal2 .container-popup .h-popup .btn-func.active {
  color: white;
  background: linear-gradient(180deg, #2b6318 10.1%, #67a74c 100%);
  border: none;
}
._modal2 .container-popup .body-popup {
  display: flex;
}
._modal2 .container-popup .panel-story {
  width: 100%;
  flex-shrink: 0;
  padding: 20px;
}
._modal2 .container-popup .panel-story form {
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
}
._modal2 .container-popup .panel-story label {
  display: inline-block;
  margin: 0;
}
._modal2 .container-popup .panel-story textarea {
  width: 100%;
  min-height: 150px;
  resize: none;
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 16px;
  border-radius: 4px;
  border: 1px solid #efefef;
  padding: 8px;
  font-family: dial, Courier, monospace;
}
._modal2 .container-popup .panel-story.text_post textarea {
  aspect-ratio: 156 / 222;
  max-width: 300px;
  margin-inline: auto;
  align-content: center;
}
._modal2 .container-popup .panel-story input[type="text"] {
  width: 100%;
  font-size: 14px;
  border-radius: 100px;
  border: 1px solid #efefef;
  padding: 12px 8px;
}
._modal2 .container-popup .panel-story input[type="text"]:focus,
._modal2 .container-popup .panel-story textarea:focus {
  outline-color: #2b63188f;
  outline-width: 2px;
  outline-offset: 1px;
  outline-style: solid;
}
._modal2 .container-popup .panel-story input[type="text"]::placeholder,
._modal2 .container-popup .panel-story textarea::placeholder {
  color: #ccc;
  font-family: dial, Courier, monospace;
}
.btn-submit-link {
  background: #67a74c;
  border: none;
  color: white;
  padding: 10px 0;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  border-radius: 50px;
  width: 161px;
  margin-top: 12px;
}
.btn-submit-post {
  background: linear-gradient(180deg, #2b6318 10.1%, #67a74c 100%);
  border: none;
  color: white;
  padding: 10px 0;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  border-radius: 50px;
  width: 161px;
  margin-inline: auto;
}
._modal2 .container-popup .panel-story .btn-select-v {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #000000;
  color: #000000;
  padding: 6px 16px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  border-radius: 50px;
  line-height: 1.2;
  font-weight: 600;
}
._modal2 .container-popup .box-upload {
  width: 100%;
  text-align: center;
}
._modal2 .container-popup .panel-story .preview {
  aspect-ratio: 156/222;
  width: 100%;
  max-width: 200px;
  margin-top: 16px;
  position: relative;
  background-color: rgb(217, 217, 217);
  border-radius: 16px;
  background-image: url("../images/file-upload.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65%;
  overflow: hidden;
  align-content: center;
}
._modal2 .container-popup .panel-story .preview iframe {
  border: none;
}
.content-story.cus-view-story iframe {
  min-height: 500px;
}
._modal2 .preview img,
._modal2 .preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.body-popup {
  position: relative;
  overflow: hidden;
  height: calc(100%);
}
.cus-post .body-popup {
  height: calc(100% - 75px);
}
.panel-story {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}
.panel-story.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}
.panel-story.slide-left {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}
.panel-story.slide-right {
  transform: translateX(100%);
  opacity: 0;
  z-index: 1;
}
.list-color {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  margin-inline: 0;
}
.list-color label input[type="radio"] {
  display: none;
}
.list-color label input[type="color"] {
  opacity: 0;
  position: absolute;
  height: 50px;
  z-index: -1;
}
.list-color label span {
  cursor: pointer;
  display: inline-block;
  width: 50px;
  aspect-ratio: 1/1;
  border-radius: 100px;
  border: 1px solid #efefef;
}
.list-color label input[type="radio"]:checked + span {
  border: 3px solid #2b6318;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px;
}

.content-story {
  width: 100%;
  height: 100%;
}
.content-story .bg-media,
.content-story .color {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.content-story .bg-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.3)
  );
}
.content-story .bg-content .time {
  color: white;
}
.content-story .bg-content * {
  margin: 0;
}
.content-story .bg-content .desc2 {
  font-size: 160%;
}
.content-story.cus-view-story {
  overflow-y: auto;
}
.content-story.cus-view-story::-webkit-scrollbar {
  width: 0px;
}
.content-story.cus-view-story::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.content-story.cus-view-story::-webkit-scrollbar-track {
  background-color: transparent;
}
.content-story.cus-view-story .bg-media {
  height: fit-content;
}
.content-story.cus-view-story .bg-media .media-content {
  height: fit-content;
}
.content-story.cus-view-story .bg-media .media-content {
  border-radius: 0;
}
.content-story.cus-view-story .bg-content {
  background: none;
  position: unset;
  color: #000000;
}
.content-story.cus-view-story .bg-content .time {
  color: #000000;
}
.bg-content .detail-story.desc {
  margin-top: 12px;
  border-top: 1px solid #a3a3a3;
  padding-top: 12px;
}
.post-actions {
  position: relative;
  display: inline-block;
}
.post-actions .btn-edit {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  line-height: 0;
}
.post-actions .edit-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  min-width: 140px;
  z-index: 50;
}
.post-actions.open .edit-menu {
  display: block;
}
.edit-menu .edit-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.edit-menu .edit-item:hover {
  background: rgba(0, 0, 0, 0.03);
}
.detail-story textarea {
  width: 100%;
  min-height: 100px;
  resize: none;
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 16px;
  border-radius: 4px;
  border: 1px solid #efefef;
  padding: 8px;
  font-family: dial, Courier, monospace;
  background-color: transparent;
}
.detail-story textarea:focus {
  outline-color: #2b63188f;
  outline-width: 2px;
  outline-offset: 1px;
  outline-style: solid;
}
.detail-story textarea::placeholder {
  color: #ccc;
  font-family: dial, Courier, monospace;
}
.edit-actions .btn-save {
  background: #2b6318;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.edit-actions .btn-cancel {
  background: transparent;
  color: #2b6318;
  border: 1px solid #2b6318;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
@media screen and (max-width: 768px) {
  .list-story {
    --item: 2.3;
    --mr-item: 8px;
  }
  .list-story .item .bg-content {
    padding: 8px;
  }
  ._modal2 .container-popup{
    border-radius: 0;
  }
}
