/*   
Theme Name: PathSoft
Theme URI: https://www.templatemonster.com/wordpress-themes/pathsoft-it-solutions-for-your-business-services-wordpress-theme-99496.html
Author: Koval Web
Author URI: https://www.templatemonster.com/vendors/kovalweb
Description: The Template is created for web template
Tags: html5, css3, sass, gulp, bootstrap grid
Version: 1.6.0
*/
.gallery-item {
    position: relative;
    margin: 0;
    display: block;
    width: 100%;
    height: 240px;
    text-decoration: none;
    color: var(--primary-color);
    background-color: var(--primary-bg-color);
    overflow: hidden;
}

.gallery-item:hover {
    color: var(--primary-color);
}

.gallery-item:hover .gallery-item-caption {
    opacity: 1;
    visibility: visible;
}

.gallery-item:hover .gallery-item-caption::after {
    height: 100%;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.gallery-item-caption {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0.625rem 1rem;
    text-align: center;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    font-size: 1.125rem;
    font-weight: bold;
    transition: all 0.3s;
}

.gallery-item-caption::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 3.125rem;
    width: 100%;
    background-color: var(--text-primary);
    opacity: 0.5;
    transform: translateY(-50%);
    transition: all 0.3s;
}

.gallery-item-caption span {
    position: relative;
    display: block;
    z-index: 2;
}

.pswp__img {
    -o-object-fit: cover;
    object-fit: cover;
}

.lg-outer .lg-thumb {
    margin: 0 auto -0.625rem;
}

.gallery-grid-item-height2 .gallery-item {
    height: 510px;
}

@media only screen and (max-width: 767.98px), only screen and (min-width: 567px) and (max-width: 900px) and (orientation: landscape) {
    .gallery-grid-item-height2 .gallery-item {
        height: 240px;
    }
}
