/* -------------------------------------------------------------
 * CSS Variable System & Custom Resets
 * ------------------------------------------------------------- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette - Dark Slate & Electric Royal Purple */
  --bg-primary: #090a0f;
  --bg-secondary: #10121a;
  --bg-card: rgba(22, 25, 37, 0.7);
  --bg-sidebar: rgba(13, 15, 23, 0.85);
  
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --accent-glow: rgba(139, 92, 246, 0.25);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(99, 102, 241, 0.5);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --glass-bg: rgba(15, 23, 42, 0.45);
  --glass-blur: blur(16px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-neon: 0 0 25px rgba(99, 102, 241, 0.15);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  --sidebar-width: 290px;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  height: 100vh;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* -------------------------------------------------------------
 * Layout Structure
 * ------------------------------------------------------------- */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: var(--bg-sidebar);
  backdrop-filter: var(--glass-blur);
  border-right: var(--glass-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition-slow);
}

.sidebar-header {
  padding: 24px;
  border-bottom: var(--border-color) 1px solid;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  color: var(--accent-indigo);
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.brand h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
}

.sidebar-section-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 8px;
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: var(--border-color) 1px solid;
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Main Content Wrapper */
.main-content {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 60%);
}

/* -------------------------------------------------------------
 * Top Action Bar & Controls
 * ------------------------------------------------------------- */
.top-bar {
  height: var(--header-height);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-color) 1px solid;
  background: rgba(9, 10, 15, 0.4);
  backdrop-filter: var(--glass-blur);
  z-index: 10;
}



/* Controls */
.controls-container {
  display: flex;
  align-items: center;
  gap: 24px;
}


.vertical-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
}

.grid-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-group {
  display: flex;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 8px;
  padding: 2px;
}

.grid-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.grid-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.grid-btn.active {
  color: var(--text-primary);
  background: var(--accent-gradient);
  box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------
 * Dynamic Year & Album List Sidebar Navigation
 * ------------------------------------------------------------- */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.year-node {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  transition: background-color var(--transition-normal);
}

.year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-normal);
}

.year-header:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.year-node.expanded .year-header {
  color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.08);
}

.year-arrow {
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}

.year-node.expanded .year-arrow {
  transform: rotate(90deg);
  color: var(--accent-indigo);
}

.albums-list {
  max-height: 0;
  overflow: hidden;
  padding-left: 12px;
  margin-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  transition: max-height var(--transition-slow) ease-out, padding var(--transition-normal);
}

.year-node.expanded .albums-list {
  max-height: 1000px; /* high enough boundary */
  padding: 6px 0 8px 12px;
}

.album-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.album-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  padding-left: 16px;
}

.album-link.active {
  color: var(--text-primary);
  background: var(--accent-gradient);
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* Hierarchical album groups */
.album-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  margin-top: 4px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  user-select: none;
  transition: color var(--transition-fast);
}

.album-group:hover {
  color: var(--text-secondary);
}

.album-group-chevron {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.album-group.collapsed .album-group-chevron {
  transform: rotate(-90deg);
}

.album-group-children {
  padding-left: 12px;
}

.album-child {
  font-size: 0.82rem;
}

/* -------------------------------------------------------------
 * Main Gallery Grid & Content Wrapper
 * ------------------------------------------------------------- */
.gallery-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.gallery-header {
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(15px);
  animation: slideInUp var(--transition-normal) forwards;
}

.album-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.album-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Empty State Styling */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 500px;
  margin: auto;
  color: var(--text-secondary);
}

.empty-icon-wrapper {
  background: var(--bg-card);
  border: var(--glass-border);
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-indigo);
  box-shadow: var(--shadow-sm);
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.15));
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
 * Dynamic Thumbnail Grid Layouts
 * ------------------------------------------------------------- */
.photos-grid {
  display: grid;
  gap: 20px;
  width: 100%;
}

/* Medium Grid Size (Default) */
.photos-grid[data-size="medium"] {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Small Grid Size */
.photos-grid[data-size="small"] {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

/* Large Grid Size */
.photos-grid[data-size="large"] {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* Thumbnail Card Styles */
.photo-card {
  position: relative;
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transform: translateZ(0);
  opacity: 0;
  transform: scale(0.95);
  animation: cardFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.photo-card:hover {
  border-color: var(--accent-indigo);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.photo-card:hover img {
  transform: scale(1.08);
}

/* Overlay hover detail effect */
.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(9, 10, 15, 0.9) 0%, rgba(9, 10, 15, 0.4) 70%, transparent 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  height: 60%;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

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

.photo-filename {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-date {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Sizing specific details */
.photos-grid[data-size="small"] .photo-overlay {
  padding: 8px;
}
.photos-grid[data-size="small"] .photo-filename {
  font-size: 0.75rem;
}
.photos-grid[data-size="small"] .photo-date {
  display: none;
}

/* Video card */
.video-card {
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-icon {
  width: 64px;
  height: 64px;
  background: rgba(99, 102, 241, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal), background var(--transition-normal);
  pointer-events: none;
}

.video-play-icon svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.photo-card:hover .video-play-icon {
  transform: scale(1.1);
  background: var(--accent-indigo);
}

/* Lightbox video element */
.lightbox-video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  display: block;
}

/* Video mini-thumb in lightbox strip */
.video-mini-thumb {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: #1a1a2e;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.video-mini-thumb svg {
  width: 20px;
  height: 20px;
}

.video-mini-thumb:hover,
.video-mini-thumb.active {
  border-color: var(--accent-indigo);
}

/* -------------------------------------------------------------
 * Skeletons & Spinner Animation Loader
 * ------------------------------------------------------------- */
.grid-loader {
  display: grid;
  gap: 20px;
  width: 100%;
}
.grid-loader[data-size="medium"] {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.grid-loader[data-size="small"] {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.grid-loader[data-size="large"] {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.skeleton {
  background: linear-gradient(90deg, #161925 25%, #24283b 50%, #161925 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite linear;
}

.skeleton-card {
  border-radius: 12px;
  aspect-ratio: 1 / 1;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 12px;
  border-radius: 4px;
  width: 80%;
}

.skeleton-text:nth-child(2) {
  width: 60%;
}
.skeleton-text:nth-child(3) {
  width: 70%;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Loading Spiner */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent-indigo);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* -------------------------------------------------------------
 * Immersive Fullscreen Lightbox
 * ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  animation: fadeIn 0.25s ease-out forwards;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(24px) saturate(120%);
  z-index: -1;
}

/* Lightbox header */
.lightbox-header {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(4, 5, 8, 0.8) 0%, transparent 100%);
}

.lightbox-title-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.lightbox-title-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.lightbox-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.lightbox-btn.close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Lightbox main block */
.lightbox-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: relative;
}

.lightbox-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  margin: 0 20px;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: calc(100vh - 250px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: scale(0.97);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease-out;
}

.lightbox-image-container img.loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-image-container .spinner {
  position: absolute;
  pointer-events: none;
}

/* Nav Arrows */
.lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
}

.lightbox-nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lightbox-nav-btn:active {
  transform: scale(0.95);
}

/* Bottom mini-thumbnail strip */
.lightbox-thumbnails-container {
  height: 90px;
  padding: 10px 0 20px 0;
  background: linear-gradient(to top, rgba(4, 5, 8, 0.8) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  width: 100%;
}

.lightbox-thumbnails {
  display: flex;
  gap: 8px;
  max-width: 80%;
  overflow-x: auto;
  padding: 4px;
  scroll-behavior: smooth;
}

.lightbox-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.lightbox-mini-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.4;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.lightbox-mini-thumb:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.lightbox-mini-thumb.active {
  opacity: 1;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
  transform: translateY(-4px) scale(1.05);
}

/* -------------------------------------------------------------
 * UI Micro-Animations & Responsive Transitions
 * ------------------------------------------------------------- */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Toggle hamburger button */
.mobile-toggle {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: var(--glass-border);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  transition: all var(--transition-normal);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.hamburger {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition-fast), top var(--transition-fast);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.mobile-toggle.active .hamburger {
  background: transparent;
}
.mobile-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.mobile-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

/* -------------------------------------------------------------
 * Media Queries for Full Responsiveness
 * ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .top-bar {
    padding: 0 24px;
  }
  .gallery-wrapper {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: none;
  }
  
  .sidebar.active {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .sidebar-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  
  .top-bar {
    padding-left: 74px; /* Space for the floating toggle button */
  }
  
  .controls-container {
    gap: 12px;
  }
  
  
  .vertical-divider {
    display: none;
  }
  
  .gallery-wrapper {
    padding: 20px;
  }
  
  .album-title {
    font-size: 1.6rem;
  }
  
  .lightbox-content {
    padding: 0 15px;
  }
  
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
  }
  
  .lightbox-image-container {
    margin: 0 5px;
  }
}

@media (max-width: 480px) {
  
  .top-bar {
    padding-right: 12px;
  }
  
  .grid-controls {
    display: none; /* Hide size controls on tiny phone screens */
  }
  
  .lightbox-header {
    padding: 12px 15px;
  }
  
  .lightbox-title-info h4 {
    font-size: 0.9rem;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .lightbox-btn {
    width: 32px;
    height: 32px;
  }
  
  .lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(4, 5, 8, 0.6);
  }
  
  .lightbox-nav-btn.prev {
    left: 15px;
  }
  
  .lightbox-nav-btn.next {
    right: 15px;
  }
  
  .lightbox-thumbnails-container {
    height: 75px;
    padding: 5px 0 10px 0;
  }
  
  .lightbox-mini-thumb {
    width: 38px;
    height: 38px;
  }
}
