        /* Basic styles for the modal */
        #myModal {
            display: none;
            align-items: center;
            /* This will vertically center the modalContent */
            justify-content: center;
            /* This will horizontally center the modalContent */
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.8);
        }

        #modalContent {
            margin: auto;
            display: block;
            max-width: 90%;
            /* Maximum width of the image */
            max-height: 80%;
            /* Maximum height of the image */
            width: auto;
            /* Auto width allows the image to scale with the height */
            height: auto;
            /* Auto height allows the image to maintain aspect ratio */
            object-fit: contain;
            /* Ensures the image is scaled to fit within the box while preserving its aspect ratio */
            padding-top: 50px;
        }

        .close {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
        }

        .close:hover,
        .close:focus {
            color: #bbb;
            text-decoration: none;
            cursor: pointer;
        }

        #caption {
            margin: auto;
            display: block;
            width: 80%;
            max-width: 700px;
            text-align: center;
            color: #ccc;
            padding: 10px 0;
            height: 150px;
        }

        .nav-arrow {
            cursor: pointer;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: white;
            font-size: 30px;
            user-select: none;
        }

        .nav-arrow.left {
            left: 10px;
        }

        .nav-arrow.right {
            right: 10px;
        }

        #gallery {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
        }

        button {
            background-color: #254396;
            color: rgb(185, 243, 167);
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s;
            align-self: center;
            /* Ensures the button is centered */
            margin-bottom: 20px;
            margin-top: 10px;
        }

        button:hover {
            background-color: #1e3799;
            /* Darker blue on hover */
        }

        .navBar {
            margin-bottom: 10px;
        }

        @media only screen and (max-width: 700px) {
            #modalContent {
                width: 100%;
            }
        }