/******* Do not edit this file *******
Woody Code Snippets CSS and JS
Saved: Nov 01 2025 | 12:10:52 */
.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.8);
	backdrop-filter: blur(5px);
}
.lectures-custom-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 200px;
	gap: 20px;
	margin: 40px 0;
}
.lecture-card {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #f5f5f5;
	cursor: pointer;
}

.lecture-wide {
	grid-column: span 2;
}

.lecture-narrow {
	grid-column: span 1;
}

.lecture-tall {
	grid-row: span 3;
}

.lecture-short {
	grid-row: span 2;
}

.lecture-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: transform 0.3s ease;
}

.lecture-card:hover .lecture-bg {
	transform: scale(1.05);
}

.lecture-card:hover .lecture-overlay {
	opacity: 0.6;
}

.lectures-custom-grid .lecture-content {
	position: relative;
	z-index: 2;
	padding: 25px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: white;
}

.lecture-category {
	display: inline-block;
	background: rgba(255,255,255,0.2);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8em;
	margin-bottom: 10px;
	backdrop-filter: blur(10px);
}

.lecture-title {
	font-size: 1.4em;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.lecture-narrow .lecture-title {
	font-size: 1.1em;
}

.lecture-excerpt {
	font-size: 0.9em;
	opacity: 0.9;
	line-height: 1.4;
	margin-bottom: 15px;
}

.lecture-modal-btn {
	position: absolute;
	bottom: 25px;
	right: 25px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #000;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.lecture-modal-btn:hover {
	background: #333;
	transform: scale(1.1);
}

/* Стили для модальных окон */
.lecture-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
}

.lecture-modal.active {
	display: block;
}


.modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.modal-close {
	position: absolute;
    top: -40px;
	right: -40px;
	border: none;
	background: transparent!important;
	cursor: pointer;
	padding: 0;
}

.modal-body {
	width: 95%;
	height: 820px;
	max-width: 880px;
	max-height: 98vh;
	overflow-y: auto;
}

.modal-body .wp-block-group,
.modal-body .wp-block-columns,
.modal-body .wp-block-image {
	margin-bottom: 20px;
}

/* Адаптивность */
@media (max-width: 1024px) {
	.lectures-custom-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.lecture-wide,
	.lecture-narrow {
		grid-column: span 1;
	}

	.lecture-tall,
	.lecture-short {
		grid-row: span 2;
	}
}

@media (max-width: 768px) {
	.lectures-custom-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 250px;
	}

	.lecture-tall,
	.lecture-short {
		grid-row: span 1;
	}

	.modal-content {
		width: 95%;
		height: 95vh;
	}

	.modal-body {
		padding: 30px 20px;
	}
}