body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    background-color: #fff;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery img:hover {
    transform: scale(1.05);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    text-align: center;
    max-height: 95vh; /* Increased to allow more image space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 95vw; /* Limits width to viewport */
    max-height: calc(100vh - 80px); /* Leaves space for title/location */
    width: auto;
    height: auto;
    object-fit: contain; /* Ensures full image visibility */
    border-radius: 5px;
}

.lightbox h2 {
    color: white;
    margin: 10px 0 5px;
    font-size: 24px;
}

.lightbox p {
    color: white;
    font-size: 16px;
    margin: 0 0 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}
