/* Overview type 1 - image stretch issue for sections that use Image and Text */
@media (min-width: 1400px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.image-and-details .featured-image {
		flex-shrink: 0;
	}
}

/* Overview type 1 - image stretch issue for sections that use image-box */
@media (max-width: 1399px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.image-grid .image-box, .image-only-grid .image-box {
		width: 100%;
	}
}

/* General Archive page - fixes image object-fit cover issue */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.post-type-archive-event .item-image, .post-type-archive-news .item-image, .tribe-events-list .type-tribe_events .tribe-events-event-image img {
		height: 100%;
	}
}

/* Featured Image section - fixes image object-fit cover issue */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.featured-hero.with-image .banner-image img {
		height: 100%;
	}
}

/* Header Menu section - fixes off-positioned search bar */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	/* fixes off-positioned search bar input box */
	.header-search form#searchform .input-group-field {
		max-width: 100%;
	}

	/* fixes off-positioned search bar button */
	.header-search form#searchform .input-group-button {
		top: 50%;
		transform: translate(0,-50%);
	}
}

/* Header Menu section - fixes vertical spacing for submenu links */
@media (min-width: 900px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	/* fixes vertical spacing for submenu links */
	.sub-menu-block .sub-menu > li + li {
		margin-top: 10px;
	}

	/* fixes image stretch issue */
	.sub-menu-image {
		flex-basis: auto;
	}
}

/* Events archive page - fixes stretch issue */
@media (min-width: 1400px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.archive #tribe-events-content-wrapper {
		width: 100%;
	}
}

/* Events single page - fixes image stretch issue (height auto does not work) */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	body.single-tribe_events .main-content .item-image {
		min-height: 1px;
	}
}

/* Directory archive - fix spacing of flex's children */
@media (min-width: 1400px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.page-archive-directory .accordion-item .content-wrapper {
		justify-content: space-between;
	}

	.page-archive-directory .accordion-item .content-wrapper .body-and-presentation {
		width: 64%;
	}

	.page-archive-directory .accordion-item .image-and-info .info {
		width: 47%;
	}
}

/* Home page featured news section */
@media (min-width: 1400px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	/* min-height equivalent for IE */
	#home-hero {
		min-height: 1px;
	}

	/* fixes H2 tag stretch */
	#home-hero .text .title-link .title {
		max-width: 450px;
	}
}

/* Home page research section - fixes image stretch issue */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	body.home #research.with-subsection .featured-image {
		width: 100%;
	}
}