.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.gallery-item{min-width:0;background:white;border:1px solid #ddd;border-radius:3px;overflow:hidden}.gallery-photo-link{display:block;position:relative;background:#eee}.gallery-item img{display:block;width:100%;height:290px;object-fit:cover}.gallery-content{padding:22px}.gallery-content h2{font-size:22px;margin-bottom:12px;letter-spacing:-.03em;overflow-wrap:anywhere}.gallery-content p{white-space:pre-wrap;overflow-wrap:anywhere}.gallery-category{font-size:14px;color:#725316;margin:0 0 12px!important}.gallery-badge{position:absolute;left:14px;top:14px;background:#171717;color:#fff;font-size:14px;padding:5px 12px;border-radius:2px}.gallery-empty{padding:45px 24px;border:1px dashed #aaa;text-align:center;margin-top:24px}.gallery-empty p{margin:18px auto 26px;max-width:500px}.gallery-empty h2{margin-bottom:0}.gallery-upload{background:#fff;border-top:4px solid var(--accent);padding:28px;margin:0 0 42px;display:grid;grid-template-columns:1fr auto;gap:18px 36px;align-items:center}.gallery-upload h2{margin-bottom:16px}.gallery-upload p+p{margin-top:14px}.upload-button{position:relative;overflow:hidden;cursor:pointer!important;align-items:center;justify-content:center;min-height:58px}.upload-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload-button:focus-within{outline:3px solid #957126;outline-offset:4px}#upload-status,#upload-errors{grid-column:1/-1;margin:0}#upload-errors{color:#8c2318;overflow-wrap:anywhere}.gallery-toolbar{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:16px}.gallery-toolbar h2{margin:0}.admin-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-gallery .gallery-content{display:flex;flex-direction:column;gap:15px}.admin-gallery img{height:300px;object-fit:contain;background:#e9e9e9}.gallery-item textarea{min-height:90px}.gallery-buttons,.gallery-order{display:flex;gap:10px;flex-wrap:wrap}.gallery-order button,.gallery-delete{padding:9px 12px;border:1px solid #777;border-radius:3px;background:#fff;min-height:44px;font-size:14px}.gallery-delete{color:#932719;border-color:#c9a5a0}.gallery-feedback{font-size:14px;margin:0;color:#725316;min-height:22px}.gallery-order{padding-bottom:16px;border-bottom:1px solid #ddd}.gallery-page .gallery-publish{flex-direction:row;align-items:center;font-size:15px}.gallery-publish input{width:20px;height:20px;accent-color:#927023}.gallery-page [hidden]{display:none!important}.gallery-page #gallery-more{margin-top:30px}.gallery-page #gallery-retry{border:0;background:none;text-decoration:underline}nav{gap:16px}nav a{white-space:nowrap}@media(max-width:1100px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}header{gap:16px;padding-left:3%;padding-right:3%}nav{gap:12px}}@media(max-width:700px){.gallery-grid,.admin-gallery{grid-template-columns:1fr}.gallery-upload{grid-template-columns:1fr;padding:22px 18px}.gallery-toolbar{flex-direction:column;align-items:flex-start;gap:10px}.gallery-item img{height:280px}.gallery-content{padding:20px}} 
