/**
 * Blogger Post Randomiser - front-end styles.
 */

.bpr-ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpr-li {
	padding: 10px 0;
}

/* Space between one post and the next (1.0.9). In the sidebar the padding
   above loses to the theme's "#sidebar ul ul li { padding: 0; margin: .5em 0 }"
   (1,0,3), which left 5px from a title to the next thumbnail - less than the
   8px from a thumbnail to its own title. The #sidebar prefix (1,2,0) is what
   lets this win; it collapses with the theme's 5px bottom margin. */
.bpr-li + .bpr-li,
#sidebar .bpr-li + .bpr-li {
	margin-top: 16px;
}

/**
 * The box around the thumbnail.
 *
 * 1.0.8 (hooxies.nl theme 5.0): no drawn frame any more - the thumbnail is
 * styled like every other photo on the site: 4px rounded corners, a soft
 * shadow and a 2px lift on hover, its left edge on the widget's content edge.
 * Until 1.0.7 this link carried a 1px #ccc border + 4px padding.
 *
 * The alignment classes are prefixed (bpr-align-left, not alignleft) because
 * dfblog/style.css carries the global WordPress alignment rules:
 *
 *     .alignright, .alignleft { padding: 0; margin: ...; display: inline; }
 *     .alignleft { float: left; }
 *
 * Those are (0,1,0) - the same specificity as the selectors here - and style.css
 * loads after this file, so on a tie they win. That single collision defeated
 * the padding, forced the box inline so titles sat beside the thumbnail, and
 * floated it out of its row. Diagnosed 2026-09-04; do not reuse those names.
 *
 * display:table shrink-wraps the frame to the image AND is block-level, so the
 * title always falls beneath the thumbnail. The auto margins position the frame.
 */
.bpr-thumbnail-link {
	display: table;
	border: 0;
	padding: 0;
	margin: 0 0 8px 0;
}

.bpr-thumbnail-link.bpr-align-left {
	margin-right: auto;
}

.bpr-thumbnail-link.bpr-align-center {
	margin-left: auto;
	margin-right: auto;
}

.bpr-thumbnail-link.bpr-align-right {
	margin-left: auto;
}

/* display:block kills the inline baseline gap under the image, which would
   otherwise show as extra space along the bottom edge only.
   The radius needs !important: the theme rounds "#sidebar a img" (an id
   selector) for photos that carry a transparent 5px box, which this bare
   image does not - without it the corners come out 9px. */
.bpr-thumbnail {
	display: block;
	max-width: 100%;
	border: 0;
	padding: 0;
	border-radius: 4px !important;
	filter: drop-shadow(0 1px 1.5px rgba(20,40,70,.18)) drop-shadow(0 3px 6px rgba(20,40,70,.12));
	transition: transform .15s ease-out, filter .15s ease-out;
}

.bpr-thumbnail-link:hover .bpr-thumbnail {
	transform: translateY(-2px);
	filter: drop-shadow(0 2px 3px rgba(20,40,70,.22)) drop-shadow(0 8px 16px rgba(20,40,70,.18));
}

@media (prefers-reduced-motion: reduce) {
	.bpr-thumbnail-link:hover .bpr-thumbnail { transform: none; }
}

.bpr-title {
	display: block;
}
