/* Event Date Badge Widget */
.wpek-date-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background-color: #f0f0f0;
	border-radius: 4px;
	font-size: 14px;
}

.wpek-date-badge.layout-vertical {
	flex-direction: column;
	text-align: center;
}

.wpek-date-badge.layout-calendar {
	padding: 0;
	background: transparent;
}

.wpek-date-badge .calendar-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 80px;
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}

.wpek-date-badge .calendar-badge .month {
	background: #333;
	color: #fff;
	width: 100%;
	padding: 4px 8px;
	text-align: center;
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 600;
}

.wpek-date-badge .calendar-badge .day {
	font-size: 32px;
	font-weight: bold;
	padding: 8px 16px;
	line-height: 1;
}

.wpek-date-badge .calendar-badge .time-text {
	font-size: 12px;
	padding: 0 8px 8px;
	color: #666;
}

.wpek-date-badge.past-event {
	opacity: 0.7;
	background-color: #e0e0e0;
}

.wpek-date-badge .relative-label {
	background: #007cba;
	color: #fff;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 600;
}

.wpek-date-badge .date-separator {
	margin: 0 4px;
}

.wpek-date-badge .time-text,
.wpek-date-badge .end-time-text {
	color: #666;
	font-size: 0.9em;
}

/* Recurring Event Indicator Widget */
.wpek-recurring-indicator {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background-color: #f7f7f7;
	border-radius: 4px;
	font-size: 14px;
}

.wpek-recurring-indicator.display-badge {
	background-color: #fff3cd;
	border: 1px solid #ffc107;
	color: #856404;
}

.wpek-recurring-indicator.display-text {
	background: transparent;
	padding: 0;
}

.wpek-recurring-indicator.display-detailed {
	flex-direction: column;
	align-items: flex-start;
	padding: 12px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
}

.wpek-recurring-indicator .icon {
	display: inline-flex;
	align-items: center;
	font-size: 16px;
}

.wpek-recurring-indicator .pattern-text {
	font-weight: 500;
}

.wpek-recurring-indicator .next-occurrence {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #e0e0e0;
	width: 100%;
}

.wpek-recurring-indicator .next-occurrence .label {
	font-weight: 600;
	color: #666;
}

.wpek-recurring-indicator .all-dates-wrapper {
	width: 100%;
	margin-top: 12px;
}

.wpek-recurring-indicator .toggle-dates {
	background: transparent;
	border: none;
	color: #007cba;
	cursor: pointer;
	padding: 4px 0;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color 0.2s;
}

.wpek-recurring-indicator .toggle-dates:hover {
	color: #005a87;
	text-decoration: underline;
}

.wpek-recurring-indicator .toggle-dates .arrow {
	font-size: 10px;
	transition: transform 0.2s;
}

.wpek-recurring-indicator .dates-list {
	margin-top: 8px;
	padding-left: 20px;
}

.wpek-recurring-indicator .date-item {
	padding: 4px 0;
	color: #333;
	font-size: 13px;
}

.wpek-recurring-indicator .more-dates {
	padding: 4px 0;
	color: #666;
	font-style: italic;
	font-size: 12px;
}

/* Placeholder styles for Elementor editor */
.wpek-date-badge-placeholder,
.wpek-recurring-indicator-placeholder {
	padding: 20px;
	background: #f5f5f5;
	border: 2px dashed #ccc;
	text-align: center;
	color: #666;
	font-style: italic;
}

/* Event Gallery Widget */
.wpek-event-gallery {
	display: grid;
	gap: 15px;
	width: 100%;
}

.wpek-event-gallery.layout-masonry {
	display: flex;
	flex-wrap: wrap;
}

.wpek-event-gallery.layout-masonry .wpek-gallery-item {
	flex: 1 1 calc(33.333% - 15px);
	max-width: calc(33.333% - 15px);
	margin-bottom: 15px;
}

.wpek-gallery-item {
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
	line-height: 0;
}

.wpek-gallery-item a {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
}

.wpek-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Image Aspect Ratios */
.wpek-event-gallery.ratio-1-1 .wpek-gallery-item {
	aspect-ratio: 1 / 1;
}

.wpek-event-gallery.ratio-4-3 .wpek-gallery-item {
	aspect-ratio: 4 / 3;
}

.wpek-event-gallery.ratio-3-4 .wpek-gallery-item {
	aspect-ratio: 3 / 4;
}

.wpek-event-gallery.ratio-16-9 .wpek-gallery-item {
	aspect-ratio: 16 / 9;
}

.wpek-event-gallery.ratio-natural .wpek-gallery-item {
	aspect-ratio: auto;
	height: auto;
}

.wpek-event-gallery.ratio-natural .wpek-gallery-item img {
	height: auto;
	object-fit: initial;
}

/* Hover Overlay */
.wpek-gallery-item::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.wpek-gallery-item:hover::after {
	opacity: 1;
}

/* Hover Effects */
.wpek-event-gallery.hover-zoom .wpek-gallery-item:hover img {
	transform: scale(1.1);
}

.wpek-event-gallery.hover-fade .wpek-gallery-item:hover img {
	opacity: 0.7;
}

.wpek-event-gallery.hover-slide .wpek-gallery-item:hover img {
	transform: translateY(-10px);
}

.wpek-event-gallery.hover-none .wpek-gallery-item::after {
	display: none;
}

/* Caption Styles */
.wpek-gallery-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 10px 15px;
	font-size: 14px;
	line-height: 1.4;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.wpek-gallery-item:hover .wpek-gallery-caption {
	transform: translateY(0);
}

/* Lightbox Icon Indicator */
.wpek-gallery-item a::before {
	content: '\0xe851';
	font-family: 'eicons';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	font-size: 32px;
	color: #fff;
	z-index: 10;
	opacity: 0;
	transition: all 0.3s ease;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.wpek-gallery-item:hover a::before {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
	.wpek-event-gallery.layout-masonry .wpek-gallery-item {
		flex: 1 1 calc(50% - 15px);
		max-width: calc(50% - 15px);
	}
}

@media (max-width: 767px) {
	.wpek-event-gallery {
		gap: 10px;
	}

	.wpek-event-gallery.layout-masonry .wpek-gallery-item {
		flex: 1 1 100%;
		max-width: 100%;
		margin-bottom: 10px;
	}

	.wpek-gallery-caption {
		font-size: 12px;
		padding: 8px 12px;
	}
}