section.signage .inner_grid,
section.m_subpage .inner_grid {
    /* max-width: 1260px; */
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 80px 0px;
}

section.signage .inner_grid .page_title, 
section.m_subpage .inner_grid .page_title {
    text-align: center;
    margin-bottom: 10px;
}

section.signage .description,
section.m_subpage .description {
    line-height: 1.5em;
}

section.signage .intro,
section.m_subpage .intro {
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    max-width: 850px;
    margin-bottom: 80px;
    text-align: center;
}

section.signage .imageList.new,
section.m_subpage .imageList.new {
    display: flex;
    flex-wrap: wrap;
}

section.signage .imageList_wrapper,
section.m_subpage .imageList_wrapper {
    width: 100%;
}

section.signage .imageList,
section.m_subpage .imageList {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 10px; /* Space between items */
    margin: 0;
}




section.signage .gallery_img, 
section.m_subpage .gallery_img {
    background-color: #0C0C0C;
    color: white;
    text-align: center;
    padding-bottom: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
}

section.signage .imageList.new .gallery_img.full-width, section.m_subpage .gallery_img.full-width {
    width: 100%;
}

section.signage .imageList.new .gallery_img.half-width, section.m_subpage .gallery_img.half-width {
    width: calc((100% - 10px)/2);
}


/* Full-width items */
/*
section.signage .gallery_img:nth-child(3n) {
    grid-column: 1 / -1;
    padding-bottom: 40%;
}

section.m_subpage .gallery_img:nth-child(3n + 1) {
    grid-column: 1 / -1; 
    padding-bottom: 40%;
}
*/



section.signage .gallery_img .category,
section.m_subpage .gallery_img .category {
    position: relative;
    z-index: 5;
    bottom: 35%;
    /* left: 0; */
    /* transition: all 0.5s ease; */
    text-align: left;
}

section.signage .gallery_img .category .title, section.m_subpage .gallery_img .category .title {
    display: block;
    margin-bottom: 5px;
    font-size: 20px;
}

html[lang=en-us] section.signage .gallery_img .category .title, section.m_subpage .gallery_img .category .title {
    font-family: 'OpenSans-Bold';
}

section.signage .gallery_img .category span.tag,
section.m_subpage .gallery_img .category span.tag {
    /* padding-left: 155px; */
    font-family: 'OpenSans-Medium';
    font-size: 15px;
    text-align: left;
}

html[lang='zh-hk'] section.signage .gallery_img .category span.tag,
html[lang='zh-hk'] section.m_subpage .gallery_img .category span.tag {
    font-family: 'NotoSansTC-Medium';
}

section.signage .gallery_img .category:before,
section.m_subpage .gallery_img .category:before {
    /* content: ''; */
    /* width: 150px; */
    /* height: 25px; */
    /* background-color: var(--green); */
    /* position: absolute; */
}

section.signage .category_wrapper,
section.m_subpage .category_wrapper {
    position: absolute;
    width: 100%;
    z-index: 5;
    /* min-height: calc(20% - 60px); */
    bottom: 0;
    /* transition: all 0.5s ease; */
    padding: 30px 50px;
}

section.m_subpage .gallery_img .category .tag:not(:last-child) {
    margin-bottom: 10px;
}

section.signage .gallery_img .category,
section.m_subpage .gallery_img .category {
    /* left: -100%; */
}

section.signage .gallery_img:hover .category,
section.m_subpage .gallery_img:hover .category {
    /* left: 0; */
}

section.signage .category_wrapper:before,
section.m_subpage .category_wrapper:before {
    content: '';
    width: 100%;
    height: 100%;
    opacity: 0.4; 
    position: absolute;
    height: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    left: 0;
    bottom: 0;
    transition: all 0.3s ease;
    background-color: var(--black);
    opacity: 0.3;
}

section.signage .gallery_img  .category_wrapper:before, section.m_subpage .gallery_img .category_wrapper:before {
    height: 100%;
}


@media screen and (max-width: 980px) {
    section.signage .category_wrapper,
    section.m_subpage .category_wrapper {
        /* height: 40%; */
    }
}

@media screen and (max-width: 768px) {
    section.signage .inner_grid,
    section.m_subpage .inner_grid {
        padding-top: 50px;
    }

    section.signage .intro,
    section.m_subpage .intro {
        margin-bottom: 40px;
        padding: 0 20px;
    }
}

@media screen and (max-width: 680px) {
    
    
    section.signage .category_wrapper,
    section.m_subpage .category_wrapper {
        /* height: 40%; */
        padding: 15px 30px;
        min-height: calc(20% - 30px);
    }

    section.signage .gallery_img,
    section.m_subpage .gallery_img {
        grid-column: 1 / -1; 
    }

    section.signage .gallery_img:nth-child(3n),
    section.m_subpage .gallery_img:nth-child(3n + 1) {
        padding-bottom: 80%;
    }

    section.signage .gallery_img .category, 
    section.m_subpage .gallery_img .category {
        /* left: 0; */
    }

    section.signage .gallery_img .category_wrapper:before, 
    section.m_subpage .gallery_img .category_wrapper:before {
        height: 100%;
    }

    section.signage .gallery_img .category:before, 
    section.m_subpage .gallery_img .category:before {
       width: 100px;
    }
    section.signage .gallery_img .category span.tag,
    section.m_subpage .gallery_img .category span.tag {
        /* padding-left: 115px; */
    }

    
}