 .slideshow-container {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
}
/* .slide {
    display: grid;
    place-content: center;
    width: 100%;
    min-height: 400px;
    max-height: 450px;
    height: 100%;
    border-radius: var(--std-border-radius);
}
.slide:not(.slide .img){
    opacity: 0.5;
} */

.slide {
  position: relative;
  display: grid;
  place-content: center;
  width: 100%;
  min-height: 400px;
  max-height: 450px;
  height: 100%;
  border-radius: var(--std-border-radius);
  overflow: hidden; /* Important so overlay doesn’t spill out */
}

/* The overlay */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--std-primary-gradient); /* black overlay with 50% transparency */
  opacity: 0.5;
  z-index: 0;
}

/* Your image */
.slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  height: 450px;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: var(--std-border-radius);
}
.slide img {
    width: 100%;
    
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 18px;
    display: inline-grid;
    place-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    user-select: none;
    transition: 0.3s;
    z-index: 2;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.thumbnail-container {
    display: flex;
    margin-top: 15px;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
}

.thumbnail {
    width: 120px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    transition: border 0.3s;
    border-radius: 20px;
    filter: brightness(0.5);
}

.thumbnail.active {
    filter: brightness(1);
}

@media (max-width: 666px) {
    #product-details .row{
        flex-direction: column;
    }
    .slide{
        max-height: 350px;
        min-height: 350px;
    }
    .slide img{
        min-height: 350px;
        max-height: 350px;
    }
}

@media (max-width: 600px) {
    .slide img{
        min-height: 300px;
        height: 100%;
    }
    .thumbnail {
    width: 80px;
    height: 70px;
    }

}