/* Reset some defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Entire page */
body {
    background-color: black;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

/* Main page wrapper */
.container {
    display: grid;
    grid-template-columns: 1fr 250px; /* main content + right sidebar */
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

/* Header */
header {
    grid-column: 1 / 3;
    padding: 30px;
    border-bottom: 1px solid white;

    display: flex;
    justify-content: center;   /* keeps whole title block centered */
    align-items: center;
}

header h1 {
    display: flex;
    flex-direction: column;    /* stack words vertically */
    align-items: flex-start;     /* right-align each line */
    text-align: right;
    font-size: 3rem;
    line-height: 1.1;
}

header h1 span {
    display: block;
}

/* Main image section */
main {
    padding: 30px;
}

/* Image gallery layout */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

/* Each image block */
.image-card {
    width: 250px;
    border: 1px solid white;
    padding: 12px;
    text-align: center;
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Description below image */
.caption {
    margin-top: 12px;
    font-size: 0.95rem;
}

/* Right sidebar */
.sidebar {
    border-left: 1px solid white;
    padding: 25px;
}

.sidebar h2 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 12px;
}

.sidebar a {
    color: white;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    grid-column: 1 / 3;
    border-top: 1px solid white;
    padding: 20px;
    text-align: center;
}

/* Mobile support */
@media (max-width: 800px) {
    .container {
        grid-template-columns: 1fr;
    }

    header,
    footer {
        grid-column: 1;
    }

    .sidebar {
        border-left: none;
        border-top: 1px solid white;
    }
}