.item-container {
  display: grid;
  /* grid-gap: 10px; */
}

.item-container a {
  margin: 10px;
}

.item-container.top {
  grid-template-columns: 2fr 1fr 1fr;
}

.item-container.bottom {
  grid-template-columns: 1fr 1fr 2fr;
}

.content-item-img {
  overflow: hidden;
  width: auto;
  position: relative;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.item-list .content-item-img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.item-list.a .content-item-img {
  border-radius: 10px;
}

.item-list.a .content-item-img {
  height: 320px;
}

.item-list.b .content-item-img {
  height: 180px;
}

.item-list {
  border-radius: 5px;
  width: 100%;
  position: relative;
}

.detail-box {
  height: 140px;
  display: flex;
  align-content: space-around;
  flex-direction: column;
  justify-content: space-between;
  background-color: #d5e2f1;
  word-wrap:break-all; 
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.NEW {
  color: white;
  background-color: red;
  font-size: 15px;
  padding: 3px 9px;
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 8px;
}

.NEW.f {
  opacity: 0;
}

.content-item-img:hover {
}

.message-detail {
  bottom: 0px;
  font-weight: 800;
  font-size: 18px;
}

.item-list.a .message-detail {
  padding: 12px;
  position: absolute;
  bottom: 0px;
  z-index: 1;
  font-size: 23px;

  color: #fff;
}

.item-list.b .message-detail {
  padding: 12px;
  color: #333333;
  padding: 12px;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 84vw;
height: 3.7em;
}
.img_container{
 
   max-width: 100%;
}
    

.item-list.b .date-time {
  padding: 0px 0px 10px 10px;
  color: #285fd2;
  font-weight: 800;
}

.shader-bg {
  height: 132px;
  width: 100%;
  background-image: linear-gradient(to top, #000000d6, transparent);
  position: absolute;
  bottom: 0;
  z-index: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.banner-img {
  margin-top: 70px;
}

button {
  background-color: #989898;
  color: white;
  font-size: 18px;
  padding: 10px 20px;
  border: 2px solid rgb(248, 248, 248);
  border-radius: 50px;
  word-spacing: 10px;
  font-family: "Conv_SukhumvitSet-Light", Tahoma, sans-serif;
}

.category_btn {
  cursor: pointer;
  transition: 0.3s;
  padding: 10px 45px 10px 20px;
}

.category_btn:hover {
  background-color: #469bf8;
}

.category_btn.active {
  background-color: #469bf8;
}

.flex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-container0 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: wrap;
}

.flex-container1 {
  display: flex;
  margin-top: 9px;
  justify-content: space-between;
  flex-direction: row-reverse;
  flex-wrap: wrap;
}

.image {
  position: relative;
}

.image2 {
  position: relative;
}

.sp-container {
  max-width: 1280px;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 0px;
  padding: 0 20px;
}

.message {
  color: white;
  font-size: 20px;
  padding: 8px 10px;
  position: absolute;
  bottom: 10px;
}

.entry-thumb {
  width: 318px;
  height: 173px;
  margin-top: 0px;
  border-radius: 8px;
}

.polaroid {
  width: 318px;
  height: 300px;
  margin-top: 70px;
  border-radius: 8px;
  background-color: rgb(106, 184, 208);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  margin-bottom: 25px;
}

.container {
  text-align: left;
  padding: 10px 20px;
  font-size: 18px;
}

element.style {
  height: 91vh;
}

.footer {
  width: 100%;
  margin-top: 200px;
  padding: 10px 0 2px 0;
}

.item-view .message-detail {
  color: #285fd2 !important;
}

.total-content-btn {
  padding: 12px 74px;
  color: #fff;
  background-color: #285fd2;
  border-radius: 28px;
}
.total-content-container {
  display: flex;
  justify-content: center;
  margin-top: 2em;
  margin-bottom: 4em;
}
.category_btn_box {
  position: relative;
}
.category_dropdown_acction {
  position: absolute;
  top: 13px;
  right: 18px;
  font-size: 19px;
  color: #ffff;
  cursor: pointer;
  transition: all 0.5s;
}
.sub-item-card {
  background-color: #fff;
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07),
    0 10px 20px -2px rgba(0, 0, 0, 0.04);
  padding: 10px;
  border-radius: 0.5rem;
  width: 100%;
  position: absolute;
  z-index: 3;
  top: 7px;
  display: none;
}
.select-sub-item-box {
  display: flex;
  flex-wrap:wrap;
}
.select-sub-item-list {
  display: flex;
  width: 150px;
  background-color: #e1eefd;
  padding: 10px;
  border-radius: 10px;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
  cursor: pointer;

}
.select-sub-item-list .redio-input {
  transform: scale(1.5);
  margin-right: 10px;
  accent-color: #3796ff;
}

.select-sub-item-list p {
  color: #469bf8;
}
.sub-item-container {
  position: relative;
}
.category_btn_box.open .category_dropdown_acction  {

  -webkit-transform:scaleY(-1);
  -moz-transform: scaleY(-1);
  transform: scaleY(-1);
  top: 9px;
}
.category-select-text-show {
 display: flex;
 align-items: center;
 margin-top: 2em;
 margin-bottom: 2em;
}
.category-select-text-show label{
   font-weight: 800;
   font-size: 16px;

 }
.category-select-text-show input[type="radio"] {
  overflow: hidden;
  accent-color: #3796ff;
  font-size: 16px;
  padding: 5px;
  line-height: 20px;
  border: 1px solid #535353;
  border-radius: 5px;
  height: 20px;
  width: 20px;
}
.closepopup {
  display: block;
  text-align: center;
  width: 30px;
  height: 30px;
  line-height: 30px;
  background: #0061da;
  border: 1px solid #FFF;
  color: #FFF;
  text-align: center;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
.closepopup-box {
  display: none;
  justify-content: center;

}



@media only screen and (max-width: 1270px) {
  .flex-container {
    display: flex;
    /* align-items: center; */
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media only screen and (max-width: 940px) {
  .item-container.top,
  .item-container.bottom {
    grid-template-columns: 2.5fr 2.5fr;
  }

  .item-container > a:last-child {
    grid-column: 1 / span 3;
  }
}

@media only screen and (max-width: 560px) {
  .category_btn {
    width: 100%;
  }
  .item-container {
    display: block;
  }

  .flex-container {
    display: grid;
  }
  .sub-item-card {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100000;
    height: 100vh;
    background-color: #000000c9;
    transform: translate(-50%, -50%);
  }
  .select-sub-item-box {
    padding: 8px;
  }
  .select-sub-item-list {
    width: 100%;

  }
  .closepopup-box {
    display: flex;
  }

}
