/* Showcase */
#showcase{
    background-image: url('../images/showcase.png');
    background-size: cover;
    background-repeat: no-repeat;
    padding: 0px 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height:100vh;
    padding-top:45svh;
}

#gallery-grid-section img {
    will-change: transform;
}

#showcase > h1{
    font-size:36px;
}

#showcase > p{
    font-size: 16px;
}

#showcase > p, #showcase > h1, #showcase > button{
    color:white;
    text-align: center;
}

#showcase > p, #showcase > h1{
    margin-bottom:30px !important;
}

/* Newsletter */
#newsletter{
    background-color: rgb(25, 149, 209);
    padding:20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height:100px;
    box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.2);
}

#newsletter p {
    margin-top:12px;
    color:white;
    font-size: 16px;
}

/* featured event */
#featured-event{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding:20px 50px;
}

#featured-event-container{
    margin-top:20px;
    display: flex;
    justify-content: center;
}

#featured-event-explanation{
    margin-left:30px;
    max-width:30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#featured-event-explanation-title{
    font-weight: bold;
}

#featured-event-explanation-date{
    margin-top:-4%;
    color: rgb(150,150,150);
}

/* in the news */
#news-section{
    display: flex;
    align-items: center;
    justify-content: center;
    padding:20px 50px;
    flex-direction: column;
}

#news-container{
    margin-top:20px;
    display: flex;
    flex-wrap: nowrap;
}

#news-container > .card{
    margin: 0px 30px;
}

/* About Us */
#about-us-section-homepage {
    margin-top: 40px;
    background-color: rgb(25, 149, 209);
    display: flex;
    padding: 50px;
    color: white;
    flex-wrap: nowrap;
}

#vector-about-us-home{
    width:30%;
    overflow: hidden;
}

#vector-about-us-home > img{
    width:300px;
    height:248px;
}

#about-us-home-words{
    width: 70%;
    margin-right: 100px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    justify-content: space-between;
    align-items: center;
}

#about-us-home-words h2{
    text-align: center;
}

#about-us-section-homepage a{
    text-decoration: none;
}

/* gallery section*/
#gallery-grid-section img {
    will-change: transform;
}

#gallery-grid-section {
    position: relative;
    width: 100%;
    overflow-x: hidden; 
}

#gallery-grid-section .row {
    display: flex;
    flex-wrap: nowrap;
    scroll-behavior: smooth; 
}

#gallery-grid-section img {
    flex: 0 0 auto;
    width: calc(105vw / 4); 
    height: auto;
    object-fit: cover;
    margin: 0; 
    padding: 0; 
}

#gallery-grid-section .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border: 2px solid black;
    width: 4vw;
    border-radius: 80%;
    cursor: pointer;
}

/* media queries */
@media (max-width:1200px){
    /* in the news */
    #news-container{
        margin-top:20px;
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
    }

    #news-container .card{
        margin-bottom:40px;
    }
    
    #about-us-section-homepage{
        flex-direction: column;
        align-items: center;
        padding:20px 0px;
    }

    #about-us-section-homepage p, #about-us-section-homepage h2 {
        text-align: center;
    }

    #vector-about-us-home{
        width:50%;
        overflow: visible;
        display: flex;
        justify-content: center;
    }

    #about-us-home-words{
        margin-right:0px;
    }
}

@media (max-width: 1000px) {
    #showcase {
        padding-left: 30px;
        padding-right: 30px;
        padding-top: calc(50vh - 10vh);
        padding-bottom: calc(50vh - 20vh);
    }
}

@media (max-width: 850px) {
    #showcase {
        padding-left: 30px;
        padding-right: 30px;
        padding-top: calc(50vh - 10vh);
        padding-bottom: calc(50vh - 40vw);
    }

    #newsletter{
        flex-direction: column;
        height:150px;
        padding-top:10px;
    }

    #newsletter p{
        text-align: center;
    }
    
    #featured-event-container{
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    #featured-event .card{
        margin-bottom:30px;
    }

    #featured-event-explanation{
        max-width: 100%;
        margin-left:0;
    }

    #featured-event-explanation-date{
        margin-top:0;
    }

    #featured-event-explanation > p{
        text-align: center;
    }

    #vector-about-us-home{
        width:75%;
        overflow: hidden;
    }
}