.embed-youtube {
    position: relative;
    padding-bottom: 56.25%;
    /* - 16:9 aspect ratio (most common) */
    /* padding-bottom: 62.5%; - 16:10 aspect ratio */
    /* padding-bottom: 75%; - 4:3 aspect ratio */
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.embed-youtube iframe,
.embed-youtube object,
.embed-youtube embed {
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* .carousel */

@mixin aspect-ratio($width, $height) {
    position: relative;

    :before {
        display: block;
        content: "";
        width: 100%;
        padding-top: ($height / $width) * 100%;
    }

    img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
    }
}

/* // Styling */

section {
    background: #EEF7E2;
    padding: 50px 0;
            border-radius: 30px;
}

.containercaro {
    max-width: 1044px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel {
    display: block;
    text-align: left;
    position: relative;
    margin-bottom: 22px;
}

  .carousel .inputcarp {
        clip: rect(1px, 1px, 1px, 1px);
        clip-path: inset(50%);
        height: 1px;
        width: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        border-radius: 30px;
  }

        .carousel .inputcarp:nth-of-type(6):checked~.carousel__slides .carousel__slide:first-of-type {
            margin-left: -500%;
        }

           .carousel .inputcarp:nth-of-type(5):checked~.carousel__slides .carousel__slide:first-of-type {
            margin-left: -400%;
        }

                .carousel .inputcarp:nth-of-type(4):checked~.carousel__slides .carousel__slide:first-of-type {
            margin-left: -300%;
        }

                .carousel .inputcarp:nth-of-type(3):checked~.carousel__slides .carousel__slide:first-of-type {
            margin-left: -200%;
        }

                .carousel .inputcarp:nth-of-type(2):checked~.carousel__slides .carousel__slide:first-of-type {
            margin-left: -100%;
        }

                .carousel .inputcarp:nth-of-type(1):checked~.carousel__slides .carousel__slide:first-of-type {
            margin-left: 0%;
        }

                .carousel .inputcarp:nth-of-type(1):checked~.carousel__thumbnails li:nth-of-type(1) {
            box-shadow: 0px 0px 0px 5px rgb(140, 198, 63);
        }

                .carousel .inputcarp:nth-of-type(2):checked~.carousel__thumbnails li:nth-of-type(2) {
            box-shadow: 0px 0px 0px 5px rgb(140,198,63);
        }

                .carousel .inputcarp:nth-of-type(3):checked~.carousel__thumbnails li:nth-of-type(3) {
            box-shadow: 0px 0px 0px 5px rgb(140,198,63);
        }

                .carousel .inputcarp:nth-of-type(4):checked~.carousel__thumbnails li:nth-of-type(4) {
            box-shadow: 0px 0px 0px 5px rgb(140,198,63);
        }

                .carousel .inputcarp:nth-of-type(5):checked~.carousel__thumbnails li:nth-of-type(5) {
            box-shadow: 0px 0px 0px 5px rgb(140,198,63);
        }

                .carousel .inputcarp:nth-of-type(6):checked~.carousel__thumbnails li:nth-of-type(6) {
            box-shadow: 0px 0px 0px 5px rgb(140,198,63);
        }


.carousel__slides {
    position: relative;
    z-index: 1;
    padding: 0;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex;
    border-radius: 30px 30px;
    padding-bottom: 20px;
}

.carousel__slide {
    position: relative;
    display: block;
    flex: 1 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 300ms ease-out;
    vertical-align: top;
    box-sizing: border-box;
    white-space: normal;
    border-radius: 30px 30px;
}

  .carousel__slide  figure {
        display: flex;
        margin: 0;
    }

        .carousel__slide div {
        @include aspect-ratio(3, 2);
        width: 100%;
    }

        .carousel__slide img {
        display: block;
        flex: 1 1 auto;
        object-fit: cover;
    }

   .carousel__slide figcaption {
        align-self: flex-end;
        padding: 20px 20px 0 20px;
        flex: 0 0 auto;
        width: 25%;
        min-width: 150px;
    }

   .carousel__slide .credit {
        margin-top: 1rem;
        color: rgba(0, 0, 0, 0.5);
        display: block;
    }

   .carousel__slide .scrollable {
        overflow-y: scroll;
    }

.carousel__thumbnails {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    margin: 0 -10px;
}

        .carousel__thumbnails .carousel__slides {
        margin-top: 20px;
    }

        .carousel__thumbnails li {
        flex: 1 1 auto;
        max-width: calc((100% / 6) - 20px);
        margin: 0 10px;
        transition: all 300ms ease-in-out;
    }

   .carousel__thumbnails .label1 {
        display: block;
        @include aspect-ratio(1, 1);

    }
                .carousel__thumbnails .label1:hover,
                .carousel__thumbnails .label1:focus {
            cursor: pointer;
                }
                        .carousel__thumbnails .label1 img {
                box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.25);
                transition: all 300ms ease-in-out;
            }
     

.carousel__thumbnails img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px 15px;
    }

    .skillz{
        display: hidden;
    }