/* Wedding palette and typography. Reuses the site's own fonts; no external assets. */
.wtg-app {
    --wtg-accent: #DF814F; --wtg-accent-rgb: 223,129,79; --wtg-button-text: #FFFFFF; --wtg-soft: #edddd3; --wtg-surface: #fffaf7; --wtg-ink: #000000;
    --wtg-radius: 24px; --wtg-title-font: "LikeThat", "Like That", Georgia, serif; --wtg-body-font: inherit;
    width: 100%; max-width: 100%; min-width: 0; color: var(--wtg-ink); font-family: var(--wtg-body-font); line-height: 1.6;
    scroll-margin-top: 120px; isolation: isolate;
}
.wtg-app[data-wtg-app] { container: wtg-layout / inline-size; }
.wtg-app *, .wtg-app *::before, .wtg-app *::after, .wtg-viewer * { box-sizing: border-box; }
.wtg-app [hidden], .wtg-viewer [hidden] { display: none !important; }
.wtg-app button, .wtg-app input, .wtg-app textarea, .wtg-app select { font-family: var(--wtg-body-font); }
.wtg-app button { cursor: pointer; text-shadow: none; }
.wtg-app button:disabled { cursor: default; opacity: .42; }
.wtg-app a, .wtg-app button { -webkit-tap-highlight-color: transparent; }
.wtg-app :focus-visible, .wtg-viewer :focus-visible { outline: 2px solid var(--wtg-accent, #DF814F); outline-offset: 4px; }
.wtg-app svg, .wtg-viewer svg { display: block; width: 24px; height: 24px; flex: none; }
.wtg-app .wtg-icon, .wtg-viewer .wtg-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.wtg-app .wtg-eyebrow {
    display: block; margin: 0 0 12px; color: var(--wtg-accent); font-family: var(--wtg-body-font);
    font-weight: 600; font-size: 11px; letter-spacing: .2em; line-height: 1.55; text-transform: uppercase;
}
/* LikeThat is reserved for these display titles, ALWAYS uppercase. */
.wtg-app .wtg-intro h2, .wtg-app .wtg-root-name, .wtg-app .wtg-album-title, .wtg-app .wtg-upload-intro h3 {
    font-family: var(--wtg-title-font) !important; font-weight: 400 !important; font-style: normal !important;
    text-transform: uppercase !important; font-synthesis: none; color: var(--wtg-accent) !important;
    word-break: normal !important; overflow-wrap: normal !important; -webkit-hyphens: none !important; hyphens: none !important;
    letter-spacing: .015em; max-width: 100%; text-wrap: balance;
}
.wtg-app .wtg-intro { max-width: 840px; margin: 0 auto 38px; text-align: center; }
.wtg-app .wtg-intro > .wtg-eyebrow { margin-bottom: 18px; }
.wtg-app .wtg-intro h2 { max-width: 19ch; margin: 0 auto; padding: 0; font-size: clamp(30px, 4.6vw, 60px); font-size: clamp(30px, 5.3cqi, 60px); line-height: 1.08; }
.wtg-app .wtg-intro-rule { display: block; width: 62px; height: 1px; background: var(--wtg-accent); margin: 23px auto 20px; }
.wtg-app .wtg-intro p { max-width: 620px; margin: 0 auto; padding: 0; color: var(--wtg-ink); font-size: 15px; line-height: 1.8; text-wrap: pretty; }
.wtg-app .wtg-root-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.wtg-app .wtg-root-card {
    container-type: inline-size; display: flex; flex-direction: column; justify-content: space-between;
    gap: 26px; min-height: 255px; width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 34px 32px 21px;
    border: 1px solid rgba(var(--wtg-accent-rgb, 223,129,79), .2); border-radius: calc(var(--wtg-radius) * 2.5) var(--wtg-radius) var(--wtg-radius) var(--wtg-radius);
    background: var(--wtg-surface); color: var(--wtg-ink); box-shadow: none; text-align: center;
    appearance: none; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.wtg-app .wtg-root-card.is-pro { border-radius: var(--wtg-radius) calc(var(--wtg-radius) * 2.5) var(--wtg-radius) var(--wtg-radius); }
.wtg-app .wtg-root-card.is-guest { background: var(--wtg-surface); background: color-mix(in srgb, var(--wtg-surface) 70%, var(--wtg-soft)); }
.wtg-app .wtg-root-card:hover { transform: translateY(-3px); border-color: var(--wtg-accent); }
.wtg-app .wtg-root-copy { display: block; width: 100%; min-width: 0; margin: auto 0 0; }
.wtg-app .wtg-root-copy .wtg-eyebrow { color: var(--wtg-accent); margin: 0 0 10px; }
.wtg-app .wtg-root-name { display: block; margin: 0 0 11px; padding: 0; font-size: clamp(24px, 3.2vw, 48px); font-size: clamp(24px, 11.2cqi, 52px); line-height: 1.15; white-space: normal; }
.wtg-app .wtg-root-note { display: block; font-size: 13px; line-height: 1.65; color: var(--wtg-ink); }
.wtg-app .wtg-root-footer { display: flex; width: 100%; min-width: 0; justify-content: space-between; align-items: center; gap: 14px; padding-top: 15px; border-top: 1px solid rgba(var(--wtg-accent-rgb, 223,129,79), .22); }
.wtg-app .wtg-root-count { font-size: 12px; color: var(--wtg-ink); line-height: 1.5; }
.wtg-app .wtg-root-arrow { display: grid; place-items: center; width: 33px; height: 33px; flex: none; border: 1px solid rgba(var(--wtg-accent-rgb, 223,129,79), .45); border-radius: 50%; color: var(--wtg-button-text); background: var(--wtg-accent); transition: transform .2s; }
.wtg-app .wtg-root-arrow svg { width: 17px; height: 17px; stroke-width: 1.4; }
.wtg-app .wtg-root-card:hover .wtg-root-arrow { transform: translateX(3px); }
.wtg-app .wtg-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 24px; font-size: 12px; color: var(--wtg-ink); }
.wtg-app .wtg-breadcrumbs button, .wtg-app .wtg-text-button { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; max-width: 100%; padding: 6px 11px; border: 1px solid var(--wtg-accent); border-radius: 999px; background: var(--wtg-accent); color: var(--wtg-button-text); font-family: var(--wtg-body-font); line-height: 1.5; font-size: 12px; font-weight: 500; text-decoration: none; white-space: normal; text-align: center; }
.wtg-app .wtg-breadcrumbs button:hover, .wtg-app .wtg-text-button:hover { background: var(--wtg-accent); color: var(--wtg-button-text); text-decoration: underline; text-underline-offset: 3px; }
.wtg-app .wtg-crumb-separator { opacity: .6; }
.wtg-app .wtg-breadcrumbs [aria-current] { word-break: normal; overflow-wrap: normal; }
.wtg-app .wtg-album-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin: 0 0 24px; }
.wtg-app .wtg-album-heading-copy { min-width: 0; max-width: 100%; flex: 1 1 250px; }
.wtg-app .wtg-album-title { margin: 0 0 8px; padding: 0; font-size: clamp(30px, 4vw, 50px); font-size: clamp(30px, 5cqi, 50px); line-height: 1.15; }
.wtg-app .wtg-album-summary { margin: 0; padding: 0; font-size: 14px; color: var(--wtg-ink); line-height: 1.65; }
.wtg-app .wtg-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px;
    padding: 12px 22px; border: 1px solid var(--wtg-accent); border-radius: 999px;
    background: var(--wtg-accent); color: var(--wtg-button-text); font-family: var(--wtg-body-font); font-size: 13px; font-weight: 500;
    letter-spacing: .015em; text-decoration: none; line-height: 1.5; appearance: none;
    transition: transform .15s, background .15s; max-width: 100%; white-space: normal; text-align: center;
}
.wtg-app .wtg-button:hover { background: var(--wtg-accent); color: var(--wtg-button-text); transform: translateY(-1px); }
.wtg-app .wtg-button-outline { color: var(--wtg-button-text); background: var(--wtg-accent); border-color: var(--wtg-accent); }
.wtg-app .wtg-button svg { width: 18px; height: 18px; }
.wtg-app .wtg-jump-upload > svg { transform: rotate(90deg); }
.wtg-app .wtg-upload-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 42px; padding: 38px; margin: 44px 0 0; border: 1px solid rgba(var(--wtg-accent-rgb, 223,129,79), .2); border-radius: var(--wtg-radius); background: var(--wtg-surface); scroll-margin-top: 120px; overflow-anchor: none; }
.wtg-app .wtg-upload-intro { min-width: 0; }
.wtg-app .wtg-upload-intro h3 { margin: 0 0 14px; padding: 0; font-size: 32px; line-height: 1.2; }
.wtg-app .wtg-upload-intro p { margin: 0 0 16px; padding: 0; font-size: 14px; line-height: 1.8; color: var(--wtg-ink); }
.wtg-app .wtg-help { font-size: 12px; line-height: 1.7; }
.wtg-app .wtg-upload-form { min-width: 0; margin: 0; }
.wtg-app .wtg-field-label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 600; }
.wtg-app input.wtg-name { display: block; width: 100%; min-height: 46px; margin: 0 0 18px; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(var(--wtg-accent-rgb, 223,129,79), .5); border-radius: 0; background: transparent; color: var(--wtg-ink); font-size: 16px; box-shadow: none; }
.wtg-app input.wtg-name::placeholder { opacity: .8; color: var(--wtg-ink); }
.wtg-app .wtg-dropzone { position: relative; border: 1px dashed rgba(var(--wtg-accent-rgb, 223,129,79), .6); border-radius: 12px; background: var(--wtg-surface); transition: border-color .15s, background .15s; }
.wtg-app .wtg-dropzone.is-over, .wtg-app .wtg-dropzone:focus-within { border-color: var(--wtg-accent); background: var(--wtg-soft); }
.wtg-app .wtg-file-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); }
.wtg-app .wtg-dropzone label { display: flex; gap: 15px; align-items: center; padding: 20px 18px; min-height: 90px; cursor: pointer; }
.wtg-app .wtg-dropzone label > svg { width: 32px; height: 32px; color: var(--wtg-accent); }
.wtg-app .wtg-dropzone label > span { min-width: 0; }
.wtg-app .wtg-dropzone strong, .wtg-app .wtg-dropzone small { display: block; }
.wtg-app .wtg-dropzone strong { color: var(--wtg-ink); font-size: 15px; font-weight: 600; }
.wtg-app .wtg-dropzone small { margin-top: 3px; font-size: 11px; line-height: 1.7; }
.wtg-app .wtg-format-help { font-size: 11px; margin: 8px 0 0; padding: 0; }
.wtg-app .wtg-honeypot { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.wtg-app .wtg-queue-summary { font-size: 12px; margin-top: 12px; }
.wtg-app .wtg-upload-queue { list-style: none !important; margin: 0 0 12px !important; padding: 0 !important; max-height: 235px; overflow-y: auto; overscroll-behavior: contain; }
.wtg-app .wtg-upload-item { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 0; border-bottom: 1px solid rgba(var(--wtg-accent-rgb, 223,129,79), .2); }
.wtg-app .wtg-upload-item-copy { min-width: 0; flex: 1; }
.wtg-app .wtg-upload-item strong { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtg-app .wtg-upload-item small { display: block; font-size: 11px; line-height: 1.7; }
.wtg-app .wtg-upload-item.is-done small, .wtg-app .wtg-upload-item.is-error small { color: var(--wtg-ink); font-weight: 600; }
.wtg-app .wtg-queue-remove { border: 0; background: var(--wtg-accent); padding: 6px; color: var(--wtg-button-text); font-size: 22px; flex: 0 0 32px;  border-radius: 50%; width: 32px; height: 32px; line-height: 1; }
.wtg-app .wtg-progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 20px; overflow: hidden; margin: 12px 0 18px; background: var(--wtg-soft); accent-color: var(--wtg-accent); }
.wtg-app .wtg-progress::-webkit-progress-bar { background: var(--wtg-soft); border-radius: 20px; }
.wtg-app .wtg-progress::-webkit-progress-value { background: var(--wtg-accent); border-radius: 20px; transition: width .15s; }
.wtg-app .wtg-progress::-moz-progress-bar { background: var(--wtg-accent); border-radius: 20px; }
.wtg-app .wtg-upload-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.wtg-app .wtg-upload-status { margin-top: 12px; font-size: 12px; line-height: 1.7; min-height: 0; overflow-wrap: anywhere; }
.wtg-app .wtg-upload-status.is-success, .wtg-app .wtg-upload-status.is-error { color: var(--wtg-accent); }
.wtg-app .wtg-upload-status.is-error { border-left: 2px solid var(--wtg-accent); padding-left: 10px; }
.wtg-app .wtg-review-uploads { display: block; margin-top: 8px; }
.wtg-app .wtg-subfolders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.wtg-app .wtg-subfolders:empty { display: none; }
.wtg-app .wtg-subfolder { display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding: 18px; border: 1px solid rgba(var(--wtg-accent-rgb, 223,129,79), .24); border-radius: calc(var(--wtg-radius) * .6); background: var(--wtg-surface); color: var(--wtg-ink); text-align: left; }
.wtg-app .wtg-subfolder:hover { border-color: var(--wtg-accent); }
.wtg-app .wtg-subfolder > .wtg-icon:first-child { color: var(--wtg-accent); }
.wtg-app .wtg-subfolder strong { display: block; font-size: 14px; font-weight: 500; word-break: normal; overflow-wrap: normal; hyphens: none; }
.wtg-app .wtg-subfolder small { display: block; margin-top: 3px; font-size: 11px; }
.wtg-app .wtg-gallery-section { min-width: 0; scroll-margin-top: 120px; overflow-anchor: none; }
.wtg-app .wtg-gallery-toolbar { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin: 10px 0 14px; font-size: 12px; color: var(--wtg-ink); }
.wtg-app .wtg-gallery-count { min-width: 0; }
.wtg-app .wtg-refresh { flex: none; }
.wtg-app .wtg-gallery-message { font-size: 14px; line-height: 1.8; text-align: center; padding: 28px 14px; color: var(--wtg-ink); }
.wtg-app .wtg-gallery-message:empty { display: none; }
.wtg-app .wtg-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.wtg-app .wtg-photo-grid[aria-busy="true"] { opacity: .6; }
.wtg-app .wtg-photo-card { min-width: 0; margin: 0; border-radius: calc(var(--wtg-radius) * .5); background: var(--wtg-surface); overflow: hidden; }
.wtg-app .wtg-photo-open { display: block; position: relative; width: 100%; height: auto; aspect-ratio: 1; padding: 0; border: 0; margin: 0; background: var(--wtg-soft); color: var(--wtg-ink); overflow: hidden; border-radius: 0; }
.wtg-app .wtg-photo-open img { display: block; width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; margin: 0; padding: 0; max-width: none; transition: transform .2s; }
.wtg-app .wtg-photo-open:hover img { transform: scale(1.025); }
.wtg-app .wtg-photo-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; padding: 16px; }
.wtg-app .wtg-photo-placeholder svg { width: 34px; height: 34px; }
.wtg-app .wtg-photo-placeholder small { font-size: 11px; line-height: 1.5; text-align: center; }
.wtg-app .wtg-photo-meta { display: flex; align-items: center; min-height: 44px; gap: 5px; padding: 4px 5px 4px 12px; }
.wtg-app .wtg-photo-author { min-width: 0; flex: 1; font-size: 11px; line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wtg-app .wtg-photo-download { color: var(--wtg-button-text); display: inline-flex; justify-content: center; align-items: center; min-width: 36px; min-height: 36px; border-radius: 50%; background: var(--wtg-accent); text-decoration: none; }
.wtg-app .wtg-photo-download svg { width: 17px; height: 17px; }
.wtg-app .wtg-photo-download:hover { background: var(--wtg-accent); color: var(--wtg-button-text); transform: translateY(-1px); }
.wtg-app .wtg-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 7px; margin: 0 0 18px; color: var(--wtg-ink); min-width: 0; }
.wtg-app .wtg-pagination-bottom { margin: 24px 0 0; }
.wtg-app .wtg-page-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none;
    width: 38px; min-height: 40px; padding: 6px; margin: 0; border: 1px solid rgba(var(--wtg-accent-rgb, 223,129,79), .3); border-radius: 50%;
    background: var(--wtg-accent); color: var(--wtg-button-text); font-family: var(--wtg-body-font); font-size: 12px; line-height: 1; font-weight: 500;
}
.wtg-app .wtg-page-button.is-current { color: var(--wtg-button-text); background: var(--wtg-accent); border-color: var(--wtg-button-text); font-weight: 700; box-shadow: 0 0 0 2px var(--wtg-accent); }
.wtg-app .wtg-page-button:not(:disabled):not(.is-current):hover { background: var(--wtg-accent); color: var(--wtg-button-text); border-color: var(--wtg-button-text); }
.wtg-app .wtg-page-previous, .wtg-app .wtg-page-next { width: auto; min-width: 40px; border-radius: 999px; padding: 9px 12px; }
.wtg-app .wtg-page-previous .wtg-icon { transform: rotate(180deg); }
.wtg-app .wtg-page-next .wtg-icon { order: 2; }
.wtg-app .wtg-page-button svg { width: 16px; height: 16px; }
.wtg-app .wtg-page-gap { min-width: 14px; text-align: center; font-size: 12px; }
.wtg-app .wtg-closed { border: 1px solid rgba(var(--wtg-accent-rgb, 223,129,79), .2); border-radius: 12px; background: var(--wtg-surface); padding: 18px 22px; margin-top: 28px; font-size: 13px; }

/* Native top-layer viewer, outside Divi stacking contexts, in the wedding palette. */
dialog.wtg-viewer {
    position: fixed !important; inset: 0 !important; z-index: 2147483647 !important;
    width: 100vw !important; height: 100vh !important; height: 100dvh !important;
    max-width: none !important; max-height: none !important; margin: 0 !important; border: 0 !important;
    padding: 0 !important; border-radius: 0 !important; background: var(--wtg-surface, #fffaf7) !important;
    color: var(--wtg-ink, #000000) !important; overflow: hidden !important; transform: none !important; box-shadow: none !important;
}
dialog.wtg-viewer:not([open]) { display: none !important; }
dialog.wtg-viewer[open] { display: grid !important; grid-template-rows: auto minmax(0, 1fr) auto; }
dialog.wtg-viewer::backdrop { background: var(--wtg-surface, #fffaf7); }
.wtg-viewer .wtg-viewer-bar { display: flex; align-items: center; gap: 16px; min-height: 70px; padding: calc(10px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 10px max(22px, env(safe-area-inset-left, 0px)); color: var(--wtg-ink, #000000); }
.wtg-viewer .wtg-viewer-position { flex: 1; font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.wtg-viewer a.wtg-viewer-download, .wtg-viewer button.wtg-viewer-close { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; min-height: 42px; padding: 8px 14px; border: 1px solid rgba(var(--wtg-accent-rgb, 223,129,79), .5); border-radius: 999px; background: var(--wtg-accent, #DF814F); color: var(--wtg-button-text, #FFFFFF); font: inherit; font-size: 12px; line-height: 1.4; text-decoration: none; cursor: pointer; }
.wtg-viewer .wtg-viewer-bar svg { width: 19px; height: 19px; }
.wtg-viewer a.wtg-viewer-download:hover, .wtg-viewer button.wtg-viewer-close:hover { background: var(--wtg-accent, #DF814F); color: var(--wtg-button-text, #FFFFFF); text-decoration: underline; }
.wtg-viewer .wtg-viewer-stage { position: relative; min-width: 0; min-height: 0; margin: 0; padding: 0; touch-action: pan-y pinch-zoom; }
.wtg-viewer .wtg-viewer-image-holder { position: absolute; inset: 0 66px; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.wtg-viewer .wtg-viewer-image-holder img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; display: block; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.wtg-viewer .wtg-viewer-loading { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; text-align: center; padding: 30px 80px; pointer-events: none; color: var(--wtg-ink, #000000); font-size: 13px; line-height: 1.7; }
.wtg-viewer button.wtg-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(var(--wtg-accent-rgb, 223,129,79), .5); border-radius: 50%; background: var(--wtg-accent, #DF814F); color: var(--wtg-button-text, #FFFFFF); cursor: pointer; padding: 0; }
.wtg-viewer .wtg-viewer-prev { left: max(10px, env(safe-area-inset-left, 0px)); }
.wtg-viewer .wtg-viewer-next { right: max(10px, env(safe-area-inset-right, 0px)); }
.wtg-viewer .wtg-viewer-prev svg { transform: rotate(180deg); }
.wtg-viewer .wtg-viewer-caption { min-height: 48px; padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 100%; color: var(--wtg-ink, #000000); font-size: 12px; line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; }

@media (max-width: 980px) {
    .wtg-app .wtg-root-card { padding: 30px 24px 20px; min-height: 220px; gap: 22px; }
    .wtg-app .wtg-upload-panel { gap: 28px; padding: 28px; }
    .wtg-app .wtg-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wtg-app .wtg-subfolders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .wtg-app .wtg-root-grid { grid-template-columns: 1fr; gap: 16px; }
    .wtg-app .wtg-root-card { min-height: 194px; padding: 25px 24px 16px; gap: 18px; }
    .wtg-app .wtg-root-name { font-size: clamp(24px, 8vw, 38px); font-size: clamp(24px, 10.8cqi, 38px); margin-bottom: 7px; }
    .wtg-app .wtg-intro { margin-bottom: 27px; }
    .wtg-app .wtg-intro > .wtg-eyebrow { margin-bottom: 13px; }
    .wtg-app .wtg-intro p { font-size: 13px; line-height: 1.8; }
    .wtg-app .wtg-intro-rule { margin: 18px auto 16px; }
    .wtg-app .wtg-album-header { gap: 15px; margin-bottom: 18px; }
    .wtg-app .wtg-album-heading-copy { flex-basis: 100%; }
    .wtg-app .wtg-album-title { font-size: 34px; }
    .wtg-app .wtg-album-summary { font-size: 13px; }
    .wtg-app .wtg-breadcrumbs { margin-bottom: 16px; }
    .wtg-app .wtg-upload-panel { grid-template-columns: 1fr; gap: 20px; padding: 25px 20px; margin-top: 32px; }
    .wtg-app .wtg-upload-intro h3 { font-size: 29px; }
    .wtg-app .wtg-upload-intro p { font-size: 13px; }
    .wtg-app .wtg-subfolders { grid-template-columns: 1fr; gap: 10px; }
    .wtg-app .wtg-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .wtg-app .wtg-photo-meta { padding-left: 8px; }
    .wtg-app .wtg-photo-author { font-size: 10px; }
    .wtg-app .wtg-photo-download { min-width: 30px; min-height: 36px; }
    .wtg-app .wtg-page-direction-label { display: none; }
    .wtg-app .wtg-page-previous, .wtg-app .wtg-page-next { padding: 8px; }
    .wtg-viewer .wtg-viewer-bar { gap: 8px; min-height: 64px; padding-left: 12px; padding-right: 10px; }
    .wtg-viewer .wtg-viewer-position { font-size: 10px; }
    .wtg-viewer a.wtg-viewer-download, .wtg-viewer button.wtg-viewer-close { padding: 8px 10px; font-size: 11px; }
    .wtg-viewer .wtg-viewer-close span:not(.wtg-icon) { display: none; }
    .wtg-viewer .wtg-viewer-image-holder { inset: 0 8px; }
    .wtg-viewer button.wtg-viewer-nav { width: 36px; height: 36px; }
    .wtg-viewer .wtg-viewer-nav svg { width: 20px; height: 20px; }
    .wtg-viewer .wtg-viewer-loading { padding: 24px 50px; }
}
/* Divi may put the plugin in a narrow column even on a large desktop. */
@container wtg-layout (max-width: 700px) {
    .wtg-app .wtg-root-grid { grid-template-columns: 1fr; gap: 16px; }
    .wtg-app .wtg-root-card { min-height: 194px; padding: 25px 24px 16px; gap: 18px; }
    .wtg-app .wtg-root-name { font-size: clamp(24px, 10.8cqi, 38px); }
    .wtg-app .wtg-upload-panel { grid-template-columns: 1fr; gap: 20px; padding: 25px 20px; }
    .wtg-app .wtg-subfolders { grid-template-columns: 1fr; }
    .wtg-app .wtg-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .wtg-app .wtg-album-heading-copy { flex-basis: 100%; }
    .wtg-app .wtg-page-direction-label { display: none; }
}
@container wtg-layout (max-width: 340px) {
    .wtg-app .wtg-root-card { padding-left: 18px; padding-right: 18px; }
    .wtg-app .wtg-root-note { font-size: 12px; }
    .wtg-app .wtg-page-button { width: 34px; min-width: 34px; min-height: 36px; }
    .wtg-app .wtg-pagination { gap: 5px; }
    .wtg-app .wtg-upload-panel { padding-left: 16px; padding-right: 16px; }
    .wtg-app .wtg-gallery-toolbar { gap: 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .wtg-app *, .wtg-viewer * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* v3.2: Accessible photo zoom. Only the image canvas pans; the buttons stay clickable. */
.wtg-viewer .wtg-viewer-zoom-controls {
    display: inline-flex; align-items: center; flex: none; border: 1px solid rgba(var(--wtg-accent-rgb, 223,129,79), .35);
    border-radius: 999px; overflow: hidden; background: var(--wtg-surface, #fffaf7);
}
.wtg-viewer button.wtg-viewer-zoom-button, .wtg-viewer button.wtg-viewer-zoom-level {
    margin: 0; padding: 4px; min-height: 38px; border: 0; border-radius: 0; color: var(--wtg-ink, #000);
    background: transparent; box-shadow: none; cursor: pointer; text-shadow: none;
    font-family: inherit; line-height: 1; font-weight: 600;
}
.wtg-viewer button.wtg-viewer-zoom-button { width: 35px; font-size: 22px; }
.wtg-viewer button.wtg-viewer-zoom-level { width: 50px; font-size: 11px; font-variant-numeric: tabular-nums; }
.wtg-viewer button.wtg-viewer-zoom-button:not(:disabled):hover, .wtg-viewer button.wtg-viewer-zoom-level:not(:disabled):hover { background: var(--wtg-soft, #edddd3); }
.wtg-viewer button.wtg-viewer-zoom-button:disabled, .wtg-viewer button.wtg-viewer-zoom-level:disabled,
.wtg-viewer button.wtg-viewer-nav:disabled { opacity: .35; cursor: default; }
.wtg-viewer .wtg-viewer-image-holder { overflow: hidden; touch-action: none; cursor: zoom-in; overscroll-behavior: contain; }
.wtg-viewer .wtg-viewer-image-holder.is-zoomed { cursor: grab; }
.wtg-viewer .wtg-viewer-image-holder.is-dragging { cursor: grabbing; }
.wtg-viewer .wtg-viewer-image-holder img { transform-origin: center center; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
@media (max-width: 700px) {
    .wtg-viewer .wtg-viewer-bar { gap: 5px; }
    .wtg-viewer .wtg-viewer-position { min-width: 48px; }
    .wtg-viewer .wtg-viewer-zoom-controls { gap: 0; }
    .wtg-viewer button.wtg-viewer-zoom-button { width: 28px; min-height: 36px; font-size: 20px; }
    .wtg-viewer button.wtg-viewer-zoom-level { width: 43px; min-height: 36px; font-size: 10px; }
    .wtg-viewer a.wtg-viewer-download, .wtg-viewer button.wtg-viewer-close { min-width: 34px; min-height: 36px; padding: 7px; }
    .wtg-viewer .wtg-viewer-download span:not(.wtg-icon) { display: none; }
}
