/* ========================================================
   📷 POLAROID GALLERY & PHOTO SYSTEM
   ======================================================== */

.polaroid-gallery-section {
  margin: 40px 0;
  position: relative;
}

.polaroid-controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.gallery-title-box h3 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--primary-color);
  margin: 0;
}

.gallery-title-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.gallery-btn-group {
  display: flex;
  gap: 10px;
}

.btn-upload-photo {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
  transition: all 0.25s ease;
}

.btn-upload-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
}

.btn-reset-photos {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-color);
  padding: 10px 14px;
  border-radius: 25px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-photos:hover {
  background: #fff;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Polaroid Grid Container */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding: 10px 5px 30px;
}

@media (max-width: 600px) {
  .polaroid-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

/* Polaroid Physical Card */
.polaroid-card {
  background: #ffffff;
  padding: 14px 14px 20px 14px;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1), box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.polaroid-card:hover {
  transform: scale(1.03) rotate(0deg) !important;
  box-shadow: 0 16px 35px rgba(var(--secondary-rgb), 0.25), 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

/* Washi Tape Effect on Top */
.washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background-color: var(--accent-pink);
  opacity: 0.85;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  clip-path: polygon(0 0, 95% 2%, 100% 98%, 3% 97%);
  z-index: 5;
}

/* Photo Wrapper */
.polaroid-photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 2px;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img {
  transform: scale(1.05);
}

.polaroid-tag-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

/* Caption Area (Handwriting style) */
.polaroid-caption-wrapper {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.polaroid-caption {
  font-family: 'Patrick Hand', 'Caveat', cursive;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #2b2d42;
  margin: 0 0 10px 0;
  text-align: center;
}

.polaroid-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed #e9ecef;
  font-size: 0.82rem;
  color: #8d99ae;
}

.polaroid-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-like-photo {
  background: var(--accent-light);
  border: 1px solid var(--accent-pink);
  border-radius: 15px;
  padding: 3px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  color: #d90429;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-like-photo:hover {
  background: var(--accent-pink);
  transform: scale(1.08);
}

.btn-delete-photo {
  background: transparent;
  border: none;
  color: #adb5bd;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.btn-delete-photo:hover {
  color: #e63946;
  background: #ffe3e3;
}

/* ========================================================
   LIGHTBOX VIEWER
   ======================================================== */
.polaroid-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 28, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.polaroid-lightbox.active {
  display: flex;
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-content {
  background: #fff;
  max-width: 650px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  position: relative;
}

.btn-close-lightbox {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.btn-close-lightbox:hover {
  background: var(--primary-color);
}

.lightbox-img-box {
  width: 100%;
  max-height: 70vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-box img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-meta {
  padding: 18px 24px;
}

.lightbox-caption {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.35rem;
  color: #2b2d42;
  margin: 0 0 6px 0;
}

.lightbox-date {
  font-size: 0.85rem;
  color: #8d99ae;
}

/* ========================================================
   UPLOAD PHOTO MODAL & DROP ZONE
   ======================================================== */
.upload-drop-zone {
  border: 2px dashed var(--accent-pink);
  background: color-mix(in srgb, var(--accent-light) 72%, transparent);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 20px;
}

.upload-drop-zone:hover,
.upload-drop-zone.dragover {
  border-color: var(--primary-color);
  background: color-mix(in srgb, var(--accent-light) 92%, transparent);
  transform: scale(1.01);
}

.drop-zone-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.drop-zone-text {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4px;
}

.drop-zone-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.upload-preview-container {
  display: none;
  margin-bottom: 16px;
  text-align: center;
}

.upload-preview-img {
  max-height: 180px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 4px solid #fff;
}

/* ========================================================
   📖 PHOTOBOOK (CUỐN ALBUM SÁCH TÌNH YÊU) & SWIPER 3D
   ======================================================== */
.photobook-section {
  margin: 20px 0 40px;
  position: relative;
}

.photobook-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1200px;
}

.photobook-cover {
  background: linear-gradient(145deg, #fffcf9, var(--accent-light) 70%, var(--accent-light));
  border: 1px solid rgba(var(--secondary-rgb), 0.3);
  border-radius: 28px;
  padding: 30px 20px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 30px rgba(var(--primary-rgb), 0.15);
  position: relative;
  overflow: hidden;
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(var(--primary-hover-rgb), 0.35), rgba(var(--primary-rgb), 0.15) 60%, transparent);
  pointer-events: none;
  z-index: 10;
}

.book-ribbon {
  position: absolute;
  top: -6px;
  right: 48px;
  width: 22px;
  height: 52px;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-hover));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  box-shadow: 0 4px 8px rgba(var(--primary-hover-rgb), 0.35);
  z-index: 15;
}

.album-swiper-container {
  width: 100%;
  padding: 20px 10px 48px;
  overflow: visible;
}

.album-page-slide {
  width: min(340px, 84vw);
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease;
}

.photobook-page-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(var(--secondary-rgb), 0.2);
  padding: 16px 16px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
  display: flex;
  flex-direction: column;
}

.album-page-slide.swiper-slide-active .photobook-page-card {
  box-shadow: 0 18px 40px rgba(var(--primary-rgb), 0.25), 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.photobook-washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  opacity: 0.88;
  clip-path: polygon(0 0, 96% 3%, 100% 97%, 3% 96%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 5;
}

.photobook-photo-link {
  display: block;
  text-decoration: none;
  cursor: zoom-in;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.photobook-photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fbfbfb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

.photobook-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photobook-photo-link:hover .photobook-img {
  transform: scale(1.06);
}

.photobook-zoom-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}

.photobook-photo-link:hover .photobook-zoom-hint {
  opacity: 1;
}

.photobook-tag-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(var(--primary-rgb), 0.9);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.photobook-text-wrapper {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photobook-caption {
  font-family: 'Patrick Hand', 'Quicksand', cursive, sans-serif;
  font-size: 1.18rem;
  line-height: 1.35;
  color: #2b2d42;
  margin: 0;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.photobook-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed rgba(var(--secondary-rgb), 0.3);
}

.photobook-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.photobook-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.photobook-hint {
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.photobook-hint i {
  color: var(--primary-color);
}

.album-nav-btn {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  z-index: 20;
}

.album-nav-btn::after {
  display: none;
}

.album-nav-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.album-pagination {
  bottom: 12px !important;
}

.album-pagination .swiper-pagination-bullet {
  background: var(--accent-pink);
  opacity: 0.5;
  transition: all 0.25s ease;
}

.album-pagination .swiper-pagination-bullet-active {
  background: var(--primary-color);
  opacity: 1;
  width: 22px;
  border-radius: 6px;
}

.fancybox-love-content {
  padding: 12px 18px;
  text-align: center;
  max-width: 600px;
}

.fancybox-love-tag {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.fancybox-love-title {
  font-family: 'Patrick Hand', 'Quicksand', cursive, sans-serif;
  font-size: 1.5rem;
  color: #ffffff;
  margin: 4px 0 8px;
  line-height: 1.35;
}

.fancybox-love-meta {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: center;
  gap: 16px;
}

.studio-photo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.studio-photo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.studio-photo-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.15);
}

.studio-photo-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.studio-photo-info {
  flex: 1;
  min-width: 0;
}

.studio-photo-caption {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.studio-photo-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-remove-photo-item {
  background: rgba(230, 57, 70, 0.1);
  color: #e63946;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-remove-photo-item:hover {
  background: #e63946;
  color: #ffffff;
  transform: scale(1.1);
}

/* ========================================================
   🎨 VINTAGE SCRAPBOOK & KODAK COLLAGE ALBUM STYLES
   ======================================================== */
.btn-slideshow-toggle {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
  transition: all 0.25s ease;
}

.btn-slideshow-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
}

.btn-slideshow-toggle.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.slideshow-progress-bar-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  z-index: 50;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

.slideshow-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.1s linear;
}

/* Trang sổ dán Scrapbook Spread */
.scrapbook-spread {
  background-color: #f4efe8;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 55px 55px;
  border-radius: 12px;
  min-height: 520px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.06);
  padding: 24px;
  box-sizing: border-box;
}

/* Element 1: Ripped Paper Photo Card (Xé Giấy Bên Trái) */
.scrapbook-ripped-card {
  position: absolute;
  left: 5%;
  top: 8%;
  width: 44%;
  max-width: 340px;
  z-index: 6;
  background: #ffffff;
  padding: 10px 10px 16px;
  border-radius: 2px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), 0 4px 10px rgba(0, 0, 0, 0.08);
  transform: rotate(-3.5deg);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.25, 1);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.scrapbook-ripped-card::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 12px;
  background: radial-gradient(circle at 100% 50%, transparent 6px, #ffffff 6px);
  background-size: 12px 14px;
  pointer-events: none;
}

.scrapbook-ripped-card:hover {
  transform: scale(1.04) rotate(-1deg) translateY(-4px) !important;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.3), 0 6px 14px rgba(var(--primary-rgb), 0.25);
  z-index: 15;
}

.scrapbook-tack {
  position: absolute;
  top: -10px;
  left: 45%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 35% 35%, #5c5d66, #1f2024);
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  z-index: 10;
}

.scrapbook-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fdfdfd;
  position: relative;
}

.scrapbook-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scrapbook-card-caption {
  font-family: 'Patrick Hand', 'Caveat', cursive;
  font-size: 1.15rem;
  color: #2b2d42;
  margin: 10px 0 0;
  line-height: 1.3;
}

.scrapbook-card-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scrapbook-dried-flower {
  position: absolute;
  bottom: -15px;
  right: -12px;
  font-size: 2.2rem;
  pointer-events: none;
  z-index: 8;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.18));
  transform: rotate(25deg);
}

/* Element 2: Kodak Portra 400 Film Camera Frame (Phía Dưới Phải) */
.scrapbook-kodak-card {
  position: absolute;
  right: 6%;
  bottom: 6%;
  width: 48%;
  max-width: 360px;
  z-index: 7;
  background: #151515;
  padding: 10px 12px 18px;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: rotate(3deg);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.25, 1);
  cursor: pointer;
  color: #ffb703;
}

.scrapbook-kodak-card:hover {
  transform: scale(1.04) rotate(0.5deg) translateY(-4px) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(255, 183, 3, 0.25);
  z-index: 15;
}

.kodak-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffb703;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.kodak-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  color: rgba(255, 183, 3, 0.8);
  margin-top: 6px;
  letter-spacing: 1px;
}

.scotch-tape-tl {
  position: absolute;
  top: -10px;
  left: -12px;
  width: 55px;
  height: 18px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
  transform: rotate(-35deg);
  z-index: 10;
  pointer-events: none;
}

.scotch-tape-br {
  position: absolute;
  bottom: -8px;
  right: -10px;
  width: 55px;
  height: 18px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
  transform: rotate(-30deg);
  z-index: 10;
  pointer-events: none;
}

/* Element 3: Corner Accent Photo (Góc Trên Phải) */
.scrapbook-corner-card {
  position: absolute;
  right: 5%;
  top: 4%;
  width: 28%;
  max-width: 190px;
  z-index: 4;
  background: #fff;
  padding: 6px 6px 12px;
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transform: rotate(-6deg);
  transition: all 0.3s ease;
  cursor: pointer;
}

.scrapbook-corner-card:hover {
  transform: scale(1.05) rotate(-2deg) translateY(-3px) !important;
  z-index: 14;
}

.washi-tape-corner {
  position: absolute;
  top: -8px;
  left: 20%;
  width: 50px;
  height: 16px;
  background: #ffd166;
  opacity: 0.85;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transform: rotate(6deg);
}

/* Element 4: Handwritten Love Quote (Chữ Viết Tay Nghệ Thuật) */
.scrapbook-handwritten-quote {
  position: absolute;
  left: 42%;
  top: 22%;
  width: 52%;
  z-index: 8;
  font-family: 'Caveat', 'Reenie Beanie', cursive;
  font-size: clamp(1.4rem, 2.7vw, 2.2rem);
  line-height: 1.25;
  color: #1a1a1a;
  font-weight: 700;
  transform: rotate(-2.5deg);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  user-select: none;
}

/* Dynamic Entry Animations on Active Spread */
.swiper-slide-active .scrapbook-ripped-card {
  animation: rippedSlideIn 0.85s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.swiper-slide-active .scrapbook-kodak-card {
  animation: kodakFloatUp 0.95s 0.12s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.swiper-slide-active .scrapbook-corner-card {
  animation: cornerDropIn 0.8s 0.2s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.swiper-slide-active .scrapbook-handwritten-quote {
  animation: quoteSignatureReveal 1s 0.25s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes rippedSlideIn {
  from { opacity: 0; transform: translateX(-40px) rotate(-12deg) scale(0.9); }
  to { opacity: 1; transform: translateX(0) rotate(-3.5deg) scale(1); }
}
@keyframes kodakFloatUp {
  from { opacity: 0; transform: translateY(50px) rotate(10deg) scale(0.92); }
  to { opacity: 1; transform: translateY(0) rotate(3deg) scale(1); }
}
@keyframes cornerDropIn {
  from { opacity: 0; transform: translateY(-30px) rotate(-15deg); }
  to { opacity: 1; transform: translateY(0) rotate(-6deg); }
}
@keyframes quoteSignatureReveal {
  from { opacity: 0; transform: rotate(-6deg) scale(0.9); filter: blur(3px); }
  to { opacity: 1; transform: rotate(-2.5deg) scale(1); filter: blur(0); }
}

/* Responsive Scrapbook Layout */
@media (max-width: 768px) {
  .scrapbook-spread {
    min-height: 480px;
    padding: 14px;
  }
  .scrapbook-ripped-card {
    left: 3%;
    top: 6%;
    width: 52%;
  }
  .scrapbook-kodak-card {
    right: 3%;
    bottom: 5%;
    width: 58%;
  }
  .scrapbook-corner-card {
    right: 2%;
    top: 2%;
    width: 32%;
  }
  .scrapbook-handwritten-quote {
    left: 36%;
    top: 30%;
    width: 60%;
    font-size: 1.35rem;
  }
}

/* ========================================================
   🎛️ STUDIO PHOTO INLINE EDIT CARDS
   ======================================================== */
.studio-photo-edit-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.studio-photo-edit-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.15);
}

.photo-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.photo-preview-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--accent-pink);
  flex-shrink: 0;
}

.photo-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-change-photo-mini {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.65rem;
  text-align: center;
  padding: 2px 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-change-photo-mini:hover {
  background: var(--primary-color);
}

.photo-edit-index {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 0.92rem;
  flex: 1;
}

.photo-edit-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-edit-inputs input,
.photo-edit-inputs textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  font-size: 0.85rem;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.photo-edit-inputs input:focus,
.photo-edit-inputs textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

/* ========================================================
   📸 PHOTOBOOTH INSTANT CAMERA & MYSTERY BLUR REVEAL STYLES
   ======================================================== */

.photobooth-section {
  margin: 15px 0 35px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.photobooth-station {
  background-color: var(--bg-card);
  background-image:
    linear-gradient(145deg, color-mix(in srgb, var(--accent-light) 66%, var(--bg-card)), var(--bg-card) 62%),
    radial-gradient(rgba(var(--primary-rgb), 0.14) 1px, transparent 1.4px),
    radial-gradient(rgba(var(--accent-rgb), 0.12) 1px, transparent 1.4px);
  background-size: auto, 28px 28px, 28px 28px;
  background-position: 0 0, 0 0, 14px 14px;
  border-radius: 24px;
  padding: clamp(16px, 3.5vw, 36px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), inset 0 0 42px rgba(var(--primary-rgb), 0.045);
  border: 2px solid rgba(var(--accent-rgb), 0.36);
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  text-align: center;
}

.photobooth-station::before,
.photobooth-station::after {
  content: "";
  position: absolute;
  width: 62px;
  height: 19px;
  z-index: 3;
  pointer-events: none;
  background: color-mix(in srgb, var(--primary-color) 28%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-pink) 42%, transparent);
  opacity: .62;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.photobooth-station::before {
  top: 18px;
  left: 25px;
  transform: rotate(-8deg);
}

.photobooth-station::after {
  right: 25px;
  bottom: 18px;
  transform: rotate(7deg);
}

.photobooth-header {
  margin-bottom: 24px;
}

.photobooth-title-cursive {
  font-family: 'Caveat', 'Dancing Script', cursive;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  color: var(--primary-color);
  margin: 8px 0 4px;
  line-height: 1.15;
  text-shadow: 0 2px 4px rgba(var(--primary-rgb), 0.12);
}

.photobooth-subtitle {
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  color: var(--text-muted);
  margin: 0;
}

/* Stage chứa máy ảnh & khe nhả ảnh */
.photobooth-camera-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px auto 26px;
  width: 100%;
  max-width: 400px;
}

/* Mũi tên chỉ dẫn doodle */
.camera-doodle-arrow {
  position: absolute;
  top: -10px;
  right: -25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 12;
  pointer-events: none;
  animation: doodleBounce 2s ease-in-out infinite;
}

.doodle-text {
  font-family: 'Patrick Hand', 'Caveat', cursive;
  font-size: 1.18rem;
  color: var(--primary-color);
  font-weight: 700;
  white-space: nowrap;
  transform: rotate(12deg);
}

.doodle-icon {
  color: var(--primary-color);
  font-size: 1.35rem;
  transform: rotate(20deg) scaleX(-1);
  margin-top: -2px;
}

@keyframes doodleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Thân Máy Ảnh Polaroid Vector Siêu Cute */
.polaroid-camera-box {
  position: relative;
  width: clamp(210px, 60vw, 260px);
  height: clamp(190px, 55vw, 240px);
  background: linear-gradient(180deg, #ffffff 0%, #f6f0e8 100%);
  border-radius: 26px 26px 16px 16px;
  box-shadow: 
    0 18px 36px rgba(0, 0, 0, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.06),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
  border: 3px solid #e8dfd3;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.22s ease;
  user-select: none;
  z-index: 6;
  box-sizing: border-box;
}

.polaroid-camera-box:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 24px 44px rgba(var(--primary-rgb), 0.24),
    0 6px 14px rgba(0, 0, 0, 0.08);
}

.polaroid-camera-box:active {
  transform: translateY(2px) scale(0.97);
}

/* Top Row: Flash & Viewfinder */
.camera-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 0;
}

.camera-flash-unit {
  width: 36px;
  height: 36px;
  background: #e2d9cd;
  border-radius: 8px;
  border: 2px solid #cfc3b3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.12);
}

.flash-reflector {
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, #fffbe6 30%, #e0d0b0 80%);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flash-bulb {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 230, 100, 0.85);
}

.camera-viewfinder-window {
  width: 32px;
  height: 26px;
  background: #252830;
  border-radius: 6px;
  border: 2px solid #555b6a;
  padding: 2px;
  box-sizing: border-box;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.viewfinder-glass {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1d3557, #457b9d);
  border-radius: 3px;
  opacity: 0.85;
}

/* Ống kính máy ảnh trung tâm */
.camera-lens-assembly {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: clamp(88px, 27vw, 114px);
  height: clamp(88px, 27vw, 114px);
}

.lens-barrel-outer {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #333842 55%, #1f2229 100%);
  border-radius: 50%;
  border: 5px solid #d5c7b7;
  box-shadow: 
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 4px 8px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.lens-ring-cyan {
  width: 72%;
  height: 72%;
  background: radial-gradient(circle, #0e444b 40%, #16697a 85%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.7);
}

.lens-aperture-center {
  width: 52%;
  height: 52%;
  background: #0d1317;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 6px #000;
}

.lens-glass-reflection {
  position: absolute;
  top: 14%;
  left: 20%;
  width: 35%;
  height: 25%;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: rotate(-35deg);
  filter: blur(0.5px);
}

/* Nút chụp đỏ Shutter */
.camera-shutter-container {
  position: absolute;
  left: 16px;
  bottom: 56px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shutter-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(230, 57, 70, 0.6);
  animation: shutterRipple 1.8s ease-out infinite;
  pointer-events: none;
}

.camera-red-shutter-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff6b6b, #d90429);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 8px rgba(217, 4, 41, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease;
  outline: none;
  padding: 0;
}

.camera-red-shutter-btn:active,
.polaroid-camera-box:active .camera-red-shutter-btn {
  transform: scale(0.85);
  box-shadow: 0 2px 4px rgba(217, 4, 41, 0.3);
}

@keyframes shutterRipple {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Dải màu Rainbow đặc trưng Polaroid */
.camera-rainbow-stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  height: 7px;
  display: flex;
}

.camera-rainbow-stripe span {
  flex: 1;
  height: 100%;
}

.rb-red { background: #e63946; }
.rb-orange { background: #f77f00; }
.rb-yellow { background: #fcbf49; }
.rb-green { background: #2a9d8f; }
.rb-blue { background: #457b9d; }

/* Khe nhả ảnh ở đáy máy ảnh */
.camera-film-eject-slot {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6px;
  height: 10px;
  background: #18191c;
  border-radius: 4px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.8);
  overflow: hidden;
}

/* Flash màn hình khi bấm máy ảnh */
.camera-flash-light {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  transition: opacity 0.08s ease;
}

.camera-flash-light.flash-active {
  opacity: 0.92;
  transition: none;
}

/* Rãnh trượt nhả ảnh (Film Ejection Chute) - Canh chuẩn tuyệt đối khớp với khay ảnh bên dưới */
.film-ejection-chute {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(190px, 52vw, 240px);
  height: clamp(210px, 58vw, 260px);
  z-index: 10;
  pointer-events: none;
}

.film-ejection-chute .ejecting-card-item {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: #ffffff;
  padding: 8px 8px 22px 8px;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(var(--primary-rgb), 0.25);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  animation: filmEjectSlideDown 1.05s cubic-bezier(0.2, 0.85, 0.32, 1) forwards;
  transform-origin: top center;
  overflow: hidden;
}

@keyframes filmEjectSlideDown {
  0% {
    transform: translateY(-82%) scale(0.92);
    opacity: 0.85;
  }
  30% {
    opacity: 1;
    transform: translateY(-50%) scale(0.96);
  }
  75% {
    transform: translateY(-8%) scale(0.99);
  }
  90% {
    transform: translateY(4px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.ejecting-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  background: #eae5de;
  position: relative;
}

.ejecting-photo-wrap img.ejecting-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(14px) brightness(0.9);
  transform: scale(1.08);
  animation: photoDevelopFilm 1.05s ease forwards;
}

@keyframes photoDevelopFilm {
  0% {
    filter: blur(16px) brightness(0.85);
  }
  50% {
    filter: blur(10px) brightness(0.9);
  }
  100% {
    filter: blur(4px) brightness(0.98);
  }
}

.ejecting-developing-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(2px);
  color: #fff;
  gap: 6px;
  border-radius: 3px;
  pointer-events: none;
}

.ejecting-developing-badge i {
  font-size: 1.5rem;
  color: var(--accent-pink);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.ejecting-developing-badge span {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 10px;
  border-radius: 12px;
}

.ejecting-caption {
  font-family: 'Patrick Hand', 'Caveat', cursive;
  font-size: 0.95rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-top: 6px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes cameraRecoil {
  0% { transform: scale(1); }
  25% { transform: scale(0.96) translateY(2px); }
  60% { transform: scale(1.02) translateY(-2px); }
  100% { transform: scale(1) translateY(0); }
}

.polaroid-camera-box.camera-recoil {
  animation: cameraRecoil 0.32s cubic-bezier(0.2, 0.8, 0.25, 1) !important;
}

/* Thanh điều khiển in ảnh */
.photobooth-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px auto 20px;
  width: 100%;
  max-width: 820px;
  background: color-mix(in srgb, var(--bg-card) 92%, var(--accent-light));
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1.5px solid rgba(var(--accent-rgb), 0.32);
  box-sizing: border-box;
}

.photobooth-btns-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-booth-action {
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-booth-action.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.32);
}

.btn-booth-action.magic {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #fff;
  box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.3);
}

.btn-booth-action.secondary {
  background: var(--bg-card);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-booth-action.outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px dashed var(--primary-color);
}

.btn-booth-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(var(--primary-rgb), 0.25);
}

/* ========================================================
   📦 KHUNG NHẢ ẢNH CHUNG: CHỒNG ẢNH POLAROID NGAY DƯỚI KHE MÁY ẢNH
   ======================================================== */

.photobooth-stack-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.photo-stack-pile {
  position: relative;
  width: clamp(190px, 52vw, 240px);
  height: clamp(210px, 58vw, 260px);
  margin: 12px auto 6px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.25, 1);
  user-select: none;
}

.stack-doodle-cue {
  position: absolute;
  z-index: 14;
  left: calc(50% + clamp(82px, calc(29vw - 30px), 100px));
  top: 54%;
  width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary-color);
  font-family: 'Patrick Hand', 'Caveat', cursive;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(7deg);
  pointer-events: none;
  user-select: none;
}

.stack-doodle-cue[hidden] {
  display: none !important;
}

.stack-doodle-cue span {
  position: absolute;
  left: 24px;
  top: -16px;
  white-space: nowrap;
}

.stack-doodle-cue svg {
  width: 64px;
  height: 42px;
  margin-top: 1px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-stack-pile:hover {
  transform: translateY(-4px) scale(1.03);
}

.photo-stack-pile:active {
  transform: scale(0.97);
}

/* Từng thẻ ảnh xếp chồng trong đống ảnh chung */
.stack-photo-card {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  padding: 8px 8px 22px 8px;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.stack-photo-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  background: var(--accent-light);
  position: relative;
}

.stack-photo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(14px) brightness(0.92);
  transform: scale(1.08);
}

.stack-photo-caption {
  font-family: 'Patrick Hand', 'Caveat', cursive;
  font-size: 0.95rem;
  color: var(--text-color);
  margin-top: 6px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Huy hiệu gợi ý trên đỉnh đống ảnh */
.stack-top-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
  color: #fff;
  gap: 6px;
  border-radius: 3px;
}

.stack-top-badge i {
  font-size: 1.6rem;
  color: var(--accent-pink);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.stack-top-badge span {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 10px;
  border-radius: 12px;
}

/* ========================================================
   🎞️ BỘ SƯU TẬP ẢNH LƯỚT 3D COVERFLOW (1 ẢNH Ở GIỮA, 2 ẢNH MỜ 2 BÊN)
   ======================================================== */

.photobooth-viewer-container {
  width: 100%;
  max-width: 920px;
  margin: 28px auto 10px;
  box-sizing: border-box;
  padding: clamp(14px, 3vw, 24px) clamp(10px, 2.5vw, 22px);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  border: 1.5px solid rgba(var(--secondary-rgb), 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06), inset 0 1px 3px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.photobooth-viewer-container.collapsed {
  display: none;
}

.viewer-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  text-align: left;
}

.viewer-title-box {
  text-align: left;
}

.viewer-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-color);
  background: var(--accent-light);
  border: 1px solid var(--accent-pink);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.viewer-main-title {
  font-family: 'Dancing Script', 'Caveat', cursive;
  font-size: clamp(1.8rem, 4.2vw, 2.4rem);
  color: var(--primary-color);
  margin: 0;
  line-height: 1.15;
}

.viewer-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
}

/* Swiper Coverflow Container */
.booth-coverflow-container {
  width: 100%;
  padding-top: 18px !important;
  padding-bottom: 38px !important;
  overflow: hidden;
}

.booth-coverflow-container .swiper-wrapper {
  display: flex;
  align-items: center;
}

/* Từng slide ảnh Polaroid: 
   MẶC ĐỊNH LÀ 2 ẢNH MỜ 2 BÊN (blur + scale nhỏ + mờ nhẹ) */
.booth-carousel-slide {
  width: clamp(260px, 72vw, 340px) !important;
  height: auto;
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.35, 1), filter 0.4s ease, opacity 0.4s ease;
  user-select: none;
  cursor: pointer;
  /* 2 ảnh mờ 2 bên */
  filter: blur(5px) brightness(0.88);
  opacity: 0.55;
  transform: scale(0.86);
}

/* ẢNH Ở CHÍNH GIỮA: Rõ nét, sắc sảo, to đẹp và nổi bật */
.booth-carousel-slide.swiper-slide-active {
  filter: blur(0px) brightness(1) !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  z-index: 10;
}

/* Thẻ Polaroid vật lý bên trong slide */
.booth-polaroid-card {
  background: color-mix(in srgb, var(--bg-card) 92%, var(--accent-light));
  padding: 12px 12px 18px 12px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.swiper-slide-active .booth-polaroid-card {
  box-shadow: 0 18px 45px rgba(var(--primary-rgb), 0.28), 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(var(--secondary-rgb), 0.3);
}

/* Băng dính Washi Tape trên đầu */
.booth-washi-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background-color: rgba(var(--accent-rgb), 0.85);
  clip-path: polygon(0 0, 96% 4%, 100% 96%, 4% 100%);
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Khung ảnh */
.booth-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
  position: relative;
}

.booth-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.swiper-slide-active .booth-polaroid-card:hover .booth-photo-wrap img {
  transform: scale(1.05);
}

.booth-photo-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: 'Patrick Hand', cursive;
  font-size: 0.82rem;
  padding: 3px 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.booth-photo-zoom-hint {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(var(--primary-rgb), 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.swiper-slide-active .booth-photo-zoom-hint {
  opacity: 1;
}

/* Phần chữ viết tay bên dưới */
.booth-caption-box {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.booth-caption-text {
  font-family: 'Patrick Hand', 'Caveat', cursive;
  font-size: 1.18rem;
  color: var(--text-color);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.booth-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 6px;
  border-top: 1px dashed rgba(var(--accent-rgb), 0.4);
}

.booth-like-btn {
  background: var(--accent-light);
  color: var(--primary-color);
  border: 1px solid var(--accent-pink);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.booth-like-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Nút điều hướng Swiper */
.booth-nav-btn {
  color: var(--primary-color) !important;
  background: var(--bg-card);
  width: 42px !important;
  height: 42px !important;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--accent-pink);
  transition: all 0.25s ease;
}

.booth-nav-btn:hover {
  background: var(--primary-color);
  color: #fff !important;
  transform: scale(1.1);
}

.booth-nav-btn::after {
  display: none !important;
}

.booth-pagination {
  bottom: 8px !important;
}

.booth-pagination .swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
  width: 20px;
  border-radius: 8px;
}

/* Nút thu gọn */
.btn-collapse-viewer {
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed var(--accent-pink);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-collapse-viewer:hover {
  background: var(--accent-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Nút mở album xanh */
.btn-booth-action.success {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #fff;
  box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.3);
}

/* ========================================================
   🔍 MODAL XEM CHI TIẾT ẢNH & PHÓNG TO HD (DETAIL ZOOM MODAL)
   ======================================================== */
.photobooth-modal {
  z-index: 100050;
}

.photobooth-detail-card {
  padding: 0 !important;
  background: #ffffff;
  border-radius: 22px;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.photobooth-detail-card .btn-close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 25;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.photobooth-detail-card .btn-close-modal:hover {
  background: var(--primary-color);
  transform: rotate(90deg);
}

.photobooth-detail-image-box,
.photobooth-detail-photo-wrap {
  width: 100%;
  max-height: 45vh;
  min-height: 200px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  flex-shrink: 0;
}

.photobooth-detail-image-box img,
.photobooth-detail-photo-wrap img,
#detail-modal-img {
  max-width: 100% !important;
  max-height: 45vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto;
}

.detail-modal-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(var(--primary-rgb), 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: 'Patrick Hand', cursive;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.photobooth-detail-info {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: 0 0 20px 20px;
  box-sizing: border-box;
}

.detail-modal-caption {
  font-family: 'Patrick Hand', 'Caveat', cursive;
  font-size: 1.45rem;
  color: #2b2d42;
  margin: 0;
  line-height: 1.3;
}

.detail-modal-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
}

.detail-modal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-like-detail {
  background: var(--accent-light);
  color: var(--primary-color);
  border: 1px solid var(--accent-pink);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-like-detail:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.05);
}

.detail-modal-note-box {
  background: #faf6f0;
  border-left: 3px solid var(--primary-color);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  position: relative;
  margin-top: 2px;
}

.detail-modal-note-box .quote-icon {
  font-size: 1.1rem;
  color: var(--secondary-color);
  opacity: 0.7;
  margin-bottom: 4px;
  display: block;
}

.detail-modal-note-box p {
  font-family: 'Caveat', 'Dancing Script', cursive;
  font-size: 1.25rem;
  color: #4a4e69;
  line-height: 1.35;
  margin: 0;
}

/* Hiệu ứng rung nhẹ / tỏa sáng khi lật mở album từ chồng ảnh */
@keyframes albumOpenGlow {
  0% { transform: scale(0.98); box-shadow: 0 0 0 rgba(var(--primary-rgb), 0); }
  50% { transform: scale(1.015); box-shadow: 0 0 35px rgba(var(--primary-rgb), 0.45); }
  100% { transform: scale(1); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
}

.album-bounce-hint {
  animation: albumOpenGlow 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

/* ========================================================
   🎞️ MODAL BỘ SƯU TẬP ẢNH COVERFLOW (1 ẢNH GIỮA, 2 ẢNH MỜ 2 BÊN, VÒNG LẶP TRÒN)
   ======================================================== */
.photobooth-album-modal {
  z-index: 100040;
  background: rgba(18, 12, 24, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px;
}

.photo-delete-confirmation .modal-content-card {
  max-width: 420px;
  padding: 24px;
  color: var(--text-color);
}

.photo-delete-confirmation .modal-header {
  margin-bottom: 12px;
}

.photo-delete-confirmation .modal-title {
  font-family: var(--font-heading, var(--font-cursive));
  font-size: 1.45rem;
}

.photo-delete-confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.photo-delete-confirmation-actions button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--primary-color);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--primary-color);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.photo-delete-confirmation-actions [data-delete-confirm] {
  background: var(--primary-color);
  color: var(--text-on-primary, #fff);
}

.photo-delete-confirmation-actions button:focus-visible,
.photo-delete-confirmation .btn-close-modal:focus-visible {
  outline: 3px solid var(--accent-pink);
  outline-offset: 2px;
}

.photobooth-album-modal-card {
  background-color: var(--bg-card);
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 6px,
    rgba(var(--primary-rgb), 0.025) 6px,
    rgba(var(--primary-rgb), 0.025) 7px
  );
  border-radius: 28px;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--accent-rgb), 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 4vw, 32px) clamp(12px, 3vw, 24px);
  box-sizing: border-box;
  border: 2px solid rgba(var(--accent-rgb), 0.38);
}

.photobooth-album-modal-card::before,
.photobooth-album-modal-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 112px;
  height: 112px;
  background-color: var(--primary-color);
  opacity: 0.18;
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 108C42 86 51 49 105 12'/%3E%3Cpath d='M31 88C18 89 12 81 14 70c10 0 19 6 17 18Z'/%3E%3Cpath d='M45 69C34 68 29 61 31 51c10 2 17 8 14 18Z'/%3E%3Cpath d='M58 51c14 5 25 1 29-8-12-5-24-2-29 8Z'/%3E%3Cpath d='M73 33c-8-7-8-15-3-22 9 5 12 13 3 22Z'/%3E%3Cpath d='M91 28c-7-8-5-17 3-23 7 7 8 15-3 23Z'/%3E%3Cpath d='M92 17c-1-6 3-10 7-12 5 4 5 9 0 13-3 2-5 1-7-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 108C42 86 51 49 105 12'/%3E%3Cpath d='M31 88C18 89 12 81 14 70c10 0 19 6 17 18Z'/%3E%3Cpath d='M45 69C34 68 29 61 31 51c10 2 17 8 14 18Z'/%3E%3Cpath d='M58 51c14 5 25 1 29-8-12-5-24-2-29 8Z'/%3E%3Cpath d='M73 33c-8-7-8-15-3-22 9 5 12 13 3 22Z'/%3E%3Cpath d='M91 28c-7-8-5-17 3-23 7 7 8 15-3 23Z'/%3E%3Cpath d='M92 17c-1-6 3-10 7-12 5 4 5 9 0 13-3 2-5 1-7-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.photobooth-album-modal-card::before {
  top: 15px;
  left: 15px;
}

.photobooth-album-modal-card::after {
  right: 15px;
  bottom: 15px;
  transform: rotate(180deg);
}

.photobooth-album-modal-card > .btn-close-modal,
.photobooth-album-modal-card > .album-modal-header,
.photobooth-album-modal-card > .booth-coverflow-container,
.photobooth-album-modal-card > .album-modal-footer {
  position: relative;
  z-index: 1;
}

.album-modal-header {
  text-align: center;
  margin-bottom: 8px;
  width: 100%;
  position: relative;
}

.album-modal-title {
  font-family: 'Dancing Script', 'Caveat', cursive;
  font-size: clamp(2rem, 5vw, 2.7rem);
  color: var(--primary-color);
  margin: 4px 0 6px;
  line-height: 1.2;
}

.album-modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 auto 8px;
  max-width: 520px;
}

.photobooth-album-modal .booth-coverflow-container {
  width: 100%;
  padding-top: 14px !important;
  padding-bottom: 42px !important;
}

.album-modal-footer {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-modal-back-camera {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
  transition: all 0.25s ease;
}

.btn-modal-back-camera:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
}

/* Khung chờ khi chưa có ảnh in trong khay */
.stack-empty-slot {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 12px;
  border: 2px dashed rgba(var(--accent-rgb), .72);
  color: var(--text-muted);
  padding: 16px;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.25s ease;
}

.stack-empty-slot:hover {
  border-color: var(--primary-color);
  background: var(--bg-card-hover);
  transform: scale(1.02);
}

.stack-empty-slot i {
  font-size: 2.2rem;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.stack-empty-slot .slot-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-color);
}

.stack-empty-slot .slot-hint {
  font-size: 0.74rem;
  color: var(--primary-color);
  margin-top: 4px;
}

/* ========================================================
   📱 QUY TẮC MOBILE RESPONSIVE CHẶT CHẼ TRÊN ĐIỆN THOẠI
   ======================================================== */
@media (max-width: 600px) {
  .photobooth-section {
    margin: 8px 0 25px;
  }
  .photobooth-station {
    padding: 14px 8px;
    border-radius: 16px;
  }
  .photobooth-title-cursive {
    font-size: 2.1rem;
  }
  .camera-doodle-arrow {
    right: -10px;
    top: -14px;
  }
  .doodle-text {
    font-size: 0.95rem;
  }
  .photobooth-controls-bar {
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 16px;
    gap: 10px;
  }
  .photobooth-btns-wrap {
    justify-content: center;
    width: 100%;
    gap: 6px;
  }
  .btn-booth-action {
    padding: 6px 11px;
    font-size: 0.78rem;
  }
  .photo-stack-pile,
  .film-ejection-chute {
    width: 180px;
    height: 200px;
  }
  .photobooth-viewer-container {
    padding: 12px 6px 16px;
    border-radius: 16px;
    margin: 18px auto 8px;
  }
  .viewer-main-title {
    font-size: 1.55rem;
  }
  .photobooth-album-modal {
    padding: 8px;
  }
  .photobooth-album-modal-card {
    max-width: 96vw;
    max-height: 94vh;
    padding: 16px 8px;
    border-radius: 20px;
  }
  .photobooth-album-modal-card::before,
  .photobooth-album-modal-card::after {
    width: 82px;
    height: 82px;
    opacity: 0.13;
  }
  .album-modal-title {
    font-size: 1.85rem;
  }
  .album-modal-subtitle {
    font-size: 0.8rem;
  }
  .btn-modal-back-camera {
    font-size: 0.84rem;
    padding: 8px 16px;
  }
  .booth-carousel-slide {
    width: clamp(230px, 74vw, 290px) !important;
  }
  .booth-polaroid-card {
    padding: 10px 10px 14px;
  }
  .booth-caption-text {
    font-size: 1.05rem;
  }
  .booth-nav-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.85rem;
  }
  .photobooth-detail-card {
    max-width: 92vw !important;
    max-height: 86vh !important;
    max-height: 86dvh !important;
    border-radius: 18px !important;
    padding: 0 !important;
  }
  .photobooth-detail-image-box,
  .photobooth-detail-photo-wrap {
    max-height: 34vh !important;
    min-height: 160px !important;
    border-radius: 18px 18px 0 0 !important;
    background: var(--accent-light) !important;
  }
  .photobooth-detail-image-box img,
  .photobooth-detail-photo-wrap img,
  #detail-modal-img {
    max-width: 100% !important;
    max-height: 34vh !important;
    object-fit: contain !important;
  }
  .photobooth-detail-info {
    padding: 12px 14px 16px !important;
    gap: 8px !important;
  }
  .detail-modal-caption {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
  }
  .detail-modal-meta-row {
    font-size: 0.82rem !important;
    padding-bottom: 6px !important;
  }
  .btn-like-detail {
    padding: 4px 10px !important;
    font-size: 0.8rem !important;
  }
  .detail-modal-note-box {
    padding: 8px 12px !important;
  }
  .detail-modal-note-box p {
    font-size: 1rem !important;
    line-height: 1.35 !important;
  }
}

/* ========================================================
   🔒 CHẾ ĐỘ NGƯỜI NHẬN (VIEWER MODE):
   ẨN HOÀN TOÀN CÁC NÚT ĐIỀU KHIỂN & DÒNG CHỮ THỪA Ở TRANG 3 (SIDE 3)
   ======================================================== */
body.viewer-mode .photobooth-controls-bar {
  display: none !important;
}

/* Keep mobile copy compact while leaving the camera and falling photo stack intact. */
@media (max-width: 600px) {
  body.mode-storybook #page-3 {
    min-height: auto;
  }

  body.mode-storybook #page-3 .photobooth-section {
    margin: 4px 0 8px;
  }

  body.mode-storybook #page-3 .photobooth-station {
    padding: 10px 8px;
  }

  body.mode-storybook #page-3 .photobooth-header {
    margin-bottom: 6px;
  }

  body.mode-storybook #page-3 .photobooth-title-cursive {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
    line-height: 1.02;
    margin: 5px 0 3px;
  }

  body.mode-storybook #page-3 .photobooth-subtitle {
    display: -webkit-box;
    font-size: .72rem;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  body.mode-storybook #page-3 .camera-doodle-arrow {
    display: none;
  }

  body.mode-storybook #page-3 .photobooth-camera-stage {
    width: 100%;
    max-width: 320px;
    margin: 7px auto 8px;
  }

  .stack-doodle-cue {
    left: calc(50% + 92px);
    width: 46px;
    font-size: .8rem;
    transform: none;
  }

  .stack-doodle-cue span {
    left: 2px;
    top: -27px;
    width: 50px;
    font-size: .72rem;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }

  .stack-doodle-cue svg {
    width: 44px;
    height: 30px;
    transform: translateX(-16px);
  }

  body.mode-storybook #page-3 .stack-empty-slot {
    padding: 8px 6px;
  }

  body.mode-storybook #page-3 .stack-empty-slot i {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  body.mode-storybook #page-3 .stack-empty-slot .slot-title {
    font-size: .72rem;
  }

  body.mode-storybook #page-3 .stack-empty-slot .slot-hint {
    font-size: .62rem;
    margin-top: 2px;
  }

  body.mode-storybook #page-3 .photobooth-controls-bar {
    margin: 8px auto 5px;
    padding: 7px 8px;
    gap: 6px;
  }

  body.mode-storybook #page-3 .photobooth-btns-wrap {
    gap: 5px;
  }

  body.mode-storybook #page-3 .btn-booth-action {
    padding: 5px 7px;
    font-size: .68rem;
    gap: 4px;
  }

  body.mode-storybook #page-3 .photobooth-footer-signature {
    margin-top: 4px;
  }

  body.mode-storybook #page-3 .signature-cursive {
    font-size: .85rem;
    line-height: 1.1;
  }
}
