/* Shared between public stories, the Family Scrapbook and its visual editor. */
.hhp-article-content .hh-story-body-photos,.hh-story-visual .hh-story-body-photos{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:14px;width:100%;margin:24px auto;clear:both;box-sizing:border-box}
.hhp-article-content .hh-story-columns-2,.hh-story-visual .hh-story-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.hhp-article-content .hh-story-columns-3,.hh-story-visual .hh-story-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.hhp-article-content .hh-story-columns-4,.hh-story-visual .hh-story-columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.hhp-article-content .hh-story-body-photos img,.hh-story-visual .hh-story-body-photos img{display:block;width:100%;height:100%;max-height:560px;min-width:0;object-fit:contain;margin:0;border-radius:3px;box-sizing:border-box}
.hhp-article-content .hh-story-size-medium,.hh-story-visual .hh-story-size-medium{width:75%}.hhp-article-content .hh-story-size-small,.hh-story-visual .hh-story-size-small{width:50%}.hhp-article-content .hh-story-align-left,.hh-story-visual .hh-story-align-left{margin-left:0;margin-right:auto}.hhp-article-content .hh-story-align-right,.hh-story-visual .hh-story-align-right{margin-right:0;margin-left:auto}
@media(max-width:600px){.hhp-article-content .hh-story-body-photos,.hh-story-visual .hh-story-body-photos{gap:7px}.hhp-article-content .hh-story-columns-3,.hhp-article-content .hh-story-columns-4,.hh-story-visual .hh-story-columns-3,.hh-story-visual .hh-story-columns-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hh-story-composer{min-width:0}.hh-story-tools{display:flex;flex-wrap:wrap;gap:5px;border:1px solid #d5cbbb;border-bottom:0;border-radius:10px 10px 0 0;background:#f4edf9;padding:8px}.hh-story-tools button{font-size:13px!important;padding:7px 10px!important;background:white!important}.hh-story-visual{min-height:290px;max-height:65dvh;overflow:auto;border:1px solid #d5cbbb;border-radius:0 0 10px 10px;background:white;padding:18px;font:16px/1.7 Quicksand,Arial,sans-serif;font-weight:400;outline-color:#9372b6;overflow-wrap:anywhere}.hh-story-visual p{margin:0 0 1em}.hh-story-visual h2{font-size:26px;line-height:1.3}.hh-story-visual h3{font-size:21px;line-height:1.4}.hh-story-visual .is-editing{outline:3px solid #af95c6;outline-offset:3px}.hh-story-picture-shelf{padding:12px;border:1px solid #ddd;background:#fffdf5}.hh-story-picture-shelf [data-body-library]{display:flex;gap:10px;overflow-x:auto;padding:12px 0}.hh-story-picture-shelf label{position:relative;flex:0 0 95px}.hh-story-picture-shelf img{width:95px;height:85px;object-fit:cover}.hh-story-picture-shelf input[type=checkbox]{position:absolute;top:5px;left:5px}.hh-story-image-tools{display:flex;gap:8px;flex-wrap:wrap;padding:12px;background:#eaf4ef;border-radius:10px;margin-top:8px}.hh-story-image-tools label{flex:1;min-width:110px;font-size:12px}.hh-story-image-tools button{font-size:12px!important}

/* Shared saved photo blocks; resize and rotation survive publication without scripts. */
.hh-story-body-photos .hh-story-photo{display:block;position:relative;min-width:0;max-width:100%;width:100%;justify-self:center;align-self:center;box-sizing:border-box}
.hh-story-body-photos .hh-story-photo img{height:auto;max-height:560px;object-fit:contain;transform-origin:center}
.hh-story-visual .hh-story-photo.is-selected{outline:2px solid #7c599c;outline-offset:2px}
.hh-story-visual .hh-story-photo-resize{display:none;position:absolute;bottom:-9px;right:-9px;z-index:2;width:32px;height:32px;min-width:32px;padding:0!important;border:2px solid white!important;border-radius:8px!important;background:#73538c!important;color:white!important;cursor:nwse-resize;touch-action:none;font-size:20px!important}
.hh-story-visual .hh-story-photo.is-selected .hh-story-photo-resize{display:block}
.hh-story-tools{align-items:end}.hh-story-tools label{display:grid;gap:3px;margin:0;font-size:12px!important;width:auto!important}.hh-story-tools select{width:auto!important;min-height:38px;font-size:14px!important}.hh-story-tools input[type=color]{width:45px!important;height:38px;padding:3px!important;cursor:pointer}.hh-story-tools button{min-height:38px}
.hh-story-image-tools[hidden],.hh-story-picture-shelf[hidden]{display:none!important}
@media(max-width:600px){.hh-story-tools button,.hh-story-tools select,.hh-story-tools input[type=color]{min-height:44px}.hh-story-tools{gap:7px}.hh-story-visual{padding:12px}.hh-story-image-tools button{min-height:44px}}
.hh-story-body-photos .hh-story-rotate-0 img,.wp-block-image.hh-story-rotate-0 img{transform:rotate(0deg)}
.hh-story-body-photos .hh-story-rotate-15 img,.wp-block-image.hh-story-rotate-15 img{transform:rotate(15deg)}
.hh-story-body-photos .hh-story-rotate-30 img,.wp-block-image.hh-story-rotate-30 img{transform:rotate(30deg)}
.hh-story-body-photos .hh-story-rotate-45 img,.wp-block-image.hh-story-rotate-45 img{transform:rotate(45deg)}
.hh-story-body-photos .hh-story-rotate-60 img,.wp-block-image.hh-story-rotate-60 img{transform:rotate(60deg)}
.hh-story-body-photos .hh-story-rotate-75 img,.wp-block-image.hh-story-rotate-75 img{transform:rotate(75deg)}
.hh-story-body-photos .hh-story-rotate-90 img,.wp-block-image.hh-story-rotate-90 img{transform:rotate(90deg)}
.hh-story-body-photos .hh-story-rotate-105 img,.wp-block-image.hh-story-rotate-105 img{transform:rotate(105deg)}
.hh-story-body-photos .hh-story-rotate-120 img,.wp-block-image.hh-story-rotate-120 img{transform:rotate(120deg)}
.hh-story-body-photos .hh-story-rotate-135 img,.wp-block-image.hh-story-rotate-135 img{transform:rotate(135deg)}
.hh-story-body-photos .hh-story-rotate-150 img,.wp-block-image.hh-story-rotate-150 img{transform:rotate(150deg)}
.hh-story-body-photos .hh-story-rotate-165 img,.wp-block-image.hh-story-rotate-165 img{transform:rotate(165deg)}
.hh-story-body-photos .hh-story-rotate-180 img,.wp-block-image.hh-story-rotate-180 img{transform:rotate(180deg)}
.hh-story-body-photos .hh-story-rotate-195 img,.wp-block-image.hh-story-rotate-195 img{transform:rotate(195deg)}
.hh-story-body-photos .hh-story-rotate-210 img,.wp-block-image.hh-story-rotate-210 img{transform:rotate(210deg)}
.hh-story-body-photos .hh-story-rotate-225 img,.wp-block-image.hh-story-rotate-225 img{transform:rotate(225deg)}
.hh-story-body-photos .hh-story-rotate-240 img,.wp-block-image.hh-story-rotate-240 img{transform:rotate(240deg)}
.hh-story-body-photos .hh-story-rotate-255 img,.wp-block-image.hh-story-rotate-255 img{transform:rotate(255deg)}
.hh-story-body-photos .hh-story-rotate-270 img,.wp-block-image.hh-story-rotate-270 img{transform:rotate(270deg)}
.hh-story-body-photos .hh-story-rotate-285 img,.wp-block-image.hh-story-rotate-285 img{transform:rotate(285deg)}
.hh-story-body-photos .hh-story-rotate-300 img,.wp-block-image.hh-story-rotate-300 img{transform:rotate(300deg)}
.hh-story-body-photos .hh-story-rotate-315 img,.wp-block-image.hh-story-rotate-315 img{transform:rotate(315deg)}
.hh-story-body-photos .hh-story-rotate-330 img,.wp-block-image.hh-story-rotate-330 img{transform:rotate(330deg)}
.hh-story-body-photos .hh-story-rotate-345 img,.wp-block-image.hh-story-rotate-345 img{transform:rotate(345deg)}

.hh-story-image-tools label{min-width:145px}

/* Text styles stay visible inside the site's dialog and global heading rules. */
.hh-memories .hh-story-composer .hh-story-visual h2{font-size:30px!important;line-height:1.3!important;margin:1em 0 .55em!important}
.hh-memories .hh-story-composer .hh-story-visual h3{font-size:23px!important;line-height:1.4!important;margin:.9em 0 .5em!important}
.hh-memories .hh-story-composer .hh-story-visual p{font-size:16px!important;line-height:1.7!important;font-weight:400!important}
.hh-story-block-tools,.hh-story-block-inserter{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:9px;background:#f4edf9;border:1px solid #d5cbbb}
.hh-story-block-tools button,.hh-story-block-inserter button{font-size:13px!important;min-height:38px}
.hh-story-block-tools[hidden],.hh-story-block-inserter[hidden]{display:none!important}
.hh-story-visual>.is-current-block{outline:2px solid #baa5cb;outline-offset:5px;border-radius:2px}
.hh-story-tools [aria-disabled=true]{opacity:.5}
@media(max-width:600px){.hh-story-block-tools button,.hh-story-block-inserter button{min-height:44px}}

.hh-story-tools{position:sticky;top:0;z-index:4;box-shadow:0 2px 4px #38233b12}

/* 1.7.130: readable, tighter native block defaults; inline user spacing always wins. */
.hhp-article-content{--wp--style--block-gap:12px;color:#000}
.hhp-article-content p{font-size:17px;line-height:1.5;margin-top:0;margin-bottom:12px}
.hhp-article-content h2{font-size:30px;line-height:1.25;margin-top:0;margin-bottom:12px}
.hhp-article-content h3{font-size:23px;line-height:1.3;margin-top:0;margin-bottom:12px}
.hhp-article-content .wp-block-group,.hhp-article-content .wp-block-columns,.hhp-article-content .wp-block-buttons{margin-top:0;margin-bottom:12px}
.hhp-article-content .wp-block-buttons{gap:12px}

/* User-sized images retain the complete image. Saved native aspect-ratio is the
   authored box ratio; height:auto lets that box shrink proportionally on phones. */
.hhp-article-content .wp-block-image:is(.hh-story-image-locked,.hh-story-image-unlocked){max-width:100%;overflow:visible}
:is(.hhp-article-content,.editor-styles-wrapper) .wp-block-image:is(.hh-story-image-locked,.hh-story-image-unlocked) img{max-width:100%;height:auto!important;max-height:none;box-sizing:border-box}
:is(.hhp-article-content,.editor-styles-wrapper) .wp-block-image.hh-story-image-locked img{object-fit:contain!important}
:is(.hhp-article-content,.editor-styles-wrapper) .wp-block-image.hh-story-image-unlocked img{object-fit:fill!important}
