/* .custom-category-posts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}
.custom-category-post {
    width: 100%;
}
.custom-category-post a {
    display: block;
    text-decoration: none;
}
.custom-category-post-image {
    width: 100%;
    overflow: hidden;
}
.custom-category-post-image img {
    display: block;
    width: 100%;
    height: auto;
}
.custom-category-post-title {
    margin-top: 0;
    font-size: 20px;
    line-height: 1.4;
    padding: 14px 0;
    text-align: center;
    color: #000000;
}
.custom-category-post:hover .custom-category-post-title {
    background: #d32026;
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
}
@media (max-width: 991px) {
    .custom-category-posts-row {
        grid-template-columns: repeat(2, 1fr);
    }
	.custom-project-post-overlay {
    bottom: 65px !important;
}
}
@media (max-width: 767px) {
    .custom-category-posts-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

 */
/* -------projects -css ---------- */


/* ===== Grid / Listing Styles ===== */
.custom-project-posts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.custom-project-post {
    width: 100%;
}

.custom-project-post a {
    display: block;
    text-decoration: none;
}

.custom-project-post-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.custom-project-post-image img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.custom-project-post-overlay {
    position: absolute;
    bottom: 130px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.85);
    border-left: 4px solid #ffffff;
    padding: 14px 18px;
}

.custom-project-post-title {
    font-size: 22px;
    line-height: 32px;
    color: #1a1a1a;
    font-weight: 600 !important;
    font-family: "DM Sans", Sans-serif;
}



.custom-project-post-location {
    margin-top: 4px;
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 500 !important;
    font-family: "DM Sans", Sans-serif;
}

.custom-project-post:hover .custom-project-post-overlay {
    background: rgba(255, 255, 255, 0.95);
    border-left: 4px solid red;
}

@media (max-width: 991px) {
    .custom-project-posts-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .custom-project-posts-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .custom-project-post-image img {
        height: 280px;
    }
}

/* ===== Single Project Gallery Styles ===== */
.custom-project-gallery-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.custom-project-gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.custom-project-gallery-item img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.custom-project-gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .custom-project-gallery-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .custom-project-gallery-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Lightbox Styles ===== */
.custom-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.custom-lightbox-overlay.active {
    display: flex;
}

.custom-lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.custom-lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
    transition: opacity 0.2s ease;
}

.custom-lightbox-close:hover {
    opacity: 0.6;
}