/*
 * 스토리 앨범 모드(2026-09-30) - 스크랩북 표지·페이지. 그리기는 public/js/story-album.js, 목록은 src/config/story_album.php.
 * 페이지 안의 크기는 전부 cqw(페이지 폭의 1%) - 폰·PC·첫 화면 책장 썸네일이 같은 코드로 크기만 달라진다.
 * 앨범 안의 색(종이·코르크·테이프·압정)은 "재료 색"이라 테마 변수를 쓰지 않는다 - 편집 버튼·시트·모드 줄만 --ig-* 변수.
 * 시안: https://claude.ai/artifact/N7F7a5BKqVh5rWR4qTKuLj
 */

/* 편집 중 윗줄 - 모드 줄 대신 */
.alb-editbar { position: sticky; top: var(--ig-top-h, 0px); z-index: 15; display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--ig-bg); border-bottom: 1px solid var(--ig-line-soft); }
.alb-editbar strong { flex: 1; font-size: 14px; }
.alb-editbar .ig-btn { flex: 0 0 auto; }

.alb { padding: 6px 0 20px; }
.alb-loading { padding: 40px 0; text-align: center; color: var(--ig-muted); }
.alb-block { display: grid; gap: 8px; min-width: 0; }
.alb-edit-row { display: none; flex-wrap: wrap; gap: 6px; }
.alb.is-editing .alb-edit-row { display: flex; }
.alb-pill { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ig-accent); background: var(--ig-bg); color: var(--ig-accent-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.alb-pill:focus-visible { outline: 2px solid var(--ig-accent); outline-offset: 2px; }
.alb.is-editing .alb-sheetpage .alb-page { outline: 2px dashed var(--ig-accent); outline-offset: -3px; }
.alb-page-no { font-size: 12px; color: var(--ig-muted); text-align: center; }

/* ── 페이지 한 장(표지도 같은 틀) ── */
.alb-page { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; container-type: inline-size; isolation: isolate; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 14px 28px -12px rgba(0, 0, 0, .45); color: #2b2622; }
.alb-page::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 40; opacity: .2; mix-blend-mode: multiply; background-image: var(--alb-noise); }
.alb-page.is-dark::after { mix-blend-mode: screen; opacity: .12; }
.alb-page.is-dark { color: #f3f1ea; }

:root {
  --alb-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .15  0 0 0 0 .1  1.2 0 0 0 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --alb-blotch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='800'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .22  0 0 0 0 .1  1.4 0 0 0 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  --alb-speck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='turbulence' baseFrequency='.55' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .25  0 0 0 0 .14  0 0 0 0 .05  0 0 0 -2.4 1.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  --alb-speck2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='turbulence' baseFrequency='.7' numOctaves='1' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .93  0 0 0 0 .8  0 0 0 0 .6  0 0 0 -3 1.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E");
  --alb-hand: "Nanum Pen Script", "Caveat", cursive;
  --alb-script: "Caveat", "Nanum Pen Script", cursive;
  --alb-type: "Special Elite", "Courier New", monospace;
}

/* ── 배경(config bgs) ── */
.alb-bg-kraft { background-color: #c29868; background-image: var(--alb-blotch), var(--alb-speck), radial-gradient(120% 90% at 30% 20%, rgba(255, 236, 200, .35), transparent 60%), repeating-linear-gradient(93deg, rgba(90, 60, 30, .05) 0 .3cqw, transparent .3cqw 1.9cqw); }
.alb-bg-cork { background-color: #b98a54; background-image: linear-gradient(rgba(178, 128, 76, .5), rgba(178, 128, 76, .5)), var(--alb-speck2), var(--alb-speck), var(--alb-blotch), radial-gradient(130% 100% at 50% 40%, rgba(255, 220, 170, .18), rgba(60, 30, 10, .25)); }
.alb-bg-pastel { background-color: #f4eef3; background-image: radial-gradient(60% 45% at 15% 10%, rgba(255, 205, 220, .75), transparent 70%), radial-gradient(55% 45% at 90% 35%, rgba(200, 220, 255, .7), transparent 70%), radial-gradient(60% 50% at 30% 95%, rgba(255, 235, 200, .7), transparent 70%); }
.alb-bg-linen { background-color: #f7f5ef; background-image: linear-gradient(rgba(120, 150, 190, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 190, .18) 1px, transparent 1px); background-size: 1cqw 1cqw; /* 1/5로 촘촘히(2026-09-30 사용자) */ }
.alb-bg-chalk { background-color: #45524f; background-image: radial-gradient(120% 90% at 50% 30%, rgba(255, 255, 255, .08), rgba(0, 0, 0, .25)), var(--alb-blotch); }
/* 내 사진 배경 - 흐리게 + 밝기에 맞춰 한 겹(스크립트가 사진 밝기를 재서 is-dark를 붙인다) */
.alb-bg-photo { background: #777; }
.alb-bg-photo > .alb-bgimg { position: absolute; inset: -4cqw; background-size: cover; background-position: center; filter: blur(1.6cqw) saturate(1.05); z-index: -1; }
.alb-bg-photo > .alb-bgimg::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .38); }
.alb-bg-photo.is-dark > .alb-bgimg::after { background: rgba(0, 0, 0, .38); }

/* ── 사진 한 칸 ── */
.alb-slot { position: absolute; margin: 0; left: calc((var(--ox) + var(--x) * var(--k)) * 1cqw); top: calc((var(--oy) + var(--y) * var(--k)) * 1cqw); width: calc(var(--w) * var(--k) * 1cqw); transform: rotate(calc(var(--r) * 1deg)); z-index: 2; cursor: pointer; }
.alb-ph { position: relative; width: 100%; aspect-ratio: var(--ar, 1); background: #ddd 50% 30% / cover no-repeat; /* 잘릴 때 위쪽(얼굴)을 남긴다 */ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), inset 0 0 2.2cqw rgba(0, 0, 0, .2); }
.alb-slot figcaption { display: flex; align-items: center; justify-content: center; min-height: 7cqw; padding: 0 1cqw; font: 5cqw/1.05 var(--alb-hand); color: #2b2a27; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.alb-play { position: absolute; inset: 0; margin: auto; width: 11cqw; height: 11cqw; border-radius: 50%; background: rgba(0, 0, 0, .45); display: grid; place-items: center; }
.alb-play::before { content: ""; margin-left: 1cqw; border-left: 3.6cqw solid #fff; border-top: 2.2cqw solid transparent; border-bottom: 2.2cqw solid transparent; }
.alb-slot:focus-visible { outline: .6cqw solid #3b82f6; outline-offset: .6cqw; }

/* 폴라로이드(압정·테이프) */
.deco-pin .alb-slot, .deco-tape .alb-slot { background: #fbfaf4; padding: 2.2cqw 2.2cqw 0;
  box-shadow: 0 .2cqw .3cqw rgba(0, 0, 0, .25), 0 1.4cqw 2.4cqw -.6cqw rgba(0, 0, 0, .35), 0 3cqw 5cqw -2cqw rgba(0, 0, 0, .3); }
.deco-pin .alb-slot::before, .deco-tape .alb-slot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .35), transparent 40%, rgba(0, 0, 0, .04)); pointer-events: none; }
/* 압정 - 사진 위 가운데, 색은 칸마다(--pin) */
.deco-pin .alb-slot::after { content: ""; position: absolute; left: 50%; top: -1.2cqw; width: 4.4cqw; height: 4.4cqw; margin-left: -2.2cqw; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95) 0 9%, var(--pin, #d8423a) 26%, color-mix(in srgb, var(--pin, #d8423a), #000 48%) 100%);
  box-shadow: .9cqw 1.3cqw 1.1cqw rgba(0, 0, 0, .38), inset -.3cqw -.4cqw .6cqw rgba(0, 0, 0, .25); }
/* 마스킹테이프 두 장(왼쪽 위·오른쪽 위) */
.alb-tape { position: absolute; width: calc(var(--tw, 18) * 1cqw); height: 5.2cqw; left: calc(var(--tx) * 1%); top: -2.4cqw; transform: rotate(calc(var(--tr) * 1deg)); z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(236, 226, 196, .86), rgba(222, 210, 176, .82));
  clip-path: polygon(0 8%, 3% 0, 6% 10%, 9% 2%, 12% 6%, 88% 4%, 91% 0, 94% 9%, 97% 1%, 100% 7%, 98% 30%, 100% 55%, 97% 78%, 100% 100%, 94% 92%, 90% 100%, 86% 95%, 14% 97%, 10% 100%, 6% 92%, 2% 100%, 0 80%, 3% 55%, 0 30%); }
.alb-tape.is-pink { background: linear-gradient(180deg, rgba(241, 196, 196, .85), rgba(228, 176, 176, .82)); }
.alb-tape.is-mint { background: repeating-linear-gradient(135deg, rgba(186, 220, 205, .86) 0 1.4cqw, rgba(206, 232, 220, .86) 1.4cqw 2.8cqw); }

/* 필름 프레임(파스텔) - 위에 작은 필름 글자, 가운데 분홍 테이프 */
.deco-film .alb-slot { background: #fff; padding: 3.2cqw 1.6cqw 0; border-radius: .4cqw; box-shadow: 0 .3cqw .6cqw rgba(60, 40, 80, .18), 0 2cqw 4cqw -1.5cqw rgba(60, 40, 80, .3); }
.deco-film .alb-slot::before { content: attr(data-no); position: absolute; left: 2cqw; right: 2cqw; top: .7cqw; font: 1.8cqw/1 var(--alb-type); letter-spacing: .3cqw; color: #b9a9b6; white-space: nowrap; overflow: hidden; }
.deco-film .alb-slot figcaption { font-family: var(--alb-script); color: #3b3f5c; min-height: 6.4cqw; }

/* 흰 선 스케치(칠판) - 흰 테두리 사진 + 바깥 점선, 캡션은 바탕에 흰 글씨 */
.deco-sketch .alb-slot { background: transparent; }
.deco-sketch .alb-ph { border: 1cqw solid #f4f3ee; box-shadow: 0 1.2cqw 2.4cqw -1cqw rgba(0, 0, 0, .5); }
.deco-sketch .alb-slot::before { content: ""; position: absolute; inset: -1.6cqw -1.6cqw auto; aspect-ratio: var(--ar); height: auto; border: .35cqw dashed rgba(255, 255, 255, .55); border-radius: .6cqw; pointer-events: none; }
.deco-sketch .alb-slot figcaption { color: #f3f1ea; font-size: 5.4cqw; }
.alb-page:not(.is-dark).deco-sketch .alb-slot figcaption { color: #2b2622; }
.alb-page:not(.is-dark).deco-sketch .alb-slot::before { border-color: rgba(40, 40, 40, .4); }

/* ♥ 숫자 · 💬 숫자 스티커 - 사진 오른쪽 아래 */
.alb-badges { position: absolute; right: 1.2cqw; bottom: 1.2cqw; display: flex; gap: .8cqw; pointer-events: none; }
.alb-badge { position: relative; display: grid; place-items: center; width: 7.4cqw; height: 6.8cqw; font: 700 2.5cqw/1 system-ui, sans-serif; color: #fff; filter: drop-shadow(0 .3cqw .4cqw rgba(0, 0, 0, .35)); }
.alb-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.alb-badge b { position: relative; margin-top: -.4cqw; }
.alb-badge.is-heart svg { fill: #ef4b5f; }
.alb-badge.is-talk svg { fill: #fff; }
.alb-badge.is-talk b { color: #333; }

/* 날짜 제목 */
.alb-title { position: absolute; left: calc((var(--ox) + var(--x) * var(--k)) * 1cqw); top: calc((var(--oy) + var(--y) * var(--k)) * 1cqw); transform: rotate(calc(var(--r) * 1deg)); z-index: 5; max-width: 60cqw; font: 8.4cqw/1 var(--alb-hand); white-space: nowrap; }
.alb-title small { display: block; margin-top: .8cqw; font: 2.6cqw/1 var(--alb-type); letter-spacing: .3cqw; opacity: .75; }
.deco-pin .alb-title, .deco-tape .alb-title { padding: 2.2cqw 3.4cqw 2cqw; background: #f5eedd; color: #2c2720; box-shadow: 0 .6cqw 1.2cqw rgba(0, 0, 0, .22);
  clip-path: polygon(0 3%, 100% 0, 99% 88%, 95% 95%, 90% 89%, 84% 97%, 77% 91%, 70% 98%, 62% 92%, 55% 97%, 47% 90%, 39% 96%, 31% 91%, 23% 98%, 15% 92%, 7% 97%, 1% 90%); }
.deco-film .alb-title { color: #33415c; font-family: var(--alb-script); font-size: 7.4cqw; }
.deco-film .alb-title small { margin-top: .2cqw; }
.deco-sketch .alb-title { color: inherit; border-bottom: .4cqw solid currentColor; padding-bottom: .6cqw; }

/* 붙인 코멘트 = 메모지 */
.alb-note { position: absolute; left: calc((var(--ox) + var(--x) * var(--k)) * 1cqw); top: calc((var(--oy) + var(--y) * var(--k)) * 1cqw); transform: rotate(calc(var(--r) * 1deg)); z-index: 6; width: 32cqw; padding: 3cqw 3cqw 2.4cqw;
  background: var(--note, #fff3a6); color: #2d2a22; box-shadow: 0 .4cqw .6cqw rgba(0, 0, 0, .18), 0 2cqw 2.8cqw -1.2cqw rgba(0, 0, 0, .35); font: 4.6cqw/1.15 var(--alb-hand); }
.alb-note p { margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.alb-note span { display: block; margin-top: 1.2cqw; font-size: 3.6cqw; opacity: .7; text-align: right; }

/* 방명록 페이지 */
.alb-guest-grid { position: absolute; left: 5cqw; right: 5cqw; top: 27cqw; bottom: 6cqw; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 3cqw 4cqw; align-content: start; }
.alb-guest-grid .alb-note { position: relative; left: auto; top: auto; width: auto; }
.alb-guest-empty { position: absolute; left: 10cqw; right: 10cqw; top: 50cqw; text-align: center; font: 6cqw/1.3 var(--alb-hand); opacity: .8; }
.alb-guest-more { position: absolute; right: 5cqw; bottom: 3cqw; z-index: 7; font: 3.4cqw/1 var(--alb-type); color: inherit; text-decoration: underline; }

/* ── 표지 ── */
.alb-cover .alb-full { position: absolute; inset: 0; background: #333 50% 30% / cover no-repeat; } /* 잘릴 때 위쪽(얼굴)을 남긴다 */
.alb-cover .alb-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 48%, rgba(10, 12, 16, .72) 100%); }
.alb-cover .alb-frame { position: absolute; inset: 4cqw; border: .35cqw solid rgba(255, 255, 255, .7); pointer-events: none; }
.alb-cover .alb-top { position: absolute; left: 8cqw; right: 8cqw; top: 7.5cqw; display: flex; justify-content: space-between; color: #fff; font: 3.2cqw/1 var(--alb-type); letter-spacing: .4cqw; text-transform: uppercase; opacity: .92; }
.alb-cover .alb-bottom { position: absolute; left: 8cqw; right: 8cqw; bottom: 8cqw; color: #fff; display: grid; gap: 1.4cqw; }
.alb-cover .alb-ttl { font: 17cqw/.95 var(--alb-hand); text-shadow: 0 .4cqw 2cqw rgba(0, 0, 0, .35); overflow-wrap: anywhere; }
.alb-cover .alb-sub { font: 6.4cqw/1 var(--alb-script); opacity: .95; }
.alb-cover .alb-meta { font: 2.9cqw/1.4 var(--alb-type); letter-spacing: .2cqw; opacity: .85; border-top: .25cqw solid rgba(255, 255, 255, .5); padding-top: 2cqw; margin-top: 1cqw; }
.alb-cover .alb-label { position: absolute; left: 9cqw; top: 101cqw; width: 58cqw; padding: 3.2cqw 4cqw 4.4cqw; background: #f3ecdc; transform: rotate(-2.5deg); z-index: 4; font: 3.3cqw/1.55 var(--alb-type); color: #3b342a;
  clip-path: polygon(0 0, 100% 2%, 99% 86%, 96% 92%, 92% 88%, 88% 96%, 83% 90%, 78% 97%, 72% 91%, 66% 98%, 60% 92%, 54% 97%, 48% 90%, 42% 96%, 36% 91%, 30% 98%, 24% 92%, 18% 97%, 12% 91%, 6% 96%, 1% 90%);
  filter: drop-shadow(0 .6cqw .8cqw rgba(0, 0, 0, .3)); }
.alb-cover .alb-label b { display: block; font: 5.4cqw/1.1 var(--alb-script); color: #2c2720; margin-bottom: .6cqw; }
.alb-cover .alb-stamp { position: absolute; left: 65cqw; top: 86cqw; width: 25cqw; height: 25cqw; border-radius: 50%; transform: rotate(-16deg); z-index: 3; border: .7cqw solid rgba(142, 38, 38, .72);
  display: grid; place-items: center; text-align: center; color: rgba(142, 38, 38, .8); font: 2.7cqw/1.25 var(--alb-type); letter-spacing: .3cqw; mix-blend-mode: multiply;
  box-shadow: inset 0 0 0 1.5cqw rgba(142, 38, 38, 0), inset 0 0 0 1.8cqw rgba(142, 38, 38, .5); -webkit-mask-image: var(--alb-speck2); mask-image: var(--alb-speck2); }
.alb-cover.is-dark .alb-stamp { border-color: rgba(255, 255, 255, .7); color: rgba(255, 255, 255, .85); mix-blend-mode: normal; box-shadow: inset 0 0 0 1.8cqw rgba(255, 255, 255, .45); }
.alb-cover .alb-stamp span { display: block; font-size: 5cqw; }
.alb-cover .alb-card { position: absolute; left: 13cqw; top: 45cqw; width: 74cqw; padding: 5cqw 4cqw 4.4cqw; background: #fdfbf4; transform: rotate(-2deg); z-index: 4; text-align: center;
  box-shadow: 0 .3cqw .4cqw rgba(0, 0, 0, .2), 0 2cqw 3cqw -1cqw rgba(0, 0, 0, .35);
  background-image: repeating-linear-gradient(180deg, transparent 0 6.4cqw, rgba(90, 140, 200, .18) 6.4cqw 6.6cqw); }
.alb-cover .alb-card .alb-ttl { font: 14cqw/1 var(--alb-hand); color: #1f2a44; text-shadow: none; }
.alb-cover .alb-card .alb-dates { font: 3.3cqw/1 var(--alb-type); color: #5a4a3a; margin-top: 2cqw; letter-spacing: .2cqw; }
.alb-cover .alb-card .alb-sub { font: 5cqw/1 var(--alb-script); color: #5a4a3a; margin-top: 1.4cqw; }
.alb-cover .alb-empty-ph { background: repeating-linear-gradient(45deg, #e7e2d6 0 2cqw, #efeade 2cqw 4cqw); }
.alb-cover .alb-slot figcaption { font-size: 8cqw; min-height: 10cqw; }

/* ── 고르기 시트 ── */
.alb-sheet h3 { margin: 14px 0 8px; font-size: 13px; color: var(--ig-muted); font-weight: 600; }
.alb-sheet h3:first-child { margin-top: 0; }
.alb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.alb-tile { display: grid; gap: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; color: var(--ig-text); text-align: center; cursor: pointer; }
.alb-tile .alb-sw { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; container-type: inline-size; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--ig-line); background-size: cover; background-position: center; }
.alb-tile.is-on .alb-sw { border-color: var(--ig-accent); box-shadow: 0 0 0 2px var(--ig-accent); }
.alb-tile .alb-sw i { position: absolute; left: 22%; top: 20%; width: 56%; aspect-ratio: 1; background: #fbfaf4; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transform: rotate(-4deg); }
.alb-tile .alb-sw i::after { content: ""; position: absolute; inset: 8% 8% 22%; background: linear-gradient(160deg, #9cc3e6, #6c8f6a); }
.alb-tile .alb-sw b { position: absolute; top: 3px; left: 3px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ig-accent); color: #fff; font-size: 12px; line-height: 20px; }
.alb-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; }
.alb-photos .alb-sw { aspect-ratio: 1; }
.alb-sheet .ig-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.alb-sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.alb-sheet-actions .ig-btn { flex: 1; }
.alb-pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.alb-pick-list label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--ig-line); border-radius: 10px; cursor: pointer; }
.alb-pick-list input { margin-top: 3px; flex: 0 0 auto; }
.alb-pick-list span { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.alb-pick-list small { display: block; color: var(--ig-muted); font-size: 12px; }
.alb-hint { margin: 8px 0 0; font-size: 12px; color: var(--ig-muted); }
.alb-photo-sheet .ig-post { margin: 0; border: 0; }

@media (prefers-reduced-motion: no-preference) {
  .alb-page { transition: box-shadow .2s; }
}

/* ── 첫 화면 앨범 책장(_shelf.php) - 2열, 표지는 같은 그리기 코드 ── */
.alb-shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; padding: 12px 12px 32px; }
.alb-shelf-item { display: grid; gap: 4px; min-width: 0; color: var(--ig-text); }
.alb-shelf-cover { display: block; }
.alb-shelf-cover .alb-page { box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 8px 16px -8px rgba(0, 0, 0, .4); }
.alb-shelf-ph { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 3px; background: var(--ig-soft); color: var(--ig-muted); font-size: 13px; padding: 8px; text-align: center; }
.alb-shelf-title { margin-top: 4px; font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.alb-shelf-item small { font-size: 11px; color: var(--ig-muted); }
.alb-shelf-item:focus-visible { outline: 2px solid var(--ig-accent); outline-offset: 3px; border-radius: 4px; }

/* ── 책 보기(2026-09-30 사용자 "PC는 앨범을 펼쳐 보는 것처럼, 모바일은 한 쪽씩, 책장 넘기는 모션") ──
   .alb-book 폭 = 쪽 폭(--pw, 스크립트가 화면에 맞춰 정함) × 1 또는 2. 쪽은 3:4. 넘기는 종이 .alb-leaf는 가운데 접힌 곳을 축으로 돈다. */
.alb-view { display: grid; gap: 10px; }
.alb-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 8px; }
.alb-book { position: relative; flex: 0 0 auto; width: var(--pw, 320px); aspect-ratio: 3 / 4; perspective: 2600px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.alb-book.is-spread { width: calc(var(--pw, 320px) * 2); aspect-ratio: 3 / 2; }
.alb-side { position: absolute; top: 0; bottom: 0; left: 0; width: var(--pw, 320px); z-index: 1; } /* 쪽 안의 접힌 곳 그림자(z 45)가 넘기는 종이(z 40) 위로 올라와 그늘이 두 겹이 됐다 - 쪽 안에 가둔다(2026-09-30 "팍팍 나오고 사라진다") */
.alb-book:not(.is-spread) .alb-side.is-left { display: none; }
.alb-book.is-spread .alb-side.is-right { left: var(--pw, 320px); }
.alb-side:not(:empty) { box-shadow: 0 2px 4px rgba(0, 0, 0, .18), 0 18px 34px -14px rgba(0, 0, 0, .5); }
/* 오른쪽 쪽 가장자리에 종이가 겹친 두께 */
.alb-book.is-spread .alb-side.is-right:not(:empty), .alb-book:not(.is-spread) .alb-side.is-right { box-shadow: 1px 1px 0 #efe9dd, 3px 2px 0 #ddd6c8, 5px 3px 0 #cfc7b8, 0 18px 34px -14px rgba(0, 0, 0, .5); }
.alb-book.is-spread .alb-side.is-left:not(:empty) { box-shadow: -1px 1px 0 #efe9dd, -3px 2px 0 #ddd6c8, -5px 3px 0 #cfc7b8, 0 18px 34px -14px rgba(0, 0, 0, .5); }
.alb-sheetpage { position: relative; width: 100%; height: 100%; }
.alb-sheetpage > .alb-page { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.alb-sheetpage .alb-edit-row { position: absolute; z-index: 60; bottom: 8px; left: 8px; right: 8px; } /* 아래 - 위에는 날짜 제목이 있다 */
.alb-sheetpage .alb-pill { height: 28px; padding: 0 10px; font-size: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
/* 넘기는 종이 */
.alb-leaf { position: absolute; top: 0; bottom: 0; width: var(--pw, 320px); z-index: 40; transform-style: preserve-3d; will-change: transform; pointer-events: none; }
.alb-leaf.is-right { left: var(--pw, 320px); transform-origin: left center; }
.alb-leaf.is-left { left: 0; transform-origin: right center; }
.alb-leaf.is-single { left: 0; transform-origin: left center; }
.alb-leaf.is-left .alb-face.is-front .alb-leaf-shade, .alb-leaf.is-right .alb-face.is-back .alb-leaf-shade { background: linear-gradient(270deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .05) 55%, rgba(255, 255, 255, .12)); }
/* ‹ › · 쪽 번호 */
.alb-nav { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ig-line); background: var(--ig-bg); color: var(--ig-text); font: 400 30px/1 system-ui, sans-serif; display: grid; place-items: center; padding-bottom: 4px; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.alb-nav:disabled { opacity: .25; cursor: default; }
.alb-nav:focus-visible { outline: 2px solid var(--ig-accent); outline-offset: 2px; }
.alb-count { text-align: center; font-size: 13px; color: var(--ig-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 699px) {
  .alb-stage { padding: 0 10px; }
  .alb-nav { position: absolute; top: 50%; z-index: 55; width: 38px; height: 38px; margin-top: -19px; font-size: 26px; background: rgba(255, 255, 255, .78); border: 0; color: #222; }
  .alb-nav.is-prev { left: 14px; }
  .alb-nav.is-next { right: 14px; }
  .alb-nav:disabled { display: none; }
}
/* ⋮ 사진 메뉴 */
.alb-kebab { position: absolute; z-index: 4; top: 3.2cqw; right: 3.2cqw; width: max(24px, 6.4cqw); height: max(24px, 6.4cqw); padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .88); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.alb-kebab i { width: 3px; height: 3px; border-radius: 50%; background: #333; }
.alb-kebab:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.deco-sketch .alb-kebab { top: 2.4cqw; right: 2.4cqw; }
.alb-kebab-menu .bottom-sheet-item { display: block; }
.alb-kebab-menu small { color: var(--ig-muted); font-weight: 400; }

/* ── 앨범 = 화면 전체(2026-09-30 사용자 "PC 앨범이면 화면 전체를 덮고, 상단 메뉴는 앨범 위로 올라가고, 이머시브면 사라지는 형태 - 모바일도 같게") ──
   책 보기는 늘 나무 책상 위에 화면을 가득 채운다. 위 줄(메뉴)·모드 줄·편집 줄·‹ ›·쪽 번호는 그 위에 떠 있고, 몰입이면 모두 숨는다. */
body.alb-wide { overflow: hidden; }
.alb-view { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: calc(var(--ig-top-h, 56px) + 58px + env(safe-area-inset-top, 0px)) 0 calc(14px + env(safe-area-inset-bottom, 0px));
  background-color: #6e4527;
  background-image:
    radial-gradient(ellipse 80% 70% at 50% 42%, rgba(255, 214, 160, .2), rgba(20, 8, 0, .55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035 .11' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .22  0 0 0 0 .11  0 0 0 0 .04  1.7 0 0 0 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.01 .5' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95  0 0 0 0 .75  0 0 0 0 .5  1.2 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(180deg, transparent 0 239px, rgba(30, 12, 2, .55) 239px 241px, rgba(255, 220, 170, .12) 241px 242px, transparent 242px 240px);
}
.alb-view.is-immersive { padding: calc(10px + env(safe-area-inset-top, 0px)) 0 calc(10px + env(safe-area-inset-bottom, 0px)); }
.alb-view .alb-count { color: rgba(255, 240, 220, .8); }
.alb-view .alb-nav { background: rgba(255, 255, 255, .85); border: 0; color: #222; }
.alb-view.is-immersive .alb-count { opacity: 0; }
.alb-view.is-immersive .alb-nav { opacity: 0; transition: opacity .2s; }
.alb-view.is-immersive .alb-stage:hover .alb-nav:not(:disabled) { opacity: .85; }
@media (hover: none) { .alb-view.is-immersive .alb-nav { display: none; } }
.alb-immersive-x { display: none; }
.alb-view.is-immersive .alb-immersive-x { display: grid; place-items: center; position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 1001; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font: 26px/1 system-ui, sans-serif; cursor: pointer; }
/* 떠 있는 위 줄 · 모드 줄 · 편집 줄 */
body.alb-wide .ig-top { position: fixed; top: 0; left: 0; right: 0; z-index: 950; max-width: none; margin: 0; padding-top: env(safe-area-inset-top, 0px); height: calc(var(--ig-top-h, 56px) + env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--ig-bg) 90%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 0; }
body.alb-wide .alb-modebar, body.alb-wide .alb-editbar { position: fixed; top: calc(var(--ig-top-h, 56px) + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 950; max-width: none; margin: 0; padding: 10px 16px; background: transparent; border: 0; }
body.alb-wide .alb-editbar { background: color-mix(in srgb, var(--ig-bg) 92%, transparent); }
body.alb-wide .alb-modebar .ig-icon-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--ig-bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); display: grid; place-items: center; }
body.alb-wide .alb-modebar .ig-icon-btn svg { width: 19px; height: 19px; }
body.alb-wide .alb-seg { box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
body.alb-wide .alb-modebar .ig-btn { box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
body.alb-immersive .ig-top, body.alb-immersive .ig-pc-apps, body.alb-immersive .alb-modebar, body.alb-immersive .alb-editbar { display: none; }

/* PC - 왼쪽 세로줄·오른쪽 칸은 치우고 메뉴는 위 줄에 */
@media (min-width: 768px) {
  body.alb-wide .ig-rail, body.alb-wide .ig-side { display: none; }
  body.alb-wide .ig-shell { margin-left: 0; padding: 0; }
  body.alb-wide .ig-app { max-width: none; min-width: 0; }
  body.alb-wide .ig-top-nav { display: flex; }
  body.alb-wide .ig-pc-apps { display: none; } /* 넓은 앨범은 위 줄 메뉴가 돌아오니 그쪽 서비스 모음을 쓴다(2026-10-13) */
}
@media (prefers-reduced-motion: reduce) { .alb-view .alb-nav { transition: none; } }
/* 편집 줄 - 좁으면 도구가 둘째 줄로 */
.alb-editbar { flex-wrap: wrap; }
.alb-editbar strong { white-space: nowrap; }
.alb-editbar-tools { display: flex; gap: 6px; }
@media (max-width: 520px) { .alb-editbar-tools { order: 3; flex: 1 0 100%; } }
.alb-ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
/* 몰입(PC) - 책이 화면을 거의 다 쓰니 ‹ ›는 책 가장자리 위에(올렸을 때만 보임) */
.alb-view.is-immersive .alb-nav { position: absolute; top: 50%; margin-top: -23px; z-index: 55; }
.alb-view.is-immersive .alb-nav.is-prev { left: 20px; }
.alb-view.is-immersive .alb-nav.is-next { right: 20px; }

/* ── 퀄리티 다듬기(2026-09-30 사용자 "넘어갈 때 모션, 뒤 배경, 액자 질감, 사진에 안쪽 padding, 가운데 음영이 사라졌다 나오는 것 - 2% 부족") ── */
/* 안쪽 여백 - 배치 좌표(0~100)를 --k 비율로 줄여 가장자리에서 띄운다. 펼침에서는 접힌 쪽을 더 띄운다 */
.alb-page { --ox: 6.5; --oy: 7; --k: .87; }
.alb-sheetpage.is-l .alb-page { --ox: 5; }
.alb-sheetpage.is-r .alb-page { --ox: 8.5; }
.alb-note { width: calc(32cqw * var(--k)); }
.alb-guest-grid .alb-note { width: auto; }
/* 접힌 곳 그림자는 쪽에 붙어 있다 - 넘길 때 종이와 같이 움직여서 사라졌다 나오지 않는다. 표지·혼자 남은 마지막 쪽은 없음 */
.alb-sheetpage::after { content: ""; position: absolute; top: 0; bottom: 0; width: 16%; z-index: 45; pointer-events: none; }
.alb-sheetpage.is-r::after { left: 0; background: linear-gradient(90deg, rgba(40, 25, 10, .30), rgba(40, 25, 10, .10) 30%, rgba(40, 25, 10, 0)); }
.alb-sheetpage.is-l::after { right: 0; background: linear-gradient(270deg, rgba(40, 25, 10, .30), rgba(40, 25, 10, .10) 30%, rgba(40, 25, 10, 0)); }
/* 하드커버 판 - 쪽보다 조금 크게, 책 아래 */
.alb-book { isolation: isolate; }
.alb-book::before { content: ""; position: absolute; z-index: -1; top: -7px; bottom: -7px; left: -9px; right: -9px; border-radius: 5px;
  background: #4c3326 var(--alb-noise); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 4px 10px rgba(0, 0, 0, .35), 0 34px 60px -24px rgba(0, 0, 0, .7); }
.alb-book.is-spread.is-closed::before { left: calc(var(--pw, 320px) - 5px); }
.alb-book.is-spread.is-end::before { right: calc(var(--pw, 320px) - 5px); }
/* 휘는 종이(띠) */
.alb-leaf { transform-style: preserve-3d; }
.alb-strip { position: absolute; top: 0; bottom: 0; transform-style: preserve-3d; }
.alb-strip-face { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 1.5px); outline: 1px solid transparent; /* 이음매 틈이 비치지 않게 살짝 겹침 - 다음 띠가 0.3px 앞이라 겹친 곳이 깜빡이지 않는다 */ overflow: hidden; background: #f3efe6; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.alb-strip-face.is-back { transform: rotateY(180deg); }
.alb-strip-face > .alb-sheetpage { position: absolute; top: 0; height: 100%; }
.alb-strip-face.is-paper { background: #f1ece2 var(--alb-noise); }
.alb-strip-shade { position: absolute; inset: 0; z-index: 50; pointer-events: none; } /* 색은 스크립트가 매 장면 그라데이션으로 */
/* 나무 책상 - 스크립트가 그린 나뭇결(--alb-wood), 없으면 CSS 무늬 */
.alb-view { background-color: #f1eee7; background-image: radial-gradient(ellipse 90% 80% at 50% 45%, rgba(255, 255, 255, .35), rgba(120, 105, 80, .10) 100%), var(--alb-desk, none); background-size: auto, 640px 640px; background-position: center, 0 0; }
/* 화선지 바탕 - 밝은 바탕이라 쪽 번호·몰입 ‹ ›를 어둡게, 책 그림자는 부드럽게 */
.alb-view .alb-count, .alb-view.is-immersive .alb-count { color: #7a7266; }
.alb-view .alb-nav { background: #fff; box-shadow: 0 1px 3px rgba(60, 50, 30, .18), 0 4px 12px rgba(60, 50, 30, .12); }
.alb-book::before { background: #cfc6b6 var(--alb-noise); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 3px 8px rgba(60, 45, 25, .2), 0 30px 50px -24px rgba(60, 45, 25, .4); } /* 흰 바탕엔 밝은 삼베색 판 */
/* 넘기는 동안의 가운데 그늘(스크립트가 opacity를 0 → 짙게 → 0으로) */
.alb-turn-shade { position: absolute; top: 0; bottom: 0; left: calc(var(--pw, 320px) - 60px); width: 120px; z-index: 35; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(40, 25, 10, .45), rgba(40, 25, 10, 0)); }
.alb-turn-shade.is-single { left: -40px; width: 80px; }
/* 액자 종이 질감 · 두께 · 사진 광택 */
:root { --alb-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .4  0 0 0 0 .32  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); }
.deco-pin .alb-slot, .deco-tape .alb-slot { background: #fbf8f0 var(--alb-paper);
  box-shadow: inset 0 0 0 .12cqw rgba(0, 0, 0, .05), inset 0 -.5cqw .8cqw rgba(120, 100, 70, .07),
    0 .15cqw .25cqw rgba(0, 0, 0, .3), 0 .9cqw 1.4cqw -.4cqw rgba(0, 0, 0, .28), 0 2.6cqw 4cqw -1.8cqw rgba(0, 0, 0, .42); }
.deco-film .alb-slot { background: #fdfcf8 var(--alb-paper); }
.alb-ph { box-shadow: inset 0 0 0 .15cqw rgba(0, 0, 0, .12), inset 0 0 2cqw rgba(0, 0, 0, .16); }
.alb-ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 72%, rgba(0, 0, 0, .07)); }
.alb-tape { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .10) 0 .35cqw, rgba(90, 70, 40, .05) .35cqw .7cqw), linear-gradient(180deg, rgba(238, 228, 198, .84), rgba(220, 208, 172, .8)); }
.alb-tape.is-pink { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 .35cqw, rgba(120, 50, 50, .05) .35cqw .7cqw), linear-gradient(180deg, rgba(241, 196, 196, .84), rgba(226, 172, 172, .8)); }
/* 날짜 제목의 연도·쪽 번호는 같은 줄 오른쪽에 - 아래에 두면 첫 액자와 겹쳤다 */
.alb-title small { display: inline; margin: 0 0 0 1.6cqw; vertical-align: .6cqw; }

/* 가운데 흰 줄 막기(2026-09-30 사용자 "중간에 하얀 라인") - 125%·150% 화면에서는 책이 0.5px 자리에 놓여 두 쪽 사이에 머리카락 틈이 생기고
   아래의 밝은 판이 비쳤다. 오른쪽 쪽을 1px 겹치고, 틈 자리 아래에는 접힌 곳 색 띠를 깐다 */
.alb-book.is-spread .alb-side.is-right { left: calc(var(--pw, 320px) - 1px); width: calc(var(--pw, 320px) + 1px); }
.alb-book.is-spread:not(.is-closed):not(.is-end)::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--pw, 320px) - 2px); width: 4px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, rgba(60, 40, 20, 0), rgba(60, 40, 20, .32) 35%, rgba(60, 40, 20, .32) 65%, rgba(60, 40, 20, 0)); } /* 접힌 곳 주름 - 넘기는 종이보다 위에 그어 반 픽셀 틈·가장자리 번짐이 흰 줄로 안 보이게(뒤로 넘길 때도) */
/* 넘기는 띠 면 바탕은 그림이 있는 면에서는 비운다 - 반 픽셀 틈으로 종이색(크림) 1px 줄이 접힌 곳에 보였다(2026-09-30 사용자 "뒤로 넘길 때 흰 줄") */
.alb-strip-face:not(.is-paper) { background: transparent; }

/* ── 새 표지 5가지(2026-09-30 사용자 참고 이미지 - 똑같이가 아니라 여러 형태로). 쪽 = 폭 100cqw × 높이 133cqw ── */
.alb-cv { background: #f8f6f1; color: #2c2a27; --serif: "Nanum Myeongjo", "Cormorant Garamond", serif; --latin: "Cormorant Garamond", "Nanum Myeongjo", serif; }
.alb-cv::after { opacity: .12; }
/* 세 폭 나누기 */
.alb-tri-head { position: absolute; left: 8cqw; right: 8cqw; top: 9cqw; text-align: center; }
.alb-tri-title { font: 700 8.6cqw/1.15 var(--serif); letter-spacing: .2cqw; overflow-wrap: anywhere; }
.alb-tri-year { margin-top: 1.4cqw; font: 600 7cqw/1 var(--latin); letter-spacing: 1.4cqw; color: #7b6a58; }
.alb-tri-sub { margin-top: 1.4cqw; font: 5.2cqw/1 var(--alb-script); color: #7b6a58; }
.alb-tri-photo { position: absolute; left: 8cqw; right: 8cqw; top: 38cqw; bottom: 13cqw; background: #bbb 50% 30% / cover no-repeat; }
.alb-tri-gap { position: absolute; top: -1px; bottom: -1px; width: 3cqw; background: #f8f6f1; }
.alb-tri-gap.is-a { left: calc(33.33% - 1.5cqw); }
.alb-tri-gap.is-b { left: calc(66.66% - 1.5cqw); }
.alb-tri-notch { position: absolute; top: -1px; height: 10cqw; background: #f8f6f1; }
.alb-tri-notch.is-l { left: 0; width: calc(33.33% - 1.5cqw); }
.alb-tri-notch.is-r { right: 0; width: calc(33.33% - 1.5cqw); top: auto; bottom: -1px; }
.alb-tri-foot { position: absolute; left: 8cqw; right: 8cqw; bottom: 5.5cqw; text-align: center; font: 2.8cqw/1 var(--alb-type); letter-spacing: .3cqw; color: #8a7d6e; }
/* 수채화 액자 */
.alb-cv-frame { background: #fbf8f2; }
.alb-wc { position: absolute; border-radius: 50%; filter: blur(3cqw); opacity: .55; }
.alb-wc.is-a { left: -12cqw; top: -8cqw; width: 60cqw; height: 50cqw; background: #bfe0dc; }
.alb-wc.is-b { right: -14cqw; top: 20cqw; width: 50cqw; height: 55cqw; background: #d7e9f0; }
.alb-wc.is-c { left: -10cqw; bottom: 8cqw; width: 45cqw; height: 45cqw; background: #f6cfc9; }
.alb-wc.is-d { right: 6cqw; bottom: -10cqw; width: 55cqw; height: 35cqw; background: #cfe6e2; }
.alb-fr-photo { position: absolute; left: 10cqw; right: 10cqw; top: 11cqw; height: 66cqw; background: #bbb 50% 30% / cover no-repeat; box-shadow: 0 0 0 1.4cqw #fffdf8, 0 0 0 1.7cqw #c9a878, 0 1.5cqw 3cqw rgba(0, 0, 0, .18); }
.alb-fr-flower { position: absolute; right: 2cqw; top: 3cqw; width: 22cqw; transform: rotate(-12deg); }
.alb-fr-title { position: absolute; left: 6cqw; right: 6cqw; top: 86cqw; text-align: center; font: 700 8cqw/1.15 var(--serif); letter-spacing: 1.2cqw; color: #2f4a55; overflow-wrap: anywhere; }
.alb-fr-sub { position: absolute; left: 6cqw; right: 6cqw; top: 100cqw; text-align: center; font: 7cqw/1 var(--alb-script); color: #c0736b; }
.alb-fr-line { position: absolute; left: 22cqw; right: 22cqw; top: 112cqw; text-align: center; font: 2.8cqw/1 var(--alb-type); letter-spacing: .5cqw; color: #5e6b73; }
.alb-fr-line span { background: #fbf8f2; padding: 0 2cqw; position: relative; }
.alb-fr-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: .25cqw solid #b9a894; }
.alb-fr-compass { position: absolute; left: 4cqw; bottom: 4cqw; width: 18cqw; opacity: .8; }
.alb-fr-plane { position: absolute; right: 5cqw; bottom: 8cqw; width: 30cqw; }
/* 여행 엽서 */
.alb-cv-postcard { background: #f4f3f0; }
.alb-pc-route { position: absolute; left: 6cqw; top: 5cqw; width: 42cqw; }
.alb-pc-route svg { width: 30cqw; }
.alb-pc-route b { position: absolute; left: 32cqw; top: 1cqw; font: 600 6cqw/1 var(--latin); letter-spacing: .6cqw; }
.alb-pc-photo { position: absolute; left: 15cqw; right: 15cqw; top: 18cqw; height: 76cqw; background: #bbb 50% 30% / cover no-repeat; box-shadow: 0 1cqw 2.4cqw rgba(0, 0, 0, .2); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 7cqw; text-align: center; color: #fff; text-shadow: 0 .3cqw 1.6cqw rgba(0, 0, 0, .55); }
.alb-pc-photo::before { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.alb-pc-photo > div { position: relative; }
.alb-pc-title { font: 700 8cqw/1.2 var(--serif); padding: 0 4cqw; overflow-wrap: anywhere; }
.alb-pc-sub { font: 5cqw/1.2 var(--alb-script); margin-top: 1cqw; }
.alb-pc-side { position: absolute; top: 40cqw; font: 2.8cqw/1 var(--alb-type); letter-spacing: .3cqw; color: #555; writing-mode: vertical-rl; white-space: nowrap; }
.alb-pc-side.is-l { left: 7cqw; transform: rotate(180deg); }
.alb-pc-side.is-r { right: 7cqw; }
.alb-pc-card { position: absolute; top: 94cqw; width: 42cqw; height: 28cqw; background: #fffdf8; box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .25); border: .5cqw dashed #b9b0a2; display: flex; gap: 2cqw; padding: 2cqw; }
.alb-pc-card.is-0 { left: 4cqw; transform: rotate(-3deg); }
.alb-pc-card.is-1 { right: 4cqw; transform: rotate(4deg); top: 97cqw; }
.alb-pc-pic { flex: 0 0 50%; background: #bbb center / cover; }
.alb-pc-txt { font: 3cqw/1.25 var(--alb-hand); color: #555; overflow: hidden; }
.alb-pc-stamp { position: absolute; right: 2cqw; top: 2cqw; width: 7cqw; height: 8cqw; background: repeating-linear-gradient(45deg, #e9c9a8 0 1cqw, #f1dcc5 1cqw 2cqw); outline: .4cqw dotted #fff; }
.alb-pc-mark { position: absolute; right: 6cqw; top: 6cqw; width: 10cqw; height: 10cqw; border-radius: 50%; border: .35cqw solid rgba(60, 60, 60, .45); }
/* 마름모 콜라주 */
.alb-cv-diamond { background: #2e3f5c; }
.alb-dm-q { position: absolute; width: 50%; height: 50%; background: #bbb 50% 30% / cover no-repeat; }
.alb-dm-q.is-0 { left: 0; top: 0; } .alb-dm-q.is-1 { right: 0; top: 0; } .alb-dm-q.is-2 { left: 0; bottom: 0; } .alb-dm-q.is-3 { right: 0; bottom: 0; }
.alb-dm-band { position: absolute; left: 50%; top: 50%; width: 180cqw; height: 5cqw; margin: -2.5cqw 0 0 -90cqw; background: #fbf8f2; }
.alb-dm-band.is-a { transform: rotate(53deg); } .alb-dm-band.is-b { transform: rotate(-53deg); }
.alb-dm-frame { position: absolute; inset: 3.5cqw; border: .3cqw solid #d6b779; pointer-events: none; }
.alb-dm-core { position: absolute; left: 50%; top: 50%; width: 52cqw; height: 52cqw; margin: -26cqw 0 0 -26cqw; transform: rotate(45deg); background: #2e3f5c; box-shadow: 0 0 0 1.4cqw #fbf8f2, 0 0 0 1.8cqw #d6b779; display: grid; place-items: center; }
.alb-dm-core > div { transform: rotate(-45deg); width: 56cqw; text-align: center; color: #f3ead8; }
.alb-dm-core small { font: 2.8cqw/1 var(--alb-type); letter-spacing: .6cqw; color: #d6b779; text-transform: uppercase; }
.alb-dm-title { margin: 2cqw 6cqw; font: 700 7.4cqw/1.2 var(--serif); overflow-wrap: anywhere; }
.alb-dm-date { font: 2.8cqw/1 var(--alb-type); letter-spacing: .3cqw; color: #d6b779; }
/* 사진 모자이크 */
.alb-cv-mosaic { background: #fbfaf7; }
.alb-mo-grid { position: absolute; left: -26cqw; top: -18cqw; width: 150cqw; height: 175cqw; transform: rotate(-10deg); transform-origin: 50% 50%; }
.alb-mo-cell { position: absolute; left: calc(var(--c) * 28cqw); top: calc(var(--r) * 28cqw); width: 26cqw; height: 26cqw; background: #ddd 50% 30% / cover no-repeat; box-shadow: 0 .3cqw .8cqw rgba(0, 0, 0, .12); }
.alb-mo-title { position: absolute; right: 7cqw; top: 22cqw; width: 42cqw; text-align: right; color: #4a4a4a; }
.alb-mo-title b { display: block; font: 600 17cqw/1 var(--latin); letter-spacing: .2cqw; color: #555; }
.alb-mo-title span { display: block; margin-top: 1.4cqw; font: 700 5.2cqw/1.3 var(--serif); letter-spacing: .8cqw; overflow-wrap: anywhere; }
.alb-mo-title small { display: block; margin-top: 1cqw; font: 4.6cqw/1 var(--alb-script); color: #888; }

/* 초대장 쪽 - 스토리 화면의 초대장을 쪽 크기에 맞춰 */
.alb-inv-wrap { position: absolute; inset: 9cqw 8cqw; display: flex; align-items: center; z-index: 5; }
.alb-inv-wrap .ig-invite { width: 100%; border-radius: 1.4cqw; padding: 9cqw 5cqw 7cqw; box-shadow: 0 .4cqw 1cqw rgba(0, 0, 0, .12), 0 3cqw 5cqw -2cqw rgba(0, 0, 0, .25); }
.alb-inv-wrap .ig-invite-kicker { font-size: 2.8cqw; letter-spacing: .8cqw; }
.alb-inv-wrap .ig-invite-title { font-size: 7.4cqw; line-height: 1.25; margin: 2.4cqw 0 1.4cqw; }
.alb-inv-wrap .ig-invite-hero { font-size: 4cqw; }
.alb-inv-wrap .ig-invite-when { margin-top: 4cqw; font-size: 4.2cqw; }
.alb-inv-wrap .ig-invite-where, .alb-inv-wrap .ig-invite-msg { font-size: 3.6cqw; line-height: 1.5; }
.alb-inv-wrap .ig-invite-msg { max-width: none; margin-top: 4cqw; }
.alb-inv-wrap .ig-btn { margin-top: 4cqw; font-size: 3.4cqw; height: auto; padding: 1.6cqw 3.4cqw; }
/* 한글 제목은 단어 중간에서 끊지 않는다(2026-09-30 - "결\n혼", "전\n현미"처럼 끊겼다) */
.alb-cv [class$="-title"], .alb-cv .alb-tri-title, .alb-cv .alb-mo-title span { word-break: keep-all; overflow-wrap: break-word; }
.alb-fr-title { letter-spacing: .4cqw; font-size: 7.4cqw; top: 84cqw; }
.alb-fr-sub { top: 101cqw; }
.alb-dm-title { font-size: 6.6cqw; margin: 2cqw 4cqw; }

/* 책 아래 하드커버 판 없앰(2026-09-30 사용자 "뒤에 커버가 있는데 제거 - 갑자기 생겼다 사라진다") - 넘기는 동안 판이 두 쪽 폭으로 먼저 펼쳐져 왼쪽에 빈 판이 보였다. 그림자는 쪽이 진다 */
.alb-book::before { display: none; }
/* 마름모 표지 대각선 띠 - 얇고 반투명하게(2026-09-30 사용자 "얼굴까지 가려 버린다, 너무 두껍다") */
.alb-dm-band { height: 1.6cqw; margin-top: -.8cqw; background: rgba(251, 248, 242, .55); box-shadow: 0 0 0 .15cqw rgba(214, 183, 121, .35); }

/* 정보 쪽(표지 다음 오른쪽, 2026-09-30 사용자 "좌측은 비우고 우측에 텍스트 정보", "초대장 정보를 깔끔하게") */
.alb-info { position: absolute; inset: 16cqw 12cqw 12cqw; display: flex; flex-direction: column; align-items: center; text-align: center; z-index: 5; }
.alb-info-kicker { font: 3cqw/1 var(--alb-type); letter-spacing: 1cqw; text-transform: uppercase; opacity: .6; }
.alb-info-title { margin: 5cqw 0 0; font: 700 8.6cqw/1.25 "Nanum Myeongjo", "Cormorant Garamond", serif; word-break: keep-all; overflow-wrap: break-word; }
.alb-info-rule { display: block; width: 14cqw; margin: 6cqw 0 5cqw; border-top: .3cqw solid currentColor; opacity: .35; }
.alb-info-desc { margin: 0 0 6cqw; font: 5cqw/1.5 var(--alb-hand); white-space: pre-line; word-break: keep-all; opacity: .9; }
.alb-info-list { margin: 0; width: 100%; display: grid; gap: 3cqw; }
.alb-info-row { display: grid; grid-template-columns: 22cqw 1fr; gap: 3cqw; text-align: left; align-items: baseline; }
.alb-info-row dt { font: 2.8cqw/1.4 var(--alb-type); letter-spacing: .5cqw; opacity: .55; text-align: right; }
.alb-info-row dd { margin: 0; font: 600 3.8cqw/1.45 "Nanum Myeongjo", serif; word-break: keep-all; }
.alb-info-row dd small { display: block; font-weight: 400; font-size: 3cqw; opacity: .65; }
/* 정보 쪽 글자 줄임(2026-09-30 사용자 "글자가 너무 크다") - 약 2/3, 쪽 가운데로 */
.alb-info { inset: 12cqw 14cqw; justify-content: center; }
.alb-info-kicker { font-size: 2.2cqw; letter-spacing: .8cqw; }
.alb-info-title { margin-top: 3.4cqw; font-size: 6cqw; }
.alb-info-rule { width: 10cqw; margin: 4.4cqw 0 3.6cqw; }
.alb-info-desc { margin-bottom: 4.4cqw; font-size: 3.8cqw; }
.alb-info-list { gap: 1.8cqw; }
.alb-info-row { grid-template-columns: 18cqw 1fr; gap: 2.6cqw; }
.alb-info-row dt { font-size: 2.2cqw; }
.alb-info-row dd { font-size: 2.8cqw; }
.alb-info-row dd small { font-size: 2.3cqw; }
/* 두께 - 쪽 가장자리 종이 층은 스크립트가(thickness), 넘길 때 층이 옮겨 가는 것이 보이게 부드럽게. 표지는 판 테두리 */
.alb-side { transition: box-shadow .45s ease; }
.alb-cover { box-shadow: inset 0 0 0 .5cqw rgba(0, 0, 0, .08), inset .9cqw 0 1.2cqw -.6cqw rgba(0, 0, 0, .35); }
.alb-sheetpage.is-c { border-radius: 0 .6cqw .6cqw 0; overflow: hidden; }
/* 하드커버 표지(2026-09-30 사용자 참고 이미지 "살짝 접힘과 두께감") - 책등 쪽 경첩 홈(어두운 선 + 밝은 선), 책등 그늘, 바깥 모서리 둥글게, 위 가장자리 빛 */
.alb-sheetpage.is-coverpage { border-radius: 0 .9cqw .9cqw 0; overflow: hidden; }
.alb-sheetpage.is-coverpage::before { content: ""; position: absolute; inset: 0; z-index: 46; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, .05) 1.6%, rgba(255, 255, 255, .10) 2.4%, transparent 3.6%,
      transparent 5.2%, rgba(0, 0, 0, .22) 5.9%, rgba(0, 0, 0, .06) 6.5%, rgba(255, 255, 255, .28) 7.1%, rgba(255, 255, 255, 0) 8.4%),
    linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 1.2%),
    linear-gradient(0deg, rgba(0, 0, 0, .10), transparent 1.4%); }
/* 빈 쪽 자리는 종이 층도 바로 없앤다 - 마지막 장을 덮을 때 왼쪽에 층 테두리만 남아 사라지던 줄(2026-09-30 사용자) */
.alb-side:empty { box-shadow: none !important; transition: none; }

/* ── 실물 느낌 다시(2026-09-30 사용자 "뒤 표지 라인이 깜빡, 딱딱하고 디지털 같다, 속지가 두꺼운 종이인데 1px 선 같다, 뒤 커버는 속지보다 약간 크게") ──
   1px 종이 층(box-shadow) 대신: 속지보다 큰 하드커버 판(.alb-board) + 쪽 바깥에 붙은 두꺼운 종이 묶음(.alb-stack, 폭 = --tl/--tr). 둘 다 늘 그 자리에 있어 넘길 때 다시 그리지 않는다 */
.alb-side, .alb-side:not(:empty), .alb-book.is-spread .alb-side.is-right:not(:empty), .alb-book:not(.is-spread) .alb-side.is-right, .alb-book.is-spread .alb-side.is-left:not(:empty) { box-shadow: none !important; transition: none; }
.alb-board { position: absolute; z-index: 0; top: -9px; bottom: -11px; left: calc(-12px - var(--tl, 0px)); right: calc(-12px - var(--tr, 0px)); border-radius: 7px; pointer-events: none;
  background: #7c6a58 radial-gradient(130% 120% at 30% 20%, rgba(255, 240, 220, .18), rgba(0, 0, 0, .18)), #7c6a58;
  background-image: var(--alb-noise), radial-gradient(130% 120% at 30% 20%, rgba(255, 240, 220, .2), rgba(0, 0, 0, .2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 3px rgba(0, 0, 0, .25), 0 2px 3px rgba(40, 28, 12, .25), 0 22px 40px -16px rgba(40, 28, 12, .55);
  transition: left .5s ease, right .5s ease; }
.alb-book.is-spread.is-closed .alb-board { left: calc(var(--pw, 320px) - 8px); transition: none; }
.alb-book.is-spread.is-end .alb-board { right: calc(var(--pw, 320px) - 8px); transition: none; }
/* 가운데 책등 홈 - 판 위 */
.alb-book.is-spread:not(.is-closed):not(.is-end) .alb-board { background-image: var(--alb-noise), linear-gradient(90deg, transparent calc(50% - 10px), rgba(0, 0, 0, .35) 50%, transparent calc(50% + 10px)), radial-gradient(130% 120% at 30% 20%, rgba(255, 240, 220, .2), rgba(0, 0, 0, .2)); }
/* 두꺼운 종이 묶음 - 한 장이 약 2.4px, 가장자리 종이 결과 그늘 */
.alb-stack { position: absolute; z-index: 1; top: 3px; bottom: 1px; pointer-events: none; transition: width .5s ease;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .10), transparent 6%, transparent 94%, rgba(0, 0, 0, .12)),
    repeating-linear-gradient(90deg, #faf7f0 0 1.7px, #e6decf 1.7px 2.4px); }
.alb-stack.is-right { left: 100%; width: var(--tr, 0px); border-radius: 0 3px 3px 0; box-shadow: inset -1px 0 1px rgba(0, 0, 0, .18), 2px 1px 3px rgba(40, 28, 12, .18); }
.alb-book.is-spread .alb-stack.is-right { left: calc(var(--pw, 320px) * 2); }
.alb-stack.is-left { right: 100%; width: var(--tl, 0px); border-radius: 3px 0 0 3px; box-shadow: inset 1px 0 1px rgba(0, 0, 0, .18), -2px 1px 3px rgba(40, 28, 12, .18); }
.alb-book:not(.is-spread) .alb-stack.is-left, .alb-book.is-closed .alb-stack.is-left, .alb-book.is-end .alb-stack.is-right { width: 0; transition: none; }
.alb-book.is-spread .alb-stack.is-left { right: auto; left: calc(-1 * var(--tl, 0px)); }
/* 쪽 자체는 살짝 그늘만 - 판 위에 놓인 종이 */
.alb-side:not(:empty) { filter: drop-shadow(0 1px 1.5px rgba(40, 28, 12, .18)); }
/* 모서리 통일(2026-09-30 사용자 "앞장은 라운드인데 뒷장은 아니다") - 모든 쪽의 바깥 모서리를 표지와 같게, 책등 쪽은 각지게 */
.alb-sheetpage { border-radius: 0 .9cqw .9cqw 0; overflow: hidden; }
.alb-sheetpage.is-l, .alb-sheetpage.is-e { border-radius: .9cqw 0 0 .9cqw; }
.alb-sheetpage.is-s { border-radius: .9cqw; }
.alb-stack.is-right { border-radius: 0 5px 5px 0; }
.alb-stack.is-left { border-radius: 5px 0 0 5px; }
/* 닫힌 책은 가운데(2026-09-30) - 넘김(0.98초)과 같은 곡선으로 미끄러진다 */
.alb-book { transition: transform .98s cubic-bezier(.45, .05, .25, 1); }
.alb-book.is-c-front { transform: translateX(calc(var(--pw, 320px) * -.5)); }
.alb-book.is-c-back { transform: translateX(calc(var(--pw, 320px) * .5)); }
@media (prefers-reduced-motion: reduce) { .alb-book { transition: none; } }
/* 모서리는 각지게(2026-09-30 사용자 "라운드는 아닌 것 같아") - 표지·속지·종이 묶음 모두 같게, 판만 아주 살짝 */
.alb-sheetpage, .alb-sheetpage.is-l, .alb-sheetpage.is-e, .alb-sheetpage.is-s, .alb-sheetpage.is-coverpage, .alb-sheetpage.is-c { border-radius: 0; }
.alb-stack.is-right, .alb-stack.is-left { border-radius: 0; }
.alb-board { border-radius: 2px; }
.alb-page { border-radius: 0; }
/* 뒤 커버 판 없앰(2026-09-30 사용자 "뒤에 커버는 필요 없다") - 두께는 종이 묶음(.alb-stack)만, 그림자는 쪽이 진다 */
.alb-board { display: none; }
.alb-side:not(:empty) { filter: drop-shadow(0 2px 3px rgba(40, 28, 12, .22)) drop-shadow(0 16px 22px rgba(40, 28, 12, .18)); }
/* 두께 옮김은 넘김과 같은 시간 - 쪽이 안쪽으로 들어오는 것처럼(책 밖 크기는 그대로) */
.alb-book { transition: transform .98s cubic-bezier(.45, .05, .25, 1), translate .98s cubic-bezier(.45, .05, .25, 1); }
.alb-stack { transition: width .98s cubic-bezier(.45, .05, .25, 1); }
@media (prefers-reduced-motion: reduce) { .alb-book, .alb-stack { transition: none; } }
/* 표지는 판이라 더 두껍게(2026-09-30 사용자 "첫 장은 표지니까 조금 더 두껍게") - 바깥쪽·아래로 판 두께 5px, 같은 색 계열로 */
.alb-sheetpage.is-coverpage { box-shadow: 1px 1px 0 #5d544b, 2px 2px 0 #6c6258, 3px 3px 0 #5d544b, 4px 4px 0 #4e463e, 5px 5px 0 #433c35, 6px 7px 10px rgba(30, 20, 10, .35); }
.alb-book.is-spread .alb-side.is-left .alb-sheetpage.is-lastpage { box-shadow: -1px 1px 0 #5d544b, -2px 2px 0 #6c6258, -3px 3px 0 #5d544b, -4px 4px 0 #4e463e, -5px 5px 0 #433c35, -6px 7px 10px rgba(30, 20, 10, .35); }
/* 앞·뒤 표지는 속지보다 약간 크게(2026-09-30 사용자 "뒷장과 마지막 장은 조금 두껍고 약간 더 크게") - 위·아래·바깥으로 7px, 책등 쪽은 그대로 */
.alb-side > .alb-sheetpage.is-coverpage, .alb-side > .alb-sheetpage.is-lastpage { position: absolute; width: auto; height: auto; top: -7px; bottom: -7px; }
.alb-side > .alb-sheetpage.is-coverpage, .alb-side.is-right > .alb-sheetpage.is-lastpage { left: 0; right: -7px; }
.alb-side.is-left > .alb-sheetpage.is-lastpage { left: -7px; right: 0; }
.alb-side.is-right > .alb-sheetpage.is-lastpage { box-shadow: 1px 1px 0 #5d544b, 2px 2px 0 #6c6258, 3px 3px 0 #5d544b, 4px 4px 0 #4e463e, 5px 5px 0 #433c35, 6px 7px 10px rgba(30, 20, 10, .35); }
/* 쪽이 빈 쪽의 종이 묶음도 바로 없앤다(2026-09-30 사용자 "이런 흔적은 남지 않게") - 닫을 때 왼쪽 쪽은 비었는데 묶음 선이 남아 있었다 */
.alb-book:has(> .alb-side.is-left:empty) > .alb-stack.is-left, .alb-book:has(> .alb-side.is-right:empty) > .alb-stack.is-right { width: 0 !important; transition: none; box-shadow: none; }
/* 마지막 쪽이 오른쪽에 펼쳐져 있을 때는 속지 그대로(2026-09-30 사용자 "마지막 장이 어색") - 뒤 표지 모양(크게·두께)은 닫혀 혼자 남았을 때만 */
.alb-side.is-right > .alb-sheetpage.is-lastpage { position: relative; top: auto; bottom: auto; left: auto; right: auto; width: 100%; height: 100%; box-shadow: none; }
/* 첫 화면(닫힌 표지)도 펼쳤을 때와 같은 두께(2026-09-30 사용자) - 표지 오른쪽은 속지와 맞춰 종이 묶음(.alb-stack)이 보이게, 판 두께는 아래로만 */
.alb-side > .alb-sheetpage.is-coverpage { right: 0; box-shadow: 0 1px 0 #5d544b, 0 2px 0 #6c6258, 0 3px 0 #5d544b, 0 4px 0 #4e463e, 0 5px 0 #433c35, 0 8px 12px rgba(30, 20, 10, .3); }
.alb-side.is-left > .alb-sheetpage.is-lastpage { left: 0; box-shadow: 0 1px 0 #5d544b, 0 2px 0 #6c6258, 0 3px 0 #5d544b, 0 4px 0 #4e463e, 0 5px 0 #433c35, 0 8px 12px rgba(30, 20, 10, .3); }
.alb-stack { top: -4px; bottom: -4px; }
/* 종이 묶음은 쪽 높이 안에서(2026-09-30 사용자 "이쪽 어색해" - 위·아래로 4px 튀어나와 선처럼 보였다) */
.alb-stack { top: 2px; bottom: 2px; }
/* 종이 묶음 위·아래 끝은 사선(2026-09-30 사용자 참고 "첫 장은 사선") - 쪽 모서리에서 바깥으로 갈수록 안쪽으로 비스듬히 */
.alb-stack { top: 0; bottom: 0; }
.alb-stack.is-right { clip-path: polygon(0 0, 100% calc(var(--tr, 0px) * .75), 100% calc(100% - var(--tr, 0px) * .75), 0 100%); }
.alb-stack.is-left { clip-path: polygon(0 calc(var(--tl, 0px) * .75), 100% 0, 100% 100%, 0 calc(100% - var(--tl, 0px) * .75)); }
/* 두께 입체(2026-09-30 사용자 "첫 장은 사선", "하단 음영도 우측과 동일하게") - 오른쪽 아래로 비껴 본 책: 옆면(세로 줄무늬)과 아랫면(가로 줄무늬)이 모서리에서 사선으로 만난다. 깊이 = 두께(가로) × .75(세로) */
.alb-book { --dr: calc(var(--tr, 0px) * .75); --dl: calc(var(--tl, 0px) * .75); }
.alb-stack.is-right { top: 0; bottom: calc(-1 * var(--dr)); clip-path: polygon(0 0, 100% var(--dr), 100% 100%, 0 calc(100% - var(--dr))); }
.alb-stack.is-left { top: 0; bottom: calc(-1 * var(--dl)); clip-path: polygon(0 var(--dl), 100% 0, 100% calc(100% - var(--dl)), 0 100%); }
.alb-stack.is-br, .alb-stack.is-bl { top: 100%; bottom: auto; border-radius: 0; box-shadow: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .10), transparent 5%, transparent 95%, rgba(0, 0, 0, .10)), repeating-linear-gradient(180deg, #faf7f0 0 1.7px, #e6decf 1.7px 2.4px); }
.alb-stack.is-br { left: 0; width: calc(var(--pw, 320px) + var(--tr, 0px)); height: var(--dr); clip-path: polygon(0 0, calc(100% - var(--tr, 0px)) 0, 100% 100%, 0 100%); }
.alb-book.is-spread .alb-stack.is-br { left: var(--pw, 320px); }
.alb-stack.is-bl { left: calc(-1 * var(--tl, 0px)); width: calc(var(--pw, 320px) + var(--tl, 0px)); height: var(--dl); clip-path: polygon(var(--tl, 0px) 0, 100% 0, 100% 100%, 0 100%); }
.alb-book:not(.is-spread) .alb-stack.is-bl, .alb-book.is-closed .alb-stack.is-bl, .alb-book.is-end .alb-stack.is-br { display: none; }
.alb-book:has(> .alb-side.is-left:empty) > .alb-stack.is-bl, .alb-book:has(> .alb-side.is-right:empty) > .alb-stack.is-br { display: none; }
.alb-stack.is-br, .alb-stack.is-bl { transition: width .98s cubic-bezier(.45, .05, .25, 1), height .98s cubic-bezier(.45, .05, .25, 1); }
/* 표지 판 두께(아래 검은 줄)는 없애고 종이 묶음으로 - 표지가 위·아래로 7px 크니 닫혀 있을 땐 아랫면을 표지 아래에 */
.alb-side > .alb-sheetpage.is-coverpage, .alb-side.is-left > .alb-sheetpage.is-lastpage { box-shadow: none; }
.alb-book.is-c-front .alb-stack.is-br, .alb-book.is-c-back .alb-stack.is-bl { top: calc(100% + 7px); }
.alb-book.is-c-front .alb-stack.is-right { bottom: calc(-7px - var(--dr)); }
/* 모든 모서리 같은 사선 + 종이 줄 굵게(2026-09-30 사용자 "동일한 사선으로, 옆 부분 선이 너무 얇다") - 아랫면 책등 쪽 끝도 사선, 줄 한 장 약 4px */
.alb-stack.is-br { clip-path: polygon(0 0, calc(100% - var(--tr, 0px)) 0, 100% 100%, var(--tr, 0px) 100%); }
.alb-book.is-spread .alb-stack.is-br { clip-path: polygon(0 0, calc(100% - var(--tr, 0px)) 0, 100% 100%, 0 100%); }
.alb-stack.is-bl { clip-path: polygon(var(--tl, 0px) 0, 100% 0, 100% 100%, 0 100%); }
.alb-stack.is-right, .alb-stack.is-left {
  background: linear-gradient(180deg, rgba(0, 0, 0, .10), transparent 6%, transparent 94%, rgba(0, 0, 0, .12)), repeating-linear-gradient(90deg, #faf7f0 0 2.6px, #d8cfbf 2.6px 4px); }
.alb-stack.is-br, .alb-stack.is-bl {
  background: linear-gradient(90deg, rgba(0, 0, 0, .10), transparent 5%, transparent 95%, rgba(0, 0, 0, .10)), repeating-linear-gradient(180deg, #faf7f0 0 2.6px, #d8cfbf 2.6px 4px); }
/* 몰입 보기 여백(2026-09-30 사용자 "위아래가 너무 딱 달라붙는다") - 위아래 6vh, 양옆은 스크립트가 */
.alb-view.is-immersive { padding: calc(6vh + env(safe-area-inset-top, 0px)) 0 calc(6vh + env(safe-area-inset-bottom, 0px)); }
/* 종이 줄 부드럽게 + 음영(2026-09-30 사용자 "페이지 라인에 음영을 넣어 좀 더 부드럽게") - 줄 대비를 낮추고, 쪽에서 멀어질수록 어두워지는 그늘, 바닥에 번지는 그림자 */
.alb-stack.is-right { background:
  linear-gradient(90deg, rgba(255, 255, 255, .35), rgba(120, 100, 70, 0) 35%, rgba(90, 70, 45, .22)),
  linear-gradient(180deg, rgba(0, 0, 0, .06), transparent 8%, transparent 92%, rgba(0, 0, 0, .08)),
  repeating-linear-gradient(90deg, #f7f3ea 0 2.4px, #e9e1d3 2.4px 3.2px, #f3eee4 3.2px 4px);
  filter: drop-shadow(2px 3px 4px rgba(40, 28, 12, .18)); }
.alb-stack.is-left { background:
  linear-gradient(270deg, rgba(255, 255, 255, .35), rgba(120, 100, 70, 0) 35%, rgba(90, 70, 45, .22)),
  linear-gradient(180deg, rgba(0, 0, 0, .06), transparent 8%, transparent 92%, rgba(0, 0, 0, .08)),
  repeating-linear-gradient(90deg, #f7f3ea 0 2.4px, #e9e1d3 2.4px 3.2px, #f3eee4 3.2px 4px);
  filter: drop-shadow(-2px 3px 4px rgba(40, 28, 12, .18)); }
.alb-stack.is-br, .alb-stack.is-bl { background:
  linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(120, 100, 70, 0) 35%, rgba(90, 70, 45, .26)),
  repeating-linear-gradient(180deg, #f7f3ea 0 2.4px, #e9e1d3 2.4px 3.2px, #f3eee4 3.2px 4px);
  filter: drop-shadow(0 4px 5px rgba(40, 28, 12, .2)); }
/* ‹ ›는 앨범 위에(2026-09-30 사용자 "좌우 버튼은 앨범 위로") - 책 가장자리 안쪽에 떠 있게, 늘 넘기는 종이보다 위 */
.alb-view .alb-stage { position: relative; }
.alb-view .alb-nav, .alb-view.is-immersive .alb-nav { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; z-index: 80;
  background: rgba(255, 255, 255, .88); border: 0; color: #222; box-shadow: 0 2px 8px rgba(40, 28, 12, .25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.alb-view .alb-nav.is-prev { left: calc(50% - var(--bw, 0px) / 2 + 14px); }
.alb-view .alb-nav.is-next { right: calc(50% - var(--bw, 0px) / 2 + 14px); }
.alb-view .alb-nav:disabled { opacity: 0; pointer-events: none; }
.alb-view .alb-nav { transition: left .98s cubic-bezier(.45, .05, .25, 1), right .98s cubic-bezier(.45, .05, .25, 1), opacity .2s; }
/* 한 쪽 보기(휴대폰)에서도 왼쪽 종이 묶음(옆면·아랫면)을 보인다 - 넘긴 장 */
.alb-book:not(.is-spread) .alb-stack.is-left { width: var(--tl, 0px); transition: width .98s cubic-bezier(.45, .05, .25, 1); }
.alb-book:not(.is-spread) .alb-stack.is-bl { display: block; }

/* 말풍선(2026-09-30 사용자) - 사진마다 먼저 달린 코멘트 3개, 배치가 비워 둔 자리(talk)에. 손그림 테두리, 꼬리는 그 사진 쪽 */
.alb-talk { position: absolute; z-index: 6; left: calc((var(--ox) + var(--x) * var(--k)) * 1cqw); top: calc((var(--oy) + var(--y) * var(--k)) * 1cqw);
  width: calc(var(--w) * var(--k) * 1cqw); max-height: calc(var(--h) * var(--k) * 1cqw); transform: rotate(calc(var(--r) * 1deg));
  padding: 2.2cqw 2.6cqw; background: #fffdf7; border: .35cqw solid #3a3530; border-radius: 48% 52% 46% 54% / 44% 50% 50% 56%;
  box-shadow: .4cqw .6cqw 0 rgba(58, 53, 48, .12); color: #2d2a25; cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.alb-talk ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6cqw; overflow: hidden; }
.alb-talk li { font: 3.1cqw/1.22 var(--alb-hand); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.alb-talk li b { font-weight: 400; color: #8a6f55; }
.alb-talk-more { position: absolute; right: 2cqw; bottom: .6cqw; font: 2.4cqw/1 var(--alb-type); color: #8a6f55; }
.alb-talk::before, .alb-talk::after { content: ""; position: absolute; width: 0; height: 0; border: solid transparent; }
/* 꼬리 - 바깥 선(before) + 안쪽 흰색(after) */
.alb-talk.is-up::before { left: 28%; top: -3.4cqw; border-width: 0 1.8cqw 3.4cqw; border-bottom-color: #3a3530; }
.alb-talk.is-up::after { left: calc(28% + .5cqw); top: -2.6cqw; border-width: 0 1.3cqw 2.8cqw; border-bottom-color: #fffdf7; }
.alb-talk.is-left::before { top: 32%; left: -3.4cqw; border-width: 1.8cqw 3.4cqw 1.8cqw 0; border-right-color: #3a3530; }
.alb-talk.is-left::after { top: calc(32% + .5cqw); left: -2.6cqw; border-width: 1.3cqw 2.8cqw 1.3cqw 0; border-right-color: #fffdf7; }
.alb-talk.is-right::before { top: 32%; right: -3.4cqw; border-width: 1.8cqw 0 1.8cqw 3.4cqw; border-left-color: #3a3530; }
.alb-talk.is-right::after { top: calc(32% + .5cqw); right: -2.6cqw; border-width: 1.3cqw 0 1.3cqw 2.8cqw; border-left-color: #fffdf7; }
.alb-page.is-dark .alb-talk { box-shadow: .4cqw .6cqw 0 rgba(0, 0, 0, .3); }
/* 말풍선 다듬기 - 납작한 타원은 꼬리가 떨어져 보였다 → 손그림 둥근 네모, 더 보기 수는 안쪽 */
.alb-talk { border-radius: 5.6cqw 4.4cqw 5.2cqw 4.8cqw / 4.8cqw 5.4cqw 4.4cqw 5cqw; padding: 2.4cqw 3cqw 2.8cqw; }
.alb-talk-more { right: 3cqw; bottom: 1cqw; }
.alb-talk.is-up::before { left: 18%; } .alb-talk.is-up::after { left: calc(18% + .5cqw); }

/* 앨범 하트(2026-09-30 사용자 "코멘트 대신 우측 상단 하트, 누르면 숫자가 는다") - 사진 오른쪽 위, 하트 안 숫자 */
.alb-heart { position: absolute; z-index: 3; top: 1.6cqw; right: 1.6cqw; width: 9cqw; height: 8.4cqw; min-width: 30px; min-height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; filter: drop-shadow(0 .3cqw .6cqw rgba(0, 0, 0, .35)); }
.alb-heart svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(255, 255, 255, .9); stroke: #e0455b; stroke-width: 1.6; transition: fill .15s; }
.alb-heart.is-on svg { fill: #ef4b5f; stroke: #ef4b5f; }
.alb-heart b { position: relative; margin-top: -.3cqw; font: 700 max(10px, 2.6cqw)/1 system-ui, sans-serif; color: #e0455b; }
.alb-heart.is-on b { color: #fff; }
.alb-heart.is-pop { animation: alb-pop .35s ease; }
@keyframes alb-pop { 40% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .alb-heart.is-pop { animation: none; } }
.alb-heart:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 50%; }
.alb-badges { display: none; }
/* 하트 작게(2026-09-30) */
.alb-heart { width: 6.4cqw; height: 6cqw; min-width: 24px; min-height: 22px; top: 1.4cqw; right: 1.4cqw; }
.alb-heart b { font-size: max(9px, 2cqw); }
/* 마지막 쪽 방명록 쓰기 */
.alb-guest-write { position: absolute; z-index: 8; left: 6cqw; right: 6cqw; bottom: 9cqw; display: flex; gap: 2cqw; align-items: flex-end; padding: 2cqw; background: rgba(255, 253, 247, .92); border: .3cqw dashed rgba(58, 53, 48, .35); border-radius: 1.4cqw; }
.alb-guest-write textarea { flex: 1; min-width: 0; resize: none; border: 0; background: transparent; font: max(13px, 4cqw)/1.35 var(--alb-hand); color: #2d2a25; outline: none; }
.alb-guest-write button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 1.4cqw 3.4cqw; background: #3a3530; color: #fff; font: 600 max(11px, 2.8cqw)/1 system-ui, sans-serif; cursor: pointer; }
.alb-guest-write.is-login { justify-content: center; font: max(12px, 3.4cqw)/1.4 var(--alb-hand); color: #3a3530; text-decoration: none; }
.alb-guest-grid { bottom: 24cqw; overflow: hidden; }
/* 방명록 이어지는 오른쪽 쪽 - 위부터 */
.alb-guestpage.is-more .alb-guest-grid { top: 12cqw; bottom: 10cqw; }
/* 하트는 사진 아래 오른쪽(2026-09-30 사용자 "우측 하단, 사진 아래") - 폴라로이드 아래 흰 띠 안 */
.alb-slot > .alb-heart { top: auto; bottom: .6cqw; right: 1.6cqw; filter: none; }
.alb-slot > .alb-heart svg { fill: #fff; stroke: #d9566a; }
.alb-slot > .alb-heart.is-on svg { fill: #ef4b5f; stroke: #ef4b5f; }
.alb-slot figcaption { padding-right: 8cqw; padding-left: 8cqw; }
.deco-sketch .alb-slot > .alb-heart { bottom: -1cqw; }
/* 방명록 쪽 - 포스트잇 8개(4줄 × 2), 쓰기 칸은 한 줄 입력 */
.alb-guestpage .alb-guest-grid { top: 22cqw; bottom: 24cqw; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 2.6cqw 4cqw; }
.alb-guestpage .alb-guest-grid .alb-note { padding: 2.4cqw 3cqw 1.8cqw; font-size: 4.2cqw; }
.alb-guestpage .alb-guest-grid .alb-note p { -webkit-line-clamp: 2; }
.alb-guest-write { align-items: center; }
.alb-guest-write input { flex: 1; min-width: 0; border: 0; background: transparent; font: max(13px, 4cqw)/1.3 var(--alb-hand); color: #2d2a25; outline: none; }
/* 포스트잇 ⋮ */
.alb-note-kebab { position: absolute; top: .6cqw; right: .6cqw; width: max(22px, 4.6cqw); height: max(22px, 4.6cqw); padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.alb-note-kebab i { width: 3px; height: 3px; border-radius: 50%; background: #5a5040; }
.alb-note-kebab:focus-visible { outline: 2px solid #3b82f6; }
.alb-note { position: absolute; }
.alb-guest-grid .alb-note { position: relative; }
.alb-note-edit .ig-input { width: 100%; }
/* 방명록 6개 · 말줄임 없이 · 작성 버튼(2026-09-30 사용자) */
.alb-guestpage .alb-guest-grid { top: 22cqw; bottom: 22cqw; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 4cqw 4cqw; }
.alb-guestpage .alb-guest-grid .alb-note { font-size: 4.4cqw; padding: 3cqw 3.4cqw 2.4cqw; }
.alb-guestpage .alb-guest-grid .alb-note p { display: block; -webkit-line-clamp: unset; overflow: visible; word-break: keep-all; overflow-wrap: anywhere; padding-right: 3cqw; }
.alb-guest-btn { position: absolute; z-index: 8; left: 50%; bottom: 9cqw; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 2.4cqw 6cqw; background: #3a3530; color: #fff; font: 600 max(12px, 3.2cqw)/1 system-ui, sans-serif; cursor: pointer; white-space: nowrap; box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .2); text-decoration: none; }
.alb-guest-btn.is-login { background: rgba(255, 253, 247, .95); color: #3a3530; border: .3cqw dashed rgba(58, 53, 48, .4); }
.alb-guest-btn:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
/* 쪽 바로 가기 셀렉트 - 책 오른쪽 아래 모서리 안(아래 쪽 번호 글자는 숨김) */
.alb-jump { position: absolute; z-index: 70; right: 10px; bottom: 10px; max-width: 46%; height: 30px; padding: 0 26px 0 10px; border: 1px solid rgba(58, 53, 48, .18); border-radius: 999px;
  background: rgba(255, 253, 247, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235a5040' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none; appearance: none; font: 500 12px/1 system-ui, sans-serif; color: #3a3530; cursor: pointer; box-shadow: 0 1px 4px rgba(40, 28, 12, .15); }
.alb-jump:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.alb-view .alb-count { display: none; }
.alb-view.is-immersive .alb-jump { opacity: .35; transition: opacity .2s; }
.alb-view.is-immersive .alb-jump:hover, .alb-view.is-immersive .alb-jump:focus { opacity: 1; }
/* 하트 뱃지 - 사진 위 층, 작게, 선 없이 채운 알약(2026-09-30 사용자) */
.alb-page > .alb-heart { position: absolute; z-index: 20; left: calc(var(--hx) * 1cqw); top: calc(var(--hy) * 1cqw); right: auto; bottom: auto; transform: translate(-50%, -50%);
  width: auto; height: auto; min-width: 0; min-height: 0; display: inline-flex; align-items: center; gap: .6cqw; padding: .8cqw 1.4cqw; border-radius: 999px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 .3cqw 1cqw rgba(0, 0, 0, .22); filter: none; }
.alb-page > .alb-heart svg { position: static; width: 2.8cqw; height: 2.6cqw; min-width: 10px; min-height: 9px; fill: #ef4b5f; stroke: none; }
.alb-page > .alb-heart b { margin: 0; font: 700 max(10px, 2.2cqw)/1 system-ui, sans-serif; color: #ef4b5f; }
.alb-page > .alb-heart b:empty { display: none; }
.alb-page > .alb-heart.is-on { background: #ef4b5f; }
.alb-page > .alb-heart.is-on svg { fill: #fff; }
.alb-page > .alb-heart.is-on b { color: #fff; }
.alb-page > .alb-heart.is-pop { animation: alb-pop2 .35s ease; }
@keyframes alb-pop2 { 40% { transform: translate(-50%, -50%) scale(1.25); } }
.alb-slot figcaption { padding-left: 1cqw; padding-right: 1cqw; }
/* 좋아요 0 - 숫자 없이 회색 하트(2026-09-30 사용자) */
.alb-page > .alb-heart.is-zero { padding: .9cqw; }
.alb-page > .alb-heart.is-zero svg { fill: #b9b3aa; }
/* 하트는 사진 안쪽 모서리에 붙고, 숫자가 늘면 사진 안쪽으로 커진다(2026-09-30 사용자) */
.alb-page > .alb-heart { transform: none; }
.alb-page > .alb-heart.is-lt { left: calc(var(--hx) * 1cqw); top: calc(var(--hy) * 1cqw); }
.alb-page > .alb-heart.is-lb { left: calc(var(--hx) * 1cqw); top: auto; bottom: calc(133.333cqw - var(--hy) * 1cqw); }
.alb-page > .alb-heart.is-rt { left: auto; right: calc(100cqw - var(--hx) * 1cqw); top: calc(var(--hy) * 1cqw); }
.alb-page > .alb-heart.is-rb { left: auto; right: calc(100cqw - var(--hx) * 1cqw); top: auto; bottom: calc(133.333cqw - var(--hy) * 1cqw); }
.alb-page > .alb-heart.is-pop { animation: alb-pop3 .35s ease; }
@keyframes alb-pop3 { 40% { transform: scale(1.2); } }
/* 방명록 작성 버튼은 위 제목 줄 오른쪽(2026-09-30 사용자), 포스트잇은 아래까지 여유 있게 - 잘리지 않게 */
.alb-guestpage .alb-guest-btn { left: auto; right: 7cqw; top: 8.4cqw; bottom: auto; transform: none; padding: 1.8cqw 4cqw; font-size: max(11px, 2.8cqw); }
.alb-guestpage .alb-guest-grid { top: 31cqw; bottom: 9cqw; grid-template-rows: repeat(3, minmax(0, 1fr)); overflow: visible; } /* 위 31 - "방명록" 제목(아래 끝 28cqw)을 메모지가 덮지 않게(2026-10-01 사용자) */
.alb-guestpage .alb-guest-grid .alb-note { min-height: 0; overflow: hidden; }
/* 닫힌 책(표지·뒤표지 한 쪽)에서는 셀렉트를 그 쪽 오른쪽 아래로 */
.alb-book.is-c-back .alb-jump { right: calc(var(--pw, 320px) + 10px); }
.alb-view .alb-nav.is-prev, .alb-view .alb-nav.is-next { right: auto; transition: left .98s cubic-bezier(.45, .05, .25, 1), opacity .2s; }
/* 숨긴 방명록 쪽(관리자만) - 흐리게 */
.alb-hiddenpage .alb-guest-grid .alb-note { opacity: .55; filter: grayscale(.6); }
/* 숨긴 방명록 목록 - 쪽 안 스크롤, 줄 끝 [복구하기] */
.alb-hidden-list { position: absolute; z-index: 6; left: 7cqw; right: 7cqw; top: 22cqw; bottom: 8cqw; margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 1.6cqw; }
.alb-hidden-list li { display: flex; align-items: center; gap: 2cqw; padding: 2cqw 2.4cqw; background: rgba(255, 253, 247, .85); border-radius: 1cqw; box-shadow: 0 .2cqw .6cqw rgba(0, 0, 0, .08); }
.alb-hidden-list span { flex: 1; min-width: 0; font: max(12px, 3.4cqw)/1.35 var(--alb-hand); color: #3a3530; overflow-wrap: anywhere; }
.alb-hidden-list b { font-weight: 400; color: #8a6f55; }
.alb-hidden-list button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 1.2cqw 2.6cqw; background: #3a3530; color: #fff; font: 600 max(11px, 2.6cqw)/1 system-ui, sans-serif; cursor: pointer; }
.alb-hidden-list button:disabled { opacity: .5; }
/* 쪽 바로 가기는 책 아래 가운데(2026-09-30 사용자 "가운데로") */
.alb-jump, .alb-book.is-c-back .alb-jump { right: auto; left: 50%; transform: translateX(-50%); }
.alb-book.is-c-front .alb-jump, .alb-book.is-c-back .alb-jump { left: 50%; }
/* 닫힌 책은 보이는 한 쪽의 가운데에(앞표지는 오른쪽 쪽, 뒤표지는 왼쪽 쪽) */
.alb-book.is-spread.is-closed .alb-jump, .alb-book.is-spread.is-c-front .alb-jump { left: 75%; }
.alb-book.is-spread.is-end .alb-jump, .alb-book.is-spread.is-c-back .alb-jump { left: 25%; }
/* 한 쪽 보기(휴대폰)는 왼쪽 쪽 자리가 늘 비어 있다 - 빈 쪽이면 묶음을 없애는 규칙은 펼침에서만(2026-09-30 사용자 "넘기고 나면 왼쪽 두께가 사라진다") */
.alb-book:not(.is-spread):has(> .alb-side.is-left:empty) > .alb-stack.is-left { width: var(--tl, 0px) !important; transition: width .98s cubic-bezier(.45, .05, .25, 1); }
.alb-book:not(.is-spread):has(> .alb-side.is-left:empty) > .alb-stack.is-bl { display: block; }
/* 한 쪽 보기의 앞 쪽 - 현재 쪽 바로 왼쪽, 화면 밖으로 잘려 보인다(누르거나 넘기지 않게) */
.alb-book:not(.is-spread) .alb-side.is-left { display: block; left: calc(-1 * var(--pw, 320px) - var(--tl, 0px)); pointer-events: none; }
.alb-book:not(.is-spread) .alb-side.is-left .alb-heart, .alb-book:not(.is-spread) .alb-side.is-left .alb-note-kebab, .alb-book:not(.is-spread) .alb-side.is-left .alb-guest-btn { visibility: hidden; }
.alb-book:not(.is-spread) .alb-stack.is-left { left: calc(-1 * var(--tl, 0px)); right: auto; }
.alb-view { overflow: hidden; }
/* 인쇄 칼선 안전 여백(2026-09-30 사용자 "인쇄용이라 칼선을 생각해서 안쪽으로 padding") - 배치(테이프·액자 그림자 포함)가 쪽 가장자리에서 약 6% 안쪽에만 오게 */
.alb-page { --ox: 8; --oy: 10; --k: .82; }
.alb-sheetpage.is-l .alb-page { --ox: 7; }
.alb-sheetpage.is-r .alb-page { --ox: 11; }
/* 한 쪽 보기: 앞 쪽은 책등에 바로 붙고(사이에 종이 묶음 없음), 왼쪽 묶음은 앞 쪽의 바깥(더 왼쪽) 가장자리에(2026-09-30 사용자 "가운데 펼쳐보기가 저렇게 생길 수 없다") */
.alb-book:not(.is-spread) .alb-side.is-left { left: calc(-1 * var(--pw, 320px)); }
.alb-book:not(.is-spread) .alb-stack.is-left, .alb-book:not(.is-spread):has(> .alb-side.is-left:empty) > .alb-stack.is-left { left: calc(-1 * var(--pw, 320px) - var(--tl, 0px)); }
.alb-book:not(.is-spread) .alb-stack.is-bl { left: calc(-1 * var(--pw, 320px) - var(--tl, 0px)); }
.alb-book:not(.is-spread) .alb-sheetpage.is-l::after { right: 0; } /* 앞 쪽 책등 그늘 */

/* ── 포토북 오버레이(2026-09-30 사용자 "포토북 보기 → 오버레이, 여기까지만(위 줄 아래)") ── */
.alb-overlay[hidden] { display: none !important; }
body.alb-overlay-on { overflow: hidden; }
/* 오버레이는 위 줄(메뉴) 아래 전체 - 위 줄은 그대로 보이고 누를 수 있다 */
body.alb-overlay-on .alb-view { top: calc(var(--ig-top-h, 56px) + env(safe-area-inset-top, 0px)); padding-top: 58px; }
body.alb-overlay-on .ig-top { position: fixed; top: 0; left: 0; right: 0; z-index: 950; background: var(--ig-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.alb-overlay-bar { justify-content: space-between; }
.alb-overlay-title { font-size: 15px; font-weight: 700; color: var(--ig-text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; padding: 6px 12px; border-radius: 999px; background: var(--ig-bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.alb-overlay-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.alb-overlay-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ig-bg); color: var(--ig-text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.alb-overlay-x:focus-visible { outline: 2px solid var(--ig-accent); outline-offset: 2px; }
/* 오버레이가 아닌 곳의 옛 앨범 모드 줄 규칙은 오버레이 안에서만 */
body.alb-overlay-on .alb-overlay-bar { position: fixed; top: calc(var(--ig-top-h, 56px) + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 950; padding: 10px 16px; background: transparent; }
@media (max-width: 767px) { .alb-overlay-title { display: none; } }
/* 초대장 모달 */
dialog.alb-invite-modal { padding: 0; overflow: hidden; }
dialog.alb-invite-modal .ig-invite { border-radius: 14px; }
.alb-overlay-tools { margin-left: auto; }

/* 포토북 = 뷰 슬라이드처럼(2026-09-30 사용자 "위쪽은 제거, 종이비행기·편집하기·X는 북 안으로") - 사이트 위 줄까지 덮고, 도구는 책 오른쪽 위 모서리 안 */
body.alb-overlay-on .ig-top { display: none; }
body.alb-overlay-on .alb-view { top: 0; padding: calc(24px + env(safe-area-inset-top, 0px)) 0 calc(20px + env(safe-area-inset-bottom, 0px)); }
body.alb-overlay-on .alb-overlay-bar { top: 0; left: 0; right: 0; padding: 0; pointer-events: none; }
body.alb-overlay-on .alb-overlay-title { display: none; }
body.alb-overlay-on .alb-overlay-tools { position: fixed; z-index: 960; pointer-events: auto; top: var(--bt, 24px); right: var(--br, 24px); gap: 6px; }
body.alb-overlay-on .alb-overlay-tools .ig-icon-btn, body.alb-overlay-on .alb-overlay-x { width: 34px; height: 34px; }
body.alb-overlay-on .alb-overlay-tools .ig-btn { height: 34px; }
body.alb-overlay-on .alb-editbar { top: 0; }

/* 포토북 모드 · 몰입 모드(2026-09-30 사용자) - ✕ 왼쪽 위, ⋮ 오른쪽 위(화면 모서리), 몰입이면 버튼·셀렉트·하트 모두 숨기고 넘기기만 */
body.alb-overlay-on .alb-overlay-bar { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 14px; right: 14px; display: flex; justify-content: space-between; pointer-events: none; padding: 0; }
body.alb-overlay-on .alb-overlay-bar > button { pointer-events: auto; width: 40px; height: 40px; }
/* 포토북 ⋮ - 아이콘 자체가 세로 점이 됐다(2026-09-30), 돌리지 않는다 */
body.alb-overlay-on .alb-overlay-tools { display: none; }
body.alb-immersive .alb-overlay-bar { display: none !important; }
.alb-view.is-immersive .alb-jump, .alb-view.is-immersive .alb-heart, .alb-view.is-immersive .alb-page > .alb-kebab, .alb-view.is-immersive .alb-note-kebab, .alb-view.is-immersive .alb-guest-btn { display: none !important; }
.alb-view.is-immersive .alb-nav { opacity: 1; }
body.alb-overlay-on .alb-view.is-immersive { padding: calc(14px + env(safe-area-inset-top, 0px)) 0 calc(14px + env(safe-area-inset-bottom, 0px)); }
body.alb-overlay-on .alb-view .alb-immersive-x { display: none !important; }
/* 편집 줄은 화면 맨 위 */
body.alb-overlay-on .alb-editbar { position: fixed; top: 0; left: 0; right: 0; z-index: 970; }
body.alb-overlay-on:has(.alb-editbar:not([hidden])) .alb-overlay-bar { display: none; }
/* 편집 중에도 쪽 바로 가기(화면 맨 아래라 겹치지 않는다) - 숨기면 표지로 갈 수 없었다 */
/* 휴대폰 뒤표지 - 왼쪽 앞 쪽 없음, 두께는 뒤표지 왼쪽 가장자리(책등 쪽)에 붙은 묶음 */
.alb-book:not(.is-spread).is-single-back .alb-stack.is-left, .alb-book:not(.is-spread).is-single-back .alb-stack.is-bl { left: calc(-1 * var(--tl, 0px)); }
.alb-book:not(.is-spread).is-single-back .alb-stack.is-bl { width: calc(var(--pw, 320px) + var(--tl, 0px)); }
/* 몰입 모드는 ‹ ›도 없이 밀어서(휠·키보드) 넘긴다(2026-09-30 사용자) */
.alb-view.is-immersive .alb-nav, .alb-view.is-immersive .alb-stage:hover .alb-nav:not(:disabled) { display: none !important; }
/* 포토북이 열려 있으면 뒤 화면은 스크롤·스크롤바 없음(2026-09-30 사용자 "부모 창 스크롤") */
html:has(body.alb-overlay-on), body.alb-overlay-on { overflow: hidden !important; overscroll-behavior: none; scrollbar-width: none; }
html:has(body.alb-overlay-on)::-webkit-scrollbar, body.alb-overlay-on::-webkit-scrollbar { display: none; }
body.alb-overlay-on .alb-overlay { position: fixed; inset: 0; z-index: 900; }
/* 포토북 모드 ↔ 몰입 모드에서 책 크기·자리 같게 - 여백을 두 모드 똑같이 */
body.alb-overlay-on .alb-view, body.alb-overlay-on .alb-view.is-immersive { padding: calc(24px + env(safe-area-inset-top, 0px)) 0 calc(20px + env(safe-area-inset-bottom, 0px)); }

/* ── 휴대폰 포토북 = 뷰어(2026-09-30 사용자) - 쪽 배경을 화면 전체에, 책 모양(묶음·앞 쪽·책등 그늘·그림자) 없음, 내용은 쪽 크기 그대로 가운데 ── */
.alb-view.is-flat > .alb-flat-bg { position: absolute; inset: 0; z-index: 0; width: auto; height: auto; aspect-ratio: auto; border-radius: 0; box-shadow: none; container-type: normal; }
.alb-view.is-flat > .alb-stage { position: relative; z-index: 1; }
.alb-view.is-flat .alb-stack, .alb-view.is-flat .alb-side.is-left { display: none !important; }
.alb-view.is-flat .alb-side, .alb-view.is-flat .alb-side:not(:empty) { box-shadow: none !important; filter: none !important; }
.alb-view.is-flat .alb-sheetpage::after { display: none; }
.alb-view.is-flat .alb-side > .alb-sheetpage:not(.is-coverpage) > .alb-page { background: transparent !important; } /* 제자리 쪽만 투명 - 넘기는 종이는 배경 그대로 */
.alb-view.is-flat .alb-side > .alb-sheetpage:not(.is-coverpage) > .alb-page::after, .alb-view.is-flat .alb-side > .alb-sheetpage:not(.is-coverpage) > .alb-page > .alb-bgimg { display: none; }
.alb-view.is-flat .alb-book, .alb-view.is-flat .alb-book.is-c-front, .alb-view.is-flat .alb-book.is-c-back { transform: none; translate: none; }
.alb-view.is-flat .alb-side > .alb-sheetpage.is-coverpage, .alb-view.is-flat .alb-side > .alb-sheetpage.is-lastpage { top: 0; bottom: 0; right: 0; left: 0; }
.alb-view.is-flat .alb-ghost { position: absolute; inset: 0; pointer-events: none; }
.alb-view.is-flat .alb-sheetpage.is-coverpage { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
/* 휴대폰 뷰어도 책장 넘기기(2026-09-30 사용자) - 넘기는 종이에는 쪽 배경을 그대로(투명은 제자리 쪽에만), 실제 책 쪽 영역은 점선 */
.alb-view.is-flat .alb-side > .alb-sheetpage:not(.is-coverpage) > .alb-page { background: transparent !important; }
.alb-view.is-flat .alb-leaf .alb-page::after { display: block; }
.alb-view.is-flat .alb-side.is-right { outline: 1.5px dashed rgba(60, 50, 40, .35); outline-offset: 0; }
/* 넘기는 종이는 불투명 - 뒤가 비치지 않게(2026-09-30 사용자) */
.alb-view.is-flat .alb-leaf .alb-strip-face { background: #f3efe6; }
/* 휴대폰 뷰어 - 쪽은 화면 폭 꽉, 쪽 바로 가기는 화면 맨 아래(2026-09-30 사용자 "하단 기준 아래쪽에 붙게, 점선 기준 좌우 여백 없이") */
.alb-view.is-flat { padding-left: 0; padding-right: 0; }
.alb-view.is-flat .alb-stage { padding: 0; }
.alb-view.is-flat .alb-jump { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); }
.alb-view.is-flat .alb-nav.is-prev { left: 10px !important; }
.alb-view.is-flat .alb-nav.is-next { left: auto !important; right: 10px !important; }
/* 휴대폰 뷰어 - 좌우 5px(2026-09-30 사용자). 쪽 테두리 점선은 그날 뺐다가 되살림(2026-10-01 사용자 "어디까지 책인지 알 수가 없어서") */
.alb-view.is-flat .alb-side.is-right { outline: 1.5px dashed rgba(60, 50, 40, .5); outline-offset: 0; }

/* 편집 시트 - 아래 절반 판, 뒤를 가리지 않음, 칸은 접기(2026-09-30 사용자) */
dialog.alb-sheet.is-half { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: min(640px, 100vw); max-width: none; max-height: 50vh; height: auto; border-radius: 16px 16px 0 0; z-index: 980;
  flex-direction: column; overflow: hidden; box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); }
dialog.alb-sheet.is-half:not([open]) { display: none; } /* 닫혀도 보이지 않게 떠서 사진·⋮ 누르기를 막고 있었다(2026-09-30 브라우저 시험) */
dialog.alb-sheet.is-half[open] { display: flex; }
dialog.alb-sheet.is-half .bottom-sheet-body { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
dialog.alb-sheet.is-half .bottom-sheet-title { padding-bottom: 6px; }
.alb-fold { border-top: 1px solid var(--ig-line-soft); }
.alb-fold:first-child { border-top: 0; }
.alb-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; font-size: 14px; font-weight: 600; color: var(--ig-text); }
.alb-fold > summary::-webkit-details-marker { display: none; }
.alb-fold > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ig-muted); border-bottom: 2px solid var(--ig-muted); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.alb-fold[open] > summary::after { transform: rotate(-135deg); }
.alb-fold > summary small { font-weight: 400; color: var(--ig-muted); margin-left: 6px; }
.alb-fold > :not(summary) { margin-bottom: 12px; }
dialog.alb-sheet.is-half .alb-tiles { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
/* 쪽 바로 가기 - 포토북에서는 PC·휴대폰 모두 화면 맨 아래 가운데(2026-09-30 사용자) */
body.alb-overlay-on .alb-view > .alb-jump { position: fixed; z-index: 960; left: 50%; right: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); }
body.alb-overlay-on .alb-view, body.alb-overlay-on .alb-view.is-immersive { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
/* 숨긴 사진 목록 - 작은 사진 */
.alb-hp-thumb { flex: 0 0 auto; width: 12cqw; height: 12cqw; border-radius: 1cqw; background: #ddd center / cover; }
/* 숨긴 방명록·숨긴 사진 쪽 - 제목·목록을 위로(2026-09-30 사용자) */
.alb-hiddenpage .alb-title { --y: 0 !important; }
.alb-hiddenpage .alb-hidden-list { top: 18cqw; }
/* 테마·배경 고르기 - 정사각 칸, 꾸밈은 실제 액자 미리보기, 배경 이름은 그림 위(2026-09-30 사용자) */
.alb-tiles.is-sq { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.alb-tile.is-sq .alb-sw { aspect-ratio: 1; }
.alb-tile.is-sq .alb-sw em { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 4px 5px; font-style: normal; font-size: 11px; font-weight: 600; line-height: 1.2; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.alb-deco-sw { display: block; position: relative; width: 100%; aspect-ratio: 1 !important; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--ig-line); --ox: 0; --oy: 0; --k: 1; }
.alb-tile.is-on .alb-deco-sw { box-shadow: 0 0 0 2px var(--ig-accent); }
.alb-deco-sw::after { display: none; }
.alb-deco-sw .alb-slot { pointer-events: none; }
/* 숨긴 것 쪽 - 제목이 목록에 가려 잘리지 않게(2026-09-30 사용자) */
.alb-hiddenpage .alb-title { line-height: 1.25; }
.alb-hiddenpage .alb-hidden-list { top: 24cqw; }
.alb-hidden-list .alb-hl-head { background: none; box-shadow: none; padding: 1.4cqw .6cqw .4cqw; font: 600 max(11px, 2.8cqw)/1 system-ui, sans-serif; color: #8a6f55; }
/* 꾸밈 미리보기 - 사진 자리는 아이콘, 꾸밈(압정·테이프·필름 글자·스케치 선)은 크게 보이게 */
.alb-deco-sw .alb-ph { background: #d9dde3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3ae' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 17-5-5-9 8'/%3E%3C/svg%3E") center / 45% no-repeat !important; }
.alb-deco-sw .alb-tape { height: 11cqw; top: -5cqw; }
.alb-deco-sw.deco-pin .alb-slot::after { width: 13cqw; height: 13cqw; margin-left: -6.5cqw; top: -5cqw; }
.alb-deco-sw.deco-film .alb-slot { padding-top: 8cqw; }
.alb-deco-sw.deco-film .alb-slot::before { font-size: 4.6cqw; top: 1.6cqw; }
.alb-deco-sw.deco-sketch .alb-ph { border-width: 3cqw; }
.alb-deco-sw.deco-sketch .alb-slot::before { border-width: 1cqw; inset: -5cqw -5cqw auto; }
.alb.is-editing .alb-heart { display: none; } /* 편집 중에는 하트 숨김 - 사진 누르기(캡션)와 겹친다 */
/* 방명록 쓴 때 */
.alb-note time { display: block; margin-top: .6cqw; font: max(9px, 2.4cqw)/1 var(--alb-type); letter-spacing: .1cqw; opacity: .55; text-align: right; }
/* 표지 모양 폴다운(2026-09-30 사용자) */
.alb-shape-pick { border: 1px solid var(--ig-line); border-radius: 10px; overflow: hidden; }
.alb-shape-pick > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; position: relative; }
.alb-shape-pick > summary::-webkit-details-marker { display: none; }
.alb-shape-pick > summary::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ig-muted); border-bottom: 2px solid var(--ig-muted); transform: rotate(45deg); }
.alb-shape-pick[open] > summary { border-bottom: 1px solid var(--ig-line-soft); }
.alb-shape-list { display: grid; max-height: 260px; overflow-y: auto; }
.alb-shape-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ig-text); }
.alb-shape-row + .alb-shape-row { border-top: 1px solid var(--ig-line-soft); }
.alb-shape-row.is-on { background: color-mix(in srgb, var(--ig-accent) 10%, transparent); }
.alb-shape-thumb { flex: 0 0 auto; width: 42px; display: block; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); pointer-events: none; }
.alb-shape-thumb > .alb-page { box-shadow: none; }
.alb-shape-txt { min-width: 0; display: grid; gap: 2px; padding-right: 20px; }
.alb-shape-txt b { font-size: 14px; font-weight: 600; }
.alb-shape-txt small { font-size: 12px; color: var(--ig-muted); }
/* 편집 시트 손잡이 - 끌어서 높이 조절(위 줄 전체를 잡을 수 있게), 표지 모양 미리보기 크게(2026-09-30 사용자) */
dialog.alb-sheet.is-half .bottom-sheet-grip { width: 56px; height: 5px; margin: 8px auto 6px; cursor: ns-resize; touch-action: none; position: relative; }
dialog.alb-sheet.is-half .bottom-sheet-grip::before { content: ""; position: absolute; inset: -12px -40px; }
dialog.alb-sheet.is-half .bottom-sheet-title { cursor: ns-resize; touch-action: none; user-select: none; }
dialog.alb-sheet.is-dragging { transition: none; user-select: none; }
.alb-shape-thumb { width: 72px; }
.alb-shape-pick > summary, .alb-shape-row { gap: 14px; }
.alb-shape-list { max-height: 360px; }
dialog.alb-sheet.is-half:not(.is-dragging) { transition: height .2s ease, max-height .2s ease; }
/* 배치 미리보기 - 쪽 모양(3:4)에 사진 자리 아이콘 */
.alb-lay-sw { aspect-ratio: 3 / 4 !important; --ox: 8; --oy: 10; --k: .82; }
.alb-lay-sw .alb-tape { display: none; }
/* 폴다운 미리보기 칸(추천 조합·꾸밈·배경) - 정사각 */
.alb-pick-thumb { flex: 0 0 auto; width: 56px; aspect-ratio: 1; display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); pointer-events: none; }
.alb-pick-thumb > .alb-sw { display: block; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; background-size: cover; background-position: center; position: relative; container-type: inline-size; }
.alb-pick-thumb > .alb-deco-sw { box-shadow: none; }
.alb-pick-thumb > .alb-sw i { display: none; }
/* 폴다운 목록은 떠 있는 층 - 아래 내용을 밀지 않는다 */
.alb-shape-pick { position: relative; overflow: visible; }
.alb-shape-pick[open] > summary { border-bottom: 0; }
.alb-shape-pick > .alb-shape-list { position: fixed; z-index: 2000; overflow-y: auto; overscroll-behavior: contain; background: var(--ig-bg); border: 1px solid var(--ig-line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.alb-shape-pick.is-up > summary::after { transform: rotate(-135deg); margin-top: -2px; }
/* 편집 창이 열리면 뒤(책·편집 줄)는 반투명하게 막는다 - 모달(2026-09-30 사용자) */
dialog.alb-sheet.is-half::backdrop { background: rgba(20, 16, 12, .28); }

/* ── 기본 배경 추가(2026-09-30 사용자) - 종이 결 노이즈는 .alb-page::after가 이미 얹으니 여기는 무늬만. 무늬 크기는 %라 쪽 크기를 따라간다 ── */
/* 린넨 패브릭 - 가로·세로 올 */
.alb-bg-fabric { background-color: #e8e1d3; background-image:
  repeating-linear-gradient(0deg, rgba(110, 90, 60, .08) 0 1px, transparent 1px 3px),
  repeating-linear-gradient(90deg, rgba(110, 90, 60, .07) 0 1px, transparent 1px 3px),
  radial-gradient(120% 90% at 40% 20%, rgba(255, 255, 255, .35), transparent 65%); }
/* 한지·수제지 - 가늘고 긴 섬유 */
.alb-bg-hanji { background-color: #f4efe3; background-size: 50% auto, auto; background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .72  0 0 0 0 .66  0 0 0 0 .55  0 0 0 3.2 -2.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
  radial-gradient(ellipse 45% 30% at 30% 25%, rgba(210, 190, 150, .14), transparent 70%); }
/* 캔버스 - 사선 짜임 */
.alb-bg-canvas { background-color: #ebe5d8; background-image:
  repeating-linear-gradient(45deg, rgba(90, 80, 60, .06) 0 2px, transparent 2px 4px),
  repeating-linear-gradient(-45deg, rgba(90, 80, 60, .06) 0 2px, transparent 2px 4px); }
/* 수채화 워시 - 번진 물감 */
.alb-bg-wash { background-color: #f8f6f1; background-image:
  radial-gradient(ellipse 55% 40% at 20% 15%, rgba(140, 190, 225, .38), transparent 70%),
  radial-gradient(ellipse 50% 45% at 85% 42%, rgba(240, 175, 190, .32), transparent 70%),
  radial-gradient(ellipse 60% 38% at 40% 92%, rgba(175, 210, 165, .34), transparent 70%); }
/* 대리석 - 흰 바탕에 옅은 회색 결(2026-09-30 사용자 "결이 너무 진해" - 진하기 약 절반) */
.alb-bg-marble { background-color: #f3f2ef; background-size: cover; background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='800' preserveAspectRatio='none'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='turbulence' baseFrequency='.004 .011' numOctaves='5' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .58  0 0 0 0 .59  0 0 0 0 .63  -3.2 0 0 0 .55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"); }
/* 소프트 그라데이션 */
.alb-bg-gradient { background-color: #f6ede7; background-image: linear-gradient(160deg, #fbe3dc 0%, #f4ecf6 45%, #e3eef7 100%); }
/* 빈티지 종이 - 바랜 얼룩, 가장자리가 누렇게 */
.alb-bg-vintage { background-color: #efe3c6; background-image: radial-gradient(ellipse 78% 72% at 50% 50%, transparent 55%, rgba(150, 105, 50, .30) 100%), linear-gradient(rgba(239, 227, 198, .6), rgba(239, 227, 198, .6)), var(--alb-blotch); }
/* 식물·꽃 패턴 */
.alb-bg-botanical { background-color: #f5f2ea; background-size: 34% auto; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%239bb38f' stroke-width='1.4' opacity='.6'%3E%3Cpath d='M18 86 C 24 64, 36 52, 46 34'/%3E%3Cpath d='M30 62 c 8 -2 12 -8 12 -14 c -8 2 -12 8 -12 14z' fill='%23c2d4b4'/%3E%3Cpath d='M40 46 c -8 -2 -12 -8 -12 -14 c 8 2 12 8 12 14z' fill='%23c2d4b4'/%3E%3C/g%3E%3Cg fill='%23eab9b4' opacity='.65'%3E%3Ccircle cx='75' cy='25' r='4.5'/%3E%3Ccircle cx='82' cy='21' r='3.8'/%3E%3Ccircle cx='79' cy='31' r='3.8'/%3E%3Ccircle cx='70' cy='30' r='3.8'/%3E%3C/g%3E%3Ccircle cx='76' cy='26.5' r='2.2' fill='%23e3c27a' opacity='.85'/%3E%3Cg fill='%23c2d4b4' opacity='.55'%3E%3Cpath d='M70 76 c 6 -6 14 -6 18 -2 c -6 6 -14 6 -18 2z'/%3E%3C/g%3E%3C/svg%3E"); }
/* 별·구름 키즈 패턴 */
.alb-bg-kids { background-color: #e9f3fb; background-size: 34% auto; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M16 34 a7 7 0 0 1 12 -4 a6 6 0 0 1 11 5 a5 5 0 0 1 -1 10 h-20 a6 6 0 0 1 -2 -11z' fill='%23ffffff'/%3E%3Cpath d='M72 60 l3 6.5 7 .8 -5 4.8 1.3 7 -6.3 -3.4 -6.3 3.4 1.3 -7 -5 -4.8 7 -.8z' fill='%23ffd66b'/%3E%3Cpath d='M78 16 l1.8 3.8 4 .5 -3 2.8 .8 4 -3.6 -2 -3.6 2 .8 -4 -3 -2.8 4 -.5z' fill='%23ffb8c8'/%3E%3Ccircle cx='28' cy='80' r='2.6' fill='%23a9d3ff'/%3E%3Ccircle cx='50' cy='12' r='1.6' fill='%23a9d3ff'/%3E%3C/svg%3E"); }
/* 단색 무광 */
.alb-bg-matte { background-color: #e6e1d9; }

/* ⋮ 사진 메뉴 - 하트 뱃지 바로 아래(아래 모서리면 바로 위), 늘 보임, 관리자만 그린다(2026-09-30 사용자 "안 보인다, 하트 아래, 마우스 오버 말고 항상") */
.alb-page > .alb-kebab { z-index: 20; width: max(22px, 4.6cqw); height: max(22px, 4.6cqw); --kgap: max(26px, 5.6cqw); }
.alb-page > .alb-kebab i { width: max(3px, .6cqw); height: max(3px, .6cqw); }
.alb-page > .alb-kebab.is-lt { left: calc(var(--hx) * 1cqw); right: auto; top: calc(var(--hy) * 1cqw + var(--kgap)); }
.alb-page > .alb-kebab.is-rt { left: auto; right: calc(100cqw - var(--hx) * 1cqw); top: calc(var(--hy) * 1cqw + var(--kgap)); }
.alb-page > .alb-kebab.is-lb { left: calc(var(--hx) * 1cqw); right: auto; top: auto; bottom: calc(133.333cqw - var(--hy) * 1cqw + var(--kgap)); }
.alb-page > .alb-kebab.is-rb { left: auto; right: calc(100cqw - var(--hx) * 1cqw); top: auto; bottom: calc(133.333cqw - var(--hy) * 1cqw + var(--kgap)); }
