/* ── Y Moments School Gallery Styles ── */
.ym-gallery-wrap { max-width: 1200px; margin: 0 auto; }

/* Steps bar */
.ym-steps { display: flex; align-items: center; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.ym-step  { display: flex; align-items: center; gap: .5rem; padding: 10px 18px; border-radius: 50px; background: #f0f0f0; color: #888; font-weight: 600; font-size: .9rem; transition: all .3s; cursor: default; }
.ym-step.active   { background: #ff2d92; color: #fff; }
.ym-step.done     { background: #0b0b0b; color: #fff; cursor: pointer; }
.ym-step.done:hover { background: #ff2d92; }
.step-num { display: inline-flex; width: 22px; height: 22px; background: rgba(255,255,255,0.3); border-radius: 50%; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.ym-step-arrow { color: #ccc; font-size: 1.2rem; }

/* Breadcrumb */
.ym-breadcrumb { padding: 10px 16px; background: rgba(255,45,146,0.06); border-radius: 8px; margin-bottom: 1.5rem; font-size: .9rem; color: #555; }
.ym-breadcrumb span { color: #ff2d92; font-weight: 600; }
.ym-breadcrumb .bc-sep { margin: 0 8px; color: #ccc; }

/* Loading */
.ym-loading { text-align: center; padding: 60px 0; color: #888; }
.ym-spinner { width: 48px; height: 48px; border: 4px solid #f0e0e9; border-top-color: #ff2d92; border-radius: 50%; animation: ym-spin 0.8s linear infinite; margin: 0 auto 1rem; }
@keyframes ym-spin { to { transform: rotate(360deg); } }

/* Error */
.ym-error { padding: 18px 24px; background: #f8d7da; color: #721c24; border-radius: 10px; margin-bottom: 1.5rem; }

/* Panel titles */
.ym-panel-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 1.5rem; color: #0b0b0b; }

/* Folder grid */
.ym-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.2rem; }
.ym-folder-card { background: #fff; border: 2px solid rgba(255,45,146,0.18); border-radius: 14px; padding: 24px 20px; text-align: center; cursor: pointer; transition: all .25s; }
.ym-folder-card:hover { border-color: #ff2d92; transform: translateY(-4px); box-shadow: 0 10px 30px rgba(255,45,146,0.14); }
.ym-folder-card i { font-size: 2rem; color: #ff2d92; margin-bottom: .7rem; display: block; }
.ym-folder-card span { font-weight: 600; font-size: 1rem; color: #0b0b0b; word-break: break-word; }

/* Photo grid */
.ym-photos-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.ym-price-note { color: #888; font-size: .9rem; }
.ym-price-note i { color: #ff2d92; }

.ym-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.ym-photo-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: all .25s; cursor: pointer; position: relative; }
.ym-photo-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.ym-photo-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #f5f5f5; }
.ym-photo-card .ym-photo-footer { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.ym-photo-card .ym-photo-name { font-size: .85rem; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.ym-photo-card .ym-buy-btn { background: #ff2d92; color: #fff; border: none; border-radius: 20px; padding: 6px 14px; font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .2s; white-space: nowrap; }
.ym-photo-card .ym-buy-btn:hover { background: #0b0b0b; }
.ym-photo-card.in-cart::after { content: '✓ In Cart'; position: absolute; top: 10px; right: 10px; background: #28a745; color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 12px; }

/* Watermark overlay hint */
.ym-photo-card .ym-wm-hint { position: absolute; bottom: 50px; left: 0; right: 0; text-align: center; font-size: .75rem; color: rgba(255,255,255,0.9); background: rgba(0,0,0,0.4); padding: 4px; opacity: 0; transition: opacity .2s; }
.ym-photo-card:hover .ym-wm-hint { opacity: 1; }

/* Lightbox */
.ym-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ym-lightbox-inner { background: #fff; border-radius: 20px; overflow: hidden; max-width: 700px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; }
.ym-lightbox-inner img { width: 100%; max-height: 65vh; object-fit: contain; background: #111; }
.ym-lb-close { position: absolute; top: 20px; right: 24px; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1.8rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.ym-lb-close:hover { background: #ff2d92; }
.ym-lb-actions { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.ym-lb-name { font-size: .95rem; color: #555; margin: 0; }
.ym-lb-buy { font-size: 1rem !important; padding: 12px 28px !important; }

/* Cart toast */
.ym-toast { position: fixed; bottom: 30px; right: 30px; background: #0b0b0b; color: #fff; padding: 14px 20px; border-radius: 12px; display: flex; align-items: center; gap: 12px; z-index: 99998; box-shadow: 0 10px 30px rgba(0,0,0,0.3); font-size: .95rem; animation: ym-toast-in .3s ease; }
.ym-toast i { color: #28a745; font-size: 1.2rem; }
.ym-toast-link { color: #ff2d92; font-weight: 600; white-space: nowrap; }
@keyframes ym-toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Empty state */
.ym-empty { text-align: center; padding: 60px 0; color: #aaa; }
.ym-empty i { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* Responsive */
@media (max-width: 600px) {
    .ym-folder-grid { grid-template-columns: repeat(2, 1fr); }
    .ym-photo-grid  { grid-template-columns: repeat(2, 1fr); }
    .ym-steps       { gap: .25rem; }
    .ym-step        { padding: 8px 12px; font-size: .8rem; }
    .ym-lb-actions  { flex-direction: column; }
}
