/* BMC Media Coverage — front-end grid + lightbox */

.bmc-media-banner {
	position: relative;
	width: 100%;
	min-height: 260px;
	margin: 0 0 40px;
	background: #1a1a1a center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.bmc-media-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.bmc-media-banner-inner {
	position: relative;
	z-index: 1;
	color: #fff;
	padding: 20px;
}

.bmc-media-breadcrumb {
	font-size: 0.85rem;
	margin-bottom: 14px;
	opacity: 0.85;
}

.bmc-media-breadcrumb a {
	color: #fff;
	text-decoration: none;
}

.bmc-media-breadcrumb a:hover {
	text-decoration: underline;
}

.bmc-media-breadcrumb-sep {
	margin: 0 6px;
	opacity: 0.6;
}

.bmc-media-breadcrumb-current {
	opacity: 0.75;
}

.bmc-media-banner-inner h1 {
	font-size: 2.4rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 8px;
}

.bmc-media-banner-inner p {
	font-size: 1.05rem;
	margin: 0;
	opacity: 0.9;
}

.bmc-media-heading {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 24px;
	text-align: center;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #1a1a1a;
}

.bmc-media-empty {
	text-align: center;
	padding: 60px 20px;
	color: #777;
	font-style: italic;
}

/* True CSS Grid — equal-width columns, 4 per row by default.
   (Previously used CSS multi-column/masonry, which squeezed column width
   unpredictably depending on content height. Grid keeps every card the
   same width, which is what makes the square thumbnails line up.) */
.bmc-media-grid {
	--bmc-columns: 4;
	display: grid !important;
	grid-template-columns: repeat(var(--bmc-columns), 1fr);
	gap: 28px;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	.bmc-media-grid { --bmc-columns: 3 !important; }
}
@media (max-width: 720px) {
	.bmc-media-grid { --bmc-columns: 2 !important; }
}
@media (max-width: 480px) {
	.bmc-media-grid { --bmc-columns: 1 !important; }
}

.bmc-media-card {
	margin: 0;
	background: #fff;
	border-radius: 0 !important;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bmc-media-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Square image box + button reset combined into ONE rule to avoid the
   shorthand-padding conflict that was previously collapsing this to zero
   height (a separate ".bmc-media-thumb" rule's `padding-top:100%` was being
   overridden by this rule's `padding:0`, since they targeted the same
   property with different specificity). */
.bmc-media-thumb.bmc-media-trigger {
	position: relative;
	display: block;
	width: 100%;
	height: 0;
	padding: 100% 0 0 0;
	margin: 0;
	border: 0;
	border-radius: 0 !important;
	overflow: hidden;
	background: #fafafa;
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.bmc-media-thumb img {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	object-fit: contain;
	display: block;
	margin: 0;
	border-radius: 0 !important;
	transition: transform 0.4s ease;
}

.bmc-media-card:hover .bmc-media-thumb img {
	transform: scale(1.06);
}

.bmc-media-thumb-placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #eee, #f7f7f7);
}

/* (Online/Print badge removed from the public-facing card — type is still recorded in wp-admin) */

.bmc-media-caption {
	padding: 14px 16px 16px;
	margin: 0;
	text-align: left;
}

.bmc-media-publication {
	font-size: 0.72rem;
	font-weight: 700;
	margin: 0 0 5px;
	color: #b8860b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.bmc-media-headline {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 6px;
	color: #1a1a1a;
}

.bmc-media-shortdesc {
	font-size: 0.82rem;
	line-height: 1.45;
	margin: 0 0 10px;
	color: #666;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bmc-media-date {
	font-size: 0.8rem;
	font-weight: 600;
	color: #888;
	margin-bottom: 10px;
}

.bmc-media-readmore {
	display: inline-block;
	font-size: 0.88rem;
	font-weight: 700;
	color: #0056b3;
	text-decoration: none;
}

.bmc-media-readmore:hover {
	text-decoration: underline;
}

/* ---------- Modal / Lightbox ---------- */

.bmc-media-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.bmc-media-modal.is-open {
	display: flex;
}

.bmc-media-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.75);
}

.bmc-media-modal-dialog {
	position: relative;
	max-width: 96vw;
	max-height: 96vh;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bmc-media-modal-img {
	max-width: 96vw;
	max-height: 96vh;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.bmc-media-modal-close {
	position: fixed;
	top: 20px;
	right: 24px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

/* (modal text metadata removed — title/description/date/link now live only in the card list) */
