.dpg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.dpg-grid-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.dpg-grid-item:hover {
    transform: scale(1.03);
}

.dpg-image-wrapper {
    position: relative;
    padding-top: 100%; /* Square aspect ratio */
}

.dpg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dpg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.1) 100%);
    color: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.dpg-user-info {
    display: flex;
    align-items: center;
}

.dpg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}

.dpg-user-details {
    flex-grow: 1;
}

.dpg-username {
    font-weight: bold;
    margin: 0;
    font-size: 16px;
}

.dpg-timestamp {
    font-size: 11px;
    margin: 0;
    opacity: 0.7;
}

.dpg-overlay-text {
    margin: 0;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.dpg-load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.dpg-load-more:hover {
    background-color: #0056b3;
}