@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Playfair+Display:ital,wght@0,600;0,800;1,400&family=Quicksand:wght@500;600;700&display=swap');

.font-chubby { font-family: 'Fredoka', cursive, sans-serif; }
.font-serif-chic { font-family: 'Playfair Display', serif; }
.font-clean { font-family: 'Quicksand', sans-serif; }

/* ==================== ANIMAÇÕES E TRANSIÇÕES SUAVES ==================== */

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.65), 0 10px 20px -5px rgba(236, 72, 153, 0.45);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 12px rgba(236, 72, 153, 0), 0 15px 25px -5px rgba(236, 72, 153, 0.65);
  }
}
.animate-pulse-glow { animation: pulseGlow 1.8s infinite ease-in-out; }

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}
.animate-gentle { animation: gentleFloat 4s ease-in-out infinite; }

@keyframes wingFlap {
  0%, 100% { transform: scaleX(1) rotate(-8deg); }
  50% { transform: scaleX(-1) rotate(8deg); }
}
.animate-wing { animation: wingFlap 1.2s ease-in-out infinite; }

@keyframes sparkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
}
.animate-sparkle { animation: sparkle 2s infinite ease-in-out; }

@keyframes chew {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1) rotate(4deg); }
}
.animate-chew { animation: chew 0.45s ease-in-out infinite; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.animate-shake { animation: shake 0.4s ease-in-out; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==================== ANIMAÇÕES AMBIENTAIS: BORBOLETAS, BALÕES E PEIXINHOS ==================== */

/* 1. Borboletas passeando pela tela em curva suave */
@keyframes butterflyPath1 {
  0% {
    top: 82%;
    left: -15%;
    transform: rotate(15deg) scale(0.85);
    opacity: 0;
  }
  10% { opacity: 0.95; }
  35% {
    top: 52%;
    left: 72%;
    transform: rotate(-18deg) scale(1.05);
  }
  65% {
    top: 26%;
    left: 18%;
    transform: rotate(20deg) scale(0.95);
  }
  90% { opacity: 0.9; }
  100% {
    top: 3%;
    left: 115%;
    transform: rotate(-12deg) scale(1.1);
    opacity: 0;
  }
}

@keyframes butterflyPath2 {
  0% {
    top: 72%;
    left: 115%;
    transform: scaleX(-1) rotate(20deg) scale(0.8);
    opacity: 0;
  }
  12% { opacity: 0.9; }
  45% {
    top: 44%;
    left: 22%;
    transform: scaleX(-1) rotate(-15deg) scale(1);
  }
  75% {
    top: 18%;
    left: 68%;
    transform: scaleX(-1) rotate(18deg) scale(0.9);
  }
  92% { opacity: 0.85; }
  100% {
    top: -6%;
    left: -15%;
    transform: scaleX(-1) rotate(-22deg) scale(0.85);
    opacity: 0;
  }
}

@keyframes butterflyFlutter {
  0%, 100% { transform: scaleX(1) scaleY(1); }
  50% { transform: scaleX(0.25) scaleY(0.9); }
}

.butterfly-fly-1 {
  position: absolute;
  top: 0;
  left: 0;
  animation: butterflyPath1 16s linear infinite;
  z-index: 25;
  pointer-events: none;
}

.butterfly-fly-2 {
  position: absolute;
  top: 0;
  left: 0;
  animation: butterflyPath2 21s linear infinite;
  animation-delay: 6s;
  z-index: 25;
  pointer-events: none;
}

.butterfly-wings {
  display: inline-block;
  animation: butterflyFlutter 0.22s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 8px rgba(244, 114, 182, 0.45));
}

/* 2. Balões de Festa subindo com balanço lateral */
@keyframes balloonRise1 {
  0% {
    bottom: -15%;
    left: 16%;
    transform: translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.85; }
  35% {
    bottom: 35%;
    transform: translateX(20px) rotate(6deg);
  }
  65% {
    bottom: 70%;
    transform: translateX(-18px) rotate(-6deg);
  }
  85% { opacity: 0.8; }
  100% {
    bottom: 112%;
    transform: translateX(14px) rotate(4deg);
    opacity: 0;
  }
}

@keyframes balloonRise2 {
  0% {
    bottom: -15%;
    right: 16%;
    transform: translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.75; }
  35% {
    bottom: 40%;
    transform: translateX(-24px) rotate(-7deg);
  }
  65% {
    bottom: 75%;
    transform: translateX(18px) rotate(6deg);
  }
  85% { opacity: 0.7; }
  100% {
    bottom: 112%;
    transform: translateX(-12px) rotate(-4deg);
    opacity: 0;
  }
}

.balloon-float-1 {
  position: absolute;
  bottom: 0;
  left: 16%;
  animation: balloonRise1 22s ease-in-out infinite;
  animation-delay: 2s;
  z-index: 22;
  pointer-events: none;
}

.balloon-float-2 {
  position: absolute;
  bottom: 0;
  right: 16%;
  animation: balloonRise2 27s ease-in-out infinite;
  animation-delay: 9s;
  z-index: 22;
  pointer-events: none;
}

/* 3. Peixinho Mágico nadando com ondulação */
@keyframes fishSwim1 {
  0% {
    top: 68%;
    left: -15%;
    transform: rotate(0deg) scale(0.9);
    opacity: 0;
  }
  10% { opacity: 0.85; }
  35% {
    top: 64%;
    left: 32%;
    transform: rotate(-6deg) scale(0.95);
  }
  65% {
    top: 71%;
    left: 66%;
    transform: rotate(8deg) scale(0.9);
  }
  88% {
    top: 66%;
    left: 90%;
    transform: rotate(-4deg) scale(0.95);
    opacity: 0.8;
  }
  100% {
    top: 68%;
    left: 115%;
    transform: rotate(0deg) scale(0.9);
    opacity: 0;
  }
}

@keyframes fishWiggle {
  0%, 100% { transform: scaleY(1) rotate(0deg); }
  50% { transform: scaleY(0.85) rotate(4deg); }
}

.fish-swim-1 {
  position: absolute;
  top: 0;
  left: 0;
  animation: fishSwim1 19s linear infinite;
  animation-delay: 7s;
  z-index: 24;
  pointer-events: none;
}

.fish-wiggle {
  display: inline-block;
  animation: fishWiggle 0.45s ease-in-out infinite alternate;
  filter: drop-shadow(0 3px 6px rgba(56, 189, 248, 0.4));
}

/* 4. Transições de Cenas (Scroll Reveal com Bezier) */
.scene-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scene-reveal.is-in-view,
.scene-reveal:first-of-type {
  opacity: 1;
  transform: translateY(0);
}

/* Divisores Suaves de Transição entre Cenas */
.scene-cloud-divider {
  width: 100%;
  height: 18px;
  background-image: radial-gradient(circle at 10px 18px, transparent 10px, rgba(255, 255, 255, 0.5) 11px);
  background-size: 20px 20px;
  margin: 10px 0;
  opacity: 0.8;
}

/* ==================== SITE INFINITO & CENAS NARRATIVAS ==================== */

.invite-scene {
  position: relative;
  scroll-margin-top: 54px;
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Divisor curvo entre cenas */
.scene-divider {
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

/* DOCK FLUTUANTE DE NAVEGAÇÃO ENTRE CENAS */
.scene-dock {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  padding: 5px 8px;
  border-radius: 9999px;
  box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 92%;
  overflow-x: auto;
}

.scene-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 4px 6px;
  border-radius: 12px;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.scene-dock-btn.is-active {
  color: #ffffff;
  background: rgba(236, 72, 153, 0.9);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
  transform: translateY(-2px) scale(1.05);
}

/* Linha do tempo / Milestones da história */
.timeline-track {
  position: relative;
  padding-left: 20px;
}
.timeline-track::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  background: linear-gradient(180deg, #f472b6, #fb7185, #fbbf24);
  border-radius: 9999px;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #ffffff;
  border: 3px solid #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

/* Barra de progresso do scroll do site infinito */
.scroll-progress-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #ec4899, #f59e0b, #10b981, #6366f1);
  z-index: 50;
  transition: width 0.1s linear;
}

/* ==================== FUNDOS DOS MODELOS & TEMAS ==================== */

.bg-theme-borboletas {
  background: linear-gradient(180deg, #fff1f2 0%, #fdf2f8 50%, #fffbeb 100%);
}
.bg-theme-ursinha {
  background: linear-gradient(180deg, #fffbeb 0%, #fff1f2 50%, #fce7f3 100%);
}
.bg-theme-jardim {
  background: linear-gradient(180deg, #ecfdf5 0%, #fdf2f8 55%, #fff1f2 100%);
}
.bg-theme-sereia {
  background: radial-gradient(circle at 85% 20%, rgba(192, 132, 252, 0.25), transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(13, 148, 136, 0.22), transparent 50%),
              linear-gradient(180deg, #f0fdfa 0%, #faf5ff 50%, #ecfeff 100%);
}
.bg-theme-princesas {
  background: radial-gradient(circle at 15% 15%, rgba(251, 113, 133, 0.25), transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(217, 119, 6, 0.2), transparent 50%),
              linear-gradient(180deg, #fff1f2 0%, #fffbeb 50%, #fdf2f8 100%);
}
.bg-theme-circo {
  background: repeating-linear-gradient(
    90deg,
    #fff1f2 0px, #fff1f2 22px,
    #fffbeb 22px, #fffbeb 44px,
    #eff6ff 44px, #eff6ff 66px
  );
}

/* Infantil Meninos & Geek */
.bg-theme-spider {
  background: radial-gradient(circle at 10% 10%, rgba(220, 38, 38, 0.22), transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(37, 99, 235, 0.22), transparent 45%),
              linear-gradient(180deg, #fef2f2 0%, #eff6ff 50%, #f8fafc 100%);
}
.bg-theme-mario {
  background: radial-gradient(circle at 85% 15%, rgba(250, 204, 21, 0.35), transparent 40%),
              radial-gradient(circle at 15% 85%, rgba(225, 29, 72, 0.22), transparent 45%),
              linear-gradient(180deg, #eff6ff 0%, #ecfdf5 50%, #fefce8 100%);
}
.bg-theme-vingadores {
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.28), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.32), transparent 50%),
              linear-gradient(180deg, #0f172a 0%, #1e1b4b 60%, #090d16 100%);
}
.bg-theme-mickey {
  background: radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.18), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.2), transparent 45%),
              linear-gradient(180deg, #fffbeb 0%, #fff1f2 50%, #f8fafc 100%);
}
.bg-theme-dinossauro {
  background: radial-gradient(circle at 15% 15%, rgba(34, 197, 94, 0.25), transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(180, 83, 9, 0.18), transparent 50%),
              linear-gradient(180deg, #f0fdf4 0%, #fefce8 50%, #f7fee7 100%);
}
.bg-theme-astronauta {
  background: radial-gradient(circle at 75% 20%, rgba(99, 102, 241, 0.38), transparent 45%),
              radial-gradient(circle at 25% 75%, rgba(6, 182, 212, 0.28), transparent 50%),
              linear-gradient(180deg, #090d16 0%, #1e1b4b 55%, #0f172a 100%);
}

/* Adulto & Balada */
.bg-theme-dark {
  background: radial-gradient(circle at 50% 10%, rgba(234, 179, 8, 0.25), transparent 50%),
              radial-gradient(circle at 80% 90%, rgba(168, 85, 247, 0.15), transparent 45%),
              linear-gradient(180deg, #09090b 0%, #18181b 50%, #09090b 100%);
}
.bg-theme-boteco {
  background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.25), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(234, 179, 8, 0.2), transparent 50%),
              linear-gradient(180deg, #fffbeb 0%, #fef3c7 50%, #fefce8 100%);
}
.bg-theme-neon {
  background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.38), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.38), transparent 50%),
              linear-gradient(180deg, #030712 0%, #0f172a 50%, #030712 100%);
}
.bg-theme-minimalista {
  background: linear-gradient(180deg, #fdfbf7 0%, #f7f3ea 50%, #f5efe6 100%);
}

/* Maturidade, Bodas & Clássico */
.bg-theme-ouro {
  background: radial-gradient(circle at 50% 15%, rgba(202, 138, 4, 0.3), transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(136, 19, 55, 0.15), transparent 45%),
              linear-gradient(180deg, #fefce8 0%, #fffbeb 50%, #fefce8 100%);
}
.bg-theme-prata {
  background: radial-gradient(circle at 50% 15%, rgba(148, 163, 184, 0.32), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(2, 132, 199, 0.15), transparent 45%),
              linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
}
.bg-theme-vintage {
  background: radial-gradient(circle at 20% 20%, rgba(180, 83, 9, 0.18), transparent 45%),
              linear-gradient(180deg, #fef3c7 0%, #fdf8eb 50%, #fef3c7 100%);
}
.bg-theme-floral {
  background: radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.18), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(190, 24, 93, 0.18), transparent 45%),
              linear-gradient(180deg, #faf5ff 0%, #fff1f2 50%, #fdf4ff 100%);
}
.bg-theme-ruan {
  background-color: #fffdfa;
  background-image:
    radial-gradient(#38bdf8 3px, transparent 3px),
    radial-gradient(#f43f5e 3.5px, transparent 3.5px),
    radial-gradient(#eab308 3px, transparent 3px),
    radial-gradient(#22c55e 3px, transparent 3px),
    radial-gradient(#a855f7 2.5px, transparent 2.5px);
  background-size: 80px 80px;
  background-position: 0 0, 40px 30px, 20px 60px, 60px 10px, 10px 40px;
}
.bg-theme-faustino {
  background: repeating-linear-gradient(
    90deg,
    #bae6fd 0px, #bae6fd 18px,
    #fbcfe8 18px, #fbcfe8 36px,
    #fef08a 36px, #fef08a 54px,
    #fecaca 54px, #fecaca 72px,
    #bbf7d0 72px, #bbf7d0 90px
  );
}
.bg-theme-sara {
  background-color: #fbf7ee;
  background-image: radial-gradient(#d6c7b2 0.8px, transparent 0.8px);
  background-size: 16px 16px;
}

.bg-theme-aquarela {
  background: radial-gradient(circle at 15% 15%, rgba(254, 205, 211, 0.45), transparent 45%),
              radial-gradient(circle at 85% 25%, rgba(254, 240, 138, 0.4), transparent 40%),
              radial-gradient(circle at 50% 85%, rgba(251, 207, 232, 0.45), transparent 50%),
              linear-gradient(180deg, #fffafb 0%, #fff5f8 50%, #fffaf5 100%);
}

.bg-theme-ceu {
  background-color: #f8fafc;
  background-image:
    radial-gradient(#e0e7ff 1.5px, transparent 1.5px),
    radial-gradient(#fbcfe8 1.5px, transparent 1.5px),
    linear-gradient(180deg, #eff6ff 0%, #fdf2f8 50%, #fffbeb 100%);
  background-size: 36px 36px, 48px 48px, 100% 100%;
}

/* ==================== MOLDURAS E ENQUADRAMENTO ==================== */

.frame-sticker {
  border-radius: 9999px;
  background: #ffffff;
  padding: 6px;
  filter: drop-shadow(0 14px 22px rgba(236, 72, 153, 0.22)) drop-shadow(0 4px 6px rgba(0,0,0,0.06));
}

.frame-circle {
  border-radius: 9999px;
  background: linear-gradient(135deg, #fbcfe8 0%, #fed7aa 50%, #f472b6 100%);
  padding: 6px;
  box-shadow: 0 12px 28px -6px rgba(236, 72, 153, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.frame-polaroid {
  border-radius: 18px;
  background: #ffffff;
  padding: 8px 8px 24px 8px;
  box-shadow: 0 16px 30px -8px rgba(0,0,0,0.15), 0 4px 10px rgba(0,0,0,0.05);
  transform: rotate(-1.5deg);
}

.frame-feathered {
  border-radius: 32px;
  overflow: hidden;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 60%, rgba(255,241,242,0.6) 100%);
  padding: 4px;
  box-shadow: 0 14px 28px rgba(244, 114, 182, 0.2);
}

.frame-scallop {
  border-radius: 28px;
  border: 3px solid #f472b6;
  outline: 4px dashed #fb7185;
  outline-offset: -8px;
  background: #ffffff;
  padding: 8px;
}

.photo-softened {
  filter: saturate(106%) contrast(102%) drop-shadow(0 4px 8px rgba(0,0,0,0.08));
  image-rendering: auto;
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
* { -webkit-tap-highlight-color: transparent; }

.editor-section-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: .375rem;
  padding: .65rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.editor-section-nav .esub-btn {
  border: 1px solid transparent;
  border-radius: .75rem;
  padding: .625rem .75rem;
  min-height: 2.75rem;
  cursor: pointer;
  color: #475569;
  font-size: .8125rem;
  font-weight: 700;
  text-align: left;
}

.editor-section-nav .esub-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.editor-section-nav .esub-btn[aria-pressed="true"] {
  background: #fdf2f8;
  border-color: #f9a8d4;
  color: #9d174d;
}

.editor-section-nav .esub-btn:focus-visible,
.editor-extra-options summary:focus-visible {
  outline: 2px solid #be185d;
  outline-offset: 2px;
}

.editor-extra-options {
  padding: .375rem .65rem;
  border-bottom: 1px solid #e2e8f0;
}

.editor-extra-options summary {
  padding: .5rem;
  cursor: pointer;
  border-radius: .5rem;
  color: #475569;
  font-size: .8125rem;
  font-weight: 700;
}

.editor-section-nav-extra {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  padding: .125rem .375rem .5rem;
  background: white;
  border-bottom: 0;
}

.gif-studio-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: .5rem;
}

.gif-studio-steps li {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.5rem;
  padding: .5rem .75rem;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  color: #475569;
  background: white;
  font-size: .8125rem;
  font-weight: 700;
}

.gif-studio-steps li[aria-current="step"] {
  border-color: #f9a8d4;
  background: #fdf2f8;
  color: #9d174d;
}

.gif-studio-steps span {
  font-variant-numeric: tabular-nums;
}

.gif-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8rem), 1fr));
  gap: .625rem;
}

.gif-storyboard {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .25rem;
}

.gif-asset {
  display: grid;
  min-width: 0;
  gap: .375rem;
  padding: .375rem;
  border: 1px solid #cbd5e1;
  border-radius: .75rem;
  color: #334155;
  background: #f8fafc;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}

.gif-storyboard .gif-asset {
  flex: 0 0 5rem;
}

.gif-asset[aria-pressed="true"] {
  border-color: #db2777;
  background: #fdf2f8;
  color: #9d174d;
}

.gif-asset img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: .5rem;
  background: white;
  object-fit: cover;
}

.gif-asset span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gif-canvas {
  display: block;
  width: min(100%, 32.5rem);
  aspect-ratio: 1;
  border: 1px solid #cbd5e1;
  border-radius: .75rem;
}

.gif-canvas[hidden] {
  display: none;
}

#gif-canvas {
  cursor: grab;
  touch-action: none;
}

#gif-canvas:active {
  cursor: grabbing;
}

#gif-canvas[data-picking] {
  cursor: crosshair;
}

.gif-transparency {
  background: repeating-conic-gradient(#e2e8f0 0% 25%, white 0% 50%) center / 20px 20px;
}

.gif-primary, .gif-secondary {
  border: 1px solid transparent;
  border-radius: .75rem;
  padding: .625rem .875rem;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}

.gif-primary {
  background: #be185d;
  color: white;
}

.gif-secondary {
  border-color: #cbd5e1;
  background: white;
  color: #334155;
}

.gif-secondary[aria-pressed="true"] {
  border-color: #db2777;
  color: #9d174d;
}

.gif-primary:disabled, .gif-secondary:disabled {
  opacity: .55;
  cursor: default;
}

.gif-primary:focus-visible, .gif-secondary:focus-visible, .gif-asset:focus-visible, #gif-canvas:focus-visible {
  outline: 2px solid #be185d;
  outline-offset: 2px;
}


.gif-library-card {
  min-width: 0;
  display: grid;
  gap: .25rem;
}

.photo-enlarge {
  padding: .25rem;
  border-radius: .5rem;
  color: #475569;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}

.photo-enlarge:hover {
  background: #f1f5f9;
  color: #9d174d;
}

.photo-library-thumb {
  cursor: zoom-in;
}

.photo-library-thumb:focus-visible, .photo-enlarge:focus-visible {
  outline: 2px solid #be185d;
  outline-offset: 2px;
}

.photo-viewer {
  width: min(calc(100% - 1.5rem), 56rem);
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  padding: .875rem;
  background: white;
  color: #0f172a;
}

.photo-viewer::backdrop {
  background: rgb(15 23 42 / .82);
}

.photo-viewer-header, .photo-viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.photo-viewer-header h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .875rem;
  font-weight: 700;
}

.photo-viewer img {
  display: block;
  width: 100%;
  height: min(65dvh, 38rem);
  margin-block: .75rem;
  border-radius: .5rem;
  object-fit: contain;
}

.photo-viewer-footer span {
  color: #475569;
  font-size: .8125rem;
}
