html, body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: system-ui, sans-serif;
}


.loading {
    padding: 40px;
    text-align: center;
}


#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 16px;
}


.tile {
    position: relative;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
}


.thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
}


.avatar {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
}

.delete {
  position: absolute;
  top: 4px;
  right: 6px;
  background: rgba(0,0,0,.6);
  color: white;
  border: none;
  font-size: 18px;
}

.gps {
    padding: 6px 8px;
    font-size: 11px;
    opacity: 0.8;
}

.timestamp {
    padding: 6px 8px;
    font-size: 11px;
    opacity: 0.8;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
