/* Make thumbnails flow in rows */
.pdf-thumbnail {
    float: left; /* keep floating to allow multiple per row */
    width: 100%;
    max-width: 320px;
    height: 350px;
    text-align: center;
    padding: 10px;
    border: 1px dashed #000;
    margin: 20px;
    border-radius: 5px;
	
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* space between title, image, description */
    box-sizing: border-box;
    overflow: hidden; /* prevent overflow of content */
}

/* Titles */
.pdf-title {
    font-size: 1.2em !important;
    margin: 0 !important;
    text-decoration: none !important;
    font-weight: 100;
}

/* Descriptions */
.pdf-description {
    font-size: 0.9em; /* smaller font to fit */
    font-weight: 100;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* max 2 lines */
    -webkit-box-orient: vertical;
    margin-top: 5px;
}

/* Images */
.pdfImg {
    border: 1px solid #000;
    max-height: 200px;
    object-fit: contain;
}

/* Links inside thumbnails */
.pdf-thumbnail a:link,
.pdf-thumbnail a:visited {
    text-decoration: none !important;
    color: inherit;
}
