/* products css mainly+

/* General Styling */
.wp-block-cover {
	transition: transform .3s ease, box-shadow .3s ease;
	cursor: pointer;
	margin-bottom: 20px;
/* Space between products */
}

/* Hover Effect */
.wp-block-cover:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Product Titles */
.wp-block-cover__inner-container p {
	background-color: rgba(255, 255, 255, 0.8);
/* Semi-transparent background */
	display: inline-block;
	padding: 5px 10px;
	border-radius: 5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Product Image Adjustment */
.wp-block-cover__image-background {
	transition: opacity .3s ease;
}

.wp-block-cover:hover .wp-block-cover__image-background {
	opacity: .9;
}

/* Responsive Grid Layout */
@media (min-width: 768px) {
	.page-id-198 .wp-block-cover {
		width: calc(50% - 10px);
	/* Half width minus margin */
		float: left;
		margin-right: 20px;
		margin-bottom: 20px;
	}
	
	.page-id-198 .wp-block-cover:nth-child(2n) {
		margin-right: 0;
	/* Removes margin for every 2nd element */
	}
}

@media (min-width: 1024px) {
	.page-id-198 .wp-block-cover {
		width: calc(33.333% - 13.333px);
	/* One-third width minus margin */
	}
	
	.page-id-198 .wp-block-cover:nth-child(2n) {
		margin-right: 20px;
	/* Reset margin for larger screens */
	}
	
	.page-id-198 .wp-block-cover:nth-child(3n) {
		margin-right: 0;
	/* Removes margin for every 3rd element */
	}
}

.wp-block-template-part {
/* Replace with your footer's actual class or ID */
	clear: both;
	width: 100%;
/* Remove position:absolute if it's there, unless it's a sticky footer */
}

/* Customize the timeline container */
.custom-timeline-page {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Customize timeline item */
#custom-timeline-container .wp-block-group {
	margin: 20px;
	padding: 20px;
	border: 2px solid #ccc;
	border-radius: 10px;
	background-color: #f9f9f9;
	text-align: center;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Flashy animation effect */
@keyframes flashy {
	0% {
		transform: scale(1);
		background-color: #f9f9f9;
	}
	
	50% {
		transform: scale(1.05);
		background-color: #ffe6e6;
	}
	
	100% {
		transform: scale(1);
		background-color: #f9f9f9;
	}
}

.timeline-event {
	margin-bottom: 20px;
	padding: 20px;
	background-color: #f0f0f0;
/* Change this color as desired */
	border-radius: 10px;
}

.timeline-date {
	font-weight: bold;
	font-size: 18px;
	margin-bottom: 10px;
}

.timeline-content p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
}

/*Ricogordo start*/
.wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
/* Adjust column size here */
	gap: 10px;
/* Space between images */
}

.wp-block-gallery img {
	width: 100%;
	height: auto;
/* Maintain aspect ratio */
	object-fit: cover;
/* Ensures consistent sizing if height is specified */
}

/*Ricogordo end*/