.bcs-sample-actions {
	margin: 1.5rem 0;
}

/* .bcs-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	border: 2px solid rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	background: #ffffff;
	color: #111111;
	cursor: pointer;
	line-height: 1;
	transition: background-color 0.2s ease, border-color .2s ease;
}

.bcs-button-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.bcs-button-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}


.bcs-button:hover,
.bcs-button:focus,
.bcs-button:active {
	background: #ffffff;
	color: #111111;
}
 */
.bcs-button:focus,
.bcs-button:active {
	background-color: #000 !important;
}

.bcs-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.bcs-modal[hidden] {
	display: none;
}

.bcs-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	transition: opacity 200ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.bcs-modal-overlay {
		transition: none;
	}
}

.bcs-modal-container {
	position: relative;
	background: #ffffff;
	width: min(92vw, 860px);
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

@media (max-width: 785px) {
	.bcs-modal-container {
		width: 100vw !important;
		max-width: 100vw;
		max-height: 92vh;
		height: 99vh;
		border-radius: 0 !important;
		box-shadow: none;
	}
}

.bcs-modal-header {
	display: flex;
	justify-content: flex-end;
	padding: 4px 16px;
	position: relative;
	z-index: 2;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

.bcs-modal-close {
	background-color: #ffffff;
	border: none;
	padding: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s ease;
}

.bcs-modal-close:hover,
.bcs-modal-close:active,
.bcs-modal-close:focus,
.bcs-modal-close:focus-visible {
	background-color: #ffffff;
	outline: none;
}

.bcs-modal-close svg {
	width: 38px;
	height: 38px;
	color: #777777;
	transition: color 0.2s ease;
}

.bcs-modal-close:hover svg,
.bcs-modal-close:active svg,
.bcs-modal-close:focus svg {
	color: #000000;
}

.bcs-modal-body {
	position: relative;
	padding: 0 24px 24px 24px;
	overflow-y: auto;
}

.bcs-modal-author {
	font-size: 0.95rem;
	color: #333333;
	padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.bcs-modal-content {
	max-width: 65ch;
	margin: 0 auto;
    font-size: 1rem;
	line-height: 1.7;
}

.bcs-modal-content p {
	margin-bottom: 1.25rem;
}

/* Normalize WP figure inside modal */
.bcs-modal-content .wp-caption {
    max-width: 85%;
    margin: 2rem auto;
}

/* Ensure image scales cleanly */
.bcs-modal-content .wp-caption img {
    width: 100%;
    height: auto;
    display: block;
}

/* Override theme caption styling */
.bcs-modal-content .wp-caption .wp-caption-text {
    text-align: center;
    border: none;
    font-style: italic;
    margin-top: 0.75rem;
}

body.bcs-modal-open {
	overflow: hidden;
}

/* ---------------------------------------
   Modal Typography Control
---------------------------------------- */
.bcs-modal .bcs-modal-content h1.bcs-modal-title {
	font-size: 2.4rem !important;
	line-height: 1.2;
	margin: 1.25rem 0 1rem 0 !important;
}

.bcs-modal .bcs-modal-content h2 {
	font-size: 1.8rem !important;;
	line-height: 1.3;
	margin: 2rem 0 1rem 0;
}

@media (max-width: 767px) {
	.bcs-modal-container {
		width: 94vw;
		border-radius: 6px;
	}
}

/* ---------------------------------------
   Audio sample
---------------------------------------- */
.bcs-audio-sample {
	margin-top: 1.5rem;
}
.bcs-audio-caption {
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.bcs-sample-module {
	padding: 1.25rem 0;
	border-top: 1px solid #e6e6e6;
	border-bottom: 1px solid #e6e6e6;
}

.bcs-sample-heading {
	font-size: clamp(1.1rem, 2vw + 0.75rem, 1.65rem);
	font-weight: 400;
	letter-spacing: 0.02em;
	margin: 0 0 1.25rem 0;
	color: #2f2f2f;
}

.bcs-button-read {
	margin-bottom: 0;
}

.bcs-audio-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.bcs-audio-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 0.95rem;
	color: #333;
}

.bcs-icon {
	width: 18px;
	height: 18px;
	display: inline-flex;
}

.bcs-icon svg {
	width: 100%;
	height: 100%;
}

.bcs-read-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bcs-read-block,
.bcs-audio-block {
	margin-bottom: 0.75rem;
}

.bcs-read-heading,
.bcs-audio-heading {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 0.95rem;
	color: #333;
	margin-bottom: 0.75rem;
}

/* Scroll Progress Indicator */
.bcs-modal-header {
	position: relative;
}

.bcs-scroll-progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	width: 100%;
	background: rgba(0,0,0,0.05);
	overflow: hidden;
	display: none; /* hidden unless scrollable */
}

.bcs-scroll-progress-bar {
	display: block;
	height: 100%;
	width: 100%;
	transform: scaleX(0);
	transform-origin: left;
	background: var(--e-global-color-primary, #B00000);
	transition: transform 0.08s linear;
}

/* Condensed Sticky Header Title */
.bcs-header-title-condensed {
	font-size: clamp(0.9rem, 1vw + 0.7rem, 1.4rem) !important;
	font-weight: 400;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 80%;
	margin: 0;
	margin-left: 8px;
	pointer-events: none;
}
@media (min-width: 940px) {
	.bcs-header-title-condensed {
		margin-left: 88px;
	}
}

.bcs-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

@media (max-width: 480px) {
	.bcs-header-title-condensed {
		max-width: 70%;
		font-size: 0.8rem;
	}
}

/* Excerpt Footer */
.bcs-modal-footer {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.bcs-excerpt-meta {
	font-size: 0.85rem;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.7);
	margin: 0;
}

/* Modal Subtitle */
.bcs-modal-subtitle {
    font-family: var(--e-global-typography-secondary-font-family);
	font-size: 1.2rem;
	margin: 0.5rem 0 1.25rem;
	line-height: 1.4;
	color: rgba(0, 0, 0, 0.8);
}
