/* Custom CSS for Gallery Grid */
.portfolio-work .portfolio-item {
    margin-bottom: 30px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: 550px; /* Fixed height to force a uniform grid */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-work .portfolio-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* Ensures the whole image (including baked-in text) remains visible */
}

/* Ensure the hover overlay still works well with the new container size */
.portfolio-work .portfolio-item .portfolio-hover {
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

/* Navigation Menu Spacing Adjustment */
@media (min-width: 768px) {
    .navigation .navbar-nav > li > a {
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 13px;
        letter-spacing: 0px;
    }
}

/* Move the navigation menu closer to the logo on the left */
@media (min-width: 768px) {
    .navigation .navbar-nav.navbar-right {
        float: left !important;
        margin-left: 20px; /* Adjust this value for desired spacing from logo */
    }
}
