/* Wrapper for all items */
.sitp-content-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 items per row */
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
}

/* Individual item container */
/* Make the entire container clickable */
.sitp-item {
    cursor: pointer; /* Pointer cursor on hover */
    position: relative; /* For positioning child elements, if needed */
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sitp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}


/* Image styling with fixed ratio */
.sitp-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-bottom: 3px solid #3498db;
}

/* Text container */
.sitp-text {
    padding: 15px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Lightbox background overlay */
.sitp-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Lightbox image styling */
.sitp-lightbox-image {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.5);
    border-radius: 5px;
}

/* Close button styling */
.sitp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}
@media (max-width: 480px) {
    .sitp-content-wrapper {
        grid-template-columns: 1fr; /* 1 item per row for very small screens */
        gap: 10px; /* Reduce gap on small screens */
    }

    .sitp-item {
        /* Reduce padding for very small screens */
        padding: 8px;
    }

    .sitp-text {
        font-size: 12px; /* Even smaller text size */
    }

    .sitp-image {
        aspect-ratio: 16 / 9; /* Keep aspect ratio for small screens */
    }
}