.designed-gallery{--gallery-gap:20px;--gallery-ink:#292c2b;--gallery-muted:#626963;--gallery-bg:#fff;color:var(--gallery-ink);background:var(--gallery-bg)}
.designed-gallery[data-theme=dark]{--gallery-ink:#fff;--gallery-muted:#bdbdbd;--gallery-bg:#000;--ink:#fff;--muted:#bdbdbd;--line:#444;padding:24px}
.designed-gallery .portal-muted{color:var(--gallery-muted)}.designed-gallery[data-theme=dark] :is(button,a.more-button,select,input){color:var(--gallery-ink);background:#111;border-color:#666}.designed-gallery[data-theme=dark] .portal-primary{color:#000;background:#fff}.designed-gallery[data-theme=dark] .portal-success{background:#111}
.gallery-cover{position:relative;isolation:isolate;min-height:200px;margin:0 0 30px;overflow:hidden;display:grid;align-items:center;background:var(--gallery-bg);color:var(--gallery-ink)}.gallery-cover>img{width:100%;height:100%;object-fit:cover;object-position:var(--focus-x,50%) var(--focus-y,50%);position:absolute;inset:0;z-index:-2}.gallery-cover:has(img):after{content:'';position:absolute;inset:0;background:linear-gradient(transparent,rgba(0,0,0,.48));z-index:-1}.gallery-cover-title{text-align:center;padding:40px 24px}.gallery-cover:has(img){color:white}.gallery-cover-title>span{font-size:.75rem;letter-spacing:.18em;text-transform:uppercase}.gallery-cover-title h2{font-weight:400!important;font-size:clamp(1.8rem,4vw,3.8rem)!important;margin:12px 0!important;overflow-wrap:anywhere}.cover-horizontal{aspect-ratio:16/7}.cover-vertical{aspect-ratio:3/2;grid-template-columns:1fr 1fr}.cover-vertical>img{position:relative;grid-column:1;z-index:0;min-height:100%;max-height:650px}.cover-vertical .gallery-cover-title{grid-column:2;color:var(--gallery-ink)}.cover-vertical:after{display:none}.cover-none>img,.cover-none:after{display:none}.cover-none{color:var(--gallery-ink)!important;min-height:180px}.designed-gallery[data-font=elegant] .gallery-cover-title{font-family:Georgia,serif}.designed-gallery[data-font=universal] .gallery-cover-title{font-family:Arial,sans-serif}.designed-gallery[data-font=modern] .gallery-cover-title{font-family:Arial,sans-serif;text-transform:uppercase;letter-spacing:.12em}.designed-gallery[data-font=classic] .gallery-cover-title{font-family:Georgia,serif;font-weight:bold}.designed-gallery[data-font=decorative] .gallery-cover-title{font-family:Georgia,serif;font-style:italic}.designed-gallery[data-font=light] .gallery-cover-title{font-family:Arial,sans-serif;font-weight:300}.designed-gallery[data-title_size=small] .gallery-cover-title h2{font-size:clamp(1.4rem,2.5vw,2.4rem)!important}.designed-gallery[data-title_size=large] .gallery-cover-title h2{font-size:clamp(2.2rem,5vw,4.5rem)!important}.designed-gallery[data-spacing=small]{--gallery-gap:6px}.designed-gallery[data-spacing=large]{--gallery-gap:32px}.designed-gallery .portal-grid{column-gap:var(--gallery-gap)}.designed-gallery .portal-photo{margin-bottom:var(--gallery-gap)}.designed-gallery[data-layout=rows] .portal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gallery-gap);columns:auto}.designed-gallery[data-layout=rows] .portal-photo-image img{aspect-ratio:3/4;object-fit:cover}.designed-gallery[data-layout=rows] .portal-photo{margin:0}
.gallery-design-dialog{width:min(1180px,96vw)!important;max-width:1180px!important}.gallery-designer-layout{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);gap:35px}.gallery-design-controls{min-width:0}.gallery-design-preview-wrap{position:sticky;top:0;align-self:start;min-width:0}.gallery-design-preview-wrap>.portal-muted{font-size:.75rem}.design-options{border:0;padding:15px 0;margin:0;display:flex;flex-wrap:wrap;gap:8px}.design-options legend{font-size:.875rem;margin-bottom:8px}.design-options label{position:relative;display:inline-flex!important;margin:0!important}.design-options input{position:absolute;opacity:0;width:1px!important;height:1px}.design-options span{padding:13px 16px;border:1px solid #ccd4ce;border-radius:6px;cursor:pointer;font-size:.8125rem}.design-options input:checked+span{border-color:#496c5b;color:#244b39;background:#edf4ef}.design-options input:focus-visible+span{outline:2px solid #496c5b;outline-offset:2px}.gallery-design-controls input[type=range]{padding:0;accent-color:#496c5b}.gallery-design-preview-wrap .gallery-cover{margin-bottom:15px;min-height:130px}.gallery-design-preview-wrap .gallery-cover-title{padding:20px 12px}.gallery-design-preview-wrap .gallery-cover-title h2{font-size:1.4rem!important}.design-sample-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gallery-gap);padding:10px}.design-sample-grid img{width:100%;height:auto}.designed-gallery[data-layout=rows] .design-sample-grid img{aspect-ratio:3/4;object-fit:cover}#gallery-design-preview{margin-top:20px;transition:max-width .2s;max-width:100%;border:1px solid #d6ddd8}#gallery-design-preview.preview-mobile{max-width:280px;margin-inline:auto}.preview-mobile .gallery-cover{aspect-ratio:3/4;display:block}.preview-mobile .mobile-cover-horizontal{aspect-ratio:4/3}.preview-mobile .mobile-cover-vertical img{position:absolute;inset:0;z-index:-2;max-height:none}.preview-mobile .mobile-cover-vertical:after{display:block}.preview-mobile .mobile-cover-vertical .gallery-cover-title{color:white}.preview-mobile .mobile-cover-none img,.preview-mobile .mobile-cover-none:after{display:none}.preview-mobile .mobile-cover-none{aspect-ratio:auto;color:var(--gallery-ink)}.preview-mobile .mobile-cover-none .gallery-cover-title{color:var(--gallery-ink)}.preview-mobile .design-sample-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preview-mobile[data-mobile_columns=one] .design-sample-grid{grid-template-columns:1fr}
@media(max-width:640px){.gallery-designer-layout{grid-template-columns:1fr}.gallery-design-preview-wrap{position:static}.gallery-design-dialog{padding:24px 16px!important}.gallery-cover{display:block;aspect-ratio:3/4}.gallery-cover.mobile-cover-horizontal{aspect-ratio:4/3}.gallery-cover.mobile-cover-vertical>img,.gallery-cover.mobile-cover-horizontal>img{position:absolute;inset:0;z-index:-2;max-height:none}.gallery-cover.mobile-cover-vertical:after,.gallery-cover.mobile-cover-horizontal:after{display:block}.gallery-cover.mobile-cover-vertical .gallery-cover-title,.gallery-cover.mobile-cover-horizontal .gallery-cover-title{color:white}.gallery-cover.mobile-cover-none>img,.gallery-cover.mobile-cover-none:after{display:none}.gallery-cover.mobile-cover-none{aspect-ratio:auto;min-height:150px}.gallery-cover.mobile-cover-none .gallery-cover-title{color:var(--gallery-ink)}.designed-gallery .portal-grid{columns:2}.designed-gallery[data-mobile_columns=one] .portal-grid{columns:1}.designed-gallery[data-layout=rows] .portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.designed-gallery[data-layout=rows][data-mobile_columns=one] .portal-grid{grid-template-columns:1fr}}
.designed-gallery[data-font=classic] .gallery-cover-title h2{font-weight:700!important}.designed-gallery[data-font=light] .gallery-cover-title h2{font-weight:300!important}.preview-mobile .gallery-cover{display:grid;grid-template-columns:1fr}.preview-mobile .mobile-cover-vertical>img,.preview-mobile .mobile-cover-horizontal>img{display:block}.preview-mobile .gallery-cover-title{grid-column:1}
@media(max-width:640px){.gallery-cover{display:grid;grid-template-columns:1fr}.gallery-cover.mobile-cover-vertical>img,.gallery-cover.mobile-cover-horizontal>img{display:block}.gallery-cover .gallery-cover-title{grid-column:1}}

/* Natural proportions, compact justified rows. */
.designed-gallery[data-layout=rows] .portal-grid{display:flex;flex-wrap:wrap;gap:var(--gallery-gap);columns:auto;align-items:flex-start}
.designed-gallery[data-layout=rows] .portal-photo{flex-grow:var(--photo-ratio,1);flex-basis:calc(var(--photo-ratio,1) * 230px);min-width:0;margin:0;max-width:100%}
.designed-gallery[data-layout=rows] .portal-photo-image img{aspect-ratio:var(--photo-ratio,1);object-fit:contain;width:100%;height:auto;display:block}
.designed-gallery[data-layout=rows] .portal-grid:after{content:'';flex-grow:100;flex-basis:200px}
.designed-gallery[data-spacing=small]{--gallery-gap:4px}
.designed-gallery .portal-photo figcaption{font-size:11px;padding:5px 2px}
.designed-gallery[data-layout=rows] .design-sample-grid{display:flex;flex-wrap:wrap;gap:var(--gallery-gap)}
.designed-gallery[data-layout=rows] .design-sample-grid img{flex:var(--photo-ratio,1) 1 calc(var(--photo-ratio,1) * 90px);width:0;min-width:0;height:auto;aspect-ratio:var(--photo-ratio,1);object-fit:contain}
@media(max-width:640px){.designed-gallery[data-layout=rows] .portal-photo{flex-basis:calc(var(--photo-ratio,1) * 140px)}.designed-gallery[data-layout=rows][data-mobile_columns=one] .portal-photo{flex-basis:100%}.designed-gallery[data-theme=dark]{padding:8px}}
.shared-gallery:has(.designed-gallery[data-theme=dark]){background:#000;color:#fff;--ink:#fff;--muted:#bbb;--line:#444}
.shared-gallery:has(.designed-gallery[data-theme=dark]) .shared-gallery-header,.shared-gallery:has(.designed-gallery[data-theme=dark]) footer{background:#000;color:#fff}
.designed-gallery[data-layout=rows] .portal-photo{position:relative;overflow:hidden}
.designed-gallery[data-layout=rows] .portal-photo figcaption{position:absolute;inset:auto 0 0;padding:12px 8px;color:white;background:linear-gradient(transparent,rgba(0,0,0,.8));opacity:0;transition:opacity .15s;pointer-events:none}
.designed-gallery[data-layout=rows] .portal-photo:is(:hover,:focus-within) figcaption{opacity:1;pointer-events:auto}
.designed-gallery[data-layout=rows] .portal-photo figcaption a{color:white}
@media(hover:none){.designed-gallery[data-layout=rows] .portal-photo figcaption{opacity:1;pointer-events:auto}}
/* Editorial gallery: cover, restrained actions, uninterrupted photographs. */
body:has(.gallery-editorial) .shared-gallery-header{display:none}
body:has(.gallery-editorial) .portal-shell{max-width:none;width:100%;padding:0;margin:0}
.gallery-editorial.designed-gallery{padding:0;min-height:100vh}
.gallery-editorial .gallery-cover{margin:0;min-height:70vh}
.gallery-editorial .gallery-cover.cover-vertical{aspect-ratio:auto;height:100svh;max-height:1100px;grid-template-columns:1fr 1fr}
.gallery-editorial .cover-vertical>img{width:100%;height:100%;max-height:none;min-height:0}
.gallery-editorial .cover-horizontal{height:85svh;aspect-ratio:auto}
.gallery-editorial .cover-none{min-height:50vh}
.gallery-editorial .gallery-cover-title h2{font-size:clamp(2.4rem,5vw,5.6rem)!important;line-height:1.15;max-width:850px;margin:24px auto!important}
.gallery-signature{font-family:Arial,sans-serif;font-size:12px;letter-spacing:.14em;margin-top:32px}
.gallery-content{padding:0 clamp(16px,3.8vw,64px) 50px}
.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:100px;padding:22px 0;flex-wrap:wrap}
.gallery-toolbar-actions{display:flex;align-items:center;gap:12px;margin-left:auto;flex-wrap:wrap}
.gallery-toolbar .more-button{border:1px solid var(--gallery-muted);border-radius:0;padding:12px 20px;margin:0;font-size:13px;min-height:44px;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;background:transparent;color:var(--gallery-ink)}
.gallery-back,.gallery-album-tabs a{font-size:13px;color:var(--gallery-ink);text-decoration:none}
.gallery-album-tabs{display:flex;gap:22px}.gallery-album-tabs a{padding-block:10px}.gallery-album-tabs [aria-current=page]{border-bottom:1px solid currentColor}
.gallery-download-menu{position:relative}.gallery-download-menu>summary{list-style:none}.gallery-download-menu>summary::-webkit-details-marker{display:none}
.gallery-download-options{position:absolute;z-index:20;right:0;top:calc(100% + 8px);min-width:245px;padding:8px;border:1px solid var(--gallery-muted);background:var(--gallery-bg);box-shadow:0 12px 25px #0002}
.gallery-download-options :is(a,button,span){color:var(--gallery-ink)}
.gallery-download-options>a,.gallery-download-options>button,.gallery-download-options>span{display:block;text-align:left;text-decoration:none;font:inherit;font-size:13px;padding:13px;width:100%;border:0;background:transparent;white-space:nowrap}
.gallery-download-options>button:disabled{opacity:.4}.gallery-download-options :is(a,button):not(:disabled):hover{background:#8882}
.gallery-progress,.gallery-selection-details{font-size:13px;margin:0 0 20px}.gallery-progress>summary,.gallery-selection-details>summary{cursor:pointer;color:var(--gallery-muted);padding:8px 0}
.gallery-editorial .portal-grid{margin:0!important}.gallery-editorial[data-layout=rows] .portal-photo{flex-basis:calc(var(--photo-ratio,1) * 360px)}
.gallery-editorial .gallery-favorites-title{padding:60px 4vw 0;font-size:2rem}
.gallery-editorial :is(button,a,summary):focus-visible{outline:2px solid currentColor;outline-offset:4px}
@media(max-width:640px){.gallery-editorial .gallery-cover.cover-vertical,.gallery-editorial .gallery-cover.cover-horizontal{height:78svh;min-height:400px;grid-template-columns:1fr}.gallery-editorial .gallery-cover.mobile-cover-none{height:auto;min-height:280px}.gallery-editorial .gallery-cover-title h2{font-size:2.5rem!important}.gallery-content{padding-inline:12px}.gallery-toolbar{gap:12px;min-height:80px;padding:18px 0}.gallery-toolbar-actions{gap:8px}.gallery-toolbar .more-button{font-size:12px;padding:10px 12px}.gallery-editorial[data-layout=rows] .portal-photo{flex-basis:calc(var(--photo-ratio,1) * 190px)}.gallery-editorial[data-layout=rows][data-mobile_columns=one] .portal-photo{flex-basis:100%}}

/* Mosaico de fotografias com proporções naturais e intervalos discretos. */
.gallery-editorial[data-layout=rows] .portal-photo{flex-basis:calc(var(--photo-ratio,1) * clamp(260px,35vw,560px));position:relative}
.gallery-editorial[data-spacing=small]{--gallery-gap:2px}
.gallery-editorial[data-layout=rows] .portal-photo-image{display:block;width:100%;padding:0;line-height:0}
.gallery-editorial .portal-photo figcaption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#0009);color:white;padding:22px 10px 8px;opacity:0;transition:opacity .15s}
.gallery-editorial .portal-photo:hover figcaption,.gallery-editorial .portal-photo:focus-within figcaption{opacity:1}
.gallery-editorial .portal-photo figcaption a{color:white}
.gallery-theme-tabs{border-bottom:1px solid var(--line,#ddd);margin-bottom:24px;gap:32px;overflow-x:auto}
.gallery-theme-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--gallery-muted);font:inherit;padding:18px 0;white-space:nowrap;cursor:pointer}
.gallery-theme-tabs button[aria-pressed=true]{color:var(--gallery-ink);border-bottom-color:currentColor}
@media(max-width:640px){.gallery-editorial[data-layout=rows] .portal-photo{flex-basis:calc(var(--photo-ratio,1) * 260px)}.gallery-editorial .portal-photo figcaption{opacity:1}.gallery-editorial[data-layout=rows][data-mobile_columns=one] .portal-photo{flex-basis:100%}}

.gallery-cover .gallery-cover-title{box-sizing:border-box;width:100%;min-width:0;justify-self:center;align-self:center;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.gallery-cover-title>span,.gallery-cover-title>h2,.gallery-cover-title>.gallery-signature{text-align:center;max-width:100%}.gallery-cover-title>.gallery-signature{margin-bottom:0}

/* Um único eixo para data, nome e assinatura da capa. */
.gallery-cover .gallery-cover-title>span,
.gallery-cover .gallery-cover-title>h2,
.gallery-cover .gallery-cover-title>.gallery-signature{box-sizing:border-box;width:100%;margin-left:0!important;margin-right:0!important;padding-left:0;padding-right:0;text-align:center;text-indent:0}
.gallery-cover .gallery-cover-title>h2{letter-spacing:0;font-kerning:normal}
.gallery-cover .gallery-cover-title>span{letter-spacing:0}
.gallery-cover .gallery-cover-title>.gallery-signature{padding-left:.14em}
