/* Elsamilu Customer Gallery — scoped to the gallery and its own dialog. */
.ecg-gallery{--ecg-paper:#fffaf7;--ecg-blush:#fae6e9;--ecg-ink:#512833;--ecg-muted:#7a5962;--ecg-rose:#a74e68;--ecg-line:#dfc4cc;color:var(--ecg-ink);font-family:var(--sans,'DM Sans',Arial,sans-serif);font-size:15px;line-height:1.6}
.ecg-gallery,.ecg-gallery *{box-sizing:border-box}
.ecg-gallery-page .ea-content .entry-title{max-width:1080px;margin-left:auto;margin-right:auto;margin-bottom:18px}
.ecg-gallery .ecg-intro{border-bottom:1px solid var(--ecg-line);padding:0 0 32px;margin-bottom:30px}
.ecg-gallery p.ecg-kicker{margin:0 0 8px;font-size:10px;letter-spacing:2.5px;font-weight:500;color:var(--ecg-rose)}
.ecg-gallery p.ecg-intro-line{margin:0;font-family:var(--serif,'Cormorant Garamond',Georgia,serif);font-size:33px;line-height:1.2;font-style:italic;color:var(--ecg-muted)}
.ecg-gallery .ecg-photos{scroll-margin-top:28px}
.ecg-gallery .ecg-photos:focus{outline:none}
.ecg-gallery .ecg-results-line{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px}
.ecg-gallery .ecg-results-line p{margin:0;font-size:12px;color:var(--ecg-muted)}
.ecg-gallery .ecg-results-line p:first-child{letter-spacing:.3px;color:var(--ecg-ink)}
.ecg-gallery .ecg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px;align-items:start}
.ecg-gallery .ecg-grid figure.ecg-card,.ea-content .entry-content .ecg-gallery figure.ecg-card{display:block;min-width:0;margin:0;padding:0;border:0;background:none;box-shadow:none;break-inside:avoid}
.ecg-gallery .ecg-photo-link{position:relative;display:block;width:100%;aspect-ratio:4/5;overflow:hidden;border-radius:6px;background:#f5ecec;border:0}
.ecg-gallery img.ecg-photo-image,.ea-content .entry-content .ecg-gallery img.ecg-photo-image{display:block;width:100%;max-width:100%;height:100%;margin:0;padding:0;border:0;object-fit:cover;object-position:50% 40%}
.ecg-gallery .ecg-poster-slot{display:block;width:100%;height:100%}
.ecg-gallery .ecg-poster-slot .ecg-video-placeholder{width:100%;height:100%}
.ecg-gallery .ecg-poster-notice{margin:0 0 24px;padding:16px 18px;border:1px solid var(--ecg-line);border-radius:6px;background:var(--ecg-blush);font-size:13px}
.ecg-gallery .ecg-poster-notice p{font-size:13px;margin:6px 0;line-height:1.6}
.ecg-gallery .ecg-poster-notice .button{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;margin:4px 8px 4px 0;border:1px solid var(--ecg-line);border-radius:4px;background:var(--ecg-paper);color:var(--ecg-ink);font:inherit;cursor:pointer}
.ecg-gallery .ecg-poster-notice [hidden]{display:none!important}
.ecg-gallery .ecg-poster-capture-stage{margin:10px 0}
.ecg-gallery video.ecg-poster-capture{display:block;width:180px;max-width:100%;height:100px;object-fit:contain;background:#111;pointer-events:none}
.ecg-gallery .ecg-view-hint{position:absolute;bottom:12px;right:12px;display:inline-flex;align-items:center;gap:16px;padding:6px 10px;background:rgba(255,250,247,.94);color:var(--ecg-ink);font-size:11px;border-radius:3px;opacity:0;transform:translateY(4px);transition:opacity .18s,transform .18s;pointer-events:none}
.ecg-gallery .ecg-photo-link:hover .ecg-view-hint,.ecg-gallery .ecg-photo-link:focus-visible .ecg-view-hint{opacity:1;transform:none}
.ecg-gallery .ecg-video-link .ecg-view-hint{opacity:1;transform:none}
.ecg-gallery .ecg-video-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;aspect-ratio:4/5;padding:38px 22px 66px;color:var(--ecg-rose);background:linear-gradient(145deg,#fff9f5,#fae6e9);font-family:var(--serif,'Cormorant Garamond',Georgia,serif);font-size:25px;font-style:italic;text-align:center;line-height:1.25}
.ecg-gallery .ecg-video-play{display:flex;align-items:center;justify-content:center;width:68px;height:68px;padding-left:5px;border:1px solid #c9869c;border-radius:50%;font-family:Georgia,serif;font-size:37px;font-style:normal;line-height:1}
.ecg-gallery .ecg-card-caption{padding:13px 2px 0;margin:0;text-align:left;color:var(--ecg-muted);font-size:12px;line-height:1.65}
.ecg-gallery .ecg-photo-title{font-size:14px;font-weight:500;color:var(--ecg-ink);overflow-wrap:anywhere}
.ecg-gallery .ecg-card-caption p{margin:5px 0 0;font-size:12px;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}
.ecg-gallery .ecg-pagination{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:center;margin-top:44px;padding-top:24px;border-top:1px solid var(--ecg-line);font-size:12px}
.ecg-gallery .ecg-pagination a{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;width:max-content;color:var(--ecg-rose)}
.ecg-gallery .ecg-pagination a:last-child{justify-self:end}
.ecg-gallery .ecg-page-count{color:var(--ecg-muted)}
.ecg-gallery .ecg-empty{padding:60px 24px 66px;text-align:center;background:var(--ecg-blush);border:1px solid #edcdd5;border-radius:8px}
.ecg-gallery .ecg-empty-mark{display:block;font-family:Georgia,serif;font-size:40px;line-height:1;color:var(--ecg-rose);margin-bottom:18px}
.ecg-gallery .ecg-empty h2,.ea-content .entry-content .ecg-gallery .ecg-empty h2{font-family:var(--serif,'Cormorant Garamond',Georgia,serif);font-size:34px;font-weight:400;line-height:1.15;margin:0 0 12px}
.ecg-gallery .ecg-empty p{margin:0;font-size:14px;color:var(--ecg-muted)}
.ecg-gallery .ecg-empty a{display:inline-flex;align-items:center;min-height:44px;margin-top:20px;color:var(--ecg-rose);font-size:13px}
.ecg-gallery a,.ea-content .entry-content .ecg-gallery a:not(.button):not(.wp-element-button):not(.wc-block-components-button){text-decoration:none}
.ecg-gallery .ecg-pagination a:hover,.ecg-gallery .ecg-empty a:hover{text-decoration:underline;text-underline-offset:4px}
.ecg-gallery a:focus-visible,.ecg-gallery button:focus-visible{outline:2px solid #943e58;outline-offset:4px}
.ecg-gallery .ecg-lightbox{margin:auto;padding:0;border:0;border-radius:7px;width:calc(100vw - 48px);max-width:1100px;max-height:calc(100dvh - 40px);color:var(--ecg-ink);background:var(--ecg-paper);font-family:inherit;overflow:auto;overscroll-behavior:contain;box-shadow:0 16px 70px #24131a66}
.ecg-gallery .ecg-lightbox[open]{display:block;position:fixed;inset:0}
.ecg-gallery .ecg-lightbox:not([open]){display:none}
.ecg-gallery .ecg-lightbox::backdrop{background:rgba(37,22,29,.86)}
.ecg-gallery .ecg-lightbox-panel{padding:16px 20px 20px}
.ecg-gallery .ecg-lightbox-top{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 12px}
.ecg-gallery .ecg-lightbox-top>p{font-size:12px;color:var(--ecg-muted);margin:0;margin-right:auto}
.ecg-gallery .ecg-lightbox-top form{margin:0;padding:0}
.ecg-gallery button.ecg-close,.ecg-gallery button.ecg-lightbox-arrow,.ecg-gallery button.ecg-zoom{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid var(--ecg-line);border-radius:4px;color:var(--ecg-ink);background:transparent;cursor:pointer;font-family:inherit;font-size:13px;font-weight:400;box-shadow:none;line-height:1}
.ecg-gallery button.ecg-close:hover,.ecg-gallery button.ecg-lightbox-arrow:hover,.ecg-gallery button.ecg-zoom:hover{background:var(--ecg-blush)}
.ecg-gallery .ecg-close span{font-size:24px;font-weight:400}
.ecg-gallery .ecg-lightbox-image-wrap{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;position:relative;width:100%;height:calc(100vh - 240px);height:calc(100dvh - 240px);min-height:180px;max-height:800px;background:#f4eeee;border-radius:3px;overflow:auto;overscroll-behavior:contain;scroll-behavior:auto}
.ecg-gallery .ecg-lightbox-image-wrap:focus-visible{outline:2px solid var(--ecg-rose);outline-offset:3px}
.ecg-gallery .ecg-lightbox-image-wrap img,.ea-content .entry-content .ecg-gallery .ecg-lightbox-image-wrap img{display:block;width:auto;max-width:100%;height:auto;max-height:100%;min-width:0;min-height:0;object-fit:contain;margin:0;border:0;padding:0;cursor:zoom-in}
.ecg-gallery .ecg-lightbox-image-wrap video{display:block;width:100%;max-width:100%;height:100%;min-height:160px;max-height:100%;object-fit:contain;margin:0;padding:0;border:0;background:#20171b}
.ecg-gallery .ecg-lightbox [hidden],.ea-content .entry-content .ecg-gallery .ecg-lightbox [hidden]{display:none!important}
.ecg-gallery .ecg-lightbox-image-wrap.is-zoomed{display:block;cursor:grab;touch-action:pan-x pan-y}
.ecg-gallery .ecg-lightbox-image-wrap.is-zoomed img,.ea-content .entry-content .ecg-gallery .ecg-lightbox-image-wrap.is-zoomed img{display:block;max-width:none;max-height:none;margin:0 auto;cursor:grab;user-select:none}
.ecg-gallery .ecg-lightbox-image-wrap.is-dragging,.ecg-gallery .ecg-lightbox-image-wrap.is-dragging img{cursor:grabbing}
.ecg-gallery .ecg-zoom{white-space:nowrap;flex-shrink:0}
.ecg-gallery .ecg-zoom[aria-pressed=true]{background:var(--ecg-blush)}
.ecg-gallery .ecg-fallback-backdrop{position:fixed;inset:0;z-index:2147483644;background:rgba(37,22,29,.86)}
.ecg-gallery .ecg-lightbox.ecg-fallback[open]{position:fixed;inset:20px 0;z-index:2147483645}
.ecg-gallery .ecg-video-error{margin:14px 0 0;padding:12px 14px;background:var(--ecg-blush);color:var(--ecg-ink);font-size:13px;line-height:1.6}
.ecg-gallery .ecg-video-error[hidden]{display:none}
.ecg-gallery .ecg-video-error a,.ea-content .entry-content .ecg-gallery .ecg-video-error a{text-decoration:underline;text-underline-offset:3px;color:var(--ecg-rose)}
.ecg-gallery .ecg-lightbox-bottom{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:16px;align-items:start;margin-top:16px}
.ecg-gallery button.ecg-lightbox-arrow{font-size:22px;padding:8px;min-width:44px}
.ecg-gallery button.ecg-lightbox-arrow:disabled{opacity:.3;cursor:default}
.ecg-gallery .ecg-lightbox-caption{text-align:center}
.ecg-gallery .ecg-lightbox-caption p{margin:0;font-size:13px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
.ecg-gallery .ecg-lightbox-caption p.ecg-lightbox-title{font-size:16px;font-weight:500;margin-bottom:4px}
.ecg-gallery .ecg-lightbox-caption p[hidden]{display:none}
html.ecg-lightbox-open{overflow:hidden}
@media(max-width:960px){.ecg-gallery .ecg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 22px}}
@media(max-width:600px){.ecg-gallery-page .ea-content .entry-title{margin-bottom:14px}.ecg-gallery .ecg-intro{padding-bottom:25px;margin-bottom:24px}.ecg-gallery p.ecg-intro-line{font-size:28px}.ecg-gallery .ecg-grid{grid-template-columns:minmax(0,1fr);gap:30px}.ecg-gallery .ecg-view-hint{opacity:1;transform:none}.ecg-gallery .ecg-pagination{gap:10px;margin-top:32px}.ecg-gallery .ecg-empty{padding:46px 22px 50px}.ecg-gallery .ecg-empty h2,.ea-content .entry-content .ecg-gallery .ecg-empty h2{font-size:30px}.ecg-gallery .ecg-lightbox{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.ecg-gallery .ecg-lightbox-panel{padding:10px 12px 16px}.ecg-gallery .ecg-lightbox-bottom{gap:8px}.ecg-gallery .ecg-lightbox-top{gap:8px;flex-wrap:wrap}.ecg-gallery .ecg-lightbox-top>p{flex-basis:100%}.ecg-gallery .ecg-lightbox-top form{margin-left:auto}.ecg-gallery .ecg-lightbox-image-wrap{height:calc(100dvh - 265px)}}
@media(prefers-reduced-motion:reduce){.ecg-gallery .ecg-view-hint{transition:none}}

.ecg-gallery .ecg-photo-status{font-size:13px;margin:8px 0}.ecg-gallery .ecg-photo-status[hidden]{display:none}

/* Album layout, 2026-10-05. Original media and the existing viewer stay intact. */
.ecg-gallery-page .ea-content{max-width:1328px;margin-inline:auto}
.ecg-gallery-page .ea-content .entry-title{text-align:center;max-width:none;font-size:clamp(44px,5vw,72px);line-height:1.08;margin:0 auto 18px}
.ecg-gallery .ecg-intro{text-align:center;padding:0 0 40px;margin-bottom:0;border:0}
.ecg-gallery p.ecg-kicker{font-size:10px;letter-spacing:2.8px;margin-bottom:12px}
.ecg-gallery p.ecg-intro-line{font-size:clamp(27px,3vw,38px);color:var(--ecg-ink)}
.ecg-gallery p.ecg-intro-description{font-size:14px;color:var(--ecg-muted);margin:14px auto 0;max-width:460px;line-height:1.7}
.ecg-gallery .ecg-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;border-top:1px solid var(--ecg-line);margin-bottom:12px}
.ecg-gallery .ecg-filters{display:flex;flex-wrap:wrap;gap:6px}
.ecg-gallery .ecg-filters a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 17px;border:1px solid transparent;border-radius:24px;color:var(--ecg-muted);font-size:13px;white-space:nowrap;transition:background .15s,color .15s}
.ecg-gallery .ecg-filters a:hover{background:#f7ecee;color:var(--ecg-ink)}
.ecg-gallery .ecg-filters a[aria-current=page]{background:var(--ecg-ink);color:#fffaf7;border-color:var(--ecg-ink)}
.ecg-gallery .ecg-filter-count{font-size:11px;opacity:.75;font-variant-numeric:tabular-nums}
.ecg-gallery p.ecg-browse-note{font-size:12px;color:var(--ecg-muted);margin:0}
.ecg-gallery .ecg-grid{display:block;column-count:4;column-gap:18px}
.ecg-gallery .ecg-grid figure.ecg-card,.ea-content .entry-content .ecg-gallery figure.ecg-card{display:inline-block;width:100%;margin:0 0 18px;vertical-align:top;break-inside:avoid;overflow:hidden}
.ecg-gallery .ecg-photo-link{aspect-ratio:auto;border-radius:4px;isolation:isolate}
.ecg-gallery img.ecg-photo-image,.ea-content .entry-content .ecg-gallery img.ecg-photo-image{height:auto;object-fit:contain;transition:filter .2s}
.ecg-gallery .ecg-photo-link:hover img.ecg-photo-image{filter:brightness(.96)}
.ecg-gallery .ecg-play-badge{position:absolute;inset:0;margin:auto;width:54px;height:54px;border:1px solid #ffffffb3;border-radius:50%;background:#fffaf7e8;color:var(--ecg-ink);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 16px #2a17262b;pointer-events:none}
.ecg-gallery .ecg-play-badge svg{margin-left:3px}
.ecg-gallery .ecg-media-label{position:absolute;top:12px;left:12px;padding:4px 9px;border-radius:3px;background:#fffaf7ed;color:var(--ecg-ink);font-size:10px;letter-spacing:.5px;pointer-events:none}
.ecg-gallery .ecg-video-link .ecg-view-hint{opacity:0}
.ecg-gallery .ecg-video-link:hover .ecg-view-hint,.ecg-gallery .ecg-video-link:focus-visible .ecg-view-hint{opacity:1}
.ecg-gallery .ecg-card-caption{padding:10px 0 0}
.ecg-gallery .ecg-photo-title{font-size:13px}
.ecg-gallery .ecg-pagination{margin-top:24px;padding-top:22px;grid-template-columns:1fr auto 1fr;gap:12px}
.ecg-gallery .ecg-page-numbers{display:flex;align-items:center;gap:5px}
.ecg-gallery .ecg-page-numbers a,.ecg-gallery .ecg-current-page{display:inline-flex;justify-content:center;align-items:center;min-width:40px;min-height:44px;padding:6px 10px;border-radius:50%;font-size:13px;font-variant-numeric:tabular-nums}
.ecg-gallery .ecg-current-page{background:var(--ecg-ink);color:var(--ecg-paper)}
.ecg-gallery .ecg-page-gap{color:var(--ecg-muted)}
.ecg-gallery .ecg-outro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:52px 0 0;padding:36px 0 8px;border-top:1px solid var(--ecg-line)}
.ecg-gallery p.ecg-outro-line{margin:0;font-family:var(--serif,'Cormorant Garamond',Georgia,serif);font-style:italic;font-size:29px;line-height:1.25}
.ecg-gallery a.ecg-collection-link{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;min-height:48px;padding:12px 0;border-bottom:1px solid var(--ecg-rose);color:var(--ecg-ink);font-size:13px;white-space:nowrap}
.ecg-gallery a.ecg-collection-link:hover{color:var(--ecg-rose)}
@media(max-width:1200px){.ecg-gallery .ecg-grid{column-count:3}}
@media(max-width:960px){.ecg-gallery .ecg-grid{column-count:2}.ecg-gallery p.ecg-browse-note{display:none}}
@media(max-width:600px){
 .ecg-gallery-page .ea-content{padding-left:16px;padding-right:16px}
 .ecg-gallery-page .ea-content .entry-title{font-size:42px;margin-bottom:16px}
 .ecg-gallery .ecg-intro{padding-bottom:28px}
 .ecg-gallery p.ecg-kicker{font-size:9px;margin-bottom:10px}
 .ecg-gallery p.ecg-intro-line{font-size:27px}
 .ecg-gallery p.ecg-intro-description{font-size:13px;max-width:300px;margin-top:12px}
 .ecg-gallery .ecg-toolbar{justify-content:center;padding:14px 0;margin-bottom:4px}
 .ecg-gallery .ecg-filters{gap:2px;justify-content:center}
 .ecg-gallery .ecg-filters a{font-size:12px;padding:9px 11px;gap:6px}
 .ecg-gallery .ecg-grid{column-count:2;column-gap:12px}
 .ecg-gallery .ecg-grid figure.ecg-card,.ea-content .entry-content .ecg-gallery figure.ecg-card{margin-bottom:12px}
 .ecg-gallery .ecg-view-hint{display:none}
 .ecg-gallery .ecg-play-badge{width:44px;height:44px}
 .ecg-gallery .ecg-media-label{top:8px;left:8px;font-size:9px;padding:3px 6px}
 .ecg-gallery .ecg-pagination{grid-template-columns:1fr 1fr;gap:10px;margin-top:18px;padding-top:18px}
 .ecg-gallery .ecg-page-numbers{grid-column:1/-1;grid-row:1;justify-content:center;gap:3px}
 .ecg-gallery .ecg-page-numbers a,.ecg-gallery .ecg-current-page{min-width:36px;min-height:44px;padding:6px 8px}
 .ecg-gallery .ecg-pagination>a:last-child{grid-column:2;justify-self:end}
 .ecg-gallery .ecg-outro{flex-direction:column;text-align:center;gap:18px;margin-top:32px;padding-top:30px}
 .ecg-gallery p.ecg-outro-line{font-size:28px;max-width:250px}
 .ecg-gallery .ecg-lightbox-top>p{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.ecg-gallery img.ecg-photo-image,.ecg-gallery .ecg-filters a{transition:none}}

/* Continuous browsing: append-only batches preserve already viewed positions. */
.ecg-gallery .ecg-feed>.ecg-grid{display:flow-root;overflow-anchor:none}
.ecg-gallery .ecg-load-area{text-align:center;min-height:112px;padding:22px 0 8px}
.ecg-gallery .ecg-load-status{margin:0 0 12px;font-size:12px;color:var(--ecg-muted)}
.ecg-gallery a.ecg-load-more{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:44px;padding:10px 24px;border:1px solid var(--ecg-line);border-radius:24px;font-size:13px;color:var(--ecg-ink);background:var(--ecg-paper)}
.ecg-gallery a.ecg-load-more:hover{background:var(--ecg-blush)}
.ecg-gallery a.ecg-load-more[aria-disabled=true]{opacity:.55;cursor:wait}
.ecg-gallery a.ecg-load-more[hidden]{display:none!important}
