.category-options .acf-taxonomy-list {
  display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (5 * 10px)) / 6); /* 6 items visible by default */
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 0;
	margin: 0;
	list-style: none;
	scrollbar-width: none; /* Firefox */
	  -ms-overflow-style: none; /* IE and Edge */
}

.category-options .acf-taxonomy-list::-webkit-scrollbar {
  display: none; /* optional scrollbar styling */
}


.acf-taxonomy-image.mask {
  position: relative;
  overflow: hidden;
  width:100%;
}

.acf-taxonomy-image.mask img {
  display: block;
  width: 100%;
  height: auto;
}

.acf-taxonomy-image.mask .curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f7efe8; /* or site bg */
  transform: translateY(0);
  z-index: 2;
}


.category-options .acf-taxonomy-list img {
	width: 100%;
	height: 331px;
	object-fit: cover;
	transition: all 0.5s;
}
.category-options .acf-taxonomy-list li:hover img {
	opacity: 0.6;
}
.category-options .acf-taxonomy-list li:hover a {
	text-decoration: underline;
}
.category-options .acf-taxonomy-list li a:hover {opacity:1;}
.category-options .acf-taxonomy-list a {
	display: block;
	text-align: center;
	font-family: "Haboro Serif";
	font-size: 14px;
	font-style: normal;
	font-weight: 100;
	line-height: normal;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	text-decoration: none;
	margin: 10px 0 0;
}
.category-options .acf-taxonomy-item {
  min-width: calc((100% - (5 * 10px)) / 6); /* ensures even spacing in scroll */
  box-sizing: border-box;
  scroll-snap-align: start;
	box-sizing: border-box;
	flex-shrink: 0;
}
.category-options .title-flex {
	display: flex;
	justify-content: space-between;
	max-width: 1309px;
	margin: 20px auto 32px;
}
.category-options .title-flex  h2 {
	margin: 0;
	color: #C78E76;
	font-size: 68px;
	letter-spacing: -1.36px;
}
.category-options .title-flex .left {
	display: flex;
	font-family: 'Haboro';
	width: 200px;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.06rem;
	padding: 27px 0 0 0;
}
.category-options .title-flex .left .dot {
	margin: 6px 15px 0 0px;

}
.category-options .title-flex .right {
	display: flex;
	justify-content: flex-end;
	font-family: 'Haboro';
	width: 200px;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.03rem;
	padding: 27px 0 0 0;
}
.category-options .title-flex .right .dot {
	margin: 6px 0px 0 15px;

}
.category-options {
	padding: 49px 0 81px;
	border-bottom: 1px solid black;
}
@media all and (max-width:1330px) {
	.category-options .title-flex {
		max-width:95%;
	}
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .category-options .acf-taxonomy-list {
	grid-auto-columns: calc((100% - (4 * 10px)) / 5); /* 5 items visible */
  }
}

@media (max-width: 992px) {
  .category-options .acf-taxonomy-list {
	grid-auto-columns: calc((100% - (3 * 10px)) / 4); /* 4 items visible */
  }
}

@media (max-width: 800px) {
	.category-options .title-flex .right {
		display:none;
	}
	.category-options .title-flex {
		max-width: 95%;
		display: block;
		text-align: center;
	}
	.category-options .title-flex .left {
		margin: 0 auto;
		justify-content: center;
		padding: 0;
	}
	.category-options {
		padding: 20px 0 60px;
		border-bottom: 1px solid black;
	}
	.category-options .acf-taxonomy-list img {
		width: 100%;
		height: auto;
		object-fit: cover;
		transition: all 0.5s;
		aspect-ratio: 5 / 7;
	}
	.category-options .title-flex h2 {
		font-size:48px;
	}
	.category-options .title-flex {
		margin: 20px auto 15px;
	}
  .category-options .acf-taxonomy-list {
	grid-auto-columns: calc((100% - (2 * 10px)) / 3); /* 3 items visible */
  }
}

@media (max-width: 480px) {
  .category-options .acf-taxonomy-list {
	grid-auto-columns: calc((100% - (1 * 10px)) / 2.5); /* 2 items visible */
  }
}
