body {
    background-color: #0d0d0d;
    color: #f2f2f2;
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    background-image:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.01),
            /* Extremely faint white line color */
            rgba(255, 255, 255, 0.01) 1px,
            /* Thickness of the line */
            transparent 1px,
            /* Start of the transparent gap */
            transparent 30px
            /* Size of the gap */
        );
}
h1 {
    font-weight: bold;
    font-size: 1.5em;
    margin-bottom: 0.3em;
}
a {
    text-decoration: none;
}
p {
    color: #999;
    margin-bottom: 2em;
    text-align: center;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5em;
    max-width: 1000px;
    width: 100%;
}
.photo {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.photo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(0%);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.photo img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}
.caption {
    color: #777;
    font-size: 0.9em;
    margin-top: 0.4em;
    text-align: center;
}
.button {
    display: inline-block;
    border: 1px solid #444;
    padding: 0.4em 1em;
    border-radius: 4px;
    color: #f2f2f2;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    margin: 1em 0.5em;
}
.button:hover {
    background-color: #1a1a1a;
    border-color: #666;
}
.photo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.photo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(0%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}


/* Fade and slightly zoom on hover */
.photo:hover img {
    opacity: 0.5;
    transform: scale(1.02);
}

/* Overlay text styling */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f2f2f2;
    font-size: 1.2em;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Show overlay on hover */
.photo:hover .overlay {
    opacity: 1;
}