/**************/
 /* AAC Slider */
/**************/
/*
viewport considerations
Below 1480 the images start to get squished
below 1280 we should switch to 2 rows
below 979 it DOES switch to 2 rows ... we should maybe make it 1 row
below 769 the spacing changes
*/

.aac-entry-product{
	display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

}
@media (min-width: 766px) {
	.aac-entry-featured{
		width: 246px;
		min-height: 246px;
	}
}
/*#1c4666*/
.aac-itemTitle{line-height:1.2;font-family:'Lato',sans-serif;font-weight:700;font-size:0.9rem;color:#ccc;margin-right:9px}

.aac-itemTitle .aac-price a {font-weight: bold; color: #5fb0c8;}
.aac-itemTitle .aac-price del {font-weight: 100; color: #5fb0c888;}

.aac-entry-wrap{
	width:100%;
	padding:12px;
}

.aac-entry-header{
	display: flex;
    align-content: space-between;
    justify-content: space-between;
    width: 100%;
}


.carousel__viewport {
  /*box-sizing: border-box;*/
  scrollbar-color: transparent transparent; /* thumb and track color */
  scrollbar-width: 0px;
}

.carousel__viewport::-webkit-scrollbar {
  width: 0;
}

.carousel__viewport::-webkit-scrollbar-track {
 background: transparent;
}

.carousel__viewport::-webkit-scrollbar-thumb {
 background: transparent;
  border: none;
}

ol, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.carousel {
	/* hide them at first so we can show them only if needed */
	visibility: hidden;
  -ms-overflow-style: none;
  position: relative;
/*  filter: drop-shadow(4px 4px 4px #0003);*/
  width:100%;
  min-height:100px;
  margin-top: -15px;
}

.carousel__viewport {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  overflow-x: scroll;
  overflow-y: hidden;
  counter-reset: item;
  scroll-behavior: smooth;
  /*scroll-snap-type: x mandatory;*/
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding-left: 75px;
  padding-right: 75px;
  /*linear-gradient( var(--mask-direction, to right), hsl(0 0% 0% / 0), hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0) );*/
  -webkit-mask-image: linear-gradient( var(--mask-direction, to right), hsl(0 0% 0% / 0), hsl(0 0% 0% / 0) 10%, hsl(0 0% 0% / 1) 25%, hsl(0 0% 0% / 1) 75%, hsl(0 0% 0% / 0) 90%, hsl(0 0% 0% / 0) )
}

.carousel__slide {
  position: relative;
  flex-grow: 0;
  flex-shrink: 0;
  /*flex-basis: 25%;*/ /* may want to experiment here */
  width: 68px; /*width: 100px;*/
  min-height: 68px;
  /*background-color: #fee;*/
  counter-increment: item;
  margin: 0 10px 0 10px;
  /*border-color: rgba(138,138,138,var(--border-opacity));*/
  border: 1px solid #ccc; 
  border-radius: 6px;
  background-color: #fff;
  display: flex;
    align-items: center;
}

.carousel__slide:nth-child(even) {
  /*background-color: #eef;*/
}

.carousel__slide:before {
  /*content: counter(item);*/ /* DEBUG: THIS WILL SHOW A COUNT OF ITEMS */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%,-40%,70px);
  color: #fff;
  font-size: 2em;
}


.carousel__snapper > a {
  cursor: pointer;
  /*background-color:#aaa1;*/
  z-index:9998;
}

a.carousel__prev {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%231c4666"  transform="rotate(180)" class="bi bi-chevron-right" viewBox="0 0 16 16">  <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"/></svg>');
  /*url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,50 80,100 80,0' fill='%231c4666'/%3E%3C/svg%3E");*/

}

a.carousel__next {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%231c4666" class="bi bi-chevron-right" viewBox="0 0 16 16">  <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"/></svg>');
  /*background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='100,50 20,100 20,0' fill='%231c4666'/%3E%3C/svg%3E");*/
}

a.carousel__next,
a.carousel__prev {
  position: absolute;
  top: 10%;
  width: 32px;
  height: 64px;
  background-size: 1rem 1rem;
  background-repeat: no-repeat;
  background-position: center center;
  /*border-radius: 50%;*/
  border-radius: 0;
}


@media (max-width: 450px) {
	a.carousel__next,
	a.carousel__prev {
		top: 50%;
		width: 28px;
		height: 100%;
	}
}

@media (max-width: 766px) {
	img.attachment-woocommerce_thumbnail {
		width: 80%;
		margin-left: 10%;
	}
}
 

.carousel__snapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
}

@media (hover: hover) {
  .carousel__snapper {
    animation-name: tonext, snap;
    animation-timing-function: ease;
    animation-duration: 4s;
    animation-iteration-count: infinite;
  }

  .carousel__slide:last-child .carousel__snapper {
    animation-name: tostart, snap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__snapper {
    animation-name: none;
  }
}

.carousel:hover .carousel__snapper,
.carousel:focus-within .carousel__snapper {
  animation-name: none;
}

.carousel__navigation {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
}

.carousel__navigation-list,
.carousel__navigation-item {
  display: inline-block;
}

.carousel__navigation-button {
  display: inline-block;
  /*width: 1.5rem;*/
  height: 100%;
  background-color: #333;
  background-clip: content-box;
  border: 0.25rem solid transparent;
  border-radius: 50%;
  /*font-size: 0;*/
  transition: transform 0.1s;
}

/*.carousel::before,
.carousel::after,*/
.carousel__prev,
.carousel__next {
  position: absolute;
  top: 0;
  /*margin-top: 37.5%;*/
  width: 4rem;
  height: 4rem;
  /*transform: translateY(-50%);*/
  /*border-radius: 50%;*/
  font-size: 0;
  outline: 0;
}

.carousel::before,
.carousel__prev {
  left: -1px;
  height:100%;
}

.carousel::after,
.carousel__next {
  right: -1px;
  height:100%;
  text-align: right;
}