/* Photo Gallery Styles — matches strickstuff.com theme */

/* Layout */
.gallery-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Header / Nav */
.site-header {
  background: #0a1020;
  border-bottom: 1px solid #1f2c45;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.site-nav a {
  color: #b8c7d9;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s;
}
.site-nav a:hover,
.site-nav a.active {
  color: #4fd1c5;
}

/* Breadcrumbs */
.breadcrumbs {
  color: #b8c7d9;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.breadcrumbs a {
  color: #4fd1c5;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: #7ce7d9;
  text-decoration: underline;
}
.breadcrumb-sep {
  margin: 0 0.35rem;
  color: #3a4f6f;
}
.breadcrumb-current {
  color: #e8edf5;
}

/* Search */
.search-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  max-width: 400px;
}
#search-input {
  width: 100%;
  padding: 0.6rem 1rem;
  background: #0f1828;
  border: 1px solid #1f2c45;
  border-radius: 6px;
  color: #e8edf5;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s;
}
#search-input:focus {
  border-color: #4fd1c5;
}
#search-input::placeholder {
  color: #5a6d85;
}
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f1828;
  border: 1px solid #1f2c45;
  border-radius: 0 0 6px 6px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
}
.search-result-group {
  padding: 0.5rem 0;
  border-bottom: 1px solid #1a2540;
}
.search-result-group h4 {
  padding: 0.25rem 1rem;
  color: #4fd1c5;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.search-result-item {
  display: block;
  padding: 0.4rem 1rem;
  color: #b8c7d9;
  text-decoration: none;
  font-size: 0.9rem;
}
.search-result-item:hover {
  background: #131d2f;
  color: #e8edf5;
}

/* Page heading */
.gallery-container h1 {
  color: #e8edf5;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Album Grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.album-card {
  background: #0f1828;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid #1f2c45;
  transition: transform 0.25s, box-shadow 0.25s;
}
.album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px #4fd1c5, 0 4px 16px rgba(79, 209, 197, 0.12);
}
.album-card-cover {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #131d2f;
}
.album-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.album-card:hover .album-card-cover img {
  transform: scale(1.05);
}
.album-card-placeholder {
  width: 100%;
  height: 100%;
  background: #131d2f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.album-card-info {
  padding: 0.4rem 0.6rem;
}
.album-card-info h3 {
  color: #e8edf5;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-card-count {
  color: #b8c7d9;
  font-size: 0.75rem;
}

/* Sort Controls */
.sort-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: #b8c7d9;
  font-size: 0.9rem;
}
.sort-controls label {
  color: #b8c7d9;
}
#sort-select {
  background: #0f1828;
  color: #e8edf5;
  border: 1px solid #1f2c45;
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  margin-left: 0.4rem;
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}
.thumb {
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background: #131d2f;
  transition: transform 0.2s, box-shadow 0.2s;
}
.thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 2px #4fd1c5;
}
.thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.thumb-video .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.thumb-video .play-overlay::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 0 16px 28px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.85);
}

/* Load More */
.load-more-wrapper {
  text-align: center;
  padding: 2rem 0;
}
.load-more-btn {
  background: #0f1828;
  color: #4fd1c5;
  border: 1px solid #4fd1c5;
  border-radius: 6px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}
.load-more-btn:hover {
  background: #131d2f;
  box-shadow: 0 0 0 4px rgba(79, 209, 197, 0.15);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay[hidden] {
  display: none;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #b8c7d9;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: #4fd1c5;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #b8c7d9;
  font-size: 4rem;
  cursor: pointer;
  padding: 1rem;
  z-index: 1001;
  transition: color 0.2s;
  user-select: none;
}
.lightbox-nav:hover {
  color: #4fd1c5;
}
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
}
.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}
.lightbox-video {
  max-width: 90vw;
  max-height: 80vh;
}

.lightbox-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 24, 40, 0.9);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #b8c7d9;
  font-size: 0.85rem;
}
.lightbox-counter {
  color: #e8edf5;
}
.lightbox-exif-toggle {
  background: none;
  border: 1px solid #1f2c45;
  border-radius: 4px;
  color: #4fd1c5;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}
.lightbox-exif-toggle:hover {
  background: #131d2f;
}
.lightbox-exif {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: #b8c7d9;
  font-size: 0.8rem;
}
.lightbox-exif[hidden] {
  display: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid #1f2c45;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #5a6d85;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .album-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .album-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.35rem;
  }
  .lightbox-nav {
    font-size: 2.5rem;
    padding: 0.5rem;
  }
  .lightbox-info {
    flex-wrap: wrap;
    font-size: 0.75rem;
  }
  .lightbox-exif {
    gap: 0.75rem;
  }
}
@media (max-width: 480px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  .search-wrapper {
    max-width: 100%;
  }
  .gallery-container h1 {
    font-size: 1.4rem;
  }
}
