/* Flickr Archive Styles
   Simple, elegant display for archived photos
   No JavaScript - pure CSS */

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

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
}

/* Container */
.container {
  max-width: 900px;
  margin: 5px auto 0 auto;
  padding: 0 1.5rem 2rem 1.5rem;
}

/* Photo Page */
.photo-page {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 2rem;
}

/* Title */
h1 {
  font-weight: 400;
  font-size: 1.75rem;
  color: #222;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Photo container */
.photo-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.photo-container img {
  max-width: 100%;
  width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 2px;
}

/* Caption/Description */
.caption {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 1.5rem;
  padding: 0 3rem;
  text-align: left;
}

.caption a {
  color: #2563eb;
  text-decoration: none;
}

.caption a:hover {
  text-decoration: underline;
}

/* Album navigation */
.album-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.album-nav a {
  color: #666;
  text-decoration: none;
}

.album-nav a:hover {
  color: #2563eb;
}

.album-nav .album-link {
  color: #666;
  text-decoration: none;
}

.album-nav .album-link:hover {
  color: #2563eb;
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 1.5rem 0;
}

/* Metadata - two column layout */
.metadata {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
}

.metadata-left {
  text-align: left;
}

.metadata-right {
  text-align: right;
}

.metadata .author {
  color: #444;
}

.metadata .license a {
  color: #666;
  text-decoration: none;
}

.metadata .license a:hover {
  text-decoration: underline;
}

.metadata .date {
  color: #444;
}

.metadata .camera {
  color: #888;
}

/* Album Page */
.album-page {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 2rem;
}

.album-description {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.album-description a {
  color: #2563eb;
  text-decoration: none;
}

/* Thumbnail grid */
.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem 1rem;
  margin-top: 1.5rem;
}

.thumbnail-grid .thumb {
  display: block;
  text-decoration: none;
}

.thumbnail-grid .thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.thumbnail-grid .thumb:hover img {
  opacity: 0.85;
}

.thumbnail-grid .thumb-title {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.3rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumbnail-grid .thumb:hover .thumb-title {
  color: #2563eb;
}

/* Footer */
.archive-footer {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  text-align: center;
}

.archive-footer a {
  color: #888;
  text-decoration: none;
}

.archive-footer a:hover {
  text-decoration: underline;
}

/* Phone-size devices: full-width images */
@media (max-width: 600px) {
  body {
    background: #fff;
  }

  .container {
    padding: 0;
    margin: 0;
  }

  .photo-page {
    padding: 1rem;
    box-shadow: none;
    border-radius: 0;
  }

  .photo-container img {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
    max-width: none;
  }

  .caption {
    padding: 0;
  }

  .thumbnail-grid {
    grid-template-columns: 1fr;
  }
}
