/* Base Carousel Wrapper */
.gr-pc-wrapper {
	position: relative;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	overflow: hidden;
}

/* Typography Options */
.gr-pc-type-modern { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.gr-pc-type-classic { font-family: Georgia, "Times New Roman", serif; }

/* Track and Items */
.gr-pc-track-container {
	overflow: hidden;
	width: 100%;
}
.gr-pc-track {
	display: flex;
	width: 100%;
}
.gr-pc-item {
	flex: 0 0 calc(100% / var(--gr-pc-cards, 1));
	max-width: calc(100% / var(--gr-pc-cards, 1));
	padding: 0 10px;
	box-sizing: border-box;
}

/* Responsive Variables */
.gr-pc-resp-1-2-3 { --gr-pc-cards: 1; }
@media (min-width: 768px) { .gr-pc-resp-1-2-3 { --gr-pc-cards: 2; } }
@media (min-width: 1024px) { .gr-pc-resp-1-2-3 { --gr-pc-cards: 3; } }

.gr-pc-resp-1-2-4 { --gr-pc-cards: 1; }
@media (min-width: 768px) { .gr-pc-resp-1-2-4 { --gr-pc-cards: 2; } }
@media (min-width: 1024px) { .gr-pc-resp-1-2-4 { --gr-pc-cards: 4; } }

.gr-pc-resp-1-3-5 { --gr-pc-cards: 1; }
@media (min-width: 768px) { .gr-pc-resp-1-3-5 { --gr-pc-cards: 3; } }
@media (min-width: 1024px) { .gr-pc-resp-1-3-5 { --gr-pc-cards: 5; } }

/* Card Styling */
.gr-pc-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	overflow: hidden;
	height: 100%;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gr-pc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Image Wrapper & Ratios */
.gr-pc-image-wrap {
	display: block;
	width: 100%;
	position: relative;
	overflow: hidden;
	background: #111111; 
}
.gr-pc-ratio-16-9 .gr-pc-image-wrap { aspect-ratio: 16/9; }
.gr-pc-ratio-4-3 .gr-pc-image-wrap { aspect-ratio: 4/3; }
.gr-pc-ratio-1-1 .gr-pc-image-wrap { aspect-ratio: 1/1; }
.gr-pc-ratio-3-2 .gr-pc-image-wrap { aspect-ratio: 3/2; }

/* Image tag logic */
.gr-pc-img-link {
	display: block;
	width: 100%;
	height: 100%;
}
.gr-pc-img-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gr-pc-card:hover .gr-pc-img-link img {
	transform: scale(1.08); /* Smoother, slightly more pronounced zoom */
}

/* --- FULL TITLE OVERLAY --- */
.gr-pc-title-overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.50); /* Dark initial state for focus on text */
	padding: 20px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end; /* Aligns title to the bottom of the image */
	transition: background 0.5s ease;
	pointer-events: none; /* Allows clicking the image link underneath */
}
.gr-pc-card:hover .gr-pc-title-overlay {
	background: rgba(0, 0, 0, 0.25); /* Highly transparent on hover to reveal image */
}
.gr-pc-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
	transform: translateY(0);
	transition: transform 0.5s ease;
}
.gr-pc-card:hover .gr-pc-title {
	transform: translateY(-3px); /* Subtle lift effect on the text */
}
.gr-pc-title a { 
	color: #FFFFFF; 
	text-decoration: none; 
	transition: color 0.3s ease; 
	display: block;
	pointer-events: auto; /* Re-enable clicks for the title link specifically */
	text-shadow: 0 2px 6px rgba(0,0,0,0.8); /* Ensures text readability even when background fades */
}
.gr-pc-title a:hover { 
	color: #e2e8f0; 
}

/* Content (Below Image) */
.gr-pc-content {
	padding: 15px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.gr-pc-category {
	display: inline-block;
	background: #2563eb;
	color: #fff;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 3px;
	margin-bottom: 10px;
	align-self: flex-start;
	text-decoration: none;
}
.gr-pc-excerpt {
	font-size: 14px;
	color: #666;
	margin: 0 0 15px 0;
	line-height: 1.5;
	flex-grow: 1;
}
.gr-pc-meta {
	font-size: 12px;
	color: #888;
	display: flex;
	gap: 15px;
	border-top: 1px solid #eee;
	padding-top: 10px;
	margin-top: auto;
}

/* Navigation Arrows */
.gr-pc-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #ddd;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	z-index: 10;
	transition: background 0.2s, color 0.2s;
	color: #333;
}
.gr-pc-nav:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.gr-pc-nav.disabled { opacity: 0.3; cursor: not-allowed; }

/* Navigation Positioning */
.gr-pc-nav-pos-outside .gr-pc-nav-prev { left: -20px; }
.gr-pc-nav-pos-outside .gr-pc-nav-next { right: -20px; }
.gr-pc-nav-pos-inside .gr-pc-nav-prev { left: 10px; }
.gr-pc-nav-pos-inside .gr-pc-nav-next { right: 10px; }

.gr-pc-nav-pos-bottom { padding-bottom: 50px; }
.gr-pc-nav-pos-bottom .gr-pc-nav { top: auto; bottom: 0; transform: none; }
.gr-pc-nav-pos-bottom .gr-pc-nav-prev { left: calc(50% - 45px); }
.gr-pc-nav-pos-bottom .gr-pc-nav-next { right: calc(50% - 45px); }

/* Dots */
.gr-pc-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}
.gr-pc-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	transition: background 0.3s;
	border: none;
	padding: 0;
}
.gr-pc-dot.active { background: #2563eb; transform: scale(1.2); }