﻿/* ThreeD Grid */
.threeDPrint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    column-gap: 24px;
    row-gap: 16px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 40px;
    padding-right: 0px;
}

/* Individual ThreeD Card */
.threeDPrint-card {
    background-color: var(--lightGray);
    border-radius: 15px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    width: 320px;
    text-align: left;
    margin: 20px 0px 15px 18px;
}

    .threeDPrint-card:hover {
        transform: scale(1.02);
    }

    /* ThreeD Description */
    .threeDPrint-card p {
        font-size: 14px;
        color: #222;
    }

/* ThreeD Title */
.threeDPrint-title {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: #222;
}

/* ThreeD Image */
.threeDPrint-image {
    width: 100%;
    height: 200px;
    margin: 0px 0px 0px 0px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-color: white;
}

/* ThreeD Cost */
.threeDPrint-cost {
    color: #222;
    font-weight: bold;
    margin-top: 10px;
    font-size: 3rem;
}

/* Responsive for Smaller Screens */
/* For screens wider than 768px: show 3 columns */
@media (min-width: 1420px) {
    .threeDPrint-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1000px) and (max-width: 1419px) {
    .threeDPrint-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For screens narrower than 768px: show 2 columns */
@media (max-width: 1000px) {
    .threeDPrint-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
