   /* Style for the logo inside each portfolio item */
.custom-portfolio-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Ensure it's above the blurred image */
}

.custom-portfolio-logo img {
    max-width: 200px; /* Adjust based on the logo size */
    height: auto;
}

/* Style for the portfolio card items */
.custom-portfolio-item {
    width: 284px; /* Default card width */
    height: 602px; /* Default card height */
    margin: 10px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Ensure that the portfolio wrapper can handle multiple items in a row */
.sk__portfolio-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping of items */
    justify-content: center; /* Center the items horizontally */
}

/* Wrapper for the image inside each portfolio card */
.custom-portfolio-thumblink-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

/* Apply the blur effect to the image */
.custom-portfolio-thumblink-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px); /* Apply blur effect */
    transition: filter 0.3s ease-in-out;
}

/* Maintain blur even when hovering over the image */
.custom-portfolio-thumblink-image-wrapper:hover .custom-portfolio-thumblink-image {
    filter: blur(20px); /* Keep the blur effect even on hover */
}

/* Info text inside the portfolio item */
.custom-portfolio-thumb-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Style for smaller text */
.custom-h4-small {
    font-size: 1.2rem;
    margin: 0;
}

/* Ensure the hover effect still applies */
.custom-portfolio-thumblink:hover .custom-portfolio-thumblink-image-wrapper .custom-portfolio-thumblink-image {
    filter: blur(20px);
}

/* Responsive Design: Two items per row on mobile */
@media (max-width: 767px) {
    .custom-portfolio-item {
        width: calc(50% - 20px); /* 50% width of the container, minus margin */
        margin: 10px; /* Keep consistent margin between items */
        max-height:300px;
    }
}

/* Optional: For larger screens, adjust the size to fit three items per row */
@media (min-width: 768px) {
    .custom-portfolio-item {
        width: 284px; /* Keep the width consistent for larger screens */
    }
}

/* Optional: For very large screens, you can fit more items per row */
@media (min-width: 1200px) {
    .custom-portfolio-item {
        width: 284px; /* Maintain width for large screens */
    }
}
