@use "../../styles/variables";

.ObPageBanner-root {
	background-color: variables.$brand-primary;
	background-color: var(--brand-dark);
	box-shadow: 0px 8px 8px rgba(0, 0, 0, 0.2);
	color: white;

	a {
		color: hsl(200, 50%, 80%);
	}
}

.ObPageBanner-inner {
	display: flex;
	align-items: center;
	flex-direction: column;

	@media screen and (min-width: variables.$screen-md) {
		align-items: flex-start;
		flex-direction: row;
	}
}

.ObPageBanner-plantTitle {
	font-size: 2rem;

	@media screen and (min-width: variables.$screen-lg) {
		font-size: 3rem;
	}
}

.ObPageBanner-bannerImage {
	align-self: stretch;
	background-color: #ddd;
	display: inline-block;
	height: 20vh;
	object-fit: cover;
	object-position: center center;
	width: 100%;

	@media screen and (min-width: variables.$screen-sm) {
		align-self: center;
		margin: 0;
		margin-right: 1rem;
		border: 0.4rem solid white;
		border-radius: 50%;
		height: 150px;
		width: 150px;
	}

	@media screen and (min-width: variables.$screen-lg) {
		height: 250px;
		width: 250px;
	}
}

.ObPageBanner-bannerTitle {
	margin-bottom: 1rem;
	margin-top: 1rem;
	font-size: 2rem;

	@media screen and (min-width: variables.$screen-md) {
		margin-top: 0;
	}

	@media screen and (min-width: variables.$screen-lg) {
		font-size: 3rem;
	}
}

.ObPageBanner-tabList {
	&.sticky {
		position: -webkit-sticky;
		position: sticky;
		top: 0;
		z-index: 1000;
	}
}

.ObPageBanner-tabListInner {
	overflow-x: auto;
	scrollbar-width: thin;
	white-space: nowrap;
}

.ObPageBanner-tab {
	border-bottom: 0.25rem solid transparent;
	display: inline-block;
	margin-top: 0.5rem;
	min-width: 8rem;
	padding: 0.5rem 1rem;
	text-align: center;
	text-transform: capitalize;

	&.active {
		border-color: white;
	}
}
