body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    overflow-y: auto; 
    overflow-x: hidden;
    background: url('/lines-alpha-anim.gif') repeat;
    color: #fff;
}

.background {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    margin-top: 10px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    border: 2px solid #fff;
    background-color: #333;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #555;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 20px 0;
    margin-top: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    justify-items: center;
}

.photo {
    background-color: #222;
    padding: 10px;
    border: 4px double #ff0000;
    transition: transform 0.3s;
    text-align: left;
    width: auto;
    max-height: 512px; 
    overflow: hidden;
    display: flex; 
    flex-direction: column;
}

.photo img {
    flex: 1; 
    width: 100%; 
    height: auto;
    display: block;
    object-fit: cover;
}



.date {
    font-size: 12px;
    color: #ccc;
    border-bottom: 1px double #3d3d3d;
    margin-bottom: 5px;
    text-align: left;
    display: block;
}
.description {
    font-size: 15px;
    margin-bottom: 5px;
    text-align: left;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; 
  }

.photo:hover {
    transform: scale(1.05);
}
