/* Container for the grid */
.dpg-grid-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* Mobile first: 1 column */
    gap: 20px;
    margin: 20px 0;
}

/* Tablet breakpoint (approx 600px+) */
@media (min-width: 600px) {
    .dpg-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop breakpoint (approx 1024px+) */
@media (min-width: 1024px) {
    .dpg-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Individual Card Style */
.dpg-grid-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.dpg-grid-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dpg-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.dpg-placeholder {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    margin-bottom: 10px;
}

.dpg-title {
    font-size: 1.1em;
    margin: 10px 0;
    flex-grow: 1;
    /* Pushes buttons down */
}

/* Buttons Container */
.dpg-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* Space between buttons */
    margin-top: auto;
}

/* General Button Style */
.dpg-btn {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    /* Uppercase as requested */
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    flex: 1;
    /* Equal width */
    text-align: center;
    line-height: 1.2;
}

/* View Button */
.dpg-btn-view {
    color: #333;
    border: 1px solid #ccc;
    background-color: transparent;
    border-radius: 0px;
}

.dpg-btn-view:hover {
    border-color: #333;
    background-color: #008fe8;
    color: #fff;
}

/* Download Button */
.dpg-btn-download {
    background-color: transparent;
    color: #333;
    border: 1px solid #0073aa;
    border-radius: 0px;
}

.dpg-btn-download:hover {
    background-color: #008fe8;
    border-color: #005177;
    color: #fff;
}