/* Core Styles */

body{
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    background: #333;
    color: white;
    font-size: 1.1em;
    line-height: 1.5;
    text-align: center;
}

img{
    display: block;
    width: 100%;
    height: auto;
}

h1, h2, h3 {
    margin: 0;
    padding: .5em 0;
}

p{
    margin: 0;
    padding: .5em 0;
}

/* Header */

#showcase{
    min-height: 450px;
    color: white;
    text-align: center;
}

#showcase ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

#showcase li{
    padding: .3em 1.5em;
}

#showcase li a{
    color: white;
    text-decoration: none;
}

#showcase a{
    font-size: 1.5em;
}

#showcase .bg-image{
    position: absolute;
    background: #333 url("/images/Home_page/background.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 450px;
    z-index: -1;
    opacity: 0.4;
}

#showcase h1{
    padding-top: 10px;
    padding-bottom: 0;
}

#showcase .content-wrap,
#section-a .content-wrap,
#section-b .content-wrap,
#section-c .content-wrap{
    padding: 0 1.5em;
}

#showcase .logo img{
    height: 150px;
    width: auto;
    border-radius: 50%;
    margin: auto;
    box-shadow: #fff 0 0 10px;
}

/* Section A*/

#section-a{
    padding: 2em 1em 1em;
}

#section-a ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

#section-a li{
    margin-bottom: 1em;
    background: white;
    color: #333;
}

.card-content{
    padding: 1.5em;
}

/* Section B*/

#section-b{
    padding: 2em 1em 0;
}

#section-b ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

#section-b li{
    margin-bottom: 1em;
    background: white;
    color: #333;
}

#section-b a{
    text-decoration: none;
    color: #333;
}

.card-content{
    padding: 1.5em;
}

/* Section C*/

#section-c{
    padding: 0 1em 1em;
}

#section-c ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

#section-c li{
    margin-bottom: 1em;
    background: white;
    color: #333;
}

#section-c a{
    text-decoration: none;
    color: #333;
}

.card-content{
    padding: 1.5em;
}

/* Section D */

#section-d p{
    padding: 20px;
    text-align: left;
}

#section-d h1{
    text-align: left;
    padding-left: 20px;
}

/* Footer */

#main-footer{
    padding: 2em;
    background: #000;
    color: #fff;
    text-align: center;
}

#video-footer{
    padding: 2em;
    background: #000;
    color: #fff;
    text-align: center;
    margin-top: 1em;
}

/* Media Query */

@media(min-width: 950px){
    .grid{
        display: grid;
        grid-template-columns: 1fr repeat(2, minmax(auto, 40em)) 1fr;
    }

    #section-a .content-text,
    #section-b .content-text{
        columns: 2;
        column-gap: 2em;
    }

    #section-a .content-text p
    #section-b .content-text p{
        padding-top: 0;
    }

    #showcase a{
        font-size: 2em;
    }

    .content-wrap,
    #section-a ul,
    #section-b ul,
    #section-c ul{
        grid-column: 2/4;
    }

    .box, #main-footer div{
        grid-column: span 4;
    }

    #section-a ul,
    #section-b ul,
    #section-c ul{
        display: flex;
        justify-content: space-around;
    }

    #section-a li,
    #section-b li,
    #section-c li{
        width: 31%;
    }

    #showcase ul{
        display: flex;
        justify-content: space-around;
        line-height: 4;
        padding-top: 50px;
        padding-left: 30px;
    }

    #showcase h1{
        font-size: 4em;
        padding-top: 30px;
    }

    .video_grid{
        display: grid;
        grid-template-columns: repeat( auto-fit , 300px);
        align-content: center;
        justify-content: center;
        grid-gap: 15px;
        height: auto;
        margin: 0;
        padding: 0;
    }
    .video_grid img{
        cursor: pointer;
        transition: 1s;
        width: 300px;
        height: 200px;
        border-radius: 10px;
    }
    .video_grid img:hover{
        transform: scale(1.05);
    }
    figure{
        margin: auto;
        padding-top: 10px;
    }
    figure figcaption{
        color: rgb(0, 0, 0);
        margin: 0;
        padding: 0;
    }
    #lightbox{
        position: fixed;
        z-index: 1000;
        top:0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        display: none;
    }
    
    #lightbox.active{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #lightbox video{
        max-width: 80%;
        border: 2px solid white;
    }

    #video-footer div{
        grid-column: span 4;
    }
}