/* Load Fonts */
@font-face {
    font-family: 'Cako';
    font-weight: bold;
    src: url('../typeface/Cako-Black.otf') format('opentype');
}

@font-face {
    font-family: 'Cako';
    font-weight: normal;
    src: url('../typeface/Cako-Regular.otf') format('opentype');
}

:root {
    --primary-font-color: hsl(0, 0%, 100%); /* Define a root variable for primary color */
  }

body {
    background: #32FAAF;
    display: grid;
    grid-template-rows: auto auto auto auto;
}

#bgVid {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}

#logo {
    grid-column-start: 1;
    grid-row-start: 1;
    margin-left: 30px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

#title {
    grid-column-start: 1;
    grid-row-start: 1;
    font-family: Cako;
    font-weight: bold;
    color: #ffffff;
    font-size: 60px;
    margin-top: 200px;
    text-align: center;
}


#vid {
    grid-column-start: 1;
    grid-row-start: 2;
    margin: 60px auto;
    width: 100%;
    max-width: 950px;
}

#vid iframe {
    width: 100%;
    height: 500px;
}

#text {
    grid-column-start: 1;
    grid-row-start: 3;
    font-family: Cako;
    color: var(--primary-font-color);
    font-size: 25px;
    width: 100%;
    max-width: 950px;
    margin: 20px auto;
}

.image-gallery {
    grid-column-start: 1;
    grid-row-start: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gallery-image {
    max-width: 80%;
    height: auto;
    margin: 10px;
    cursor: pointer;
}

.cover-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 20px; /* Space between items */
    justify-items: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
}

.cover-images .gallery-image {
    max-width: 100%; /* Ensure images fit within their grid cells */
    height: auto; /* Maintain aspect ratio */
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh;
}


.close {
    position: absolute;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

.close:hover, .prev:hover, .next:hover {
    color: #bbb;
}

.gallery-image {
    cursor: pointer;
}




@media only screen and (max-width: 800px) {
    body {
        background: #000000;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        transform: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #bgVid {
        display: none;
    }

    #logo {
        width: auto;
        margin: 20px 0;
        position: static;
        align-self: center;
    }

    #title {
        width: 100%;
        font-size: 36px;
        margin-top: 60px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    #vid {
        position: relative;
        width: calc(100% - 40px);
        max-width: 100%;
        margin: 30px 20px;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
    }
    
    #vid iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    iframe {
        width: 100%;
        max-width: 100%;
    }

    #text {
        width: 90%;
        margin: 20px 0;
        padding: 0 20px;
    }

    .image-gallery {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .gallery-image {
        width: 90%;
    }
}



