
/* =========================================
   HTPN - PHOCA GALLERY TITLE IMPROVEMENT
   ========================================= */

/* Title overlay - desktop */
#phocagallery .pg-item-box-title,
#phocagallery .pg-category-box-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;

    padding: 8px 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;

    color: #FFFFFF !important;
    background: rgba(0, 0, 0, 0.55) !important;

    border-radius: 0 0 3px 3px;
    max-height: 74px;
    overflow: hidden;
}

/* Limit title to 3 lines */
#phocagallery .pg-item-box-title a,
#phocagallery .pg-category-box-title a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;

    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    text-decoration: none;
}

/* Remove unnecessary uppercase styling from CSS */
#phocagallery .pg-item-box-title,
#phocagallery .pg-category-box-title {
    text-transform: none;
}

/* Mobile display */
@media only screen and (max-width: 768px) {

    #phocagallery .pg-item-box-title,
    #phocagallery .pg-category-box-title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        padding: 6px 8px !important;
        max-height: 65px;
    }

    #phocagallery .pg-item-box-title a,
    #phocagallery .pg-category-box-title a {
        font-size: 12px !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 3;
    }

}
