/* ---------- Global ---------- */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  background: #f5f5f5;
  color: #222;
}

/* ---------- Login Page ---------- */
.login-container {
  max-width: 350px;
  margin: 80px auto;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
}

.login-container h1 {
  margin-bottom: 10px;
}

input {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  background: #007bff;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

button:active {
  transform: scale(0.98);
}

.error {
  color: red;
  margin-top: 10px;
}

/* ---------- Top Bar ---------- */
.top-bar {
  position: sticky;
  top: 0;
  background: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 10;
  transition: transform 0.3s ease;
}

.top-bar h1 {
  font-size: 18px;
  margin: 0;
}

.top-bar .icon {
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ✅ mobile default */
  gap: 5px;
  padding: 5px;
}

/* Tablet */
@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Photo Tiles ---------- */
.photo-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ddd;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.photo-item img:active {
  transform: scale(0.95);
}

/* ---------- Fullscreen Viewer ---------- */
.viewer {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  transition: opacity 0.3s ease;
}

.viewer img {
  max-width: 100%;
  max-height: 100%;
  touch-action: pan-x pan-y; /* ✅ pinch + swipe friendly */
}

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

.viewer.hidden {
  opacity: 0;
  pointer-events: none;
}
/* ---------- Hero ---------- */
.hero {
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.hero .subtitle {
  font-size: 16px;
  color: #555;
}

/* ---------- Content ---------- */
.content {
  padding: 20px;
  max-width: 500px;
  margin: auto;
  font-size: 16px;
  line-height: 1.6;
}

.content p {
  margin-bottom: 20px;
}

.content blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  background: #fff;
  border-left: 4px solid #007bff;
  font-style: italic;
  color: #444;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 8px;
}

/* ---------- Login Section Spacing ---------- */
.login-container {
  margin-top: 40px;
  margin-bottom: 60px;
}

.login-container h2 {
  margin-bottom: 8px;
}
