.post-media .label {
    font-family: Roboto;
    font-size: 18px;
    font-weight: 700;
    line-height: 21px;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    margin-right: 25px;
}
.post-media .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    background: #EFEFEF;
    color: #000;
    left: 0;
    width: 100%;
    padding: 23px 0 8px;
    z-index: -1;
    margin-top: -17px !important;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
}
.post-media .dropdown .item {
    font-family: Kanit;
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: 0em;
    text-align: left;
    color: #000;
    cursor: pointer;    
    padding: 4px 18px
}
.post-media .dropdown .item:hover{
    background: #E0FF01;
}
.post-media .topic-filter {
    border-radius: 100px;
    background: #000000;
    font-family: Kanit;
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: 0em;
    text-align: left;
    color: #fff;
    padding: 7px 18px;
    min-width: 216px;
    background-image: url(../images/arr-yellow.svg);
    background-repeat: no-repeat;
    background-size: 11px;
    background-position: center right 18px;
    position: relative;
    cursor: pointer;
}
.post-media .filter {
    display: flex;
    align-items: center;
    position: absolute;
    top: -88px;
    right: 0;
    z-index: 2;
}
.post-media .post-content .content {
    /*position: absolute;
    top: 0;
    right: 0;*/
    width: 100%;
    background: transparent;
/*    height: 100%;*/
    padding: 24px 20px;
}
.post-media .post-content img{
    vertical-align: top;
    width: 100%;
    aspect-ratio: 1/0.6;
    object-fit: cover;
	border-radius: 30px;
}

.post-media .post-content:hover img {
    border-radius: 0px;
}

.post-media .post-content:hover .excerpt{
/* 	display:block !important;
    color:#ffffff;
	position: absolute;
    top: 50%;
    padding: 0px 30px 0px 0px; */
	
 	display: -webkit-box !important; /* เปิดใช้งาน Flexbox */
    -webkit-line-clamp: 4; /* จำกัดจำนวนบรรทัด */
    -webkit-box-orient: vertical; /* การจัดเรียงในแนวตั้ง */
    overflow: hidden; /* ซ่อนข้อความที่เกิน */
    text-overflow: ellipsis; /* เพิ่ม "..." เมื่อข้อความเกิน */
    color: #ffffff; /* สีข้อความ */
    position: absolute; /* จัดตำแหน่งแบบ absolute */
    top: auto; /* ไม่มีการกำหนดตำแหน่งด้านบน */
    bottom: 0px; /* ตำแหน่งด้านล่าง */
    padding: 0px 30px 0px 0px; /* ระยะห่างด้านขวา */
    margin-bottom: 20px; /* ระยะขอบด้านล่าง */
}

.post-media .post-content:hover .title{
	position: absolute;
    bottom: 40%;
    padding: 0px 20px 0px 0px;
}

.post-media .post-content:hover{
	box-shadow: 3px 3px 8px 5px #E0FF01;
    transition: all 0.3s ease;
}
.post-media .post-content {
    display: block;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
	
	 margin: 10px 15px 5px 5px;
}
.post-media .swiper-slide{
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 40px
}
.post-media .post-content .title {
    font-family: Kanit;
	color:#E0FF01;
    font-size: 18px;
    font-weight: 700;
    line-height: 21px;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    margin-top: 0px;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: -o-ellipsis-lastline;
}
[lang="th"] .post-media .post-content .title{
    font-family: Kanit;
}
.post-media .post-content .topics .topic{
    font-family: Kanit;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0em;
    padding: 6px 19px;
    background: #000000;
    border-radius: 100px;
    color: #FFFFFF;
    display: inline-block;
    vertical-align: top;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.post-media .post-content .topics .topic+.topic {
    display: none;
}
.post-media .post-content .excerpt {
	display:none !important;
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: -o-ellipsis-lastline;
}
.post-media .post-content .date svg {
    margin-right: 10px;
}
.post-media .post-content .date {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 20px;
}
.post-media .custom-nav {
    display: inline-flex;
/*     float: right; */
    margin-top: 34px;
	
	background-color: #d7f018;
    padding: 3px;
    border-radius: 20px;
	
	display: flex;
	place-self:center;
}
.post-media .custom-nav .swiper-pagination .swiper-pagination-bullet:before{
    border: 1px solid #000000;
}
.post-media .swiper-grid-column>.swiper-wrapper{
    flex-direction: row;
    /* max-height: 860px; */
}
.post-media .post-content .topics {
    padding-right: 45px;
}
.post-media .post-content:before {
    content: "";
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all .3s;
    border-radius: 30px;
    opacity: 0;
}
.post-media .post-content:hover:before {
	opacity: 0.8;
    margin: 10px 0px -2px 5px;
	width: 95%;
}
.post-media .custom-nav .swiper-pagination .swiper-pagination-bullet:not(.swiper-pagination-bullet-active){
    background: #000;
}
@media (max-width: 1600px){
    .post-media .post-content .content{
        padding: 19px 20px;
    }
    .post-media .post-content .topics .topic{
        padding: 5px 16px;
    }
    .post-media .post-content .open-post{
        right: 7px;
        top: 10px;
    }
    .post-media .post-content .title{
        margin-top: 12px;
        margin-bottom: 12px;
    }
    .post-media .post-content .excerpt{
        margin-bottom: 14px;
    }
    .post-media .post-content .date svg {
        margin-right: 7px;
    }
    .post-media .topic-filter{
        min-width: 204px;
    }
    .post-media .label{
        margin-right: 18px;
    }
    .post-media .filter{
        top: -85px
    }
    .post-media .topic-filter{
        background-position: center right 12px;
    }
    .post-media .custom-nav{
        margin-top: 36px;
    }
}
@media (max-width: 991px){
    .post-media .post-content{
        flex-wrap: wrap;
    }
/* 	.post-media .post-content:hover:before {
		margin: 10px 0px -2px 7px;
	} */
    .post-media .post-content .topics .topic {
        padding: 5px 16px;
    }
    .post-media .swiper-slide{
        margin-bottom: 22px;
    }
    .post-media .post-content .open-post svg {
        width: 48px;
        height: 48px;
    }
    .post-media .post-content .open-post {
        top: 32vw;
        transform: translateY(-50%);
    }
}
@media (max-width: 767px){
    .post-media .filter {
        top: 0;
        position: relative;
        margin-bottom: 36px;
    }
    .post-media .swiper-grid-column>.swiper-wrapper{
        text-align: left;
    }
    .post-media .swiper{
        text-align: center;
    } 
    .post-media .custom-nav .swiper-pagination {
        margin: 0 20px;
    }
    .post-media .topic-filter{
        flex: 1;
    }
    .post-media .swiper-slide{
        text-align: left;
    }
	.post-media .post-content:hover:before {
		width: 97%;
	}
	.post-media .post-content img {
		aspect-ratio: 1 / 0.55;
	}
	.post-media .post-content:hover .title {
		bottom: 32%;
	}
}
@media (max-width: 575px){
    .post-media .filter{
        flex-direction: column;
        justify-content: flex-start;
        align-items: start;
    }
    .post-media .label {
        margin-right: 0;
        margin-bottom: 13px;
    }
    .post-media .topic-filter{
        width: 100%;
    }
    .post-media .post-content .open-post {
        right: 9px;
        top: 59.8vw;
        transform: translateY(-50%);
    }
	.post-media .post-content:hover .title {
        bottom: 40%;
    }
	.post-media .post-content img {
        min-height: 203px;
    }
	.post-media .post-content:hover:before {
		margin: 10px 0px 0px 4px;
	}
	.post-media .post-content:hover:before {
        width: 95%;
    }
}