body {
    margin: 0;
    display: grid;
}

#map { 
    height: 100vh;
}

#popup {
    width: 95vw;
    max-height: 95vh;
    position: absolute;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    align-self: center;
    flex-direction: column;
    background-color: white;
    overflow-y: auto;
}

#close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    border: none;
    background: none;
    font-size: 1.8rem;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.leaflet-popup-content button {
    margin-top: 0.5em;
    padding: 0.35em 0.75em;
    cursor: pointer;
}

#img-gallery {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    margin: 1em;
    overflow-y: auto;
    align-content: start;
}

#img-gallery img {
    max-width: 100%;
    cursor: pointer;
}

#lightbox {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

#lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
}