:root {
    --charcoal: #1A1A1A;
    --gold: #C5A059;
    --crimson: #8B0000;
    --parchment: #F5F5DC;
    --deep-grey: #2A2A2A;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: var(--charcoal);
    color: var(--parchment);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

.navigation {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
    background-color: var(--crimson);
    border-bottom: 2px solid var(--gold);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.navigation li {
    padding: 20px 40px; 
}

.navigation a {
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 5px black;
    font-size: 32px;
    font-family: "democratica", sans-serif;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease; 
}

.navigation a:hover {
    color: var(--gold);
    transform: scale(1.2); 
}

#main_container {
    max-width: 1400px;
    margin: 100px auto 80px auto; 
    padding: 20px;
    background-image: url('../img/bg.png'); 
    background-size: cover;
    background-position: center; 
    background-attachment: fixed; 
    display: flex;
    flex-direction: column;
    gap: 30px; 
}

.main-title {
    text-align: center;
    padding: 5px 0;
    width: 100%;
}

.main-title h1 {
    font-size: 62px;
    color: var(--gold);
    margin: 0;
    font-family: "democratica", sans-serif;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px black; 
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
    justify-content: center; 
}

.gallery-item {
    flex: 0 0 20%;
    min-width: 100px; 
    aspect-ratio: 1 / 1; 
    cursor: pointer; 
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid var(--gold); 
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05); 
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease; 
    z-index: 2000; 
}

.lightbox.active {
    opacity: 1;
    pointer-events: initial;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.lightbox-content img {
    display: block;
    max-height: calc(90vh - 6em);
    max-width: calc(90vw - 6em);
    border: 4px solid var(--crimson);
}

.lightbox-content::after {
    content: '\000D7';
    position: absolute;
    top: -2em;
    right: -2em;
    width: 2em;
    height: 2em;
    line-height: 2em;
    text-align: center;
    background-color: white;
    color: black;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: 2em;
    pointer-events: none;
    font-weight: bold;
}

.footer {
    display: flex;
    justify-content: center;
    padding: 20px;
    border-top: 2px solid var(--gold);
    background-color: var(--crimson);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

#mouse-tooltip {
    position: absolute;
    background-color: var(--deep-grey);
    color: white;
    padding: 5px 10px;
    border: 1px solid var(--gold);
    pointer-events: none;
    opacity: 0;
    z-index: 3000;
    font-size: 14px;
    transform: translate(15px, 15px);
    max-width: 250px;
}