* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'poppins', sans-serif;
}

body {
	background-color:#181818;
	color:white;
	margin-top:2em;
	margin-left:2em;
	margin-right:2em;
	font-family:Arial, Sans-serif;
	background-image:url("images/M31_background.jpg")
}

nav {
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	padding: 10px 2%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
nav .logo {
	width: 80px;
}
nav .brand {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between logo and title */
}

nav .title {
    margin: 0;
}
nav ul li {
	list-style: none;
	color: #fff;
	display: inline-block;
	margin-left: 40px;
}
nav ul li a {
	color: #fff;
	text-decoration: none;
	font-size: 20px;
}


table     {border: 1px solid #0079CB; border-spacing: 0;background-color: #000000;}
th        {border: hidden; background-color: #0079CB; border-radius:0px 0px 0px 0px;}
td        {border: 0px solid #0079CB; border-spacing: 0; border-radius: 0px; padding: 0px;}

footer    {font-size:1em; font-style:italic; padding: 1em;}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.gallery img {
    max-width: 300px;
    height: auto;
    border-radius: 4px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}


#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

#modal-window {
    width: 95vw;
    height: 95vh;
    background: #000;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px #000;
    display: flex;
    flex-direction: column;
}

#modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    z-index: 1000;
}

#modal-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    color: white;
    padding: 10px;
    box-sizing: border-box;
}
