* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(180deg, #e8e8e8 0%, #f5f5f5 100%);
  padding: 20px;
  line-height: 1.5;
}

/* Top Bar - Same as main page */
.topbar {
  background: #b8b8b8;
  border-radius: 20px;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 1000px;
  margin: 0 auto 12px auto;
}

.nav-links {
  font-size: 14px;
  color: #2a2a2a;
}

.nav-links a {
  color: #2a2a2a;
  text-decoration: underline;
}

.username {
  font-size: 14px;
  color: #2a2a2a;
}

/* Main Card - Same style as profile */
.card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
}

/* Gallery Header */
.gallery-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
}

.gallery-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.gallery-subtitle {
  font-size: 16px;
  color: #4a4a4a;
  font-weight: 400;
}

/* Gallery Section */
.gallery-section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a1a1a;
}

/* iOS-Style Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* Gallery Item with iOS feel */
.gallery-item {
  background: #fafafa;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid #e8e8e8;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item:active {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  background: #e8e8e8;
}

.item-caption {
  padding: 16px;
  font-size: 14px;
  color: #2a2a2a;
  font-weight: 500;
  text-align: center;
  background: white;
  border-top: 1px solid #f0f0f0;
}

/* Back Link */
.back-link {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.back-link a {
  font-size: 15px;
  color: #2a2a2a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.back-link a:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .card {
    padding: 25px 20px;
  }
  
  .gallery-title {
    font-size: 36px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .topbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .section-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .gallery-item img {
    height: 250px;
  }
}
#rain-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 100;
}

.rain-drop {
  position: absolute;
  top: -30px;
  width: 2.2px;
  height: 18px;
  background: linear-gradient(
    to bottom,
    #7ba9ce 0%,  #466689 70%, rgba(40, 60, 80, 0.15) 100%
  );
  border-radius: 2px;
  opacity: 0.5;
  animation: rainfall linear forwards;
}

@keyframes rainfall {
  from { top: -30px; }
  to   { top: 98vh; }
}

