@charset "utf-8";
/* CSS Document */
.portfolio-banner-area{
    width:100%;
    height: 100%;
    background-image: url('../images/static/banner/services_banner.webp');
    background-size: cover;        
    background-position: center;   
    background-repeat: no-repeat;  
    padding: 50px 0 15% 0;
}
.portfolio-banner-text1{
    text-align: center;
    font-family: 'DM Serif Text', serif; 
    font-size: 22px;
    font-style: italic;
    font-weight: 300;
    line-height: normal;
    margin-top: 80px;
    color: #010101;
}
.portfolio-banner-text2{
     text-align: center;
     text-transform: uppercase;
     font-weight: 800;
     font-size: 70px;
     color: #010101;
}
.light-txt{
    font-weight: 300;
}
.blue-txt{
   color: #121BE2; 
}
.portfolio-content{
    width:80%;
    margin: 10px auto;
    text-align: center;
    font-size: 18px;
    color: #010101;
    line-height: 1.3;
}

.portfolio-work-crd-sec {
    margin-top: -20%;
}
}
.portfolio-another-sec .page-container{
    padding:10px 0;
}

/**port Card section**/
.card-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* center cards horizontally */
    gap: 30px;
    padding: 40px 20px 0 20px;
    margin: 0 auto;
}

.card {
    width:calc(33.33% - 22px);
    float:left;
    margin-right:30px;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    background: transparent;
    cursor: pointer;
}
.card-row-full{
    width:100%;
}
.card-row-full img{
    width:100%;
}
.card:last-child {
    margin-right: 0px !important;
}

.card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
	aspect-ratio:1;
}

.card-body {
    padding: 24px 0;
    flex: 1; /* let body fill remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    margin: 0 0 4px;
    font-size: 1rem;
    color: #010101;
    text-align: left;
}

.card-caption {
    margin: 0;
    font-size: 0.75rem;
    color: #555;
    text-align: left;
}

.card:hover {
    transform: translateY(-5px);
}

/* Modal / scrollable overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: none;
    overflow-y: auto; /* allow vertical scroll if content bigger */
    -webkit-overflow-scrolling: touch; /* smoother scroll on mobile */
    z-index: 9999;
}

.modal-content {
    width: calc(100%-40px);
    /* don't restrict height — content will define height */
    display: flex;
    justify-content: center;
    align-items: start; /* start so image starts at top */
    padding: 20px; /* optional padding around image */
}

.modal-content img {
    max-width: 96%;
    width: auto;
    height: auto;
    display: block;
}

.modal-close {
    position: fixed;
    top: 16px;
    right: 24px;
    font-size: 32px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

body.modal-open {
    overflow: hidden;  /* prevent background scroll when modal is open */
    height: 100%;
}

/* Responsive */
@media (min-width: 1480px) {
	.portfolio-work-crd-sec {
    	margin-top: -18%;
	}
}

@media (max-width: 1280px) {
}
@media (max-width: 1120px) {
	.portfolio-banner-text2{
		font-size: 50px;
	}
	.portfolio-content{
    	font-size: 16px;
	}
	.portfolio-work-crd-sec {
    	margin-top: -24%;
	}
	.card-row {
    	padding: 40px 0 0 0;
	}
	.card {
    	width: calc(33.33% - 14px);
    	margin-right: 20px;
	}
	
}
@media (max-width: 1024px) {
	.portfolio-content {
    	width: 100%;
	}
}
@media (max-width: 980px) {
    
}
@media (max-width: 880px) {
   .portfolio-work-crd-sec {
        margin-top: -28%;
    }
}
@media (max-width: 768px) {
   .portfolio-banner-text2 {
        font-size: 36px;
    }
}
@media (max-width: 640px) {
	.portfolio-banner-area {
    	padding: 50px 0 0 0;
	}
	.portfolio-work-crd-sec {
    	margin-top: 0;
	}
    .card {
    	width: 100%;
    	margin-right: 0;
    	margin-bottom: 15px;
	}
	.card-row{
		padding: 0;
	}
}
/**eof Card section**/