/* 사진 */
#app-photos .app-back, .pt-add { color: #007aff; }
.pt-add { font-size: 16px; font-weight: 500; padding: 6px 10px; cursor: pointer; }
.pt-pane { display: none; }
#app-photos[data-tab="library"] [data-ptpane="library"], #app-photos[data-tab="collections"] [data-ptpane="collections"], #app-photos[data-tab="albums"] [data-ptpane="albums"],
#app-photos[data-tab="album"] [data-ptpane="album"], #app-photos[data-tab="search"] [data-ptpane="search"] { display: block; }
.pt-h { font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin: 2px 16px 2px; }
.pt-sub { font-size: 13px; color: #8e8e93; margin: 0 16px 10px; }
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pt-cell { appearance: none; border: 0; padding: 0; position: relative; aspect-ratio: 1; background: #e5e5ea center / cover no-repeat; cursor: pointer; overflow: hidden; }
.pt-cell video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.pt-badge { position: absolute; right: 5px; bottom: 4px; color: #fff; font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.pt-heart { position: absolute; left: 5px; bottom: 3px; color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.pt-empty { font-size: 14px; color: #8e8e93; padding: 16px; grid-column: 1 / -1; }
.pt-coll { margin-bottom: 18px; }
.pt-coll-h { appearance: none; border: 0; background: none; font: inherit; color: inherit; width: 100%; display: flex; align-items: baseline; justify-content: space-between; padding: 6px 16px 8px; cursor: pointer; }
.pt-coll-h b { font-size: 20px; font-weight: 700; } .pt-coll-h span { font-size: 15px; color: #8e8e93; }
.pt-strip { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px; touch-action: pan-x pan-y; scrollbar-width: none; }
.pt-strip::-webkit-scrollbar { display: none; }
.pt-strip .pt-cell { width: 120px; flex: none; border-radius: 10px; }
.pt-albums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 4px 16px; }
.pt-album { appearance: none; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pt-cover { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 10px; background: #e5e5ea center / cover no-repeat; color: #8e8e93; font-size: 26px; }
.pt-album b { display: block; font-size: 15px; font-weight: 500; margin-top: 6px; } .pt-album small { font-size: 13px; color: #8e8e93; }
.pt-search { display: flex; align-items: center; margin: 4px 16px 12px; padding: 0 12px; height: 38px; border-radius: 10px; background: rgba(118,118,128,.12); }
.pt-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 16px; }
.pt-tabs { flex: none; display: flex; justify-content: space-around; border-top: .5px solid #d1d1d6; padding: 5px 0 0; background: rgba(249,249,249,.96); }
.pt-tab { appearance: none; border: 0; background: none; font: inherit; color: #8e8e93; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 500; padding: 2px 8px; cursor: pointer; }
.pt-tab.on { color: #007aff; }
.pt-tab svg { width: 25px; height: 25px; fill: currentColor; }
.pt-viewer { position: absolute; inset: 0; z-index: 6; display: none; flex-direction: column; background: #000; color: #fff; padding-top: max(env(safe-area-inset-top), 6px); }
#app-photos.viewing .pt-viewer { display: flex; }
.pt-vtop { display: flex; align-items: center; height: 50px; padding: 0 8px; flex: none; }
.pt-vtop .app-back { color: #fff; }
.pt-vtitle { flex: 1; text-align: center; margin-right: 44px; line-height: 1.2; } .pt-vtitle b { display: block; font-size: 15px; } .pt-vtitle small { font-size: 12px; color: rgba(255,255,255,.6); }
.pt-stage { flex: 1; min-height: 0; display: grid; place-items: center; touch-action: none; overflow: hidden; }
.pt-stage img, .pt-stage video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-select: none; }
.pt-vbar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 4px; }
.pt-vbtn { appearance: none; border: 0; background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: 15px; padding: 8px 14px; border-radius: 18px; cursor: pointer; }
.pt-vbtn:disabled { opacity: .3; }
.pt-vbtn.on { color: #ff375f; }
#ptVCount { font-size: 13px; color: rgba(255,255,255,.7); }
.pt-viewer .app-homebar { color: #fff; }
/* 기본 사진: 구도·색감을 바꾼 사진 */
.pt-crop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; -webkit-user-select: none; }
.pt-cover { position: relative; overflow: hidden; }
.pt-more { grid-column: 1 / -1; height: 1px; }
.pt-heart, .pt-badge { z-index: 1; }
.pt-frame { position: relative; overflow: hidden; }
.pt-stage .pt-frame img { max-width: none; max-height: none; object-fit: cover; }
.pt-vprog { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); z-index: 2; }
.pt-vprog i { display: block; height: 100%; width: 0; border-radius: 2px; background: #fff; }
.pt-vtime { position: absolute; left: 12px; bottom: 20px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); z-index: 2; font-variant-numeric: tabular-nums; }
.pt-vplay { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 26px; z-index: 2; display: none; pointer-events: none; }
.pt-vplay.show { display: grid; place-items: center; }
