/* 
  Portfolio Central Design System 
  JC Niñonuevo Portfolio
*/

/* ── Helvetica Neue Custom Font Family ── */
@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueThin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueThinItalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueUltraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueUltraLightItalic.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueLightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueRoman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueMediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueBoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueHeavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueHeavyItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueBlack.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueBlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #0f0f0f;
  --border: #1f1f1f;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --accent: #ffffff;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background: var(--text-main);
  color: var(--bg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* Gallery Grid System */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery Item */
.gallery-item {
  transition: transform .4s ease, opacity .4s ease;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
  z-index: 10;
}

.gallery-item img {
  filter: brightness(1);
  transition: filter .4s ease;
  width: 100%;
  height: auto;
  display: block;
}

/* Service & Category Cards */
.service-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Mobile Menu Transitions */
#mobile-menu {
  transition: max-height .4s ease, opacity .4s ease;
}

#mobile-menu.closed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox Styling */
#lightbox,
#video-lightbox {
  background-color: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Lightbox image loading state */
#lightbox-img {
  /* Remove CSS transitions to let GSAP handle animations exclusively */
  will-change: transform, opacity;
}

/* 
   Hide the image immediately while the new source is loading.
   This prevents the 'ghosting' or 'sticking' effect where the 
   previous image remains visible until the new one finishes downloading.
*/
#lightbox-img.lb-loading {
  opacity: 0;
}

/* Immediately stop any lingering animations once the image is ready */
#lightbox-img:not(.lb-loading) {
  animation: none;
}

/* Video & Projects */
.video-card {
  transition: transform 0.4s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

/* Utility: Image Drag & Protection removal side effect */
img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Form Styling */
input,
textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #333;
  transition: all .3s;
}

input:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
  outline: none;
}

/* Section Spacing */
section[id] {
  scroll-margin-top: 64px;
}

@media (min-width: 768px) {
  section[id] {
    scroll-margin-top: 80px;
  }
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* GSAP Prevents Flash */
.gsap-hero-item,
.gsap-header-item,
.gsap-reveal {
  opacity: 0;
}

/* ==========================================================================
   Premium UI/UX Additions
   ========================================================================== */

/* Native Standard Cross-Document View Transitions */
@view-transition {
  navigation: auto;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

::view-transition-old(root) {
  animation: 200ms cubic-bezier(0.4, 0, 0.2, 1) both fade-out;
}

::view-transition-new(root) {
  animation: 250ms cubic-bezier(0.4, 0, 0.2, 1) both fade-in;
}

/* Card Hover Mouse Glare Effect */
.service-card,
.video-card,
#selected-work>div>div {
  position: relative;
  overflow: hidden;
}

.service-card::before,
.video-card::before,
#selected-work>div>div::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.service-card:hover::before,
.video-card:hover::before,
#selected-work>div>div:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Premium Desktop Spacing Optimizations
   (Tightening gaps/padding around horizontal dividers for a cleaner desktop layout,
    strictly leaving the page headers and starting hero body spacings untouched. Grid gaps are untouched.)
   ========================================================================== */
@media (min-width: 1024px) {

  /* Lessen the gap between navigation header and starting hero body (index.html only) */
  section#home {
    padding-top: 3rem !important;
    /* Lessen from 5rem (md:pt-20) */
  }

  section#home>div.w-full {
    padding-top: 1.5rem !important;
    /* Lessen from 5rem (md:py-20) */
  }

  /* Tighten vertical spacing around section divider lines (e.g. Services, About, Selected Work, Contact) */
  section[class*="md:py-24"] {
    padding-top: 3.5rem !important;
    /* Lessen from 6rem (96px) to 3.5rem (56px) around dividers */
    padding-bottom: 3.5rem !important;
    /* Lessen from 6rem (96px) to 3.5rem (56px) around dividers */
  }

  /* Tighten vertical spacing around the footer divider line */
  footer#site-footer[class*="md:py-12"] {
    padding-top: 2rem !important;
    /* Lessen from 3rem (48px) to 2rem (32px) around footer divider */
    padding-bottom: 2rem !important;
    /* Lessen from 3rem (48px) to 2rem (32px) around footer divider */
  }
}

/* Glassmorphic Minimalist Loading Spinner */
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: spinner-spin 0.7s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

@keyframes spinner-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Cinematic Glassmorphic Theater Player Controls */
.video-controls-dashboard {
  background: rgba(15, 15, 15, 0.45);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-control-btn {
  transition: all 0.2s ease;
}

.video-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.video-control-btn:active {
  transform: scale(0.95);
}

/* Custom range slider styling for sleek progress & volume */
.video-slider {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.video-slider:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease;
}

.video-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Cinemagraphic Film Grain Overlay */
.film-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Active Hover Card Embed Iframe styling for the video grid */
.hover-iframe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-iframe-container.active {
  opacity: 1;
}

@media (max-width: 767px) {
  .video-controls-dashboard {
    display: none !important;
  }
}

/* ==========================================================================
   OCD & Fine-Tuned Alignment Rules for Buttons and Badges
   (Nudging text vertically inside custom font pill layouts to counteract
    baseline offsets and ensure absolute geometric centering)
   ========================================================================== */
.pt-\[18px\] {
  padding-top: 18px !important;
}

.pb-\[14px\] {
  padding-bottom: 14px !important;
}

.pt-\[11px\] {
  padding-top: 11px !important;
}

.pb-\[9px\] {
  padding-bottom: 9px !important;
}

.pt-\[13px\] {
  padding-top: 13px !important;
}

.pb-\[11px\] {
  padding-bottom: 11px !important;
}

.pt-\[9px\] {
  padding-top: 9px !important;
}

.pb-\[7px\] {
  padding-bottom: 7px !important;
}

.pt-\[15px\] {
  padding-top: 15px !important;
}

.pb-\[13px\] {
  padding-bottom: 13px !important;
}

/* ============================================================
   AI CHAT WIDGET — DeepSeek V4 Flash
   ============================================================ */
.ai-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Floating launcher button — Liquid Glass */
.ai-chat-launcher {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  position: relative;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.ai-chat-launcher:hover {
  transform: scale(1.08);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 24px rgba(255, 255, 255, 0.15);
}

.ai-chat-launcher.active {
  transform: scale(1);
}

/* Chat panel — Opaque Dark Design */
.ai-chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.75),
    0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: bottom right;
}

.ai-chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #202024;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ai-chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #a1a1aa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #18181b;
  flex-shrink: 0;
}

.ai-chat-header-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ai-chat-header-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.ai-chat-header-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 500;
}

.ai-chat-clear-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.ai-chat-clear-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Messages area */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

.ai-chat-messages::-webkit-scrollbar {
  width: 5px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

/* Message bubbles */
.ai-chat-message {
  display: flex;
  max-width: 85%;
}

.ai-chat-message-user {
  align-self: flex-end;
  justify-content: flex-end;
}

.ai-chat-message-assistant {
  align-self: flex-start;
  justify-content: flex-start;
}

.ai-chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #fff;
  word-break: break-word;
}

.ai-chat-bubble strong {
  color: #fff;
  font-weight: 700;
}

.ai-chat-bubble em {
  font-style: italic;
}

.ai-chat-bubble code {
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'SF Mono', ui-monospace, monospace;
}

.ai-chat-p {
  margin: 0 0 6px 0;
}

.ai-chat-p:last-child {
  margin-bottom: 0;
}

.ai-chat-list {
  margin: 6px 0 8px 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  list-style-type: disc;
}

.ai-chat-list li {
  line-height: 1.45;
}

.ai-chat-heading {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 4px 0;
}

.ai-chat-bubble a {
  color: #60a5fa;
  text-decoration: underline;
}

.ai-chat-bubble a:hover {
  color: #93c5fd;
}

.ai-chat-message-user .ai-chat-bubble {
  background: #3f3f46;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom-right-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ai-chat-message-assistant .ai-chat-bubble {
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-left-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Loading dots */
.ai-chat-loading {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 14px 18px;
}

.ai-chat-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: ai-chat-bounce 1.2s infinite;
}

.ai-chat-loading span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-chat-loading span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes ai-chat-bounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* Suggestion chips */
.ai-chat-suggestions {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ai-chat-suggestion-chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e4e4e7;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ai-chat-suggestion-chip:hover {
  background: #3f3f46;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 12px rgba(255, 255, 255, 0.1);
}

/* Input area */
.ai-chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #18181b;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ai-chat-input {
  flex: 1;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  resize: none;
  outline: none;
  max-height: 120px;
  transition: border-color 0.2s, background 0.2s;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ai-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.ai-chat-input:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: #3f3f46;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.ai-chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(212, 212, 216, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #18181b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ai-chat-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.35);
}

.ai-chat-send-btn:disabled {
  opacity: 0.5;
  transform: none;
  cursor: not-allowed;
}

/* Responsive: mobile */
@media (max-width: 480px) {
  .ai-chat-widget {
    bottom: 16px;
    right: 16px;
  }

  .ai-chat-panel {
    bottom: 68px;
    height: 520px;
    max-height: calc(100vh - 90px);
  }

  .ai-chat-launcher {
    width: 54px;
    height: 54px;
  }
}

/* ── AI Photo Description Overlays ── */
.photo-desc {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.photo-desc-full {
  display: block;
}

.photo-desc-trigger:hover .photo-desc,
.photo-desc-trigger:focus .photo-desc {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

/* Lightbox description mobile active state */
#lightbox-desc-tooltip.active-mobile-desc {
  opacity: 1 !important;
  pointer-events: auto !important;
}