* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  background: #f3f4f6;
  font-family: Arial, sans-serif;
  color: #222;
}

.mobile-wrap {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f5efe8;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
}

.logout-form {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 100;
}

.logout-btn {
  padding: 7px 11px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #555;
  font-size: 12px;
  cursor: pointer;
}

.logout-btn:hover {
  background: #fff;
  color: #111;
}
body.photo-lightbox-open {
  overflow: hidden !important;
}

img[data-photo-lightbox] {
  cursor: zoom-in;
}

#sharedPhotoLightbox.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 48px 16px 20px;
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}

#sharedPhotoLightbox.photo-lightbox[hidden] {
  display: none;
}

#sharedPhotoLightbox.photo-lightbox img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 68px);
  max-height: calc(100dvh - 68px);
  object-fit: contain;
  cursor: default;
}

#sharedPhotoLightbox .photo-lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
