body {
    margin: 0;
    background-color: #1c201e;
    color: white;
    font-family: "Ambicase Fatface", Georgia, serif;
    text-align: center;
}

/* PAGE TITLE */
.header h1 {
    position: relative;
    font-size: 48px;
    margin: 40px 0 20px;
    -webkit-text-stroke: .3px #fbfafa;
    -webkit-text-fill-color: rgb(3, 52, 3);
}

.header h1::after {
   content: "";
    position: absolute;
    bottom: -10px;        /* sits at the bottom of the padded area */
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 2px;
    background-color: white;
}

/* GALLERY GRID */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 25px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}


/* IMAGE WRAPPER */
.photo-box {
    overflow: hidden;
    border-radius: 10px;
    background: #111;
}

/* IMAGES */
.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.photo-box:hover img {
    transform: scale(1.05);
}

/* LIGHTBOX BACKGROUND */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);

    /* ADD THESE */
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

/* LIGHTBOX IMAGE */
.lightbox-img {
    display: block;
    margin: auto;
    max-width: 70%;
    max-height: 60vh;
    border-radius: 10px;
}

/*Arrows*/
.prev, .next {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    transform: translateY(-50%);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    color: #ccc;
}


/* CLOSE BUTTON */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
}
