.podcast-page-content{
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 5%;
	contain: content; /* Add paint containment for performance */
}

.archive-taxonomy-podcast {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 5px;
}

.podcast-page-title{
	display: flex;
	align-items: center;
	justify-content: center;
}

.podcast-page-title__text{
	font-family: var(--source-serif-pro);
	font-size: clamp(1em, 3em, 3em);
	font-weight: 400;
	word-break: break-word;
}

.podcast-page-card{
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 260px;
	height: 400px;
	background: var(--pgsp-theme-color);
	border-radius: 15px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	padding: 20px 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
	margin: 5px;
	transition: box-shadow .7s ease;
	position: relative;
	will-change: transform; /* Optimize for animations */
	transform: translateZ(0); /* Force GPU acceleration */
}

.podcast-page-card__link{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.podcast-page-card:hover{
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.75);
	cursor: pointer;
}

.podcast-page-card__image{
	width: 90%;
	height: auto; /* Allow height to adjust automatically */
	aspect-ratio: 1 / 1; /* Force square aspect ratio */
	object-fit: cover; /* Ensure image fills the space without distortion */
	border-radius: 15px;
	margin-bottom: 15px;
}

.podcast-page-card__description{
	font-family: var(--ibm-plex-sans-ssm);
	color: var(--byu-white);
	font-size: 14px;
	margin: 0;
	width: 90%;
	align-self: center;
	height: 90px;
	overflow: hidden;
	line-height: 1.25em;
}

.podcast-page-card__buttons{
	display: flex;
	justify-content: space-between;
	align-items: end;
	padding: 15px 0 0 0;
	width: 90%;
	font-size: 14px;
	font-family: var(--ibm-plex-sans-ssm);
	position: absolute;
	bottom: 25px;
	z-index: 0;
}

.podcast-page-card__follow-button {
	border: 1px solid var(--byu-white);
	padding: 5px 10px;
	border-radius: 500px;
	color: var(--byu-white);
	min-width: 30%;
	z-index: 2;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.podcast-page-card__follow-button:hover {
	background-color: var(--byu-white);
	color: var(--byu-navy);
}

.podcast-page-card__follow-button.expanded_link {
	color: transparent;

	.podcast-page-card__button-text {
		display: none;
	}
}

.hidden_link {
	display: none;
}

.expanded_link {
	display: block;
	border-radius: 10px;
	box-shadow: 2px 2px 20px 20px rgba(12, 12, 12, 0.2);
	transition: box-shadow .7s ease;
	background-color: var(--byu-white);
}

.podcast-page-card__link-wrapper{
	color: var(--byu-navy);
	background-color: var(--byu-white);
	border-radius: 10px;
}

.podcast-page-card__follow-button__link {
	display: flex;
	flex-direction: row;
	justify-content: start;
	align-items: center;
	z-index: 100;
	margin: 0;
	border-bottom: var(--byu-white) 1px solid;
}

.podcast-page-card__follow-button__link:hover {
	color: blue;
	border-bottom: lightgrey 1px solid;
}

.podcast-page-card__link-text{
	margin: 5px;
}

.podcast-page-card__view-button {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 5px 10px;
	border-radius: 500px;
	background-color: var(--byu-white);
	color: var(--byu-navy);
	width: 30%;
	min-width: 30%;
	max-height: 20px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.podcast-page-card__view-button:hover {
	background-color: var(--byu-navy);
	color: var(--byu-white);
}

.podcast-page-card__button-text{
	font-weight: bold;
	margin: 0;
	text-align: center;
}

.podcast-page-card__x-out-button{
	height: 10px;
	width: 10px;
}

.icon_wrapper{
	display: none;
	justify-content: end;
	align-items: center;
	width: 100%;
	padding: 2px;
}

.podcast-page-card__link-image {
	height: 20px;
	width: 20px;
	margin-right: 0.5rem;
}

@media (max-width: 920px) {
	.archive-taxonomy-podcast {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.archive-taxonomy-podcast {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 900px) {
	.icon_wrapper{
		display: flex;
	}
}

@media (prefers-reduced-motion: reduce) {
	.podcast-page-card,
	.podcast-page-card__follow-button,
	.podcast-page-card__view-button {
		transition: none;
	}
}
