.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;
    }
}