/* /public/css/gallery-folders.css (v2.19) Photos page: home movies on the Photos page and in albums, the place for the
   Photo Parlor (js/photo-parlor.js), album buttons, and the Classic look's plain folder manager (html.oh-classic).
   Loaded by gallery.html after css/gallery-studio.css. */

/* ---------- the Photo Parlor's place (Full look, main page) ---------- */
.gl-parlor[hidden]{display:none!important}
.gl-parlor{display:block;position:relative}
html.oh-classic .gl-parlor{display:none!important}

/* ---------- album buttons beside the breadcrumb (Full look) ---------- */
.gl-crumb-acts{display:inline-flex;flex-wrap:wrap;gap:2px;margin-left:auto}
.gl-crumb-acts .gl-rename{font-weight:700;text-decoration:none}
.gl-crumb-acts .gl-del{color:#b91c1c}
.gl-crumb-acts [aria-disabled="true"],.gl-cl-btn[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
html.theme-dark .gl-crumb-acts .gl-del{color:#fca5a5!important}

/* ---------- 🎬 home movie cards: a dark film frame, a ▶ badge and a "Home movie" label ---------- */
.gl-movie-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-bottom:6px}
.gl-movie{position:relative;min-width:0}
.gl-movie-link{display:flex;flex-direction:column;height:100%;text-decoration:none;color:#f4ecd8;background:#1d1726;border-radius:14px;padding:8px 8px 10px;
  box-shadow:0 6px 16px rgba(20,10,30,.18);border:1px solid #2f2640;transition:transform .15s,box-shadow .15s;
  background-image:repeating-linear-gradient(90deg,transparent 0 10px,rgba(255,255,255,.08) 10px 16px);background-size:100% 6px;background-repeat:repeat-x;background-position:0 2px}
.gl-movie-link:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(20,10,30,.28);color:#fff}
.gl-movie-link:focus-visible{outline:3px solid var(--oh-violet,#5b35c4);outline-offset:3px}
.gl-movie-pic{position:relative;display:block;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#000;margin-top:6px}
.gl-movie-pic img,.gl-movie-pic video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.gl-movie-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.92);color:#2b1a3a;
  display:flex;align-items:center;justify-content:center;font-size:1.1rem;padding-left:3px;box-shadow:0 4px 14px rgba(0,0,0,.45)}
.gl-movie-txt{display:flex;flex-direction:column;gap:1px;padding:8px 4px 0}
.gl-movie-kind{font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#f1c873}
.gl-movie-title{font-weight:800;font-size:.95rem;line-height:1.25;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.gl-movie-when{font-size:.78rem;color:#cfc6dd}
.gl-movie-x{position:absolute;top:4px;right:4px;width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:#5b5562;font-size:.95rem;
  box-shadow:0 2px 8px rgba(0,0,0,.35);z-index:1}
.gl-movie-x:hover{color:#b91c1c!important}
html.theme-dark .gl-movie-x{background:#f1eef5;color:#2b2233!important}
.gl-movie-x:focus-visible{outline:3px solid #fbbf24;outline-offset:1px}
.gl-movies{margin-top:4px}
html.theme-dark .gl-movie-link{border-color:#3d3450;background-color:#120e19}
html.theme-dark span.gl-movie-title{color:#fff!important}
html.theme-dark span.gl-movie-kind{color:#f1c873!important}
html.theme-dark span.gl-movie-when{color:#cfc6dd!important}

/* "Add a home movie" window */
.gl-pick-movies{display:flex;flex-direction:column;gap:6px;max-height:min(52vh,420px);overflow:auto;margin-top:10px}
.gl-pick-movie{display:flex;align-items:center;gap:10px;border:1px solid var(--gl-border,#e4e0d8);border-radius:12px;padding:6px 8px}
.gl-pick-pic{flex:none;width:84px;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:#000}
.gl-pick-pic img,.gl-pick-pic video{width:100%;height:100%;object-fit:cover;display:block}
.gl-pick-t{flex:1;min-width:0;display:flex;flex-direction:column}
.gl-pick-t b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gl-pick-t small{color:var(--gl-sub,#5b5562)}
.gl-pick-on{font-size:.82rem;font-weight:800;color:#166534}
html.theme-dark .gl-pick-movie{border-color:rgba(255,255,255,.12)}
html.theme-dark .gl-pick-t b{color:#f1eef5}
html.theme-dark span.gl-pick-on{color:#86efac!important}

@media (max-width:767.98px){
  .gl-movie-row{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
  .gl-movie-title{font-size:.85rem}
  .gl-crumb-acts{margin-left:0;width:100%}
}

/* ---------- 📄 Classic look: a plain folder manager ---------- */
/* no painted header, help card or photo of the week; the search box comes first */
html.oh-classic #glHero,html.oh-classic #glHelp,html.oh-classic #glWeek{display:none!important}
html.oh-classic .gl-bar{margin:6px 0 10px;gap:8px}
html.oh-classic .gl-search{order:-1;flex:1 1 100%}
html.oh-classic .gl-search input{border-radius:8px;height:44px}
html.oh-classic .gl-tabs{background:none;padding:0;gap:4px;flex-wrap:wrap;border-radius:0;overflow:visible}
html.oh-classic .gl-tabs button{border:1px solid #d8d3e2;background:#fff;color:#2b2233;border-radius:8px;box-shadow:none;padding:6px 12px}
html.oh-classic .gl-tabs button.active{background:var(--oh-violet,#5b35c4);border-color:var(--oh-violet,#5b35c4);color:#fff;box-shadow:none}
html.oh-classic .gl-sort{border-radius:8px}
/* breadcrumb: Photos › Family › Christmas */
html.oh-classic .gl-crumbs{margin:0 0 8px;padding:8px 12px;background:#f7f6f9;border:1px solid #e3e0e8;border-radius:8px;font-size:1rem}
html.oh-classic .gl-crumb{color:var(--oh-violet-strong,#3d1f8f);text-decoration:underline;text-underline-offset:2px}
html.oh-classic .gl-crumb-here{font-size:1rem;color:#2b2233}
/* the buttons */
.gl-cl-bar{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.gl-cl-btn{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 12px;border:1px solid #d8d3e2;background:#fff;color:#2b2233;border-radius:8px;font-weight:700;font-size:.92rem;line-height:1.1}
.gl-cl-btn svg{flex:none;width:17px;height:17px}
.gl-cl-btn:hover{border-color:var(--oh-violet,#5b35c4);color:var(--oh-violet-strong,#3d1f8f)}
.gl-cl-btn:focus-visible{outline:3px solid var(--oh-violet,#5b35c4);outline-offset:2px}
.gl-cl-btn.is-main{background:var(--oh-violet,#5b35c4);border-color:var(--oh-violet,#5b35c4);color:#fff}
.gl-cl-btn.is-main:hover{background:var(--oh-violet-strong,#3d1f8f);color:#fff}
.gl-cl-btn.gl-del{color:#b91c1c}
/* folders: an icon, the name and how many photos */
.gl-cl-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:6px;margin-bottom:10px}
.gl-cl-folder{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;text-align:left;min-height:56px;padding:8px 12px;
  border:1px solid #e3e0e8;background:#fff;border-radius:8px;color:#2b2233}
.gl-cl-folder:hover{border-color:var(--oh-violet,#5b35c4);background:#faf8ff}
.gl-cl-folder:focus-visible{outline:3px solid var(--oh-violet,#5b35c4);outline-offset:2px}
.gl-cl-ico{grid-row:1/3;width:36px;height:36px;border-radius:8px;background:var(--oh-violet,#5b35c4);color:#fff;display:inline-flex;align-items:center;justify-content:center}
.gl-cl-ico svg{width:19px;height:19px;stroke:currentColor}
.gl-cl-name{font-weight:800;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gl-cl-n{font-size:.82rem;color:#6b6475}
.gl-cl-h{margin:14px 0 8px}
.gl-cl-empty{padding:18px 12px;border-radius:8px}
/* plain photo tiles and movie cards */
html.oh-classic .gl-tile{border-radius:6px}
html.oh-classic .gl-tile:hover img{transform:none}
html.oh-classic .gl-movie-link{background:#fff;color:#2b2233;border:1px solid #e3e0e8;box-shadow:none;background-image:none;border-radius:8px}
html.oh-classic .gl-movie-link:hover{transform:none;border-color:var(--oh-violet,#5b35c4);color:#2b2233}
html.oh-classic .gl-movie-pic{margin-top:0;border-radius:6px}
html.oh-classic .gl-movie-kind{color:var(--oh-violet-strong,#3d1f8f)}
html.oh-classic .gl-movie-when{color:#6b6475}
html.oh-classic .gl-movie-play{width:40px;height:40px;background:rgba(0,0,0,.6);color:#fff;box-shadow:none}
/* Classic, dark */
html.oh-classic.theme-dark .gl-tabs button,html.oh-classic.theme-dark .gl-cl-btn,html.oh-classic.theme-dark .gl-cl-folder{background:#2b2832;border-color:#3d3945;color:#ece9f1}
html.oh-classic.theme-dark .gl-tabs button.active,html.oh-classic.theme-dark .gl-cl-btn.is-main{background:var(--oh-violet,#5b35c4);border-color:var(--oh-violet,#5b35c4);color:#fff}
html.oh-classic.theme-dark .gl-cl-btn span,html.oh-classic.theme-dark .gl-cl-name{color:inherit!important}
html.oh-classic.theme-dark .gl-cl-btn.gl-del{color:#fca5a5}
html.oh-classic.theme-dark .gl-cl-folder:hover{background:#332f3b;border-color:var(--oh-lavender,#a48bff)}
html.oh-classic.theme-dark .gl-cl-n,html.oh-classic.theme-dark span.gl-movie-when{color:#b7b1c2!important}
html.oh-classic.theme-dark .gl-crumbs{background:#24212a;border-color:#36333c}
html.oh-classic.theme-dark .gl-crumb{color:var(--oh-lavender-2,#c9b8ff)}
html.oh-classic.theme-dark .gl-crumb-here{color:#ece9f1!important}
html.oh-classic.theme-dark .gl-movie-link{background:#2b2832;border-color:#3d3945;color:#ece9f1}
html.oh-classic.theme-dark span.gl-movie-title{color:#ece9f1!important}
html.oh-classic.theme-dark span.gl-movie-kind{color:var(--oh-lavender-2,#c9b8ff)!important}
@media (max-width:767.98px){
  .gl-cl-folders{grid-template-columns:1fr}
  .gl-cl-btn{flex:1 1 calc(50% - 6px);justify-content:center}
  html.oh-classic .gl-tabs{width:100%}
  html.oh-classic .gl-tabs button{flex:1 1 calc(50% - 4px)}
}
