/* =========================================================
   TOKENS
   ========================================================= */
:root{
  --paper:        #F3EEE5;
  --paper-dark:   #E7DCC4;
  --paper-deep:   #DDCFAE;
  --ink-red:      #7A2E2E;
  --ink-red-soft: #9C4A44;
  --ink-gold:     #C9A15A;
  --ink-navy:     #2C3B52;
  --ink-sage:     #8FA593;
  --wax:          #B23A3A;
  --wax-dark:     #7E2424;
  --charcoal:     #2A2622;
  --charcoal-soft:#4A443B;
  --cream-off:    #FBF7EE;

  --font-display: 'Cormorant Garamond', serif;
  --font-hand:    'Caveat', cursive;
  --font-stamp:   'Special Elite', monospace;
  --font-body:    'Work Sans', sans-serif;

  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-pop: cubic-bezier(.34,1.56,.64,1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*,*::before,*::after{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  overflow-x: hidden;
  position: relative;
}
h1,h2{ font-family: var(--font-display); margin: 0; }
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
input{ font-family: inherit; }
.hidden{ display: none !important; }
a{ color: inherit; text-decoration: none; }

::selection{ background: var(--ink-gold); color: var(--cream-off); }

:focus-visible{
  outline: 2px solid var(--ink-navy);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================
   PAPER TEXTURE + CULTURAL BACKGROUND LAYERS
   ========================================================= */
.paper-texture{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 15% 10%, rgba(255,255,255,.5), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(0,0,0,.05), transparent 55%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.015) 0px, rgba(0,0,0,.015) 1px, transparent 1px, transparent 2px);
  box-shadow: inset 0 0 18vw rgba(42,38,34,.10);
}

.iznik-layer{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../assets/iznik-pattern.svg');
  background-size: 220px 220px;
  background-repeat: repeat;
  opacity: .05;
  mix-blend-mode: multiply;
}

.istanbul-cat-layer{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../assets/cats_istanbul_all_white_transparent.png');
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  opacity: .16;
  mix-blend-mode: multiply;
}

.main-app{ position: relative; z-index: 1; }
#login-screen{ position: relative; z-index: 1; }
.popup-overlay{ z-index: 50; }
.photo-modal{ z-index: 60; }

/* =========================================================
   SCREENS (generic)
   ========================================================= */
.screen{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* =========================================================
   SCREEN 1 — LOGIN (deliberately jarring — no carnet vibes here)
   ========================================================= */
.login-screen{
  background: #121110;
  overflow: hidden;
}
.login-screen::before{
  /* faint scanline / static texture for a little chaos */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0px, rgba(255,255,255,.025) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}

.login-form{
  position: relative;
  width: min(92vw, 480px);
  text-align: center;
}

.login-title{
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2.4rem, 10vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #F5F0E4;
  margin-bottom: 40px;
  animation: title-jitter 4.4s ease-in-out infinite;
}
@keyframes title-jitter{
  0%, 88%, 100%{ transform: rotate(0deg) translate(0,0); }
  90%{ transform: rotate(-1.4deg) translate(-2px,1px); }
  92%{ transform: rotate(1.2deg) translate(2px,-1px); }
  94%{ transform: rotate(-.6deg) translate(-1px,0); }
  96%{ transform: rotate(0deg) translate(0,0); }
}

.lock-row{
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid rgba(245,240,228,.3);
  padding-bottom: 12px;
  transition: border-color .3s;
}
.lock-row:focus-within{ border-color: var(--wax); }

#lock-icon{ color: #F5F0E4; flex-shrink: 0; transition: transform .4s var(--ease-pop), color .3s; }
#lock-icon.unlocked #lock-shackle{ transform: translateY(-3px) rotate(-8deg); }
#lock-icon.unlocked{ color: var(--ink-sage); }

#password-input{
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: #F5F0E4;
  outline: none;
  letter-spacing: .04em;
}
#password-input::placeholder{ color: rgba(245,240,228,.4); }

.btn-enter{
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--wax);
  color: #F5F0E4;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 6px 16px -6px rgba(178,58,58,.7);
  transition: transform .25s var(--ease-out), background .25s;
}
.btn-enter:hover{ transform: translateY(-2px) scale(1.06); background: var(--wax-dark); }
.btn-enter:active{ transform: translateY(0) scale(.96); }

#login-error{
  margin-top: 16px;
  font-size: .85rem;
  font-style: italic;
  color: var(--wax);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s, transform .25s;
}
#login-error.show{ opacity: 1; transform: translateY(0); }

.shake{ animation: shake .35s; }
@keyframes shake{
  0%,100%{ transform: translateX(0); }
  20%{ transform: translateX(-7px); }
  40%{ transform: translateX(6px); }
  60%{ transform: translateX(-4px); }
  80%{ transform: translateX(3px); }
}

/* =========================================================
   ÉCRAN 2 — POPUP ANNIVERSAIRE
   ========================================================= */
.popup-overlay{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(42,38,34,.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.popup-overlay.visible{ opacity: 1; visibility: visible; }

.popup-overlay.is-reopen .popup-continue{
  display: none;
}

.popup-overlay:not(.is-reopen) .popup-close{
  display: none;
}

.popup-overlay.is-reopen .popup-skip{
  display: none;
}

.popup-card{
  position: relative;
  width: min(92vw, 480px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 58px 42px 40px;
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent 37px, rgba(122,46,46,.07) 38px),
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 30%),
    linear-gradient(180deg, #FBF7EE 0%, #F6EFE2 100%);
  border: none;
  clip-path: polygon(0.0% -0.4%, 6.25% -0.8%, 12.5% 0.3%, 18.75% -0.9%, 25.0% 0.1%, 31.25% -0.3%, 37.5% -1.0%, 43.75% 0.0%, 50.0% -1.0%, 56.25% -0.2%, 62.5% -1.0%, 68.75% -0.9%, 75.0% -0.2%, 81.25% 0.7%, 87.5% -0.8%, 93.75% -0.6%, 100.0% 0.3%, 100.0% 101.0%, 93.75% 99.9%, 87.5% 100.3%, 81.25% 99.7%, 75.0% 99.8%, 68.75% 100.7%, 62.5% 99.3%, 56.25% 100.4%, 50.0% 100.8%, 43.75% 100.8%, 37.5% 100.5%, 31.25% 99.2%, 25.0% 101.0%, 18.75% 99.0%, 12.5% 100.2%, 6.25% 99.8%, 0.0% 99.0%);
  box-shadow:
    0 30px 60px -24px rgba(0,0,0,.42),
    0 2px 0 rgba(255,255,255,.45) inset;
  transform: rotate(-.7deg) scale(.94) translateY(10px);
  transition: transform .4s var(--ease-pop);
}
.popup-card::before{
  content: "";
  position: absolute;
  top: 18px;
  left: 24px;
  width: 68px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(201,161,90,.55), rgba(201,161,90,.28));
  box-shadow: 0 2px 8px rgba(42,38,34,.08);
  transform: rotate(-8deg);
}
.popup-card::after{
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 54px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(122,46,46,.12), rgba(122,46,46,.04));
  transform: rotate(9deg);
}
.popup-overlay.visible .popup-card{ transform: rotate(0deg) scale(1) translateY(0); }

.popup-skip{
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: rgba(245,240,228,.55);
  font-family: var(--font-stamp);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .7;
  cursor: pointer;
  z-index: 2;
  transition: opacity .2s, color .2s, transform .2s;
}

.popup-skip:hover{
  opacity: 1;
  color: var(--cream-off);
  transform: translateX(-50%) translateY(-1px);
}

.popup-skip:active{
  transform: translateX(-50%) translateY(0);
}

.popup-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(122,46,46,.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201,161,90,.14), rgba(201,161,90,.05));
  color: var(--ink-red);
  font-family: var(--font-stamp);
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 8px 14px -10px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .25s var(--ease-pop), background .2s, color .2s, box-shadow .2s;
  z-index: 2;
}

.popup-close:hover{
  transform: rotate(8deg) scale(1.06);
  background: rgba(122,46,46,.1);
  color: var(--ink-red-soft);
  box-shadow: 0 12px 18px -12px rgba(0,0,0,.45);
}

.popup-close:active{
  transform: rotate(0deg) scale(.96);
}

.popup-stamp{
  display: inline-block;
  font-family: var(--font-stamp);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--ink-red);
  border: 1.5px solid var(--ink-red);
  padding: 5px 12px;
  border-radius: 2px;
  transform: rotate(-3deg);
  opacity: .85;
  margin-bottom: 22px;
}

.popup-text p{
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--charcoal);
  margin-bottom: 16px;
  opacity: 0;
  filter: blur(3px);
  transform: translateY(6px);
  animation: ink-write .7s var(--ease-out) forwards;
}
.popup-text p:nth-of-type(1){ animation-delay: .15s; }
.popup-text p:nth-of-type(2){ animation-delay: .55s; }
.popup-text p:nth-of-type(3){ animation-delay: 1.05s; }
.popup-text p:nth-of-type(4){ animation-delay: 1.45s; }

@keyframes ink-write{
  to{ opacity: 1; filter: blur(0); transform: translateY(0); }
}

.popup-signature{
  font-family: var(--font-hand);
  font-size: 2rem !important;
  color: var(--ink-red);
  margin-top: 6px;
}

.popup-continue{
  margin-top: 10px;
  padding: 14px 18px;
  border: 1.5px solid rgba(122,46,46,.22);
  background: linear-gradient(180deg, rgba(201,161,90,.12), rgba(201,161,90,.06));
  color: var(--ink-red);
  border-radius: 999px;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: 0;
  opacity: 0;
  animation: ink-write .6s var(--ease-out) forwards;
  animation-delay: 1.9s;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 10px 18px -12px rgba(0,0,0,.35);
}
.popup-continue:hover{ background: rgba(122,46,46,.12); color: var(--ink-red-soft); transform: translateY(-2px) rotate(-1deg); }

.popup-continue:active{ transform: translateY(0) rotate(0deg) scale(.98); }

@media (max-width: 600px){
  .popup-card{ padding: 48px 22px 28px; }
  .popup-continue{ font-size: 1.18rem; }
  .popup-skip{ bottom: 10px; }
}

/* =========================================================
   SCREEN 2.5 — SURPRISE REVEAL (gift explosion + ticket)
   ========================================================= */
.surprise-screen{
  position: fixed;
  inset: 0;
  z-index: 52;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 40%, #2a2420 0%, #16130f 75%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}
.surprise-screen.visible{ opacity: 1; visibility: visible; }

.surprise-inner{
  width: min(92vw, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.surprise-line{
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  color: var(--cream-off);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  margin-bottom: 34px;
}
.surprise-line.show{ opacity: 1; transform: translateY(0); }

.surprise-line-2{
  margin-top: 4px;
  margin-bottom: 0;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
}

/* ---------- gift box ---------- */
.gift-box{
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 6px;
  opacity: 0;
  transform: scale(.35) translateY(20px);
  transition: opacity .5s var(--ease-pop), transform .5s var(--ease-pop);
}
.gift-box.show{ opacity: 1; transform: scale(1) translateY(0); }
.gift-box.show:not(.explode){ animation: box-wiggle 1.1s ease-in-out .6s 2; }
@keyframes box-wiggle{
  0%, 100%{ transform: scale(1) rotate(0deg); }
  25%{ transform: scale(1) rotate(-4deg); }
  75%{ transform: scale(1) rotate(4deg); }
}

.gift-flash{
  position: absolute;
  inset: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,161,90,.6), transparent 70%);
  opacity: 0;
  transform: scale(.2);
  pointer-events: none;
}
.gift-box.explode .gift-flash{ animation: flash-pop .7s ease-out forwards; }
@keyframes flash-pop{
  0%{ opacity: .95; transform: scale(.2); }
  100%{ opacity: 0; transform: scale(2.8); }
}

.gift-box-body{
  position: absolute;
  left: 8%; right: 8%; bottom: 0;
  height: 62%;
  background: linear-gradient(135deg, var(--ink-red-soft), var(--ink-red));
  border-radius: 4px;
  box-shadow: 0 22px 40px -16px rgba(0,0,0,.55);
  transition: transform .6s .15s var(--ease-out), opacity .6s .15s;
}
.gift-box.explode .gift-box-body{ transform: scale(.82); opacity: 0; }

.gift-box-lid{
  position: absolute;
  left: 2%; right: 2%;
  top: 32%;
  height: 20%;
  background: linear-gradient(135deg, var(--ink-red), var(--ink-red-soft));
  border-radius: 4px;
  box-shadow: 0 10px 18px -8px rgba(0,0,0,.4);
  transition: transform .7s var(--ease-out), opacity .7s;
}
.gift-box.explode .gift-box-lid{ transform: translateY(-160px) rotate(-40deg); opacity: 0; }

.gift-ribbon-v{
  position: absolute;
  left: calc(50% - 8px);
  top: 0; bottom: 0;
  width: 16px;
  background: var(--ink-gold);
  transition: transform .8s var(--ease-out), opacity .8s;
}
.gift-box.explode .gift-ribbon-v{ transform: translateX(-110px) rotate(-45deg); opacity: 0; }

.gift-ribbon-h{
  position: absolute;
  left: 8%; right: 8%;
  top: calc(50% - 8px);
  height: 16px;
  background: var(--ink-gold);
  transition: transform .8s .05s var(--ease-out), opacity .8s .05s;
}
.gift-box.explode .gift-ribbon-h{ transform: translateX(110px) rotate(35deg); opacity: 0; }

.gift-bow{
  position: absolute;
  left: 50%; top: 30%;
  width: 50px; height: 32px;
  transform: translate(-50%,-50%);
  transition: transform .8s var(--ease-out), opacity .8s;
}
.gift-bow::before,
.gift-bow::after{
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 26px; height: 20px;
  background: var(--ink-gold);
  border-radius: 60% 60% 60% 0;
  transform: translate(-100%, -50%) rotate(-35deg);
}
.gift-bow::after{
  border-radius: 60% 60% 0 60%;
  transform: translate(0, -50%) rotate(35deg);
}
.gift-box.explode .gift-bow{ transform: translate(-50%,-260%) rotate(20deg) scale(1.15); opacity: 0; }

.confetti{
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 14px;
  background: var(--c, var(--ink-red));
  opacity: 0;
  transform: translate(-50%,-50%);
}
.gift-box.explode .confetti{
  animation: confetti-fly .9s ease-out forwards;
}
.gift-box.explode .confetti:nth-child(3n){ animation-delay: .04s; }
.gift-box.explode .confetti:nth-child(3n+1){ animation-delay: .09s; }
@keyframes confetti-fly{
  0%{ opacity: 1; transform: translate(-50%,-50%) rotate(0deg); }
  100%{ opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--rot)); }
}

/* ---------- ticket reveal ---------- */
.surprise-ticket{
  position: relative;
  width: min(88vw, 300px);
  margin-top: 26px;
  padding: 20px 20px 18px;
  background: linear-gradient(180deg, #FCF7EF 0%, #F4EBDD 100%);
  border: 1px solid rgba(42,38,34,.08);
  border-radius: 0;
  clip-path: polygon(2% 1%, 6% 0%, 11% 1%, 16% 0%, 22% 1%, 28% 0%, 34% 1%, 40% 0%, 47% 1%, 53% 0%, 60% 1%, 66% 0%, 72% 1%, 78% 0%, 84% 1%, 90% 0%, 96% 1%, 100% 3%, 99% 9%, 100% 16%, 99% 24%, 100% 31%, 99% 39%, 100% 47%, 99% 55%, 100% 63%, 99% 71%, 100% 79%, 99% 87%, 100% 94%, 97% 100%, 90% 99%, 84% 100%, 77% 99%, 70% 100%, 63% 99%, 56% 100%, 49% 99%, 42% 100%, 35% 99%, 28% 100%, 21% 99%, 14% 100%, 8% 99%, 3% 100%, 0% 97%, 1% 90%, 0% 82%, 1% 74%, 0% 66%, 1% 58%, 0% 50%, 1% 42%, 0% 34%, 1% 26%, 0% 18%, 1% 10%, 0% 4%);
  backdrop-filter: blur(2px) saturate(108%);
  -webkit-backdrop-filter: blur(2px) saturate(108%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  opacity: 0;
  transform: scale(.7) translateY(14px);
  transition: opacity .6s var(--ease-pop), transform .6s var(--ease-pop);
  pointer-events: none;
}
.surprise-ticket.show{ opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.surprise-ticket.show .letter-stamp{ animation: stamp-in .5s .5s var(--ease-pop) forwards; }

.surprise-continue{
  margin-top: 30px;
  padding: 12px 26px;
  border: 1.5px solid var(--cream-off);
  background: transparent;
  color: var(--cream-off);
  border-radius: 3px;
  font-size: .92rem;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), background .25s, color .25s;
}
.surprise-continue.show{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.surprise-continue:hover{ background: var(--cream-off); color: var(--charcoal); }

/* =========================================================
   ÉCRAN 3 — APP PRINCIPALE
   ========================================================= */
.main-app{
  display: none;
  opacity: 0;
  min-height: 100vh;
  padding: 0 20px 40px;
  transition: opacity .6s ease;
}
.main-app.visible{ opacity: 1; }

.app-header{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 18svh 0 18svh;
}
.app-intro{ position: relative; }
.app-eyebrow{
  font-family: var(--font-stamp);
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-red);
  margin-bottom: 10px;
}
.app-title{
  font-size: clamp(4rem, 13.5vw, 9.5rem);
  font-weight: 600;
  font-style: italic;
  line-height: .88;
  letter-spacing: -.04em;
  color: var(--charcoal);
  text-shadow: 0 2px 0 rgba(251,247,238,.85), 0 24px 46px rgba(42,38,34,.2);
  animation: title-entrance 1s var(--ease-pop) both;
}
@keyframes title-entrance{
  from{ opacity: 0; transform: scale(.82) translateY(18px); }
  to{ opacity: 1; transform: scale(1) translateY(0); }
}
.app-title-dot{
  color: var(--ink-gold);
  display: inline-block;
  animation: dot-pulse 2.6s ease-in-out 1.1s infinite;
}
@keyframes dot-pulse{
  0%, 70%, 100%{ transform: scale(1); }
  82%{ transform: scale(1.16) rotate(-4deg); }
  90%{ transform: scale(.96) rotate(2deg); }
}
.app-title-tr{
  margin-top: 18px;
  font-family: var(--font-hand);
  font-size: clamp(2.4rem, 5vw, 3.3rem);
  line-height: 1;
  color: var(--ink-red);
  opacity: 0;
  animation: title-entrance .9s var(--ease-pop) .35s both;
}

.scroll-hint{
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--font-stamp);
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .72;
}
.scroll-hint-text{ font-size: .68rem; }
.scroll-hint-arrow{
  font-size: 1.8rem;
  line-height: 1;
  animation: hint-bob 1.5s ease-in-out infinite;
}
@keyframes hint-bob{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(6px); }
}

/* ---------- BENTO GRID ---------- */
.bento-grid{
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(150px, auto);
  grid-auto-flow: row dense;
  gap: 34px 30px;
}

.card-map{      grid-column: span 6; }
.card-countdown{ grid-column: span 6; }
.card-birthday{ grid-column: span 3; grid-row: span 1; }
.card-gift{     grid-column: span 3; grid-row: span 1; }

@media (max-width: 880px){
  .bento-grid{ grid-template-columns: repeat(2, 1fr); }
  .card-map{ grid-column: span 2; }
  .card-countdown{ grid-column: span 2; }
  .card-birthday,.card-gift{ grid-column: span 2; }
}

/* ---------- POLAROID BASE ---------- */
.card{
  position: relative;
  background: rgba(251,247,238,.88);
  border: none;
  border-radius: 2px;
  padding: 22px 22px 30px;
  text-align: left;
  backdrop-filter: blur(2px) saturate(108%);
  -webkit-backdrop-filter: blur(2px) saturate(108%);
  box-shadow:
    0 1px 1px rgba(42,38,34,.06),
    0 18px 32px -18px rgba(42,38,34,.35),
    0 4px 8px -4px rgba(42,38,34,.15);
  transform: rotate(var(--r, 0deg));
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.card-map{      --r: 1deg; }
.card-countdown{ --r: -.6deg; }
.card-birthday{ --r: -2.2deg; }
.card-gift{     --r: -1deg; }

.card:hover{
  transform: rotate(0deg) translateY(-6px) scale(1.015);
  box-shadow:
    0 1px 1px rgba(42,38,34,.06),
    0 34px 46px -18px rgba(42,38,34,.4),
    0 8px 14px -6px rgba(42,38,34,.2);
  z-index: 5;
}

/* washi tape */
.card::before{
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 74px;
  height: 26px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 4px, rgba(255,255,255,.1) 4px 8px),
    var(--ink-sage);
  opacity: .82;
  transform: translateX(-50%) rotate(-4deg);
  box-shadow: 0 3px 6px rgba(42,38,34,.18);
}
.card-map::before{ background: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 4px, rgba(255,255,255,.1) 4px 8px), var(--ink-gold); left: 12%; transform: rotate(-5deg); }
.card-gift::before{ background: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 4px, rgba(255,255,255,.1) 4px 8px), var(--ink-red-soft); left: 78%; transform: rotate(4deg); }
.card-countdown::before{ background: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 4px, rgba(255,255,255,.1) 4px 8px), var(--ink-navy); left: 34%; transform: rotate(-3deg); }

.card-eyebrow{
  display: inline-block;
  font-family: var(--font-stamp);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--charcoal-soft);
  opacity: .6;
  margin-bottom: 10px;
}
.card-title{
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -.03em;
  color: var(--charcoal);
  margin-bottom: 8px;
}

/* ---------- CARD: réouvrir le mot ---------- */
.card-birthday{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  border: none;
  cursor: pointer;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.card-birthday-text{
  font-family: var(--font-hand);
  font-size: 1.9rem;
  line-height: 1.25;
  color: var(--ink-red);
}
.card-birthday-icon{
  font-size: 1.7rem;
  color: var(--ink-gold);
  transition: transform .35s var(--ease-pop);
}
.card-birthday:hover .card-birthday-icon{ transform: rotate(-14deg) scale(1.15); }

/* ---------- CARD: map (centerpiece) ---------- */
.card-map{ display: flex; flex-direction: column; padding-bottom: 22px; cursor: pointer; }
.card-map.fullscreen{ cursor: default; }
.card-map.fullscreen .card-map-header{ display: none; }
.card-map.fullscreen #map{ flex: 1; }
.card-map-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
#map{
  flex: 1;
  min-height: 460px;
  border-radius: 2px;
  border: 6px solid var(--cream-off);
  outline: 1px solid rgba(42,38,34,.12);
  box-shadow: inset 0 0 0 1px rgba(42,38,34,.05), 0 4px 14px rgba(42,38,34,.12);
  filter: sepia(.06) saturate(1.05);
  transition: min-height .3s;
}
.city-marker{
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--wax);
  border: 2px solid var(--cream-off);
  box-shadow: 0 0 0 1px var(--ink-red), 0 3px 6px rgba(0,0,0,.3);
  cursor: pointer;
  transition: transform .2s var(--ease-pop);
}
.city-marker:hover{ transform: scale(1.35); }

/* expand / collapse control */
.map-toggle-btn{
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(42,38,34,.15);
  background: var(--cream-off);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(42,38,34,.12);
  transition: transform .25s var(--ease-pop), background .2s, color .2s;
}
.map-toggle-btn:hover{ transform: scale(1.08); background: var(--ink-red); color: var(--cream-off); }
.map-toggle-btn .icon-collapse{ display: none; }
.card-map.fullscreen .icon-expand{ display: none; }
.card-map.fullscreen .icon-collapse{ display: block; }

/* fullscreen "personalized Google Maps" mode */
body.map-locked{ overflow: hidden; }

.card-map.fullscreen{
  position: fixed;
  inset: 0;
  z-index: 55;
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  animation: map-fs-in .4s var(--ease-out) both;
}
.card-map.fullscreen::before{ display: none; }
.card-map.fullscreen,
.card-map.fullscreen:hover{ box-shadow: none; transform: none; }
.card-map.fullscreen #map{
  min-height: 0;
  border-width: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
}
@keyframes map-fs-in{
  from{ opacity: 0; transform: scale(.97); }
  to{ opacity: 1; transform: scale(1); }
}

/* (stats & playlist cards retired — map, birthday and gift only) */

/* =========================================================
   CARD: COMPTE À REBOURS — notre prochain voyage
   ========================================================= */
.card-countdown{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 26px;
}
.countdown-sub{
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  opacity: .75;
  margin-top: -2px;
  margin-bottom: 20px;
}
.countdown-grid{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 26px);
  flex-wrap: wrap;
}
.countdown-unit{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
}
.countdown-num{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1;
  color: var(--ink-navy);
  font-variant-numeric: tabular-nums;
}
.countdown-label{
  font-family: var(--font-stamp);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  opacity: .6;
}
.countdown-sep{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--ink-navy);
  opacity: .35;
  transform: translateY(-8px);
}
.card-countdown.countdown-done .countdown-grid{ display: none; }
.card-countdown.countdown-done .countdown-sub{ display: none; }
.countdown-done-msg{
  display: none;
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--ink-red);
}
.card-countdown.countdown-done .countdown-done-msg{ display: block; }

/* =========================================================
   CARD: LE CADEAU — enveloppe 3D + cachet de cire
   ========================================================= */
.card-gift{
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.envelope-stage{
  flex: 1;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.envelope{
  position: relative;
  width: clamp(204px, 57vw, 286px);
  aspect-ratio: 240 / 158;
  max-width: 100%;
  cursor: pointer;
}
.envelope.opened{ cursor: default; }

.envelope-body{
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, #E4D3AE, #D8C297);
  border-radius: 3px;
  box-shadow: 0 16px 30px -12px rgba(42,38,34,.4), inset 0 0 0 1px rgba(122,46,46,.15);
  overflow: hidden;
  z-index: 0;
}
.envelope-body::before,
.envelope-body::after{
  content: "";
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 100%;
  background: rgba(122,46,46,.06);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}
.envelope-body::after{
  right: 0;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.envelope-letter{
  position: absolute;
  left: 8px; right: 8px;
  bottom: 6px;
  height: 88%;
  background: linear-gradient(180deg, #FCF7EF 0%, #F4EBDD 100%);
  border: 1px solid rgba(42,38,34,.08);
  border-radius: 0;
  clip-path: polygon(2% 1%, 6% 0%, 11% 1%, 16% 0%, 22% 1%, 28% 0%, 34% 1%, 40% 0%, 47% 1%, 53% 0%, 60% 1%, 66% 0%, 72% 1%, 78% 0%, 84% 1%, 90% 0%, 96% 1%, 100% 3%, 99% 9%, 100% 16%, 99% 24%, 100% 31%, 99% 39%, 100% 47%, 99% 55%, 100% 63%, 99% 71%, 100% 79%, 99% 87%, 100% 94%, 97% 100%, 90% 99%, 84% 100%, 77% 99%, 70% 100%, 63% 99%, 56% 100%, 49% 99%, 42% 100%, 35% 99%, 28% 100%, 21% 99%, 14% 100%, 8% 99%, 3% 100%, 0% 97%, 1% 90%, 0% 82%, 1% 74%, 0% 66%, 1% 58%, 0% 50%, 1% 42%, 0% 34%, 1% 26%, 0% 18%, 1% 10%, 0% 4%);
  box-shadow: 0 -2px 10px rgba(42,38,34,.15), inset 0 0 0 1px rgba(255,255,255,.45);
  transform: translateY(6%);
  transition: transform .8s .35s var(--ease-out);
  z-index: 1;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.envelope.opened .envelope-letter{ transform: translateY(-58%); }

.letter-ticket-label{
  font-family: var(--font-stamp);
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--ink-red);
  text-transform: uppercase;
}
.letter-headline{
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-red);
  line-height: 1.15;
}
.letter-route{
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  line-height: 1.15;
}
.letter-route--blurred{
  filter: blur(5px);
  user-select: none;
  opacity: .8;
}
.letter-dates{
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--ink-red);
  margin-top: 2px;
}
.letter-dashed{
  border-top: 1.5px dashed rgba(42,38,34,.25);
  margin: 6px 0;
}
.letter-msg{
  font-size: .82rem;
  color: var(--charcoal-soft);
  line-height: 1.4;
}
.letter-stamp{
  position: absolute;
  right: 16px;
  bottom: 48px;
  font-family: var(--font-stamp);
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--wax);
  border: 2px solid var(--wax);
  padding: 3px 10px;
  border-radius: 2px;
  transform: rotate(-11deg) scale(0);
  opacity: 0;
}
.envelope.opened .letter-stamp{
  animation: stamp-in .5s 1.1s var(--ease-pop) forwards;
}
@keyframes stamp-in{
  to{ transform: rotate(-11deg) scale(1); opacity: .92; }
}

.envelope-flap{
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(160deg, #EADAB6, #DAC28F);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease-out);
  box-shadow: 0 2px 4px rgba(42,38,34,.12);
  z-index: 2;
}
.envelope.opened .envelope-flap{
  transform: rotateX(178deg);
  z-index: 0;
}

.wax-seal{
  position: absolute;
  top: 68%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--ink-red-soft), var(--wax-dark) 75%);
  box-shadow: 0 4px 8px rgba(0,0,0,.35), inset 0 -3px 4px rgba(0,0,0,.3), inset 0 2px 3px rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform .45s var(--ease-pop), opacity .45s;
}
.wax-seal svg{ width: 20px; height: 20px; opacity: .8; }
.envelope:not(.opened):hover .wax-seal{ transform: translate(-50%,-50%) scale(1.08); }
.envelope.opened .wax-seal{
  animation: seal-break .5s var(--ease-out) forwards;
}
@keyframes seal-break{
  0%{ transform: translate(-50%,-50%) scale(1); opacity: 1; }
  40%{ transform: translate(-50%,-50%) scale(1.3) rotate(-8deg); opacity: 1; }
  100%{ transform: translate(-50%,-58%) scale(.4) rotate(20deg); opacity: 0; }
}

.wax-crumb{
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--wax-dark);
  opacity: 0;
  z-index: 4;
}
.envelope.opened .wax-crumb{ animation: crumb-fall .6s ease-out forwards; }
.envelope.opened .wax-crumb:nth-child(1){ left: 46%; top: 66%; animation-delay: .05s; }
.envelope.opened .wax-crumb:nth-child(2){ left: 52%; top: 64%; animation-delay: .1s; }
.envelope.opened .wax-crumb:nth-child(3){ left: 49%; top: 70%; animation-delay: .16s; }
@keyframes crumb-fall{
  0%{ opacity: 1; transform: translate(0,0) rotate(0); }
  100%{ opacity: 0; transform: translate(var(--dx, 8px), 40px) rotate(90deg); }
}
.wax-crumb:nth-child(1){ --dx: -10px; }
.wax-crumb:nth-child(3){ --dx: 6px; }

.gift-replay{
  margin-top: 14px;
  align-self: flex-start;
  background: none;
  border: 1px solid var(--charcoal-soft);
  color: var(--charcoal-soft);
  font-size: .78rem;
  padding: 6px 14px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, border-color .2s, color .2s;
}
.envelope.opened ~ .gift-replay{ opacity: 1; pointer-events: auto; }
.gift-replay:hover{ border-color: var(--ink-red); color: var(--ink-red); }

/* =========================================================
   FOOTER
   ========================================================= */
.app-footer{
  text-align: center;
  margin-top: 56px;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--charcoal-soft);
}

/* =========================================================
   PHOTO GALLERY — intentionally steps outside the paper theme
   ========================================================= */
.photo-modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: radial-gradient(ellipse at 50% 40%, rgba(30,26,22,.92), rgba(8,7,6,.97));
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.photo-modal.visible{ opacity: 1; visibility: visible; }

.photo-viewer{
  position: relative;
  width: min(94vw, 980px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: scale(.96);
  opacity: 0;
  transition: transform .4s var(--ease-pop), opacity .4s var(--ease-pop);
}
.photo-modal.visible .photo-viewer{ transform: scale(1); opacity: 1; }

.photo-viewer-close{
  position: absolute;
  top: -6px; right: -6px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #F5F0E4;
  font-size: 1.3rem;
  line-height: 1;
  backdrop-filter: blur(4px);
  transition: background .2s, transform .25s var(--ease-pop);
  z-index: 3;
}
.photo-viewer-close:hover{ background: rgba(255,255,255,.18); transform: rotate(90deg); }

.photo-viewer-meta{
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  padding: 0 4px;
}
.photo-viewer-location{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.photo-viewer-city-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.photo-viewer-city{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: #F5F0E4;
  letter-spacing: .01em;
}
.photo-viewer-date{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px 4px;
  border: 1.5px solid rgba(201,161,90,.88);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201,161,90,.18), rgba(201,161,90,.08));
  color: #E3C37C;
  font-family: var(--font-stamp);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
  box-shadow: 0 2px 8px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.14);
}
.photo-viewer-note{
  max-width: 42ch;
  margin: 0;
  font-family: var(--font-body);
  font-size: .86rem;
  line-height: 1.45;
  color: rgba(245,240,228,.7);
}
.photo-viewer-stage{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
}
.photo-viewer-main{
  position: relative;
  flex: 1;
  height: min(58vh, 560px);
  border-radius: 10px;
  overflow: hidden;
  background: #0c0b09;
  box-shadow: 0 40px 70px -25px rgba(0,0,0,.7);
}
.photo-viewer-main img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out);
}
.photo-viewer-main img.loaded{ opacity: 1; transform: scale(1); }

.photo-viewer-nav{
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: #F5F0E4;
  font-size: 1.6rem;
  line-height: 1;
  backdrop-filter: blur(4px);
  transition: background .2s, transform .25s var(--ease-pop);
}
.photo-viewer-nav:hover{ background: rgba(255,255,255,.18); transform: scale(1.08); }
.photo-viewer-nav:active{ transform: scale(.94); }
.photo-viewer-nav:disabled{ opacity: .25; pointer-events: none; }

.photo-viewer-strip{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.3) transparent;
}
.photo-viewer-strip::-webkit-scrollbar{ height: 6px; }
.photo-viewer-strip::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.25); border-radius: 4px; }

.photo-thumb{
  flex-shrink: 0;
  width: 100px; height: 100px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: .55;
  scroll-snap-align: start;
  transition: opacity .25s, border-color .25s, transform .25s var(--ease-pop);
}
.photo-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb:hover{ opacity: .85; transform: translateY(-2px); }
.photo-thumb.active{
  opacity: 1;
  border-color: var(--ink-gold);
  transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 600px){
  .app-header{
    max-width: 100%;
    padding: 18svh 10px 16svh;
  }
  .app-title{
    font-size: clamp(3.8rem, 16vw, 6.6rem);
  }
  .app-title-tr{
    margin-top: 16px;
    font-size: clamp(2.6rem, 10vw, 4rem);
    line-height: 1;
  }
  .card-title{ font-size: 1.7rem; }
  .scroll-hint{
    bottom: 20px;
  }
  .bento-grid{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .main-app.cards-revealed .bento-grid{
    opacity: 1;
    transform: translateY(0);
  }
  .login-title{ margin-bottom: 30px; }
  .bento-grid{ gap: 26px 18px; }
  .card{ padding: 18px 16px 24px; }
  .istanbul-cat-layer{ opacity: .18; }

  .photo-modal{ padding: 10px; }
  .photo-viewer{ gap: 10px; max-height: 96vh; }
  .photo-viewer-close{ top: 0; right: 0; width: 32px; height: 32px; font-size: 1.1rem; }
  .photo-viewer-meta{ padding: 0 34px 0 2px; gap: 10px; }
  .photo-viewer-location{ gap: 4px; }
  .photo-viewer-city{ font-size: 1.3rem; }
  .photo-viewer-date{ padding: 3px 9px 3px; font-size: .65rem; }
  .photo-viewer-note{ max-width: 100%; font-size: .78rem; line-height: 1.35; }
  .photo-viewer-stage{ gap: 6px; }
  .photo-viewer-main{ height: 60vh; }
  .photo-viewer-nav{ width: 32px; height: 32px; font-size: 1.2rem; }
  .photo-viewer-strip{ padding: 2px 2px 4px; gap: 6px; }
  .photo-thumb{ width: 60px; height: 60px; }
}

/* ---------- DESKTOP / WIDE SCREENS ----------
   on very wide viewports the fixed background layers and the photo
   viewer were stretching sideways and cropping the top/bottom of the
   artwork and the photos. Mobile is untouched above (max-width:600px). */
@media (min-width: 901px){
  .istanbul-cat-layer{
    background-image: url('../assets/cats_istanbul_all_white_extended.png');
    background-size: cover;
    background-position: bottom center;
  }
  .photo-viewer{ width: min(90vw, 880px); }
  .photo-viewer-main{
    height: min(64vh, 620px);
    background: #0c0b09;
  }
  .photo-viewer-main img{
    object-fit: contain;
  }
}