/* local.news2.css — DevMode preview: redesigned media gallery (news2.tpl) */

#content-container h1 {
	display: block; padding: 20px; 
	text-align: center; padding-top: 35px; /* matches the top space on the Greenwich Reindeer Festival page */ 
}

.media-gallery-intro {
	max-width: 700px; margin: 0px auto 30px; 
	text-align: center; 
	color: #556; 
}

/* Filter tabs
   ---------------------------------------------------------------------- */
.media-filter-tabs {
	position: relative; 
	display: flex; flex-wrap: nowrap; justify-content: center; 
	width: -moz-fit-content; width: fit-content; max-width: 100%; 
	margin: 0px auto 30px; 
	padding: 6px; list-style: none; 
	background: #fff; 
	border: 1px solid #ecd5d6; border-radius: 50px; 
	box-shadow: 0px 6px 24px rgba(188, 61, 69, 0.15); 
	box-sizing: border-box; 
}
.media-filter-tabs li {
	position: relative; z-index: 1; 
	display: block; flex: 1 1 auto; 
}
.media-filter-tabs .tab-slider {
	position: absolute; z-index: 0; 
	top: 6px; bottom: 6px; left: 0px; width: 0px; 
	border-radius: 40px; 
	background: linear-gradient(180deg, #d63a32 0%, #b3231f 100%); 
	box-shadow: 0px 6px 14px rgba(188, 61, 69, 0.35); 
	transition: transform 300ms ease-in-out, width 300ms ease-in-out; 
	pointer-events: none; 
}
.media-filter-tabs button {
	-webkit-appearance: none; appearance: none; 
	display: block; width: 100%; 
	border: 0px; background: transparent; color: #b3231f; 
	font-family: "Poppins", Helvetica, Arial, Verdana, sans-serif; 
	font-weight: 600; font-size: 1rem; white-space: nowrap; 
	padding: 14px 30px; 
	border-radius: 40px; 
	cursor: pointer !important; 
	transition: color 250ms ease-in-out; 
}
.media-filter-tabs button:hover {
	color: #7d1511; 
}
.media-filter-tabs button.active {
	color: #fff; 
}
/* fallback highlight until the slider is positioned */
.media-filter-tabs:not(.has-slider) button.active {
	background: linear-gradient(180deg, #d63a32 0%, #b3231f 100%); 
}
/* Grid
   ---------------------------------------------------------------------- */
.media-grid {
	display: grid; 
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
	gap: 22px; 
	margin: 0px 0px 20px; 
	padding: 100px; padding-top: 0px; box-sizing: border-box; 
	list-style: none; 
}
.media-card {
	position: relative; 
	display: block; 
	aspect-ratio: 4 / 3; 
	border-radius: 12px; 
	overflow: hidden; 
	text-decoration: none; 
	box-shadow: 0 8px 20px rgba(0,0,0,0.18); 
	transition: transform 250ms ease-in-out, box-shadow 250ms ease-in-out; 
	background-color: #333; 
}
.media-card:hover {
	transform: translateY(-4px) scale(1.015); 
	box-shadow: 0 14px 30px rgba(0,0,0,0.28); 
}
.media-card.is-hidden {
	display: none; 
}
.media-card img.media-card-thumb {
	position: absolute; top: 0px; left: 0px; 
	width: 100%; height: 100%; 
	object-fit: cover; 
}
.media-card .media-card-gradient {
	position: absolute; left: 0px; right: 0px; bottom: 0px; 
	height: 65%; 
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%); 
	z-index: 1; 
	pointer-events: none; 
}
.media-card .media-card-title {
	position: absolute; left: 15px; right: 15px; bottom: 12px; 
	z-index: 2; 
	color: #fff; 
	font-family: "Poppins", Helvetica, Arial, Verdana, sans-serif; 
	font-weight: 600; font-size: 0.95rem; line-height: 1.3; 
	text-shadow: 0 2px 6px rgba(0,0,0,0.5); 
}
.media-card .media-card-size {
	display: block; 
	font-weight: 400; font-size: 0.75rem; 
	color: #f0d3d5; 
	margin-top: 2px; 
}

/* Type badge, top-right corner of each card */
.media-card .media-card-badge {
	position: absolute; top: 12px; right: 12px; z-index: 3; 
	width: 36px; height: 36px; 
	border-radius: 50%; 
	display: flex; align-items: center; justify-content: center; 
	font-size: 1.1rem; 
	color: #fff; 
	background-color: rgba(0,0,0,0.55); 
	backdrop-filter: blur(2px); 
}
.media-card.image .media-card-badge { background-color: rgba(94,166,144,0.85); }
.media-card.video .media-card-badge { background-color: rgba(188,61,69,0.85); }
.media-card.application .media-card-badge { background-color: rgba(60,90,150,0.85); }
.media-card.audio .media-card-badge { background-color: rgba(180,130,20,0.85); }

/* Big centered play glyph for videos */
.media-card.video .media-card-play {
	position: absolute; top: 50%; left: 50%; z-index: 2; 
	transform: translate(-50%,-50%); 
	width: 56px; height: 56px; border-radius: 50%; 
	background-color: rgba(255,255,255,0.85); 
	display: flex; align-items: center; justify-content: center; 
	transition: transform 200ms ease-in-out; 
}
.media-card.video:hover .media-card-play {
	transform: translate(-50%,-50%) scale(1.1); 
}
.media-card.video .media-card-play::after {
	content: ""; 
	border-style: solid; 
	border-width: 10px 0px 10px 16px; 
	border-color: transparent transparent transparent #bc3d45; 
	margin-left: 4px; 
}

.media-gallery-empty {
	text-align: center; 
	padding: 60px 20px; 
	color: #889; 
}

@media all and (max-width: 550px){
	.media-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
		gap: 14px; 
		padding: 12px; 
	}
	.media-filter-tabs button {
		font-size: 0.8rem; padding: 10px 12px; 
	}
}
