.container {
    max-width: 960px;
    margin: var(--spacing-md) auto;
    padding: var(--spacing-sm);
}

h1 {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

nav {
    margin-bottom: var(--spacing-md);
}

nav a {
    font-weight: bold;
}

.photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

.photos img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.photos img:hover {
    cursor: pointer;

    /* Subtle visual feedback on hover - 80% opacity provides clear indication without being jarring */
    opacity: 0.8;
}

.lightbox {
    display: none;
    position: fixed;

    /* High z-index ensures lightbox appears above all other page content */
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0 0 0 / 90%);
}

.lightbox-open {
    display: block;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: var(--transition-base);
    cursor: pointer;
}

.close:hover,
.close:focus-visible {
    color: var(--color-text-muted);
    text-decoration: none;
}

.photos img:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}