/* ==========================================================================
   Design Tokens & CSS Reset
   ========================================================================== */
:root {
  --font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  
  /* Dark Theme Tokens (Default) */
  --bg-color: #0b0f19;
  --bg-card: rgba(21, 28, 44, 0.7);
  --bg-card-hover: rgba(30, 41, 64, 0.85);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(99, 102, 241, 0.4);
  
  /* Brand Accent Gradients */
  --primary-glow: #6366f1;
  --secondary-glow: #ec4899;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --accent-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #db2777 100%);
  --tag-bg: rgba(99, 102, 241, 0.12);
  --tag-border: rgba(99, 102, 241, 0.25);
  --tag-text: #818cf8;
  
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.4);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Tokens */
[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-sub: #334155;
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-hover: rgba(99, 102, 241, 0.4);

  --tag-bg: rgba(99, 102, 241, 0.08);
  --tag-border: rgba(99, 102, 241, 0.2);
  --tag-text: #4f46e5;
  
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* ==========================================================================
   Background Animated Blobs
   ========================================================================== */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: floatBlob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: var(--primary-glow);
}

.blob-2 {
  bottom: -10%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: var(--secondary-glow);
  animation-delay: -7s;
}

.blob-3 {
  top: 40%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: #3b82f6;
  animation-delay: -14s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 15, 25, 0.75);
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition-smooth);
}

[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.85);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-badge {
  transform: scale(1.08) rotate(-4deg);
}

.brand-logo .logo-text span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--border-glass-hover);
  transform: scale(1.05);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 64px 0 40px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--tag-text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Stats Bar */
.stats-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;

  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ==========================================================================
   Controls & Filter Section
   ========================================================================== */
.controls-section {
  padding: 20px 0;
  margin-bottom: 24px;
}

.controls-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.category-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tag-btn:hover {
  border-color: var(--primary-glow);
  color: var(--text-main);
  transform: translateY(-2px);
}

.tag-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Search Box */
.search-box {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary-glow);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ==========================================================================
   Portfolio Grid Section
   ========================================================================== */
.portfolio-section {
  padding-bottom: 80px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Artwork Card */
.artwork-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.artwork-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.25);
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
}

/* Skeleton Loading Shimmer for Card Covers */
.card-media-wrapper.skeleton-loading::before,
.modal-media-item.skeleton-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s infinite;
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] .card-media-wrapper.skeleton-loading::before,
[data-theme="light"] .modal-media-item.skeleton-loading::before {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.06) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

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

.card-media-wrapper.loaded.skeleton-loading::before,
.modal-media-item.loaded.skeleton-loading::before {
  display: none;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease, transform var(--transition-smooth);
}

.card-img.img-loaded,
.card-video {
  opacity: 1;
}

.artwork-card:hover .card-img,
.artwork-card:hover .card-video {
  transform: scale(1.05);
}

.media-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.category-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--tag-bg);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--tag-border);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
}

.view-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--tag-text);
  font-weight: 600;
  transition: gap var(--transition-fast);
}

.artwork-card:hover .view-detail-btn {
  gap: 8px;
}

/* ==========================================================================
   Lightbox Modal (Vertical Scroll Gallery)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  width: 92vw;
  max-width: 1240px;
  height: 88vh;
  max-height: 900px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

/* Left / Vertical Media Scroll Pane */
.modal-media-pane {
  position: relative;
  overflow-y: auto;
  padding: 32px 28px;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

/* Custom Sleek Scrollbar */
.modal-media-pane::-webkit-scrollbar {
  width: 8px;
}
.modal-media-pane::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.modal-media-pane::-webkit-scrollbar-thumb {
  background: var(--primary-glow);
  border-radius: 4px;
}

.modal-media-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: center;
}

.modal-media-item {
  position: relative;
  width: 100%;
  min-height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.modal-media-item img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-media-item img.img-loaded {
  opacity: 1;
}

.modal-media-item video {
  width: 100%;
  max-height: 75vh;
  outline: none;
  background: #000;
  display: block;
}

/* Modal Media Item Loading Spinner */
.media-item-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary-glow);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
  z-index: 2;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.modal-media-item.loaded .media-item-spinner {
  opacity: 0;
  display: none;
}

@keyframes spinnerRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Right Information Pane */
.modal-info-pane {
  padding: 36px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-glass);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 20;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Prominent Back-to-Home Button */
.modal-back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1010;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent-gradient);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
}

.modal-back-btn:hover {
  transform: translateX(-4px) scale(1.04);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.modal-back-btn:active {
  transform: translateX(-2px) scale(0.98);
}

/* Clickable image cursor hint in modal */
.modal-media-item img {
  cursor: zoom-in;
}

.modal-category-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--tag-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
}

.modal-desc-full {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-line;
}

.modal-meta-grid {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.meta-box {
  background: rgba(0, 0, 0, 0.15);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.meta-value {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 500;
}

/* No Results Message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
}

/* ==========================================================================
   Fullscreen Image Zoom Overlay
   ========================================================================== */
.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.zoom-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary-glow);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
  z-index: 2005;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.zoom-overlay.loading .zoom-spinner {
  opacity: 1;
}

.zoom-img {
  max-width: 96vw;
  max-height: 94vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.7);
  animation: zoomIn 0.3s ease;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zoom-img.img-loaded {
  opacity: 1;
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.zoom-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2010;
}

.zoom-close-btn:hover {
  background: rgba(239, 68, 68, 0.5);
  border-color: #ef4444;
  transform: rotate(90deg) scale(1.1);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.site-footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 992px) {
  .modal-overlay {
    padding: 10px;
  }

  .modal-container {
    grid-template-columns: 1fr;
    width: 98vw;
    height: 94vh;
    max-height: 94vh;
    border-radius: var(--radius-md);
  }
  
  .modal-media-pane {
    height: 62vh;
    max-height: 62vh;
    padding: 20px 14px;
    flex-shrink: 0;
  }

  .modal-info-pane {
    border-left: none;
    border-top: 1px solid var(--border-glass);
    padding: 24px 20px;
    flex-grow: 1;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-wrap {
    height: 64px;
  }

  .hero-section {
    padding: 40px 0 24px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  /* Horizontal Swipe for Category Tags on Mobile */
  .category-tags {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-tags::-webkit-scrollbar {
    display: none;
  }

  .search-box {
    width: 100%;
    min-width: 100%;
  }

  /* Mobile Lightbox Optimization: LARGER Media Height & Fuller Width */
  .modal-overlay {
    padding: 6px;
  }

  .modal-container {
    width: 100vw;
    height: 98vh;
    max-height: 98vh;
    border-radius: var(--radius-md);
  }

  .modal-media-pane {
    height: 70vh;
    max-height: 70vh;
    padding: 12px 8px;
    background: rgba(0, 0, 0, 0.7);
  }

  .modal-media-list {
    gap: 16px;
  }

  .modal-media-item {
    border-radius: 8px;
  }

  .modal-media-item img {
    max-height: 70vh;
    width: 100%;
  }

  .modal-media-item video {
    max-height: 65vh;
    width: 100%;
  }

  .modal-info-pane {
    padding: 20px 16px;
  }

  .modal-close-btn {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
  }

  /* Mobile: Prominent Back Button - Even Larger & More Visible */
  .modal-back-btn {
    top: 10px;
    left: 10px;
    padding: 12px 24px;
    font-size: 1rem;
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.55), 0 3px 10px rgba(0, 0, 0, 0.4);
  }

  /* Mobile: Zoom overlay */
  .zoom-close-btn {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-bar {
    gap: 16px;
    padding: 12px 20px;
    width: 100%;
  }

  .stat-num {
    font-size: 1.25rem;
  }
}
