#skills-section {
    width: 100%;
    height: 100vh;
    padding-top: 12vh;
    overflow: hidden;
    box-sizing: border-box;
}
.carousel-b {
    position: relative;
    max-width: 50vw;
    margin: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.carousel-track-b {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.card-b {
    display: flex;
    flex: 0 0 100%;
    box-sizing: border-box;
    text-align: center;
    align-items: center;
    justify-content: center;
    height: 81vh;
    position: relative;
    overflow: hidden;
    flex-direction: column;
}
#card-b0 {
    display: flex;
    height: 80%;
    width: 80%;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#card-b0 img {
    height: 70%;
    width: auto;
    cursor: pointer;
}
#card-b1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    width: 70%; 
    height: 70%; 
    place-items: center;
    
}
#card-b2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    width: 80%; 
    height: 70%; 
    place-items: center;
}
#card-b3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    width: 80%; 
    height: 70%; 
    place-items: center;
}
.grid-heading {
    margin: 0;
    align-self: center;
    font-family: "bebas-neue-pro-expanded", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2em;
    height: 10%;
    width: 80%;
    text-align: left;
  }
.skill-img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}
.skill-description {
    font-family: "montserrat", sans-serif;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
    font-size: small;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background-color: white;
    width: 100%;
    bottom: 0;
    left: 0;
}
.skill-div:hover .skill-description {
    opacity: 1;
}

.skill-div:hover .skill-img {
    opacity: 0.2;
}
.skill-div.active .skill-description {
    opacity: 1;
}
  
.skill-div.active .skill-img {
    opacity: 0.3;
}
.skill-div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.carousel-indicators-b {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.carousel-indicators-b button {
    width: 12px;
    height: 12px;
    margin: 0 4px;
    border-radius: 50%;
    border: none;
    background-color: #ccc;
    cursor: pointer;
}

.carousel-indicators-b button.active {
    background-color: #333;
}
.carousel-arrow-b {
    color: black;
}

@media screen and (max-width: 1100px) {
    .carousel-b {
        max-width: 100vw;
    }
    .carousel-track-b {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
    .card-b {
        height: 65vh;
    }
    .carousel-arrow-b {
        top: 76%;
        width: 60px;
        height: 60px;
        font-size: 2rem;
        filter: opacity(0.5)
    }
    .skill-img {
        display: block;
        width: 80%;
        height: auto;
        object-fit: contain; /* or 'contain' if you want no cropping */
    }
    .grid-heading {
        font-size: 0.9em;
      }
    .skill-description {
        font-size: 0.7em;
    }
    .carousel-arrow-b:hover {
        font-size: 2rem;
    }
    .carousel-arrow-b.left {
        left: 1.5vw;
    }
    .carousel-arrow-b.right {
        right: 1.5vw;
    }
}