/* gallery.css - Main styles for the photo gallery */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #121212;
  color: #e0e0e0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2 {
  text-align: center;
  color: #f5f5f5;
  margin-bottom: 20px;
  font-weight: 300;
}

h1 {
  font-size: 2rem;
  margin-top: 30px;
}

h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  position: relative;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.breadcrumbs {
  margin-bottom: 30px;
  padding: 12px 15px;
  background-color: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: #7aa2f7;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #9dc2ff;
}

.folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-gap: 20px;
  margin-bottom: 40px;
}

.folder-item {
  background-color: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s;
}

.folder-item:hover {
  transform: translateY(-5px);
  background-color: #2a2a2a;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.folder-item a {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: #e0e0e0;
}

.folder-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 15px;
  color: #7aa2f7;
}

.folder-name {
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 15px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  aspect-ratio: 3/2;
  display: block;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.empty-message {
  text-align: center;
  padding: 50px 0;
  color: #777;
  background-color: #1e1e1e;
  border-radius: 8px;
  margin-top: 30px;
}

/* List view toggle */
.gallery.list-view {
  grid-template-columns: 1fr;
}

.gallery.list-view .gallery-item {
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  max-height: 200px;
}

.gallery.list-view .gallery-item img {
  width: 300px;
  height: 200px;
  flex-shrink: 0;
}

/* Custom page styles */
.custom-page {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 30px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.custom-page h2 {
  margin-top: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 15px;
}

.custom-page p {
  line-height: 1.6;
}

.custom-page a {
  color: #7aa2f7;
  text-decoration: none;
  transition: color 0.2s;
}

.custom-page a:hover {
  color: #9dc2ff;
  text-decoration: underline;
}