.stencil-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.stencil-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    text-decoration: none;
    color: inherit;
}
.stencil-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.15);
}
.stencil-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.stencil-image-wrapper {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}
.stencil-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.stencil-item:hover .stencil-image-wrapper img {
    transform: scale(1.05);
}
.stencil-content {
    padding: 15px;
    flex-grow: 1;
}
.stencil-item-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 600;
}
.stencil-item-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Responsive fallback */
@media (max-width: 768px) {
    .stencil-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .stencil-portfolio-grid {
        grid-template-columns: 1fr;
    }
}