/* Masonry Grid */
.masonry-grid {
    display: block;
    /* Masonry handles positioning */
    position: relative;
}

.masonry-grid .grid-sizer,
.masonry-grid .devsector-product {
    width: 33.333%;
    /* Default column width (for 3 columns) */
}

@media (max-width: 1024px) {

    .masonry-grid .grid-sizer,
    .masonry-grid .devsector-product {
        width: 50%;
        /* 2 columns for tablets */
    }
}

@media (max-width: 768px) {

    .masonry-grid .grid-sizer,
    .masonry-grid .devsector-product {
        width: 100%;
        /* 1 column for mobile */
    }
}

.masonry-grid .devsector-product img {
    width: 100%;
    /* Ensures images take full column width */
    height: auto;
    /* Allows variable height */
    display: block;
}

/* Standard Grid */
.standard-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 20px;
}

.standard-grid .devsector-product {
    text-align: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.standard-grid .devsector-product img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.standard-grid .devsector-product h2 {
    font-size: 18px;
    margin: 10px 0;
}

.standard-grid .devsector-product p {
    font-size: 16px;
    color: #333;
}

.standard-grid .devsector-product .button {
    display: inline-block;
    padding: 10px 15px;
    background: #0071a1;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.standard-grid .devsector-product .button:hover {
    background: #005f81;
}