/*limit to book covers as featured images for projects*/
img.wp-post-image,
.post-featured-image img {
	-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
	-moz-box-shadow: 0 2px 5px rgba(0,0,0,0.4);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.wp-block-group.blog-article-excerpt {
	position: relative;
}

.wp-block-group.blog-article-excerpt h3 a:before {
	content: " ";
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

mark {
	padding: 10px;
}

.post-list li .wp-block-group,
.book-list li .wp-block-group {
	border-bottom-width: 0 !important;
/*background-color: red;*/
}

.post-type-archive-jetpack-portfolio .wp-block-post-featured-image,
.tax-jetpack-portfolio-type .wp-block-post-featured-image,
.tax-jetpack-portfolio-tag .wp-block-post-featured-image,
.single-jetpack-portfolio .wp-block-post-featured-image {
	aspect-ratio: auto !important;
}

:root :where(.is-style-post-terms-1--2 a:where(:not(.wp-element-button))) {
	border-radius: 0;
}

/*start subtle animation for front page 4 book covers*/
.book-collection img {
	opacity: 0;
	animation: fadein .8s ease forwards;
}

.book-collection img:nth-child(1) {
	animation-delay: .1s;
}

.book-collection img:nth-child(2) {
	animation-delay: .2s;
}

.book-collection img:nth-child(3) {
	animation-delay: .3s;
}

.book-collection img:nth-child(4) {
	animation-delay: .4s;
}

@keyframes fadein {
	from {
		opacity: 0;
	}
	
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.book-collection img {
		opacity: 1 !important;
		animation: none !important;
	}
}

/*end subtle animation for front page 4 book covers*/
/*start add new highlight in book collection*/
.book-collection .jetpack-portfolio-tag-new-release .wp-block-post-featured-image,
.book-collection .wp-block-post-featured-image {
	position: relative;
/* required for pseudo-element positioning */
}

/*ribbon base style*/
.book-collection .jetpack-portfolio-tag-new-release .wp-block-post-featured-image:before,
.book-collection .wp-block-post-featured-image:before {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 20;
	display: inline-block;
	transform: rotate(0deg);
	pointer-events: none;
	-webkit-font-smoothing: antialiased;
	white-space: nowrap;
}

/* Ribbon not displayed (top-right corner) */
.book-collection .wp-block-post-featured-image::before {
	content: "";
	border-radius: none;
	box-shadow: none;
}

.book-collection .jetpack-portfolio-tag-new-release .wp-block-post-featured-image::before {
	content: "NEW";
}

a[href="https://whatscantoneseformazeltov.com/project-tag/new-release/"] {
	border: none;
}

/* Ribbon (top-right corner) and tag on single portfolio post */
a[href="https://whatscantoneseformazeltov.com/project-tag/new-release/"],
.book-collection .jetpack-portfolio-tag-new-release .wp-block-post-featured-image::before {
	text-transform: uppercase;
	padding: 1em 1.2em;
	font-size: clamp(10px, 2.2vw, 12px);
	font-weight: 700;
/* responsive text size */
	background: linear-gradient(135deg, #ffd84d 0%, #f1b90b 100%);
	color: inherit;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* Slightly larger and bolder on larger screens */
@media (min-width: 900px) {
	.book-collection .wp-block-post-featured-image,
						.book-collection .jetpack-portfolio-tag-new-release .wp-block-post-featured-image {
		font-size: 13px;
		padding: .45em .95em;
		top: 12px;
		right: 12px;
	}
}

/* Make sure ribbon scales with image containers and doesn't overflow rounded corners */
.book-collection .jetpack-portfolio-tag-new-release .wp-block-post-featured-image,
.book-collection .wp-block-post-featured-image {
	display: block;
}

/* Accessibility helper: keep ribbon decorative for pointer users (pseudo-content is not read by screen readers) */
/* If you want screen readers to announce "New", add "New" to the image alt text or add a visually-hidden span in the HTML. */
/*end add new highlight in book collection*/