        /*Styling contact page*/
        @font-face {
            font-family: montLight;
            src: url('../fonts/montLight.otf') format('opentype');
            font-weight: normal;
        }

        @font-face {
            font-family: montHeavy;
            src: url('../fonts/montHeavy.otf') format('opentype');
            font-weight: normal;
        }

        @font-face {
            font-family: montRegular;
            src: url('../fonts/montRegular.otf') format('opentype');
            font-weight: normal;
        }

        @font-face {
            font-family: montBold;
            src: url('../fonts/montBold.otf') format('opentype');
            font-weight: normal;
        }

        @font-face {
            font-family: montSemiBold;
            src: url('../fonts/montSemibold.otf') format('opentype');
            font-weight: normal;
        }


:root {
    --primary-color: #31a099;
    --secondary-color: #EDED88;
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-gray: #e9ecef;
    --medium-gray: #dee2e6;
    --dark-gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: montLight, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.gallery-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.gallery-header h1 {
    margin-bottom: 0.5rem;
    font-family: montBold;
    color: #fff;
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin: 0 0.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: var(--secondary-color);
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-info {
    padding: 0.5rem;
}

.photo-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 13pt;
}

.photo-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-gray);
    margin-top: 2rem;
}

/* Login and Upload Forms */
.login-container, .upload-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.login-container h2, .upload-container h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    width: 100%;
}

button:hover {
    background-color: var(--secondary-color);
}

.error {
    color: #e74c3c;
    margin-bottom: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.9);}
    to {transform: scale(1);}
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Add responsiveness */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}


/* Loading animation for modal */
.modal-content {
    position: relative;
}

.modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal-content.loaded::before {
    opacity: 0;
    pointer-events: none;
}

