body{
    margin: 0px;
}

.carousel-container{
    height: 600px;
    margin: 0;
    display: grid;
    grid-template-rows: 830px 100px;
    grid-template-columns: 1fr 30px 30px 30px 30px 30px 1fr;
    align-items: center;
    justify-items: center;
    font-family: 'Poppins', sans-serif;
}

.item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-top: 15px;
}

.name {
    margin-bottom: 2px;
    color: #8c52ff;
}

.occupation {
    font-style: italic;
    margin-top: 2px;
}

div#carousel {
    grid-row: 1 / 2;
    grid-column: 1 / 8;
    width: 100vw;
    height: 626px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 600px;
    --items: 5;
    --middle: 3;
    --position: 1;
    pointer-events: none;
}

.item-viewer{
    text-align: center;
    position: absolute;
    width: 100%;
    height: 1px;
    z-index: 12;
    pointer-events: auto;
    cursor: pointer;
    /* display: none; */
}

.youtube-iframe-viewer{
    width: 330px;
    height: 584px;
    border-radius: 15px;
    margin: auto;
    margin-top: 10px;
}

div.item {
    text-align: center;
    padding: 5px;
    border: 3px solid black;
    border-radius: 20px;
    position: absolute;
    width: 324px;
    height: 576px;
    background-color: #000;
    --r: calc(var(--position) - var(--offset));
    --abs: max(calc(var(--r) * -1), var(--r));
    transition: all 0.25s linear;
    transform: rotateY(calc(-10deg * var(--r)))
    translateX(calc(-300px * var(--r)));
    z-index: calc((var(--position) - var(--abs)));

    
        -webkit-touch-callout: none; /* iOS Safari */
          -webkit-user-select: none; /* Safari */
           -khtml-user-select: none; /* Konqueror HTML */
             -moz-user-select: none; /* Old versions of Firefox */
              -ms-user-select: none; /* Internet Explorer/Edge */
                  user-select: none; /* Non-prefixed version, currently
                                        supported by Chrome, Edge, Opera and Firefox */
      
}

.youtube-iframe{
    border-radius: 10px;
    overflow: hidden;
}

div.item:nth-of-type(1) {
    --offset: 1;
}
div.item:nth-of-type(2) {
    --offset: 2;
}
div.item:nth-of-type(3) {
    --offset: 3;
}
div.item:nth-of-type(4) {
    --offset: 4;
}
div.item:nth-of-type(5) {
    --offset: 5;
}
div.item:nth-of-type(6) {
    --offset: 6;
}
div.item:nth-of-type(7) {
    --offset: 7;
}

input:nth-of-type(1) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

input:nth-of-type(1):checked ~ div#carousel {
    --position: 1;
}

input:nth-of-type(2) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}
input:nth-of-type(2):checked ~ div#carousel {
    --position: 2;
}

input:nth-of-type(3) {
    grid-column: 4 /5;
    grid-row: 2 / 3;
}
input:nth-of-type(3):checked ~ div#carousel {
    --position: 3;
}

input:nth-of-type(4) {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
}
input:nth-of-type(4):checked ~ div#carousel {
    --position: 4;
}

input:nth-of-type(5) {
    grid-column: 6 / 7;
    grid-row: 2 / 3;
}
input:nth-of-type(5):checked ~ div#carousel {
    --position: 5;
}




input:nth-of-type(6) {
    grid-column: 7 / 8;
    grid-row: 3 / 4;
}
input:nth-of-type(6):checked ~ div#carousel {
    --position: 6;
}


input:nth-of-type(7) {
    grid-column: 7 / 8;
    grid-row: 3 / 4;
}
input:nth-of-type(7):checked ~ div#carousel {
    --position: 7;
}

.left-arrow-scroll,
.right-arrow-scroll{
    width: 30px;
    height: 30px;
    background-color: red;
}

.carousel::before,
.carousel::after {
    content: "«";
    width: 50px;
    height: 50px;
    position: absolute;
    top: 45%;    
    z-index: 10;
    font-size: 60px;
    cursor: pointer;
    pointer-events: auto;
    line-height: 50px;
}

.carousel::before{
    content: url(../images/left.svg);
    width: 100px;
    left: 10px;
    margin-top: -20px;
}

.carousel::after{
    content: url(../images/right.svg); 
    width: 100px;
    right: 10px;
    margin-top: -20px;
}

.carousel:hover:before,
.carousel:hover:after{
    opacity: 0.7;
    transform: scale(1.1);
}

.hidden{
    display: none;
}

.banner-ad{
    text-align: center;
    width: 100%;
}