/*
Theme Name: Newsup Child
Theme URI: https://themeansar.com/free-themes/newsup/
Description: Tema hijo de Newsup para cambios personalizados.
Author: Tu Nombre
Template: newsup
Version: 1.0.0
Text Domain: newsup-child
*/
.editorial-carousel-section {
	padding: 28px 0;
}

.editorial-carousel-header {
	text-align: center;
}

.editorial-carousel-header h2 {
	margin-bottom: 22px;
	font-size: 26px;
	font-weight: 700;
	text-align: center;
}

.editorial-carousel-wrapper {
	position: relative;
	max-width: 120px;
	margin: 0 auto;
}

.editorial-carousel-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	padding-bottom: 10px;
}

.editorial-carousel-track::-webkit-scrollbar {
	height: 6px;
}

.editorial-carousel-track::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 10px;
}

.editorial-carousel-item {
	flex: 0 0 230px;
	max-width: 230px;
	scroll-snap-align: start;
}

.editorial-carousel-card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.editorial-carousel-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e9e9e9;
}

.editorial-carousel-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.editorial-carousel-card:hover .editorial-carousel-image img {
	transform: scale(1.05);
}

.editorial-carousel-card h3 {
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 700;
	text-align: center;
}

.editorial-carousel-btn {
	position: absolute;
	top: 35%;
	z-index: 2;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: #111;
	color: #fff;
	cursor: pointer;
}

.editorial-carousel-prev {
	left: -42px;
}

.editorial-carousel-next {
	right: -42px;
}

@media only screen and (max-width: 991px) {
	.editorial-carousel-wrapper {
		max-width: 720px;
	}

	.editorial-carousel-item {
		flex-basis: 220px;
		max-width: 220px;
	}

	.editorial-carousel-prev {
		left: -12px;
	}

	.editorial-carousel-next {
		right: -12px;
	}
}

@media only screen and (max-width: 575px) {
	.editorial-carousel-section {
		padding: 22px 0;
	}

	.editorial-carousel-item {
		flex-basis: 78%;
		max-width: 78%;
	}

	.editorial-carousel-card h3 {
		font-size: 15px;
	}

	.editorial-carousel-btn {
		display: none;
	}
}