.gallery-page{max-width:1200px;margin:0 auto}.gallery-count{white-space:nowrap;padding:8px 15px;background:#e9efdf;border-radius:30px;color:#58704c;font-size:13px}.gallery-privacy{display:flex;gap:12px;align-items:flex-start;background:#eef3e7;border:1px solid #dce7d0;border-radius:17px;padding:17px 20px;color:#5e7250;font-size:14px;margin:20px 0}.gallery-privacy>svg{width:23px;height:23px;flex:none;margin-top:3px}.gallery-privacy p{margin:0}.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:23px 0 12px}.gallery-toolbar>div{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.gallery-small-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:8px 11px;border:1px solid #dedfce;border-radius:11px;background:#fffdf6;color:#617153;font-size:12px}.gallery-small-button svg{width:18px;height:18px}.gallery-small-button:hover{background:#edf2e5}.gallery-remove{color:#98614c}.gallery-status{min-height:26px;font-size:13px;color:#6d7d5d;margin:8px 0 19px}.gallery-status.error,.gallery-dialog-status{color:#99513c}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.gallery-card{background:#fffefa;border:1px solid #e5e5d5;border-radius:20px;padding:15px;min-width:0;box-shadow:0 7px 22px #3e493e08}.gallery-frame,.gallery-draft{position:relative;isolation:isolate;padding:21px 21px 17px;background:#f4e3b9;border-radius:18px;overflow:hidden;box-shadow:0 4px 8px #4b493216;min-width:0}.gallery-image-wrap{position:relative;aspect-ratio:1;background:#fffefa;overflow:hidden;border-radius:12px}.gallery-image-wrap img{width:100%;height:100%;display:block;object-fit:contain}.gallery-photo-label{text-align:center;margin-top:14px;line-height:1.6;overflow-wrap:anywhere;font-size:15px;font-weight:600;color:#675c42;position:relative;z-index:2}.gallery-frame-decoration{position:absolute;inset:0;pointer-events:none}.frame-polaroid{background:#fffefa;border:1px solid #ece9df;border-radius:3px;padding:17px 17px 35px;box-shadow:2px 5px 10px #4b49321c;transform:rotate(-1deg)}.frame-polaroid .gallery-image-wrap{border-radius:1px}.frame-polaroid .gallery-photo-label{color:#52614a;margin-top:22px}.frame-wood{background:repeating-linear-gradient(90deg,#b68e65 0,#b68e65 4px,#b08960 7px,#b68e65 15px);border:5px solid #9d744e;box-shadow:inset 0 0 0 3px #c5a276,0 5px 10px #4b493221;border-radius:7px;padding:20px}.frame-wood .gallery-image-wrap{border-radius:3px}.frame-wood .gallery-photo-label{color:#fff9ed;text-shadow:0 1px #6b492f;font-weight:600}.frame-garden{background:#e1ebd5;border:1px solid #cbdcb7;padding:22px;border-radius:22px}.frame-garden .gallery-photo-label{color:#4a6340}.frame-garden .gallery-frame-decoration:before,.frame-garden .gallery-frame-decoration:after{position:absolute;content:"✿";font-size:39px;line-height:1;color:#c5876d;text-shadow:0 0 0 #e5b294}.frame-garden .gallery-frame-decoration:before{top:0;left:1px;transform:rotate(-20deg)}.frame-garden .gallery-frame-decoration:after{bottom:4px;right:3px;transform:rotate(20deg)}.frame-night{background:#283b53;border:2px solid #3f566d;padding:22px;border-radius:20px}.frame-night .gallery-photo-label{color:#fff1c7}.frame-night .gallery-frame-decoration:before{content:"✦";position:absolute;top:3px;right:4px;font-size:30px;color:#f5df9f}.frame-night .gallery-frame-decoration:after{content:"· ✧ ·";position:absolute;bottom:0;left:12px;font-size:26px;color:#e8d59c}.gallery-card-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:18px}.gallery-card-actions .btn{padding:9px 12px;font-size:12px;flex:1}.gallery-card-actions .btn svg{width:17px;height:17px}.gallery-notes{padding:23px 26px;background:#f1efe4;border:1px solid #e6e2d4;border-radius:18px;margin-top:30px}.gallery-notes h2{font-size:18px;margin-bottom:11px}.gallery-notes p{font-size:13px;color:#6f7865;line-height:1.9}.gallery-notes p:last-child{margin-bottom:0}.gallery-empty{grid-column:1/-1;text-align:center;padding:45px 20px 48px;border:1px dashed #d9dfca;border-radius:22px;background:#f6f7ee}.gallery-empty h2{font-size:21px;margin:18px 0 12px}.gallery-empty p{font-size:14px;line-height:1.9;color:#758168}.gallery-empty .btn{margin-top:10px}.gallery-empty-papers{height:95px;position:relative;max-width:240px;margin:0 auto}.gallery-empty-papers span{position:absolute;display:grid;place-items:center;width:73px;height:84px;background:#fffdf4;border:8px solid #f1dfac;border-bottom-width:19px;border-radius:8px;color:#c3a665;box-shadow:0 3px 10px #72734b12;left:16px;top:3px;transform:rotate(-12deg);font-size:28px}.gallery-empty-papers span:nth-child(2){left:80px;top:-5px;transform:rotate(3deg);border-color:#dae5c9;color:#829b67}.gallery-empty-papers span:nth-child(3){left:144px;top:5px;transform:rotate(13deg);border-color:#e9d5c4;color:#b38d6c}.gallery-dialog{width:min(610px,calc(100% - 28px));padding:26px}.gallery-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.gallery-dialog-heading h2{font-size:21px}.gallery-dialog-heading .icon-button{flex:none}.gallery-dialog p{font-size:14px;line-height:1.85}.gallery-dialog-actions{display:flex;gap:10px;margin:22px 0 3px}.gallery-dialog-actions .btn{flex:1}.gallery-draft{max-width:260px;margin:0 auto 22px}.gallery-draft .gallery-photo-label{font-size:15px}.gallery-frame-options{border:0;margin:20px 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.gallery-frame-options legend{font-size:14px;font-weight:600;margin-bottom:12px}.gallery-frame-choice{border:1px solid #dce3cf;border-radius:12px;display:flex;flex-direction:column;align-items:center;padding:9px 4px;gap:6px;font-size:11px;cursor:pointer;text-align:center;position:relative}.gallery-frame-choice:has(input:checked){background:#eef4e4;border:2px solid #80976b;padding:8px 3px}.gallery-frame-choice input{width:18px;height:18px;accent-color:#657e53;margin:0}.gallery-frame-swatch{width:37px;height:39px;padding:0!important;border-width:4px!important;display:grid;place-items:center;font-size:16px;line-height:1;transform:none}.gallery-frame-swatch.frame-wood{color:#fff9e6}.gallery-frame-swatch.frame-night{color:#f5df9f}.gallery-help{color:#6c795f;font-size:12px!important;margin:15px 0 18px}.gallery-dialog-status{font-size:13px;margin:13px 0 0;min-height:20px}.gallery-editor .field{font-size:14px}.gallery-page button:focus-visible,.gallery-dialog button:focus-visible,.gallery-dialog input:focus-visible{outline:3px solid #9f7138;outline-offset:3px}
.gallery-export-preview{display:block;width:100%;max-height:55vh;object-fit:contain;border-radius:12px;background:#f2efe5}.gallery-dialog-actions a.btn{color:#fff;text-decoration:none;min-height:46px}
@media(max-width:540px){.gallery-page .page-heading{display:block}.gallery-count{display:inline-block;margin-top:12px}}
@media(max-width:360px){.gallery-page h1{font-size:23px;letter-spacing:0}}
@media(max-width:1150px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.gallery-grid{grid-template-columns:1fr;gap:19px}.gallery-toolbar{align-items:stretch}.gallery-toolbar>button{width:100%}.gallery-toolbar>div{width:100%;display:grid;grid-template-columns:1fr 1fr}.gallery-toolbar>div>.gallery-small-button{grid-column:1/-1}.gallery-count{font-size:12px;padding:7px 11px}.gallery-page .page-heading{align-items:flex-start}.gallery-page h1{font-size:25px}.gallery-privacy{font-size:13px;padding:15px}.gallery-card{padding:16px}.gallery-card-actions .btn{font-size:13px}.gallery-small-button{font-size:13px}.gallery-notes{padding:20px}.gallery-notes p{font-size:13px}.gallery-frame-options{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-frame-choice{font-size:12px;min-height:98px}.gallery-dialog{padding:22px 18px}.gallery-dialog-heading h2{font-size:19px}.gallery-dialog-actions{flex-direction:column}.gallery-empty{padding:35px 15px}.gallery-empty h2{font-size:19px}.gallery-frame,.gallery-draft{padding:21px}.frame-polaroid{padding-bottom:31px}.gallery-draft{max-width:230px}}
