/* =================== ИСТОРИЯ КАФЕДРЫ =================== */
.history-page {
    color: #1f2f29;
    background: #fff;
    padding: 28px 0 56px;
}

.history-page .wrap { max-width: 1180px; }

.history-article, .history-editor-page {
    color: #1f2f29;
    font-size: 18px;
    line-height: 1.72;
}

.history-article::after, .history-editor-page::after {
    content: "";
    display: block;
    clear: both;
}

.history-editor-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
}

.history-editor-page.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: none !important; }
.history-editor-page .wp-block-group__inner-container { width: 100% !important; max-width: none !important; }

.history-article h1, .history-editor-page h1, .history-editor-page .wp-block-heading {
    margin: 0 0 28px;
    text-align: center;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--b);
}

.history-article p, .history-editor-page p {
    margin: 0;
    color: #1f2f29;
    text-align: justify;
    text-indent: 1.25em;
}

.history-float, .history-editor-page .wp-block-image.history-img {
    position: relative;
    float: left;
    width: min(100%, 360px);
    margin: 5px 15px 0 0 !important;
    overflow: hidden;
    border: 1px solid rgba(20, 138, 99, .14);
    border-radius: 18px;
    background: #f6fbf8;
    box-shadow: 0 14px 34px rgba(17, 64, 46, .10);
}

.history-float--right, .history-editor-page .wp-block-image.history-img-right { float: right; margin: 5px 0 -12px 15px !important; }
.history-float--wide, .history-editor-page .wp-block-image.history-img-wide { width: min(100%, 520px); }
.history-float--faculty-2009, .history-editor-page .wp-block-image.history-img-faculty { width: min(100%, 360px); }
.history-float--kovalev, .history-editor-page .wp-block-image.history-img-kovalev { width: min(100%, 280px) !important; }

.history-float img, .history-editor-page .wp-block-image.history-img img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.history-float figcaption, .history-editor-page .wp-block-image.history-img figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .88) 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 3px 10px rgba(0, 0, 0, .75);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
}

.history-float:hover figcaption, .history-editor-page .wp-block-image.history-img:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

.history-clear, .history-editor-page .history-clear {
    clear: both;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =================== АДАПТАЦИЯ ИСТОРИИ КАФЕДРЫ =================== */
@media (max-width: 900px) {
    .history-article { font-size: 17px; }
    .history-float, .history-float--right, .history-float--wide, .history-float--faculty-2009, .history-float--kovalev { float: none; margin: 0 auto 8px; }
    .history-float, .history-float--right, .history-float--wide { width: 100%; max-width: 100%; }
}

@media (max-width: 640px) {
    .history-page { padding: 18px 0 40px; }
	.history-article { font-size: 16px; line-height: 1.65; }
	.history-article h1 { margin-bottom: 22px; }
	.history-float, .history-float--right, .history-float--wide, .history-float--faculty-2009, .history-float--kovalev { margin: 0 auto 6px; }
	.history-float { border-radius: 14px; }

	.history-float figcaption {
		opacity: 1;
		transform: translateY(0);
		font-size: 17px;
		text-align: center;
		text-shadow: 0 3px 10px rgba(0, 0, 0, .75);
	}

	.history-article, .history-editor-page { font-size: 16px; line-height: 1.65; }
	.history-article h1, .history-editor-page h1, .history-editor-page .wp-block-heading { margin-bottom: 22px; }

	.history-float, .history-float--right, .history-float--wide, .history-float--faculty-2009, .history-float--kovalev, .history-editor-page .wp-block-image.history-img, .history-editor-page .wp-block-image.history-img-right, .history-editor-page .wp-block-image.history-img-wide, .history-editor-page .wp-block-image.history-img-faculty, .history-editor-page .wp-block-image.history-img-kovalev {
		float: none;
		width: 100% !important;
		margin: 0 auto 6px !important;
		border-radius: 14px;
	}

	.history-float figcaption, .history-editor-page .wp-block-image.history-img figcaption {
		opacity: 1;
		transform: translateY(0);
		font-size: 17px;
	}
}