
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #111111;
    color: #eeeeee;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
}

button {
    font-family: inherit;
}

.header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 30px 35px;
}

.header h1 {
    font-size: 21px;
    font-weight: 500;
    letter-spacing: 1px;
}

#photo-count {
    color: #777777;
    font-size: 12px;
}

main {
    padding: 0 25px 30px;
}

.gallery {
    display: flex;
    gap: 10px;
}

.gallery-column {
    flex: 1;
    min-width: 0;
}

.gallery-item {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    overflow: hidden;
    background: #1b1b1b;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.25s ease;
}

.gallery-item:hover img {
    opacity: 0.78;
}

/* Lightbox */

#lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border: none;
    background: rgba(0, 0, 0, 0.97);
    color: white;
    margin: 0;
    padding: 55px 70px;
    overflow: hidden;
}

#lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox::backdrop {
    background: #000000;
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.close,
.navigation {
    position: absolute;
    border: none;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close:hover,
.navigation:hover {
    opacity: 1;
}

.close {
    top: 15px;
    right: 25px;
    font-size: 36px;
}

.navigation {
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
    padding: 15px;
}

.previous {
    left: 15px;
}

.next {
    right: 15px;
}

#image-caption {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #999999;
    font-size: 12px;
    text-align: center;
    max-width: 80%;
}

@media (max-width: 600px) {
    .header {
        padding: 22px 18px;
    }

    #image-caption {
        display: none;
    }

    main {
        padding: 0 10px 20px;
    }

    .gallery {
        gap: 6px;
    }

    .gallery-item {
        margin-bottom: 6px;
    }

    #lightbox {
        padding: 45px 35px;
    }

    .previous {
        left: 0;
    }

    .next {
        right: 0;
    }
}
