/* ============================================================
   VISORA FRAME ART — Premium CSS Design System
   Version: 1.0 | font: Inter + Playfair Display
   ============================================================ */

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

/* ── TOKENS ── */
:root {
  --vfa-white: #ffffff;
  --vfa-ivory: #f9f6f1;
  --vfa-ivory-2: #f2ede5;
  --vfa-beige: #e8e0d3;
  --vfa-beige-2: #d5c9b8;
  --vfa-warm-gray: #9a9189;
  --vfa-mid-gray: #6b645c;
  --vfa-dark: #1a1916;
  --vfa-ink: #2a2825;
  --vfa-gold: #b8935a;
  --vfa-gold-light: #d4aa72;
  --vfa-shadow: rgba(26, 25, 22, 0.08);
  --vfa-shadow-lg: rgba(26, 25, 22, 0.16);

  --vfa-radius-sm: 8px;
  --vfa-radius: 14px;
  --vfa-radius-lg: 20px;
  --vfa-radius-xl: 28px;

  --vfa-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-elegant: 'Cormorant Garamond', Georgia, serif;
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.vfa-body {
  font-family: var(--font-sans);
  background: var(--vfa-white);
  color: var(--vfa-ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── PAGE WRAPPER ── */
.vfa-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--vfa-ivory);
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.vfa-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 246, 241, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184, 147, 90, 0.15);
  padding: 0 clamp(20px, 5vw, 48px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vfa-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.vfa-nav-logo-pill {
  background: var(--vfa-dark);
  color: var(--vfa-ivory);
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.vfa-nav-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--vfa-ink);
  letter-spacing: 0.01em;
}

.vfa-nav-subtitle {
  font-size: 10px;
  color: var(--vfa-warm-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vfa-nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--vfa-warm-gray);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--vfa-beige-2);
  border-radius: 100px;
  transition: var(--vfa-transition);
}

.vfa-nav-back:hover {
  color: var(--vfa-ink);
  border-color: var(--vfa-ink);
  background: var(--vfa-ivory-2);
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.vfa-hero {
  background: linear-gradient(135deg, var(--vfa-ivory) 0%, var(--vfa-ivory-2) 60%, var(--vfa-beige) 100%);
  border-bottom: 1px solid var(--vfa-beige);
  padding: clamp(40px, 8vw, 72px) clamp(20px, 5vw, 48px);
  position: relative;
  overflow: hidden;
}

.vfa-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(184, 147, 90, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.vfa-hero-inner {
  max-width: 640px;
}

.vfa-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(184, 147, 90, 0.12);
  color: var(--vfa-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(184, 147, 90, 0.25);
  margin-bottom: 16px;
}

.vfa-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--vfa-ink);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.vfa-hero h1 em {
  font-style: italic;
  color: var(--vfa-gold);
}

.vfa-hero p {
  font-size: 15px;
  color: var(--vfa-mid-gray);
  line-height: 1.7;
  max-width: 480px;
}

/* ══════════════════════════════════════════════════════════
   EDITOR SECTION
══════════════════════════════════════════════════════════ */
.vfa-editor-section {
  flex: 1;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 40px);
}

.vfa-editor-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

/* ══════════════════════════════════════════════════════════
   LEFT CONTROLS PANEL
══════════════════════════════════════════════════════════ */
.vfa-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Step Card */
.vfa-step-card {
  background: var(--vfa-white);
  border: 1px solid var(--vfa-beige);
  border-radius: var(--vfa-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--vfa-shadow);
  transition: box-shadow var(--vfa-transition);
}

.vfa-step-card:hover {
  box-shadow: 0 4px 24px var(--vfa-shadow-lg);
}

.vfa-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--vfa-ivory-2);
  cursor: pointer;
  user-select: none;
}

.vfa-step-num {
  width: 28px;
  height: 28px;
  background: var(--vfa-ink);
  color: var(--vfa-ivory);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--vfa-transition);
}

.vfa-step-card.vfa-step-done .vfa-step-num {
  background: #5a8a6a;
}

.vfa-step-card.vfa-step-done .vfa-step-num::after {
  content: '✓';
}

.vfa-step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--vfa-ink);
  letter-spacing: 0.01em;
  flex: 1;
}

.vfa-step-subtitle {
  font-size: 11px;
  color: var(--vfa-warm-gray);
  margin-top: 2px;
}

.vfa-step-chevron {
  color: var(--vfa-beige-2);
  font-size: 12px;
  transition: transform var(--vfa-transition);
}

.vfa-step-card.vfa-step-open .vfa-step-chevron {
  transform: rotate(180deg);
}

.vfa-step-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vfa-step-card.vfa-step-collapsed .vfa-step-body {
  display: none;
}

/* Form Fields */
.vfa-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vfa-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--vfa-mid-gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vfa-label .req {
  color: #c0765a;
  margin-left: 3px;
}

.vfa-input,
.vfa-textarea {
  width: 100%;
  background: var(--vfa-ivory);
  border: 1.5px solid var(--vfa-beige);
  border-radius: var(--vfa-radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: var(--font-sans);
  color: var(--vfa-ink);
  outline: none;
  transition: border-color var(--vfa-transition), box-shadow var(--vfa-transition);
}

.vfa-input::placeholder,
.vfa-textarea::placeholder {
  color: var(--vfa-beige-2);
}

.vfa-input:focus,
.vfa-textarea:focus {
  border-color: var(--vfa-gold);
  box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.12);
  background: var(--vfa-white);
}

.vfa-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.55;
}

/* ── Template Selector ── */
.vfa-template-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vfa-template-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--vfa-ivory);
  border: 1.5px solid var(--vfa-beige);
  border-radius: var(--vfa-radius);
  cursor: pointer;
  transition: all var(--vfa-transition);
}

.vfa-template-card:hover {
  border-color: var(--vfa-gold-light);
  background: rgba(184, 147, 90, 0.04);
}

.vfa-template-card.selected {
  border-color: var(--vfa-gold);
  background: rgba(184, 147, 90, 0.08);
  box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.15);
}

.vfa-template-thumb {
  width: 72px;
  height: 50px;
  background: var(--vfa-beige);
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

/* Mini template 1 thumbnail */
.vfa-tmpl-thumb-1 {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: 1fr 0.7fr;
  gap: 2px;
  padding: 3px;
  height: 100%;
}

.vfa-tmpl-thumb-1 .t-main {
  grid-row: 1;
  grid-column: 1;
  background: var(--vfa-beige-2);
  border-radius: 2px;
}

.vfa-tmpl-thumb-1 .t-side {
  background: var(--vfa-beige-2);
  border-radius: 2px;
}

.vfa-tmpl-thumb-1 .t-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.vfa-tmpl-thumb-1 .t-bottom div {
  background: var(--vfa-beige-2);
  border-radius: 2px;
}

.vfa-template-info {
  flex: 1;
}

.vfa-template-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--vfa-ink);
  margin-bottom: 3px;
}

.vfa-template-desc {
  font-size: 11px;
  color: var(--vfa-warm-gray);
  line-height: 1.45;
}

.vfa-template-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--vfa-beige-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--vfa-transition);
  flex-shrink: 0;
}

.vfa-template-card.selected .vfa-template-check {
  background: var(--vfa-gold);
  border-color: var(--vfa-gold);
  color: white;
  font-size: 10px;
}

/* ── Logo Toggle ── */
.vfa-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--vfa-ivory);
  border: 1.5px solid var(--vfa-beige);
  border-radius: var(--vfa-radius-sm);
}

.vfa-toggle-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--vfa-ink);
}

.vfa-toggle-desc {
  font-size: 11px;
  color: var(--vfa-warm-gray);
  margin-top: 2px;
}

.vfa-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.vfa-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.vfa-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--vfa-beige);
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--vfa-transition);
}

.vfa-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--vfa-transition);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.vfa-toggle input:checked+.vfa-toggle-slider {
  background: var(--vfa-gold);
}

.vfa-toggle input:checked+.vfa-toggle-slider::before {
  transform: translateX(18px);
}

/* ── Logo Upload Zone ── */
.vfa-logo-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1.5px dashed var(--vfa-beige-2);
  border-radius: var(--vfa-radius-sm);
  cursor: pointer;
  transition: all var(--vfa-transition);
  background: var(--vfa-ivory);
}

.vfa-logo-zone:hover {
  border-color: var(--vfa-gold);
  background: rgba(184, 147, 90, 0.04);
}

.vfa-logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--vfa-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
  flex-shrink: 0;
}

.vfa-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vfa-logo-text p {
  font-size: 13px;
  font-weight: 500;
  color: var(--vfa-ink);
}

.vfa-logo-text small {
  font-size: 11px;
  color: var(--vfa-warm-gray);
}

/* ── Photo Slots ── */
.vfa-photo-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vfa-photo-slot-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--vfa-beige);
  border-radius: var(--vfa-radius-sm);
  cursor: pointer;
  transition: all var(--vfa-transition);
  background: var(--vfa-ivory);
}

.vfa-photo-slot-row:hover {
  border-color: var(--vfa-gold-light);
  background: rgba(184, 147, 90, 0.04);
}

.vfa-photo-slot-row.has-photo {
  border-color: #6ea882;
  background: rgba(110, 168, 130, 0.06);
}

.vfa-slot-thumb {
  width: 44px;
  height: 36px;
  background: var(--vfa-beige);
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--vfa-warm-gray);
}

.vfa-slot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vfa-slot-info {
  flex: 1;
}

.vfa-slot-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--vfa-ink);
}

.vfa-slot-size {
  font-size: 11px;
  color: var(--vfa-warm-gray);
}

.vfa-slot-status {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--vfa-beige);
  color: var(--vfa-warm-gray);
  font-weight: 500;
}

.vfa-photo-slot-row.has-photo .vfa-slot-status {
  background: rgba(110, 168, 130, 0.15);
  color: #4a7a5a;
}

/* ── Action Buttons ── */
.vfa-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vfa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--vfa-radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: all var(--vfa-transition);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.vfa-btn-primary {
  background: var(--vfa-ink);
  color: var(--vfa-ivory);
}

.vfa-btn-primary:hover {
  background: #302e2b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 25, 22, 0.25);
}

.vfa-btn-primary:active {
  transform: translateY(0);
}

.vfa-btn-order {
  background: linear-gradient(135deg, #25d366, #128c5e);
  color: white;
}

.vfa-btn-order:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.vfa-btn-outline {
  background: transparent;
  color: var(--vfa-ink);
  border: 1.5px solid var(--vfa-beige-2);
}

.vfa-btn-outline:hover {
  border-color: var(--vfa-ink);
  background: var(--vfa-ivory-2);
  color: var(--vfa-ink) !important;
}

.vfa-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Required note */
.vfa-required-note {
  font-size: 11px;
  color: var(--vfa-warm-gray);
  text-align: center;
  padding: 6px 0;
}

.vfa-required-note span {
  color: #c0765a;
}

/* ══════════════════════════════════════════════════════════
   RIGHT: PREVIEW PANEL
══════════════════════════════════════════════════════════ */
.vfa-preview-col {
  position: sticky;
  top: 80px;
}

.vfa-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.vfa-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--vfa-warm-gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vfa-size-badge {
  background: var(--vfa-beige);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 500;
  color: var(--vfa-mid-gray);
  letter-spacing: 0.04em;
}

/* Mode Toggle Pills */
.vfa-mode-toggle {
  display: flex;
  background: var(--vfa-beige);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}

.vfa-mode-btn {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--vfa-warm-gray);
  transition: all var(--vfa-transition);
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}

.vfa-mode-btn.active {
  background: var(--vfa-white);
  color: var(--vfa-ink);
  box-shadow: 0 1px 6px var(--vfa-shadow);
}

/* ── Frame Container ── */
.vfa-preview-wrap {
  background: #e8e4dc;
  border-radius: var(--vfa-radius-xl);
  padding: 20px;
  box-shadow: 0 4px 32px rgba(26, 25, 22, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* A4 landscape ratio 297:210 ≈ 1.414:1 */
.vfa-canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 297/210;
  border-radius: 0;
  /* Square corners, no rounding like real picture frames */
  overflow: hidden;
  /* Premium 3D White Picture Frame */
  border: 24px solid #ffffff;
  outline: 1.5px solid rgba(26, 25, 22, 0.18);
  /* Sharper boundary outline for white-on-white contrast */
  box-shadow:
    /* Extra deep and soft layered drop shadow to lift the white frame off the page */
    0 35px 80px rgba(0, 0, 0, 0.45),
    0 15px 35px rgba(0, 0, 0, 0.28),
    0 5px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--vfa-transition);
}

.vfa-canvas-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  /* Overlay on top of the photos and background template */
  box-shadow:
    /* Luxury inner gold trim fillet */
    /* inset 0 0 0 2.5px #d4af37, */
    /* Inner shadow box depth (cast on the artwork) */
    inset 0 15px 35px rgba(0, 0, 0, 0.45),
    inset 0 4px 10px rgba(0, 0, 0, 0.25),
    /* Bevel edge highlight inside the gold fillet */
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ══════════════════════════════════════════════════════════
   FRAME ART TEMPLATE 1 — PNG BACKGROUND + OVERLAY SYSTEM
══════════════════════════════════════════════════════════ */
.vfa-render {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
  background: #ffffff;
  /* fallback color matches PNG background */
  container-type: inline-size;
}

/* ── Background PNG layer ── */
.vfa-bg-layer {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

[data-template="template-1"] .vfa-bg-layer {
  background-image: url('../img/frame_art_template_1.png');
}

[data-template="template-2"] .vfa-bg-layer {
  background-image: url('../img/frame_art_template_2.png');
}

[data-template="template-3"] .vfa-bg-layer {
  background-image: url('../img/frame_art_template_3.png');
}

[data-template="template-4"] .vfa-bg-layer {
  background-image: url('../img/frame_art_template_4.png');
}

/* Production mode: fade background to soft guide silhouettes */
.vfa-render[data-mode="production"] .vfa-bg-layer {
  opacity: 0.09;
  filter: grayscale(1) brightness(0.9);
}

/* ── All overlays float above background ── */
.vfa-ov-banner,
.vfa-ov-slot,
.vfa-ov-quote,
.vfa-mode-info-badge,
.vfa-print-guide-note {
  position: absolute;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════════
   LOGO OVERLAY
   Positioned over the circular LOGO placeholder in PNG
   Approx: left 4.5%, top 6%, diameter ~10% of width
══════════════════════════════════════════════════════════ */

.vfa-ov-banner {
  left: 5.8%;
  top: 5.5%;
  height: 12.5%;
  display: flex;
  align-items: center;
  gap: clamp(3px, 1.5cqw, 16px);
  max-width: 50%;
}

.vfa-ov-divider {
  width: 1.5px;
  height: 80%;
  background: rgba(184, 147, 90, 0.45);
  /* background: rgba(0, 0, 0, 0.45); */
  flex-shrink: 0;
}

.vfa-ov-logo {
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d4af37;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1px, 0.4cqw, 4px);
  flex-shrink: 0;
}

.vfa-ov-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   HEADER TEXT OVERLAY
   Covers PNG placeholder: "Nama Lengkap", "Nama Sekolah",
   "Kota, XX Januari 2026"
   Approx: starts left ~16.5%, top ~7%
══════════════════════════════════════════════════════════ */
.vfa-ov-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vfa-ov-name {
  font-family: var(--font-serif);
  font-size: clamp(8px, 2.6cqw, 32px);
  font-weight: 700;
  color: #2a2825;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vfa-ov-school {
  font-size: clamp(6.5px, 1.7cqw, 20px);
  color: #6b645c;
  margin-top: 2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vfa-ov-date {
  font-size: clamp(5.5px, 1.4cqw, 15px);
  color: #9a9189;
  margin-top: 2px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   PHOTO SLOT OVERLAYS — Template 1
   Transparent overlays sit exactly over the gray boxes in PNG.
   Photos use object-fit: cover to fill without stretching.
   
   Positions calibrated to the Frame Art Template 1 PNG layout:
   ┌───────────────────────────────┐
   │ [   8.5×7.5  ] [ 4×6 ]      │  ← Row 1
   │ [   main     ] [ 4×6 ]  deco │
   │ [ 4×4.3 ][ 4×4.3 ][ 4×4.3 ] │  ← Row 2
   └───────────────────────────────┘
══════════════════════════════════════════════════════════ */
.vfa-ov-slot {
  overflow: hidden;
  cursor: pointer;
  transition: all var(--vfa-transition);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(184, 147, 90, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vfa-ov-slot::before {
  content: '+';
  font-family: var(--font-sans);
  font-size: clamp(12px, 2.5cqw, 24px);
  color: var(--vfa-gold);
  opacity: 0.7;
  transition: all var(--vfa-transition);
}

.vfa-ov-slot:hover {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--vfa-gold);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.02),
    0 4px 12px rgba(184, 147, 90, 0.18);
}

.vfa-ov-slot:hover::before {
  opacity: 1;
  transform: scale(1.1);
}

.vfa-ov-slot.has-image {
  background: transparent;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vfa-ov-slot.has-image::before {
  display: none;
}

.vfa-ov-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ← fixes photo stretching */
  object-position: center;
  display: block;
}

/* ── Slot positions (% of container width/height) ── */

/* Main photo 8.5 × 7.5 */
.vfa-ov-main {
  left: 5.8%;
  top: 24.5%;
  width: 32%;
  height: 43.5%;
}

/* Side photo 1 — 4 × 6 (top right of photo area) */
.vfa-ov-side1 {
  left: 38.8%;
  top: 24.5%;
  width: 19%;
  height: 21%;
}

/* Side photo 2 — 4 × 6 (bottom right of photo area) */
.vfa-ov-side2 {
  left: 38.8%;
  top: 46%;
  width: 19%;
  height: 21.5%;
}

/* Bottom row — 4 × 4.3 (three equal columns) */
.vfa-ov-bot1 {
  left: 5.8%;
  top: 69%;
  width: 16.8%;
  height: 26%;
}

.vfa-ov-bot2 {
  left: 23.5%;
  top: 69%;
  width: 16.8%;
  height: 26%;
}

.vfa-ov-bot3 {
  left: 41.2%;
  top: 69%;
  width: 16.8%;
  height: 26%;
}

/* ══════════════════════════════════════════════════════════
   QUOTE TEXT OVERLAY
   Positioned over PNG's quote area (bottom-right section)
══════════════════════════════════════════════════════════ */
.vfa-ov-quote {
  left: 60%;
  top: 70%;
  width: 34%;
  text-align: center;
  background: transparent;
  padding: 0;
  margin-top: clamp(10px, 4.5cqw, 50px);
}

.vfa-ov-medal-container {
  position: absolute;
  display: none;
}

[data-watermark="medali"] .vfa-ov-medal-container,
[data-watermark="rustic"] .vfa-ov-medal-container {
  display: block !important;
  left: 61% !important;
  top: 20% !important;
  width: 32cqw !important;
  height: auto;
  z-index: 2;
  text-align: center;
}

[data-watermark="none"] .vfa-ov-medal-container {
  display: none !important;
}

.vfa-ov-medal-img {
  width: 100%;
  height: auto;
  display: block;
}

.vfa-ov-quote-main {
  font-family: var(--font-elegant);
  font-style: italic;
  font-size: clamp(7.5px, 2.0cqw, 22px);
  color: #8c6a35;
  line-height: 1.45;
  font-weight: 500;
}

.vfa-ov-quote-sub {
  font-size: clamp(5.5px, 1.4cqw, 15px);
  color: #55504a;
  line-height: 1.45;
  margin-top: clamp(2px, 0.5cqw, 6px);
}

/* ══════════════════════════════════════════════════════════
   MODE BADGE & PRINT NOTE
══════════════════════════════════════════════════════════ */
.vfa-mode-info-badge {
  top: 6px;
  right: 8px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  pointer-events: none;
}

.vfa-render[data-mode="preview"] .vfa-mode-info-badge {
  background: rgba(184, 147, 90, 0.15);
  color: var(--vfa-gold);
}

.vfa-render[data-mode="production"] .vfa-mode-info-badge {
  background: rgba(90, 90, 90, 0.12);
  color: #888;
}

.vfa-print-guide-note {
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6.5px;
  color: #888;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.vfa-render[data-mode="production"] .vfa-print-guide-note {
  opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════════════ */
.vfa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 25, 22, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vfa-modal-overlay.open {
  display: flex;
}

.vfa-modal {
  background: var(--vfa-white);
  border-radius: var(--vfa-radius-xl);
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(26, 25, 22, 0.25);
  animation: vfaModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes vfaModalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.vfa-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--vfa-ivory-2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--vfa-warm-gray);
  transition: all var(--vfa-transition);
}

.vfa-modal-close:hover {
  background: var(--vfa-beige);
  color: var(--vfa-ink);
}

.vfa-modal-emoji {
  font-size: 42px;
  text-align: center;
  margin-bottom: 16px;
}

.vfa-modal h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--vfa-ink);
  text-align: center;
  margin-bottom: 8px;
}

.vfa-modal>p {
  font-size: 13.5px;
  color: var(--vfa-mid-gray);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
}

.vfa-share-box {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.vfa-share-box .vfa-input {
  flex: 1;
  font-size: 12px;
}

.vfa-btn-sm {
  padding: 10px 14px;
  font-size: 12px;
  white-space: nowrap;
}

.vfa-btn-wa {
  background: linear-gradient(135deg, #25d366, #128c5e);
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--vfa-radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--vfa-transition);
}

.vfa-btn-wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.vfa-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vfa-crop-wrap {
  background: var(--vfa-ink);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  max-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vfa-crop-wrap img {
  max-width: 100%;
  max-height: 340px;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .vfa-editor-grid {
    grid-template-columns: 340px 1fr;
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .vfa-editor-grid {
    grid-template-columns: 1fr;
  }

  .vfa-preview-col {
    position: static;
    order: -1;
  }

  .vfa-editor-section {
    padding: 16px;
  }

  .vfa-canvas-wrapper {
    border-width: 14px !important;
  }
}

@media (max-width: 480px) {
  .vfa-hero {
    padding: 32px 16px;
  }

  .vfa-hero h1 {
    font-size: 26px;
  }

  .vfa-modal {
    padding: 28px 20px;
  }

  .vfa-canvas-wrapper {
    border-width: 8px !important;
  }
}

/* ══════════════════════════════════════════════════════════
   PRINT STYLES
══════════════════════════════════════════════════════════ */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body {
    background: white !important;
  }

  .vfa-nav,
  .vfa-hero,
  .vfa-controls,
  .vfa-mode-toggle,
  .vfa-preview-header {
    display: none !important;
  }

  .vfa-editor-grid {
    grid-template-columns: 1fr;
  }

  .vfa-preview-col {
    position: static;
  }

  .vfa-preview-wrap {
    background: none;
    padding: 0;
    box-shadow: none;
  }

  .vfa-canvas-wrapper {
    border-radius: 0;
    box-shadow: none;
  }

  /* Ensure background layer color & image print correct settings */
  .vfa-bg-layer {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Preview mode prints full opacity background design */
  .vfa-render[data-mode="preview"] .vfa-bg-layer {
    opacity: 1 !important;
    filter: none !important;
  }

  /* Production mode prints guide silhouette */
  .vfa-render[data-mode="production"] .vfa-bg-layer {
    opacity: 0.09 !important;
    filter: grayscale(1) brightness(0.9) !important;
  }
}

/* ── Utility ── */
.vfa-hidden {
  display: none !important;
}

/* Step progress dots */
.vfa-step-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  margin-bottom: 20px;
}

.vfa-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vfa-beige);
  transition: all var(--vfa-transition);
}

.vfa-progress-dot.done {
  background: var(--vfa-gold);
  width: 20px;
  border-radius: 100px;
}

.vfa-progress-dot.current {
  background: var(--vfa-ink);
}

.vfa-progress-line {
  flex: 1;
  height: 1px;
  background: var(--vfa-beige);
}


/* ============================================================
   TEMPLATE 2 — COLLAGE & SILHOUETTE LAYOUT
   ============================================================ */

/* Hide/show slots based on template layout */
[data-layout="standard"] .vfa-ov-main,
[data-layout="standard"] .vfa-ov-side1,
[data-layout="standard"] .vfa-ov-side2,
[data-layout="standard"] .vfa-ov-slot.vfa-ov-bot1,
[data-layout="standard"] .vfa-ov-slot.vfa-ov-bot2,
[data-layout="standard"] .vfa-ov-slot.vfa-ov-bot3 {
  display: flex !important;
}

[data-layout="standard"] .vfa-ov-t2-main,
[data-layout="standard"] .vfa-ov-t2-mini1,
[data-layout="standard"] .vfa-ov-t2-mini2,
[data-layout="standard"] .vfa-ov-t2-mini3,
[data-layout="standard"] .vfa-ov-t4-main,
[data-layout="standard"] .vfa-ov-t4-mini1,
[data-layout="standard"] .vfa-ov-t4-mini2,
[data-layout="standard"] .vfa-ov-t4-mini3 {
  display: none !important;
}

[data-layout="collage-siluet-right"] .vfa-ov-main,
[data-layout="collage-siluet-right"] .vfa-ov-side1,
[data-layout="collage-siluet-right"] .vfa-ov-side2,
[data-layout="collage-siluet-right"] .vfa-ov-slot.vfa-ov-bot1,
[data-layout="collage-siluet-right"] .vfa-ov-slot.vfa-ov-bot2,
[data-layout="collage-siluet-right"] .vfa-ov-slot.vfa-ov-bot3 {
  display: none !important;
}

[data-layout="collage-siluet-right"] .vfa-ov-t4-main,
[data-layout="collage-siluet-right"] .vfa-ov-t4-mini1,
[data-layout="collage-siluet-right"] .vfa-ov-t4-mini2,
[data-layout="collage-siluet-right"] .vfa-ov-t4-mini3 {
  display: none !important;
}

[data-layout="collage-siluet-right"] .vfa-ov-t2-main,
[data-layout="collage-siluet-right"] .vfa-ov-t2-mini1,
[data-layout="collage-siluet-right"] .vfa-ov-t2-mini2,
[data-layout="collage-siluet-right"] .vfa-ov-t2-mini3 {
  display: flex !important;
}

[data-layout="collage-polaroid-left"] .vfa-ov-main,
[data-layout="collage-polaroid-left"] .vfa-ov-side1,
[data-layout="collage-polaroid-left"] .vfa-ov-side2,
[data-layout="collage-polaroid-left"] .vfa-ov-slot.vfa-ov-bot1,
[data-layout="collage-polaroid-left"] .vfa-ov-slot.vfa-ov-bot2,
[data-layout="collage-polaroid-left"] .vfa-ov-slot.vfa-ov-bot3,
[data-layout="collage-polaroid-left"] .vfa-ov-t2-main,
[data-layout="collage-polaroid-left"] .vfa-ov-t2-mini1,
[data-layout="collage-polaroid-left"] .vfa-ov-t2-mini2,
[data-layout="collage-polaroid-left"] .vfa-ov-t2-mini3 {
  display: none !important;
}

[data-layout="collage-polaroid-left"] .vfa-ov-t4-main,
[data-layout="collage-polaroid-left"] .vfa-ov-t4-mini1,
[data-layout="collage-polaroid-left"] .vfa-ov-t4-mini2,
[data-layout="collage-polaroid-left"] .vfa-ov-t4-mini3 {
  display: flex !important;
}

/* Template 2 Photo Slot Positions & Styling */

/* Main cutout photo on left with white outline & 3D shadow */
.vfa-ov-t2-main {
  left: 4.5%;
  top: 22%;
  width: 32%;
  height: 78%;
  z-index: 3;
  transition: all var(--vfa-transition);
}

/* Custom sticker outline & shadow when photo is loaded */
.vfa-ov-t2-main.has-image {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* .vfa-ov-t2-main.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px;
  filter: 
    drop-shadow(6px 0 0 #ffffff)
    drop-shadow(-6px 0 0 #ffffff)
    drop-shadow(0 6px 0 #ffffff)
    drop-shadow(0 -6px 0 #ffffff)
    drop-shadow(4px 4px 0 #ffffff)
    drop-shadow(-4px -4px 0 #ffffff)
    drop-shadow(4px -4px 0 #ffffff)
    drop-shadow(-4px 4px 0 #ffffff)
    drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
  transition: filter var(--vfa-transition);
} */

.vfa-ov-t2-main.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: all var(--vfa-transition);
  box-shadow:
    0 0 0 10px #fff,
    0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Mini Photos stacked vertically in center column with tilt, white border & shadow */
.vfa-ov-t2-mini1 {
  left: 35%;
  top: 21%;
  width: 20%;
  height: 22.5%;
  border: clamp(3px, 0.8cqw, 8px) solid #ffffff !important;
  transform: rotate(-3deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22) !important;
  z-index: 3;
}

.vfa-ov-t2-mini2 {
  left: 36%;
  top: 47%;
  width: 20%;
  height: 22.5%;
  border: clamp(3px, 0.8cqw, 8px) solid #ffffff !important;
  transform: rotate(2deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22) !important;
  z-index: 3;
}

.vfa-ov-t2-mini3 {
  left: 35.5%;
  top: 73%;
  width: 20%;
  height: 22.5%;
  border: clamp(3px, 0.8cqw, 8px) solid #ffffff !important;
  transform: rotate(-2deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22) !important;
  z-index: 3;
}

/* Template 2 Quote Styling Overrides (centered on the right side) */
[data-layout="collage-siluet-right"] .vfa-ov-quote {
  left: 58% !important;
  top: 34% !important;
  width: 36% !important;
  text-align: center !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-left: none !important;
  margin-top: 0 !important;
  z-index: 5;
}

[data-layout="collage-siluet-right"] .vfa-ov-quote-main {
  text-align: center !important;
  font-size: clamp(8px, 2.2cqw, 22px) !important;
  color: #2a2825 !important;
  font-family: var(--font-serif) !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

[data-layout="collage-siluet-right"] .vfa-ov-quote-sub {
  text-align: center !important;
  margin-top: clamp(12px, 3.5cqw, 36px) !important;
  font-size: clamp(6px, 1.4cqw, 14px) !important;
  color: #6b645c !important;
  line-height: 1.6 !important;
}

/* Responsive adjustment for Template 2 mini slots on mobile */
@media (max-width: 820px) {
  .vfa-ov-t2-main.has-image img {
    filter:
      drop-shadow(4px 0 0 #ffffff) drop-shadow(-4px 0 0 #ffffff) drop-shadow(0 4px 0 #ffffff) drop-shadow(0 -4px 0 #ffffff) drop-shadow(3px 3px 0 #ffffff) drop-shadow(-3px -3px 0 #ffffff) drop-shadow(3px -3px 0 #ffffff) drop-shadow(-3px 3px 0 #ffffff) drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
  }

  .vfa-ov-t2-mini1,
  .vfa-ov-t2-mini2,
  .vfa-ov-t2-mini3 {
    border-width: 5px !important;
  }
}

@media (max-width: 480px) {
  .vfa-ov-t2-main.has-image img {
    filter:
      drop-shadow(3px 0 0 #ffffff) drop-shadow(-3px 0 0 #ffffff) drop-shadow(0 3px 0 #ffffff) drop-shadow(0 -3px 0 #ffffff) drop-shadow(2px 2px 0 #ffffff) drop-shadow(-2px -2px 0 #ffffff) drop-shadow(2px -2px 0 #ffffff) drop-shadow(-2px 2px 0 #ffffff) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
  }

  .vfa-ov-t2-mini1,
  .vfa-ov-t2-mini2,
  .vfa-ov-t2-mini3 {
    border-width: 3.5px !important;
  }
}


/* ============================================================
   TEMPLATE 4 — SILHOUETTE ON RIGHT, COLLAGE ON LEFT
   ============================================================ */

/* Main photo on right (Silhouette Cutout) */
.vfa-ov-t4-main {
  left: 55%;
  top: 20%;
  width: 35%;
  height: 60%;
  z-index: 3;
  transition: all var(--vfa-transition);
}

.vfa-ov-t4-main.has-image {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.vfa-ov-t4-main.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: all var(--vfa-transition);
  box-shadow:
    0 0 0 10px #fff,
    0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Mini Polaroid Photos on left with tilt, white border & shadow */
.vfa-ov-t4-mini1 {
  left: 5.5%;
  top: 26%;
  width: 17%;
  height: 25.5%;
  border: clamp(3px, 0.8cqw, 8px) solid #ffffff !important;
  transform: rotate(-4deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22) !important;
  z-index: 3;
}

.vfa-ov-t4-mini2 {
  left: 23%;
  top: 28%;
  width: 17%;
  height: 25.5%;
  border: clamp(3px, 0.8cqw, 8px) solid #ffffff !important;
  transform: rotate(3deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22) !important;
  z-index: 3;
}

.vfa-ov-t4-mini3 {
  left: 12%;
  top: 50%;
  width: 18%;
  height: 27%;
  border: clamp(3px, 0.8cqw, 8px) solid #ffffff !important;
  transform: rotate(2deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22) !important;
  z-index: 4;
}

/* Quote styling for Template 4 (centered horizontally at the bottom of the entire frame) */
[data-layout="collage-polaroid-left"] .vfa-ov-quote {
  left: 5% !important;
  top: 84% !important;
  width: 90% !important;
  text-align: center !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-left: none !important;
  margin-top: 0 !important;
  z-index: 5;
}

[data-layout="collage-polaroid-left"] .vfa-ov-quote-main {
  text-align: center !important;
  font-family: var(--font-elegant) !important;
  font-style: italic !important;
  font-size: clamp(7.5px, 2.0cqw, 22px) !important;
  color: #8c6a35 !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
}

[data-layout="collage-polaroid-left"] .vfa-ov-quote-sub {
  text-align: center !important;
  margin-top: clamp(4px, 1cqw, 10px) !important;
  font-size: clamp(5.5px, 1.4cqw, 15px) !important;
  color: #55504a !important;
  line-height: 1.6 !important;
}

/* Responsive adjustments for Template 4 on mobile */
@media (max-width: 820px) {
  .vfa-ov-t4-main.has-image img {
    box-shadow:
      0 0 0 6px #fff,
      0 6px 15px rgba(0, 0, 0, 0.2);
  }

  .vfa-ov-t4-mini1,
  .vfa-ov-t4-mini2,
  .vfa-ov-t4-mini3 {
    border-width: 5px !important;
  }
}

@media (max-width: 480px) {
  .vfa-ov-t4-main.has-image img {
    box-shadow:
      0 0 0 4px #fff,
      0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .vfa-ov-t4-mini1,
  .vfa-ov-t4-mini2,
  .vfa-ov-t4-mini3 {
    border-width: 3.5px !important;
  }
}

/* Mini template 2 thumbnail */
.vfa-tmpl-thumb-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  height: 100%;
}

.vfa-tmpl-thumb-2 .t-main-sil {
  background: var(--vfa-beige-2);
  border-radius: 2px;
  border: 1px solid #ffffff;
}

.vfa-tmpl-thumb-2 .t-mini-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}

.vfa-tmpl-thumb-2 .t-mini-stack div {
  background: var(--vfa-beige-2);
  border-radius: 1px;
  height: 11px;
  border: 0.5px solid #ffffff;
}

.vfa-tmpl-thumb-2 .t-mini-stack div:nth-child(1) {
  transform: rotate(-3deg);
}

.vfa-tmpl-thumb-2 .t-mini-stack div:nth-child(2) {
  transform: rotate(2deg);
}

.vfa-tmpl-thumb-2 .t-mini-stack div:nth-child(3) {
  transform: rotate(-2deg);
}


/* Mini template 4 thumbnail */
.vfa-tmpl-thumb-4 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4px;
  padding: 4px;
  height: 100%;
}

.vfa-tmpl-thumb-4 .t-mini-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}

.vfa-tmpl-thumb-4 .t-mini-grid div {
  background: var(--vfa-beige-2);
  border-radius: 1px;
  height: 11px;
  border: 0.5px solid #ffffff;
}

.vfa-tmpl-thumb-4 .t-mini-grid div:nth-child(1) {
  transform: rotate(-3deg);
}

.vfa-tmpl-thumb-4 .t-mini-grid div:nth-child(2) {
  transform: rotate(2deg);
}

.vfa-tmpl-thumb-4 .t-mini-grid div:nth-child(3) {
  transform: rotate(-2deg);
}

.vfa-tmpl-thumb-4 .t-main-sil-r {
  background: var(--vfa-beige-2);
  border-radius: 2px;
  border: 1px solid #ffffff;
}