* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.1rem;
  color: #666;
}

.back-link {
  display: inline-block;
  text-decoration: none;
  color: #0066cc;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.back-link:hover {
  color: #0052a3;
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  display: block;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.gallery-item-info {
  padding: 12px 16px;
  background: white;
}

.gallery-item-info .date {
  font-size: 0.9rem;
  color: #666;
}

/* Photo Detail Page */
.photo-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.photo-detail {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.full-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 20px;
}

.photo-info {
  margin-bottom: 30px;
  text-align: center;
}

.photo-date {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}

.photo-filename {
  font-size: 0.9rem;
  color: #666;
  font-family: 'Courier New', monospace;
}

/* Navigation */
.photo-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.nav-button {
  flex: 1;
  padding: 12px 24px;
  border-radius: 6px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-button.prev,
.nav-button.next {
  background-color: #0066cc;
  color: white;
}

.nav-button.prev:hover,
.nav-button.next:hover {
  background-color: #0052a3;
  transform: translateY(-2px);
}

.nav-button.disabled {
  background-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .photo-detail {
    padding: 20px;
  }
  
  .photo-navigation {
    flex-direction: column;
  }
  
  .nav-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 250px;
  }
}
