
html {
    
    --body-clr: #f6f9fe;
    --primary-clr: #0055a5;
    --primary-light-clr: #eaf3fa;
    --links-clr: #0055a5;
    --text-clr: #0055a5;
}
body {
    width: 100%;
    min-height: 100vh;
}
.portfolio {
    width: 100%;
    padding: 30px 8%;
    background-color: var(--body-clr);
}
.portfolio .section-head {
    max-width: 700px;
    margin: 0px auto 25px;
    text-align: center;
}
.section-head h1 {
    position: relative;
    font-size: 32px;
    margin: 10px 0px 30px;
    color: var(--primary-clr);
}
.button-group {
    text-align: center;
    margin-bottom: 40px;
}
.button-group .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
   
    color: var(--primary-clr);
    font-style: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s;
    border: none;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}
.button-group .button.active {
    background-color: var(--primary-clr);
    color: var(--body-clr);
}
.button-group .button:hover {
    background-color: var(--primary-clr);
    color: var(--body-clr);
}
div.gallery {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
div.gallery .item {
    position: relative;
    margin: 4px;
    width: calc(33.33% - 8px); /* 3-column layout */
    height: 300px; /* Set a fixed height */
    overflow: hidden;
    cursor: pointer;
}
.item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container while maintaining its aspect ratio */
    display: block;
    transition: 0.3s;
}
div.gallery .item:hover img {
    transform: scale(1.15);
}
.item .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(5,85,92,0.7);
    color: var(--body-clr);
    padding: 15px;
    overflow: hidden;
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
}
.item:hover .overlay {
    opacity: 1;
}
.item .overlay a {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--body-clr);
    color: var(--body-clr);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}
.item .overlay a:hover {
    background-color: var(--body-clr);
    color: var(--primary-clr);
}


/* Lightbox overlay styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 90%;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox .close:hover {
    color: #bbb;
}

/* Responsive layout */
@media (max-width: 1024px) {
    div.gallery .item {
        width: calc(50% - 8px); /* 2-column layout on medium screens */
        height: 250px; /* Adjust height */
    }
}
@media (max-width: 600px) {
    div.gallery .item {
        width: 100%; /* Full-width on small screens */
        height: 200px; /* Adjust height */
    }
}