.album-section {
  margin-bottom: 3rem;
}

.title-section {
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  padding: 0.8rem;
  margin: -0.8rem -0.8rem 0.8rem -0.8rem;
  border-radius: 8px;
}

.title-section:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.title-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Georgia', serif;
}

.date-badge {
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Space Mono', monospace;
  align-self: center; /* Keep the date badge aligned with title baseline */
  transition: all 0.3s ease;
}

.title-section:hover h2 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-section:hover .date-badge {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.photos-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.photo-item {
  flex: none;
  width: 300px;
  height: 200px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-item:hover {
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced photo overlay */
.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.8) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 8px;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-info {
  margin-top: auto;
}

.photo-title {
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.photo-meta {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.65rem;
  font-family: 'Space Mono', monospace;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
}

.meta-divider {
  opacity: 0.5;
}

.photo-actions {
  align-self: flex-end;
}

.action-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.action-btn svg {
  width: 14px;
  height: 14px;
}

.photos-container::-webkit-scrollbar {
  height: 6px;
}

.photos-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.photos-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.photos-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .photo-item {
    width: 176px;
    height: 176px;
  }

  .photo-meta {
    font-size: 0.6rem;
  }

  .action-btn {
    width: 24px;
    height: 24px;
  }

  .action-btn svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .photos-container {
    gap: 0.75rem;
  }

  .photo-item {
    width: 160px;
    height: 160px;
  }

  .photo-title {
    font-size: 0.7rem;
  }

  .photo-meta {
    font-size: 0.55rem;
  }
}
