.speaker-container{
    padding: 50px 0;
    overflow: hidden;
    background-color: #232324;
    min-height: 400px;
    color: #fff;
    position: relative;
    z-index: 1;
    background-image: url('../assets/images/speakers.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* filter: brightness(0.3); */
}

.speakers-dark-filter{
    background-color: #00000066;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
}

.speaker-sub-container{
    max-width: 1800px;
    margin: auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.speaker-heading{
    text-align: center;
}

.speakers-content-container{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 50px;
    width: fit-content;
    margin: 70px auto 0;
}

.speakers-body{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
}

.speakers-img-container{
    width: 240px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* overflow: hidden; */
}

.speakers-sub-img-container{
    width: 240px;
    height: 240px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transform: skew(-12deg);
    border: #C6D93B solid 8px;
    background: radial-gradient(circle, rgba(204,204,204,1) 0%, rgba(76,76,76,1) 100%);
    overflow: hidden;
}

.speakers-img-container-2{
    position: relative;
    width: 100%;
}

.speakers-img-container-2::before{
    content: '';
    position: absolute;
    background: linear-gradient(272deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    clip-path: polygon(0 100%, 100% 50%, 0 0);
    width: 100px;
    height: 4px;
    top: -10px;
    left: 16px;
    transform: skew(-12deg);
}

.speakers-img-container-2::after{
    content: '';
    position: absolute;
    clip-path: polygon(50% 100%, 100% 0, 0 0);
    background: linear-gradient(192deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    width: 4px;
    height: 100px;
    top: -10px;
    left: 5px;
    transform: skew(-12deg);
}

.speakers-img-container::before{
    content: '';
    position: absolute;
    background: linear-gradient(112deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    clip-path: polygon(100% 100%, 100% 0, 0 50%);
    width: 100px;
    height: 4px;
    bottom: -10px;
    right: 16px;
    transform: skew(-12deg);
}

.speakers-img-container::after{
    content: '';
    position: absolute;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(12deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    width: 4px;
    height: 100px;
    bottom: -10px;
    right: 5px;
    transform: skew(-12deg);
}

.speakers-body-img{
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: auto;
    /* filter: drop-shadow(0 0 10px rgba(0,0,0,1)); */
}

.speakers-img{
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.6));
    transform: skew(12deg);
}

.speakers-content{
    width: 320px;
    /* width: 100%; */
    text-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 20px;
    position: relative;
}

.speakers-content p{
    margin-bottom: 0;
}

.speakers-name{
    position: absolute;
    background-color: #232324;
    top: -58px;
    right: 25px;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 1.2rem;
}

.speakers-company{
    font-weight: 700;
}



@media screen and (max-width: 1900px){
    .speakers-content-container{
        grid-template-columns: repeat(4, 1fr);
    }
    .speakers-sub-text {
        grid-column: 1/5;
    }
}

@media screen and (max-width: 1500px){
    .speakers-content-container{
        grid-template-columns: repeat(3, 1fr);
    }
    .speakers-sub-text {
        grid-column: 1/4;
    }
}

@media screen and (max-width: 1200px){
    .speakers-content-container{
        grid-template-columns: repeat(2, 1fr);
    }
    .speakers-sub-text {
        grid-column: 1/3;
    }
}

@media screen and (max-width: 768px){
    .speakers-content-container{
        grid-template-columns: repeat(1, 1fr);
    }
    .speakers-sub-text {
        grid-column: 1/2;
    }
    .speakers-content-container{
        width: 100%;
        padding: 0 20px;
        margin: 50px auto 0;
    }
    .speakers-body{
        margin: 0 auto;
    }
}

@media screen and (max-width: 576px){
    .speakers-sub-img-container{
        transform: unset;
    }
    .speakers-img{
        transform: unset;
    }
    .speakers-img-container-2::before,
    .speakers-img-container-2::after,
    .speakers-img-container::before,
    .speakers-img-container::after{
        transform: unset;
    }
    .speakers-name{
        z-index: 2;
        left: 0;
        right: unset;
    }
    .speakers-img-container-2::after,
    .speakers-img-container-2::before{
        left: -10px;
    }
    .speakers-img-container::before,
    .speakers-img-container::after{
        right: -10px;
    }
    .speakers-img-container,
    .speakers-content{
        width: 100%;
        max-width: 240px;
    }
            
}

@media screen and (max-width: 340px){
    .speakers-content-container{
        grid-template-columns: repeat(1, 1fr);
    }
    .speakers-body{
        width: 250px;
    }
    .speaker-img{
        width: 250px;
    }
}