/* MAIN BODY */
.main-section {
    position: fixed;
    height: calc(97vh - 20px);
    width: 100vw;
    bottom: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    top: 3vh;
}

/* DESCRIPTION & ZIP DOWNLOADS */
.parent-grid-container {
    width: 95vw;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    gap: 50px; /* Space between grid items */
    padding: 10px;
    margin: auto; /* Center the grid horizontally on the page */
}

.child-grid-container {
    width: 95%;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    gap: 50px; /* Space between grid items */
    padding: 10px;
    margin: auto; /* Center the grid horizontally on the page */
}

.download-grid-container {
    width: 80%;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    gap: 20px; /* Space between grid items */
    padding: 10px;
    margin: auto; /* Center the grid horizontally on the page */
}
    .download-grid-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        color: white;
        text-decoration: none; /* Remove underline from links */
        border: none;
    }

.file_download-button {
    color: rgb(240, 240, 240);
    padding: 10px 0px 10px 0px;  /* top, right, bottom, left */
    background: rgb(87, 87, 87);
    border: 1px solid rgb(10, 10, 10);
    border-radius: 5px;
    font-size: 24px;
    cursor: pointer;
    width: 100px;
    text-align: center;
}
    .file_download-button:hover {
        background: rgb(4, 96, 132);
    }


/* GALLERY */
.gal-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Three equal columns */
    /* Don't specify rows so amount of images doesn't matter */ 
    gap: 20px; /* Space between grid items */
    padding: 10px;
    margin: auto; /* Center the grid horizontally on the page */
}
.gal-grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15vh;
    color: white;
    font-size: 50px;
    text-decoration: none; /* Remove underline from links */
    background: black;
    border: 1px solid rgb(29, 29, 29);
    border-radius: 5px;
    padding: 25px;
    background-size: cover; /* Ensure the image covers the entire grid entry */
    background-position: center; /* Center the image */
    position: relative; /* Enable layering */
    overflow: hidden; /* Prevent overlapping elements */
    cursor: pointer;
    filter: brightness(90%); /* Brighten the background on hover */
}
    .gal-grid-item:hover {
        filter: brightness(100%); /* Brighten the background on hover */
        transform: scale(1.02); /* Slight zoom effect on hover */
    }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
}
.modal-content {
    display: block;
    margin: auto;
    margin-top: 2%;
    max-width: 70%;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    color: white;
    font-size: 50px;
    user-select: none;
}
    .prev { left: 3%; }
    .next { right: 3%; }
.modal-close-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #723232;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.modal-close-btn:hover {
    background-color: #581f1f;
}


/* MOD LIST */
.table-container {
    display: flex;
    justify-content: center; /* Centers the table horizontally */
    align-items: flex-start;
    height: auto;
    margin-bottom: 20px;  /* Add gap between table and botom of page */
}
.mod_table {
    width: 80%;
    background: rgb(33, 25, 38);
    border: 1px solid rgb(204, 204, 204);
    border-radius: 5px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border-spacing: 0px;
}
    .mod_table th {
        text-align: center;
        padding: 10px;
        border: none;
        font-size: 20px;
        border-bottom: 1px solid rgb(204, 204, 204);
    }
    .mod_table td {
        text-align: left;
        padding: 10px;
        border: none;
        font-size: 18px;
        border-bottom: 1px solid  rgb(78, 58, 90);
    }
.open-button {
    color: rgb(240, 240, 240);
    padding: 5px 20px 5px 20px;  /* top, right, bottom, left */
    background: rgb(87, 87, 87);
    border: 1px solid rgb(10, 10, 10);
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
    width: 100px;
    text-align: center;
}
    .open-button:hover {
        background: rgb(4, 96, 132);
    }

/* MEDIA QUERIES */
@media only screen and (max-width:1800px) {
    .gal-grid-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* Three equal columns */
        /* Don't specify rows so amount of images doesn't matter */ 
        gap: 20px; /* Space between grid items */
        padding: 10px;
        margin: auto; /* Center the grid horizontally on the page */
    }
}

@media only screen and (max-width:1300px) {
    .gal-grid-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Three equal columns */
        /* Don't specify rows so amount of images doesn't matter */ 
        gap: 20px; /* Space between grid items */
        padding: 10px;
        margin: auto; /* Center the grid horizontally on the page */
    }
    .child-grid-container {
        width: 95%;
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 2 equal columns */
        gap: 50px; /* Space between grid items */
        padding: 10px;
        margin: auto; /* Center the grid horizontally on the page */
    }
}

@media only screen and (max-width:950px) {
    .gal-grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Three equal columns */
        /* Don't specify rows so amount of images doesn't matter */ 
        gap: 20px; /* Space between grid items */
        padding: 10px;
        margin: auto; /* Center the grid horizontally on the page */
    }
    .parent-grid-container {
        width: 95vw;
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 2 equal columns */
        gap: 50px; /* Space between grid items */
        padding: 10px;
        margin: auto; /* Center the grid horizontally on the page */
    }
}

@media only screen and (max-width:750px) {
    .main-section {
        position: fixed;
        height: calc(97vh - 20px);
        width: 100vw;
        bottom: 0;
        overflow-y: scroll;
        overflow-x: scroll;
    }
    .table-container {
        display: flex;
        justify-content: flex-start; /* Centers the table horizontally */
        align-items: flex-start;
        height: auto;
        margin-bottom: 20px;  /* Add gap between table and botom of page */
        min-width: 750px;
    }
}

@media only screen and (max-width:600px) {
    .gal-grid-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* Three equal columns */
        /* Don't specify rows so amount of images doesn't matter */ 
        gap: 20px; /* Space between grid items */
        padding: 10px;
        margin: auto; /* Center the grid horizontally on the page */
    }
}
