#portfolio-filters {
	display: flex;
	gap: 14px 15px;
	align-items: center;
	margin-bottom: 32px;
	flex-wrap: wrap;
}
.type-filter, .gender-filter {
	background: #FFFFFF;
	border-radius: 24px;
	padding: 22px 22px;
	display: flex;
	gap: 16px;
	align-items: center;
	flex-grow: 1;
	justify-content: space-around;
}
.filter-btn {
	background: none;
	border: none;
	font-family: inherit;
	font-size: 13px;
	color: var(--color_text);
	position: relative;
	padding: 0;
}
.type-filter .filter-btn, .gender-filter .filter-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;

}
.type-filter .filter-btn i, .gender-filter .filter-btn i {
	width: 40px;
	height: 40px;
	background: #F5F5F5;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	color: #787878;
	border-radius: 100%;
	position: relative;
	z-index: 0;
	transition: 0.4s ease;
}
.gender-filter .filter-btn i {
	font-size: 26px;
}
.type-filter .filter-btn .icon-beard {
	font-size: 18px;
}
.type-filter .filter-btn .icon-eyebrow {
	font-size: 8px;
	font-weight: bold;
}
.type-filter .filter-btn .icon-hair {
	font-size: 16px;
}
.type-filter .filter-btn i::after, .gender-filter .filter-btn i::after {
	content: '';
	width: calc(100% - 6px);
	height: calc(100% - 6px);
	position: absolute;
	top: 3px;
	right: 3px;
	border-radius: 50%;
	background: linear-gradient(#F5F5F5, #F5F5F5) padding-box, linear-gradient(to top , #C4C6C5, #EDF0EE) border-box;
	border-radius: 50em;
	border: 1px solid transparent;
	z-index: -1;
	transition: 0.4s ease;
}
.filter-btn.active i {
	color: #FFDDB0;
}
.filter-btn.active {
	color: var(--color3);
}
.story-text-svg.filter-svg {
	width: 38px;
	height: 38px;
	top: 1px;
	right: calc(50% - 20px);
}
.type-filter .filter-btn.active i::after, .gender-filter .filter-btn.active i::after {
	opacity: 0;
}
.type-filter .filter-btn.active i, .gender-filter .filter-btn.active i {
	background: var(--color3);
}
.type-filter .filter-btn.active .story-text-svg,.gender-filter .filter-btn.active .story-text-svg {
	opacity: 1;
}
.method-filter, .more-filter {
	background: #f5f5f5;
	border: 5px solid #fff;
	border-radius: 24px;
	padding: 10px 10px;
	height: 114px;
	flex-grow: 1;
}
.filter-group.method-filter {
	flex-grow: 1;
}
.filter-title {
	display: block;
	font-size: 14px;
	line-height: 28px;
	font-family: var(--bold_font);
	margin-bottom: 16px;
}
#planting-method-select {
	background: #FFFFFF;
	height: 40px;
	border: none;
	border-radius: 10px;
	font-family: inherit;
	width: 100%;
	font-size: 13px;
	color: #787878;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8.33333' cy='8.33333' r='8.33333' transform='matrix(-1 0 0 1 18.333 1.66666)' stroke='%23787878' stroke-width='1.5'/%3E%3Cpath d='M7.5 8.75L10 11.25L12.5 8.75' stroke='%23787878' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 10px center;
	background-size: 20px;
	padding-right: 10px;
	cursor: pointer;
}
.more-filter .filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border-radius: 10px;
	cursor: pointer;
	transition: 0.2s ease;
	color: #787878;
	font-size: 13px;
}

.more-filter .filter-btn.active {
	color: #111111;
}


.more-filter .filter-btn input[type="checkbox"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	pointer-events: none;
	width: 16px;
	height: 16px;
	border: none;
	outline: none;
	background: #fff;
	border-radius: 2px;
	box-shadow: none;
	cursor: pointer;
	display: inline-block;
	position: relative;
}

.more-filter .filter-btn.active  input[type="checkbox"]{
	background-color: #d3a162;

}
.more-filter-buttons {
	display: flex;
	gap: 10px;
	align-items: center;
	padding-top: 11px;
}

.ba-slider {
	position: relative;
	overflow: hidden;
	max-height: 520px;
	direction: ltr;
	border-radius: 16px;
	display: flex;
}
.ba-slider img {
	max-width: none;
	object-fit: cover;
	height: 100%;
	width: 100%;
	display: block;
	pointer-events: none;
}
.ba-slider .resize {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 50%;
	overflow: hidden;
	z-index: 1;
}
.handle {
	cursor: ew-resize;
	z-index: 2;
	position: absolute;
	width: 34px;
	height: 34px;
	background: var(--color2);
	border-radius: 100%;
	top: 50%;
	left: 50%;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	gap: 4px;
	transform: translate(-50%, -50%);
	border: 2px solid #fff;
	transition: color 0.4s ease;
	color: var(--color1);
}
.second-slider::before {
	background: #D0E2E5;
	content: '';
	position: absolute;
	inset: 0;
	mix-blend-mode: color;
}

.portfolio-items {
	opacity: 1;
	margin: 0 -10px;
}
.grid-sizer {
	width: 100%;
}

.portfolio-item-wrapper {
	width: 100%;
	padding: 0 10px;
	margin-bottom: 20px;
}

.portfolio-item {
	position: relative;
}

.no-results-message {
	display: none;
	width: 100%;
	text-align: center;
	padding: 50px 20px;
	font-size: 1.25rem;
	color: #ce5757;
}
.portfolio-cta {
	background: var(--color1);
	border-radius: 24px;
	display: flex;
	align-items: center;
	flex-direction: column;
	flex-grow: 1;
	outline: 1px solid var(--color2);
	outline-offset: -6px;
	padding: 18px 22px;
}
.portfolio-cta .title {
	color: #fff;
	line-height: 22px;
	font-family: var(--med_font);
	margin-bottom: 6px;
}
.portfolio-cta .sub {
	font-size: 13px;
	color: var(--color2);
	line-height: 17px;
	margin-bottom: 18px;
}
.page-title {
	margin-top: 50px;
	margin-bottom: 57px;
}
.page-title .editor-content p {
	margin-bottom: 0;
}

/* Buttons Container */
.portfolio-buttons {
	display: flex;
	gap: 9px;
	justify-content: center;
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 2;
}
.modal-trigger-btn {
	border: none;
	cursor: pointer;
	font-size: 24px;
	transition: background-color 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	justify-content: center;
	padding: 0;
	background: var(--color3);
	color: #fff;
}
.modal-trigger-btn.video-modal-trigger {
	background: var(--color2);
	color: var(--color1);
}
.modal-trigger-btn:hover {
	background: var(--color1);
	color: var(--color2);
}

/* Modal Styles */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none; /* Hidden by default */
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal.active {
	display: flex;
}

.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
	cursor: pointer;
}

.modal-content {
	position: relative;
	background-color: #fff;
	padding: 1rem;
	border-radius: 10px;
	max-width: 90vw;
	max-height: 90vh;
	z-index: 1001;
	box-shadow: 0 5px 20px rgba(0,0,0,0.3);
	overflow: auto;
}
.modal-content-wrap {
	position: relative;
}
.modal-close-btn {
	position: absolute;
	top: -50px;
	left: 0;
	border: none;
	background: var(--color2);
	border-radius: 100%;
	font-size: 2rem;
	color: var(--color1);
	cursor: pointer;
	line-height: 1;
	padding: 0;
	z-index: 1002;
	width: 38px;
	height: 38px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	transition: 0.4s ease;
}
.modal-close-btn:hover {
	color: red;
}
/* Video Modal Specific Styles */
#video-modal .modal-content {
	width: 90vw;
	height: auto;
	background: #fff;
	padding: 15px;
	border-radius: 24px;
}


/* Gallery Modal Specific Styles */
#gallery-modal .modal-content {
	width: 90vw;
	max-width: 1057px;
}
.video-container {
	position: relative;
	display: flex;
	/*overflow: hidden;*/
	margin: 0 auto;
	z-index: 1;
	border-radius: 24px;
}
.video-element {
	height: 100%;
	width: 100%;
	border-radius: 24px;
	object-fit: cover;
}
.video-poster {
	position: absolute;
	right: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 24px;
	z-index: 1;
	transition: 0.4s ease;
}
.video-btn {
	width: 58px;
	height: 58px;
	color: var(--color3);
	background: var(--color2);
	position: absolute;
	right: 50%;
	top: 100%;
	margin: auto;
	z-index: 1;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	font-size: 17px;
	border-radius: 100%;
	cursor: pointer;
	transition: 0.4s ease;
	transform: translate(50%, -90%);
}
.video-btn::before {
	content: '';
	background: var(--color2);
	width: 58px;
	height: 58px;
	border-radius: 100%;
	position: absolute;
	inset: 0;
	z-index: -1;
}
.circle-text-svg {
	position: absolute;
	width: 50px;
	height: 50px;
	fill: transparent;
	font-size: 14px;
	letter-spacing: 3px;
	word-spacing: 8px;
	direction: ltr;
}
.circle-text-svg text {
	fill: var(--color3);
}
.circle-text-svg {
	animation: rotateText 8s linear infinite;
}
.video-btn i {
	color: #fff;
	width: 33px;
	height: 33px;
	background: var(--color3);
	border-radius: 50%;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	font-size: 22px;
}
@keyframes rotateText {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.video-btn-bg {
	position: absolute;
	bottom: 5px;
	background: #fff;
	width: 119px;
	justify-content: center;
	padding: 7px 17px 2px;
	border-radius: 20px 20px 0 0;
	height: 29px;
	z-index: -2;
}
.video-btn-bg::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: -39px;
	height: 40px;
	width: 40px;
	border-bottom-right-radius: 50%;
	box-shadow: 0 21px 0 0 #fff;
	z-index: 1;
}
.video-btn-bg::after {
	content: "";
	position: absolute;
	bottom: 0;
	right: -39px;
	height: 40px;
	width: 40px;
	border-bottom-left-radius: 50%;
	box-shadow: 0 21px 0 0 #fff;
	z-index: 1;
}
.swiper.swiper-container img {
	border-radius: 24px;
	width: 100%;
}
@media screen and (min-width: 400px){
	.portfolio-cta {
		display: grid;
		grid-template-columns: repeat(2, auto);
		grid-template-rows: repeat(2, auto);
	}
	.portfolio-cta .button {
		grid-area: 1 / 2 / 3 / 3;
	}
}
@media screen and (min-width: 768px){
	.portfolio-cta {
		display: flex;
		padding: 18px 10px;

	}
	.video-btn {
		width: 90px;
		height: 90px;
		font-size: 17px;
	}
	.video-btn::before {
		width: 90px;
		height: 90px;
	}
	.circle-text-svg {
		width: 85px;
		height: 85px;
		font-size: 20px;
		letter-spacing: 3px;
		word-spacing: 8px;
	}
	.video-btn i {
		width: 52px;
		height: 52px;
		font-size: 36px;
	}
	.video-btn-bg {
		bottom: 9px;
		width: 154px;
		padding: 7px 17px 2px;
		height: 38px;
	}


	.grid-sizer,
	.portfolio-item-wrapper {
		width: 50%; /* Two columns */
	}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
	#video-modal .modal-content {
		width: 70vw;
		padding: 60px;
		border-radius: 40px;
	}
	.modal-content {
		padding: 2rem;
		border-radius: 40px;
	}
	.grid-sizer,
	.portfolio-item-wrapper.width-normal {
		width: 33.333%;
	}
	#portfolio-filters {
		gap: 20px;
		margin-bottom: 50px;
	}
	.type-filter, .gender-filter {
		 padding: 25px 22px;
		 gap: 39px;
	 }
	.filter-btn {
		font-size: 14px;
	}
	.method-filter, .more-filter {
		padding: 25px 10px;
		height: 134px;
	}
	/* A 'large' item takes up 50% */
	.portfolio-item-wrapper.width-large {
		width: 50%;
	}
	.type-filter .filter-btn i, .gender-filter .filter-btn i {
		width: 60px;
		height: 60px;
	}
	.gender-filter .filter-btn i {
		font-size: 32px;
	}
	.type-filter .filter-btn .icon-beard {
		font-size: 24px;
	}
	.type-filter .filter-btn .icon-eyebrow {
		font-size: 12px;
	}
	.type-filter .filter-btn .icon-hair {
		font-size: 25px;
	}
	.type-filter .filter-btn i::after, .gender-filter .filter-btn i::after {
		width: calc(100% - 8px);
		height: calc(100% - 8px);
		top: 4px;
		right: 4px;
	}

	.story-text-svg.filter-svg {
		width: 58px;
		height: 58px;
		right: calc(50% - 29px);
	}
}
