section.icon-carousel-section {
  padding: 60px 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-text {
  font-family: "EB Garamond", sans-serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  font-variant: small-caps;
  color: var(--primaryText);
  width: 80%;

  @media (max-width: 1440px) {
    font-size: 40px;
  }
  @media (max-width: 768px) {
    font-size: 30px;
  }
  @media (max-width: 425px) {
    font-size: 15px;
    width: 100%;
  }
}
.carousel-container {
  width: 100%;
  position: relative;
  display: flex;
  height: fit-content;
  flex-direction: column;
  align-items: center;
}

.controls {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.nav-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

.carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease;
  overflow: hidden;
  width: 100%;
  height: fit-content;
  padding: 14px;
  @media (max-width: 425px) {
    gap: 5px;
  }
}

.icon.center {
  opacity: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.icon.side {
  /* transform: scale(0.9); */
  opacity: 0.9;
  z-index: 10;
}

.icon.edge {
  /* transform: scale(0.9); */
  z-index: 10;
}

.icon.edge.right {
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.5) 30%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to left,
    right(0, 0, 0, 0.5) 30%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.icon.edge.left {
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.5) 30%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.5) 30%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
