/* Desgin By WPW*/
/* Main Wrapper */

.jellice-product-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 275px);
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Noto Sans TC', sans-serif;
}

/* General Item Styling */
.jellice-grid-item {
    width: 275px;
    height: 497px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Text Item */
.jellice-grid-item.type-text {
    padding: 30px;
    justify-content: center;
    /* Center content vertically if needed, or flex-start */
    /* Background color is set inline */
}

/* Image Item */
.jellice-grid-item.type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Picture element for responsive images */
.jellice-grid-item.type-image picture {
    width: 100%;
    height: 100%;
    display: block;
}

.jellice-grid-item.type-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Typography */
.j-title {
    font-size: 32px;
    /* 24pt */
    font-weight: 700;
    margin: 0 0 20px 0;
    letter-spacing: 0;
    line-height: 1.25;
}

.j-subtitle {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.j-content {
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

/* Responsive */
@media (max-width: 1200px) {

    /* Tablet/Notebook: 2 Columns of ITEMS (not modules) -> 2 items wide */
    /* But wait, if we have 4 items wide on desktop, 2 items wide on tablet is correct. */
    .jellice-product-grid-wrapper {
        grid-template-columns: repeat(2, 275px);
    }
}

@media (max-width: 600px) {

    /* Mobile: 1 Column */
    .jellice-product-grid-wrapper {
        grid-template-columns: 1fr;
    }

    .jellice-grid-item {
        width: 100%;
        height: auto;
        min-height: 300px;
        /* Text box auto height? Fixed 497 might be too tall for just text or image on mobile. */
    }

    .jellice-grid-item.type-text {
        height: auto;
        /* Allow text box to grow/shrink based on content */
        min-height: 300px;
    }

    .jellice-grid-item.type-image {
        height: 300px;
        /* Fixed height for image roughly */
    }

    .j-title {
        font-size: 21.33px;
        /* 16pt approx */
    }
}
/* Desgin By WPW*//* Desgin By WPW*//* Desgin By WPW*//* Desgin By WPW*//* Desgin By WPW*//* Desgin By WPW*//* Desgin By WPW*/