@import url('style.css');

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.portfolio-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.model-container {
    width: 100%;
    height: 320px;
    background: #f8f9fa;
}

model-viewer {
    width: 100%;
    height: 100%;
    outline: none;
}

.item-details {
    padding: 18px;
}

.item-details h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.item-details p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.45;
}

@media (max-width: 600px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .model-container { height: 260px; }
}
