/* Overrides */

#ipsLayout_body.ipsLayout_container {
	max-width: 100%;
	padding: 0;
}

.secondaryBar {
	border: 0 !important;
	background: rgba(0,0,0,.3) !important;
	position: relative;
	z-index: 100;
}

	.secondaryBar #elUserNav {
		color: #fff;
	}

	.secondaryBar .ipsBreadcrumb ul,
	.ipsBreadcrumb_bottom {
		display: none !important;
	}

@media screen and (max-width: 979px) {
	#ipsLayout_mainArea {
		padding: 0;
	}
}


/* Homepage reusable stuff */

.homeTitle {
	font-family: 'BebasNeuePro-SmEBd', sans-serif;
	font-weight: 300;
	font-size: 37px;
	text-transform: uppercase;
	letter-spacing: .01em;
}

.homeRow {
	padding-top: 70px;
	padding-bottom: 70px;
}

.homeReverse {
	padding: 1px;
}

.homeTopicsGrid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-gap: 40px;
}

	.homeTopicsGrid>div:first-child {
		grid-column: 1 / span 7;
	}

	.homeTopicsGrid>div:last-child {
		grid-column: 8 / span 5;
	}

.itemCategory {
	background: #000;
	padding: 3px 10px;
	border-radius: 30px;
	color: #E9E600;
	font-size: 12px;
	font-weight: 500;
}

@media screen and (max-width: 979px) {
	.homeTopicsGrid {
		grid-template-columns: 1fr;
	}
	.homeTopicsGrid>div:first-child,
	.homeTopicsGrid>div:last-child {
		grid-column: 1;
	}
}


/* Hero */

.hero {
	height: 50vh;
	max-height: 420px;
	position: relative;
}

@media (min-width: 980px){
  /* Only apply negative margin if the hero is the first element (Profile Completion can come before, for example) */
  #elCmsPageWrap:first-child .hero{
      margin-top: -84px;
  }
}

	.hero__videoContainer {
		position: absolute;
		top: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		overflow: hidden;
		display: flex;
		align-items: center;
	}

	.hero__video {
		min-height: 100%;
		height: 100vw;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.hero__text {
		color: #fff;
		font-family: 'BebasNeuePro-SmEBd', sans-serif;
		font-weight: 400;
		text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	}

	.hero__title {
		font-size: 56px;
		letter-spacing: .03em;
		line-height: 1;
	}

	.hero__blurb {
		text-transform: uppercase;
		font-size: 18px;
		letter-spacing: .03em;
		opacity: 0.7;
	}

	.hero .ipsLayout_container {
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.hero #elUserNav {
		position: absolute;
		right: 0;
		top: 20px;
		color: #fff;
	}

	.hero .ipsButton {
		box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
	}

	@media screen and (max-width: 979px) {
		.hero {
			margin-top: 0;
			max-height: 320px;
		}
		.hero__title {
			font-size: 36px;
		}
	}

.communityStats {
	background: rgb(var(--theme-area_background_reset));
	max-width: 620px;
	position: relative;
	margin: 0 auto;
	margin-top: -45px;
	box-shadow: 0 5px 48px rgba(0, 0, 0, 0.02);
	border-radius: 100px;
}

	.communityStats__number {
		font-size: 30px;
		font-family: 'BebasNeuePro-SmEBd', sans-serif;
		font-weight: bold;
		display: block;
		line-height: 1;
	}

	@media screen and (max-width: 979px) {
		.communityStats {
			margin-left: 20px;
			margin-right: 20px;
			max-width: 100%;
		}
	}


/* Topic grid */

.topicsGrid {
	display: grid;
	grid-gap: var(--sp-3);
}

	.topicsGrid__link {
		background: rgb(var(--theme-area_background_light));
		border-radius: var(--radius-2);
		transition: 0.2s all ease-in-out;
	}

	.topicsGrid__link:hover {
		transform: translateX(-15px);
		box-shadow: 0 5px 48px rgba(0, 0, 0, 0.02);
	}

	.topicsGrid__title {
		font-size: 17px;
		font-weight: 500;
		line-height: 1.3;
	}

	.topicsGrid__category {
		/*padding: 0;
		  background: rgba(0,0,0,0.3);*/
	}

	.topicsGrid__photos .ipsUserPhoto {
		border: 3px solid rgb(var(--theme-area_background_light));
		width: 38px;
		height: 38px;
		margin-top: -3px;
	}

	.topicsGrid__photos .ipsUserPhoto+.ipsUserPhoto {
		margin-top: -15px;
	}

	.topicsGrid__counts,
	.blogGrid__counts {
		font-size: 14px;
	}

	.topicsGrid__counts__icon,
	.blogGrid__counts__icon {
		font-size: 20px;
		margin-right: 6px;
	}


/* Featured forums */

.featuredProducts__title {
	text-transform: uppercase;
	font-family: 'Gotham SSm A', 'Gotham SSm B';
	font-weight: 500;
	font-size: 15px;
}

.featuredProducts__item {
	transition: 0.25s all ease-in-out;
	border-radius: 15px;
	padding: 15px 15px 20px 15px;
	height: 100%;
	position: relative;
}

	.featuredProducts__item:hover {
		transform: translateY(-15px);
		box-shadow: 0 5px 48px rgba(0, 0, 0, 0.02);
		background: rgb(var(--theme-area_background_reset));
	}

	.featuredProducts__item--all::before {
		content: '\f105';
		font-family: 'FontAwesome';
		font-size: 50px;
		color: #fff;
		position: absolute;
		left: 50%;
		top: 50px;
		transform: translateX(-50%);
		width: 80px;
		height: 80px;
		border-radius: 50px;
		background: rgba(var(--theme-text_color),.2);
		display: flex;
		align-items: center;
		justify-content: center;
		text-indent: 6px;
	}


/* Featured */

.featuredGrid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: repeat(5, 200px);
	grid-gap: 5px;
	max-width: 880px;
}

	.featuredGrid>li {
		grid-column: span 3;
	}

	.featuredGrid__link {
		height: 100%;
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		border-radius: 4px;
		color: #fff;
		transition: 0.2s all ease-in-out;
		overflow: hidden;
		position: relative;
	}

	.featuredGrid__link:hover {
		color: #fff;
		transform: scale(1.03);
		box-shadow: 0 5px 48px rgba(0, 0, 0, 0.08);
	}

	.featuredGrid__content {
		background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8) 25%, rgba(0, 0, 0, 0) 100%);
		height: 100%;
	}

	.featuredGrid__title {
		font-size: 18px;
		margin-bottom: 7px;
	}

	.featuredGrid__category {
		margin-left: -10px;
	}

	.featuredGrid__photo {
		width: 18px;
		height: 18px;
		margin-right: 6px;
	}

	.featuredGrid__meta {
		font-size: 12px;
	}

	.featuredGrid__counts {
		position: absolute;
		right: 20px;
		top: 20px;
	}

	.featuredGrid__counts__icon {
		font-size: 20px;
		margin-right: 6px;
	}

	.featuredGrid>li:first-child {
		grid-column: 1 / span 6;
		grid-row: 1 / span 2;
	}

		.featuredGrid>li:first-child .featuredGrid__content {
			padding: 30px 20px;
		}

		.featuredGrid>li:first-child .featuredGrid__title {
			font-size: 30px;
		}

		.featuredGrid>li:first-child .featuredGrid__photo {
			width: 38px;
			height: 38px;
			margin-right: 10px;
		}

		.featuredGrid>li:first-child .featuredGrid__meta {
			font-size: 15px;
		}

		.featuredGrid>li:first-child .featuredGrid__counts {
			font-size: 20px;
		}

		.featuredGrid>li:first-child .featuredGrid__counts__icon {
			font-size: 26px;
		}

		.featuredGrid>li:first-child+li {
			grid-column: 1 / span 3;
			grid-row: 3 / span 2;
		}

	.featuredGrid>li:last-child {
		grid-column: 4 / span 3;
		grid-row: 4 / span 2;
	}


/* Blogs */

.blogGrid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	/*grid-template-rows: repeat(auto-fill, 170px);*/
	grid-gap: 20px;
}

	.blogGrid__link {
		height: 100%;
		border-radius: var(--sp-2);
		overflow: hidden;
		transition: 0.2s all ease-in-out;
		position: relative;
	}

	.blogGrid__link:hover {
		transform: scale(1.03);
		box-shadow: 0 5px 48px rgba(0, 0, 0, 0.08);
	}

	.blogGrid__image {
		width: 40%;
		object-fit: cover;
	}

	.blogGrid__title {
		font-size: 18px;
		line-height: 1.4;
		font-weight: 500;
	}

	.blogGrid__category {
		position: absolute;
		top: 10px;
		left: 10px;
	}

	@media screen and (max-width: 979px) {
		.blogGrid {
			grid-template-columns: 1fr;
		}
	}


/* Social feeds */
.corsair-socials__left{
	flex: 1 1 400px;
}

.corsair-socials__right{
	flex: 9999 1 50%;
}

.corsair-video{
	position: relative;
	border-radius: 8px;
	overflow: hidden;
}

	.corsair-video::before{
		content: '';
		display: block;
		padding-top: 56.25%;
	}

	.corsair-video iframe{
		position: absolute;
		top: 0; left: 0;
		width: 100%; height: 100%;
	}