.iiwc-pe {
	--iiwc-maroon: #7b1c2e;
	--iiwc-ivory: #faf8f3;
	--iiwc-brown: #2e2018;
	--iiwc-gold: #c9a24b;
	display: flex;
	gap: 32px;
	align-items: flex-start;
	background: var(--iiwc-ivory);
	padding: 24px 40px;
	font-family: 'Inter', sans-serif;
	color: var(--iiwc-brown);
	box-sizing: border-box;
	width: 100vw;
	max-width: 1300px;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}
.iiwc-pe * {
	box-sizing: border-box;
}
.iiwc-pe-years {
	display: flex;
	flex-direction: column;
	gap: 8px;
	position: sticky;
	top: 80px;
	flex: 0 0 100px;
}
.iiwc-pe-year-btn {
	font-family: 'Lora', serif;
	font-weight: 600;
	font-size: 18px;
	background: none;
	border: none;
	border-left: 3px solid transparent;
	padding: 6px 12px;
	text-align: left;
	cursor: pointer;
	color: var(--iiwc-brown);
	opacity: 0.55;
}
.iiwc-pe-year-btn:hover {
	opacity: 0.85;
}
.iiwc-pe-year-btn.is-active {
	opacity: 1;
	border-left-color: var(--iiwc-maroon);
	color: var(--iiwc-maroon);
}
.iiwc-pe-content {
	flex: 1 1 auto;
	min-width: 0;
}
.iiwc-pe-months {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}
.iiwc-pe-month-btn {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
	background: #fff;
	border: 1px solid rgba(123, 28, 46, 0.2);
	border-radius: 999px;
	padding: 6px 16px;
	cursor: pointer;
	color: var(--iiwc-brown);
}
.iiwc-pe-month-btn:hover {
	border-color: var(--iiwc-maroon);
}
.iiwc-pe-month-btn.is-active {
	background: var(--iiwc-maroon);
	border-color: var(--iiwc-maroon);
	color: #fff;
}
.iiwc-pe-month-panel {
	margin-bottom: 8px;
}
.iiwc-pe-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.iiwc-pe-card {
	display: flex;
	flex-direction: column;
	text-align: left;
	background: #fff;
	border: none;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	padding: 0;
}
.iiwc-pe-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #000;
}
.iiwc-pe-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.iiwc-pe-card-tag {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	z-index: 1;
}
.iiwc-pe-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	opacity: 0.9;
}
.iiwc-pe-play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 55%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent #fff;
}
.iiwc-pe-card-body {
	padding: 12px 14px 16px;
}
.iiwc-pe-card-date {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	margin-bottom: 6px;
}
.iiwc-pe-card-title {
	display: block;
	font-family: 'Lora', serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--iiwc-brown);
	margin-bottom: 6px;
}
.iiwc-pe-card-desc {
	display: block;
	font-size: 12px;
	color: #7a7268;
	line-height: 1.5;
}
.iiwc-pe-empty {
	padding: 24px;
	font-style: italic;
	color: #7a7268;
}

.iiwc-pe-recent {
	max-width: 1100px;
	margin: 0 auto;
	font-family: 'Inter', sans-serif;
}
.iiwc-pe-recent .iiwc-pe-grid {
	grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 700px) {
	.iiwc-pe-recent .iiwc-pe-grid {
		grid-template-columns: 1fr;
	}
}

.iiwc-pe-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(20, 14, 10, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 40px;
}
.iiwc-pe-lightbox[hidden] {
	display: none;
}
.iiwc-pe-lightbox-frame {
	width: 100%;
	max-width: 900px;
	aspect-ratio: 16 / 9;
}
.iiwc-pe-lightbox-frame iframe {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 4px;
}
.iiwc-pe-lightbox-close {
	position: absolute;
	top: 24px;
	right: 32px;
	background: none;
	border: none;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
}

@media (max-width: 900px) {
	.iiwc-pe-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.iiwc-pe {
		flex-direction: column;
		gap: 16px;
		padding: 16px;
	}
	.iiwc-pe-years {
		flex-direction: row;
		position: static;
		overflow-x: auto;
		flex: none;
		top: auto;
	}
	.iiwc-pe-grid {
		grid-template-columns: 1fr;
	}
}
