#latest_wrap{width:100%; min-width:320px; max-width:100%; margin:0 auto;}
#latest_wrap .inner_layout{width:100%; min-height:450px; max-width:1200px; margin:0 auto;}
#latest_wrap h2 {margin-top:10px; margin-bottom:30px; font-size:32px; color:#333; font-weight:bold; text-align:center;}
#latest_wrap {width:100%; max-width:1200px; margin:20px auto;}
#latest_wrap:after {content:""; display:block; clear:both;}
#latest_wrap ul { width:100%; overflow:hidden;}
#latest_wrap ul li {float:left; vertical-align:top; width:32.5%; margin-bottom:20px;  margin-right:10px; padding:10px; text-align:left; background-color:#fff;  border:1px solid #ccc; border-radius:5px; box-shadow: 5px 5px 8px rgba(0,0,0,.05); transition: 0.3s all ease;}
#latest_wrap ul li:last-child(even) {float:right; margin-right:0; }
#latest_wrap ul li a {display:block;  }
#latest_wrap ul li dl {width:100%; font-size:0; }
#latest_wrap ul li dl dt {display:inline-block; vertical-align:middle; width:100%; text-align:center; border-radius:0; overflow:hidden;}
#latest_wrap ul li dl dt img {max-width:100%; transition: 0.5s all ease;}
#latest_wrap ul li dl dd {position:relative; display:inline-block; vertical-align:top; width:100%; min-height:60px; padding:15px 0 0 0;}
#latest_wrap ul li dl dd h4.t1 {margin:10px 0; font-size:1.35em; text-align:center; color:#1a1a1a; line-height:1.4; font-weight:600;}
#latest_wrap ul li dl dd p { font-size:1em; color:#222; line-height:1.6; word-break:keep-all; display: -webkit-box; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 4; -webkit-box-orient: vertical;}
#latest_wrap ul li dl dd p span {display:inline; font-size:1em; color:#000; font-weight:700;}
#latest_wrap ul li:hover dl dt img {transform:scale(1.1);}
#latest_wrap ul li:hover dl dd .num {color:#fff; background:#222; }
#latest_wrap ul li:hover dl dd .num:before { z-index:0; content: ""; display: block; position: absolute; left:50px; top:50%; transform: translateY(0%); width:100%; height:0px; background:#222; }

#latest_wrap ul li dl dt .img_box { width:100%; text-align:center; overflow:hidden; }
#latest_wrap ul li dl dt .img_box img { max-width:100%;  transition: 0.3s all ease; border-radius:5px;}


@media all and (max-width:992px){		
	#latest_wrap {padding:0 4%;}
	#latest_wrap ul li {width:100%; margin-bottom:20px; }
	#latest_wrap ul li:last-child { margin-bottom:0; }
}

@media all and (max-width:640px){
	#latest_wrap ul li dl dd h4.t1 {margin:10px 0; font-size:1.36em; color:#1a1a1a; line-height:1.4; font-weight:600;}
}



.view_bottom_gallery {
    margin-top: 50px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.view_bottom_gallery h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

#gall_ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.gall_li {
    width: calc(33.33% - 13.33px);
    margin-bottom: 20px;
    position: relative;
}

.gall_li_wr {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}

.gall_li_wr img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 3 / 2;
}

.gall_li_wr:hover img {
    transform: scale(1.05);
}

.gall_subject {
    padding: 14px;
    color: #333;
    font-weight: bold;
    line-height: 1.6;
    flex-grow: 1;
    min-height: 4.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.view_all_posts {
    text-align: center;
    margin-top: 30px;
}

.btn_view_all {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn_view_all:hover {
    background-color: #0056b3;
}

.current_post_label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 1;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .gall_li {
        width: calc(50% - 10px);
    }
    .gall_subject {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    #gall_ul {
        gap: 15px;
    }
    .gall_li {
        width: calc(50% - 7.5px);
    }
    .gall_subject {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #gall_ul {
        gap: 10px;
    }
    .gall_li {
        width: calc(50% - 5px);
    }
    .view_bottom_gallery h2 {
        font-size: 18px;
    }
    .gall_subject {
        font-size: 14px;
        line-height: 1.5;
        padding: 8px;
        min-height: 4.5em;
    }
    .current_post_label {
        font-size: 12px;
        padding: 4px 8px;
    }
}