/* 1.9.2 — composición aprobada para TV. Se aplica solo al mural vinculado. */
.screen-mode.ceremony-active{--tv-unit:min(1vw,1.77778vh)}
@supports(height:100svh){.screen-mode.ceremony-active{--tv-unit:min(1vw,1.77778svh)}}
.screen-mode.ceremony-active .top{height:calc(7 * var(--tv-unit));min-height:0;padding:calc(1.3 * var(--tv-unit)) 3.5vw;flex-wrap:nowrap}
.screen-mode.ceremony-active .top .pets-logo{width:calc(12.6 * var(--tv-unit));height:auto}
.screen-mode.ceremony-active .brand{font-size:calc(2 * var(--tv-unit));gap:calc(2 * var(--tv-unit))}
.screen-mode.ceremony-active .brand small{font-size:calc(.8 * var(--tv-unit));letter-spacing:calc(.2 * var(--tv-unit))}
.screen-mode.ceremony-active .container{padding:0 4vw}
.screen-mode.ceremony-active #screen-show:not([hidden]){height:calc(43.5 * var(--tv-unit));min-height:0;padding:calc(1.5 * var(--tv-unit)) 0 calc(2 * var(--tv-unit));display:grid;grid-template-columns:35% minmax(0,1fr);gap:5vw;align-items:center}
.screen-mode.ceremony-active .screen-photo.gallery-host{height:calc(34 * var(--tv-unit));width:100%;border-radius:calc(7 * var(--tv-unit)) calc(7 * var(--tv-unit)) calc(1.5 * var(--tv-unit)) calc(1.5 * var(--tv-unit));border:calc(.3 * var(--tv-unit)) solid #fffdf7;outline:1px solid #e5b466}
.screen-mode.ceremony-active .screen-photo .gallery-slide{width:100%;height:100%;object-fit:cover;border:0;outline:0;border-radius:0}
.screen-mode.ceremony-active .screen-words{padding:0;min-width:0;align-self:start}
.screen-mode.ceremony-active .screen-words>.eyebrow{font:400 calc(1.05 * var(--tv-unit))/1.4 Arial,sans-serif;letter-spacing:calc(.2 * var(--tv-unit));margin:0 0 calc(.55 * var(--tv-unit))}
.screen-mode.ceremony-active #screen-pet{font:400 calc(7.6 * var(--tv-unit))/1.03 Georgia,serif;letter-spacing:calc(-.18 * var(--tv-unit));margin:0 0 calc(1.2 * var(--tv-unit));overflow-wrap:anywhere;color:#00696a;height:calc(7.85 * var(--tv-unit))}
.screen-mode.ceremony-active #screen-farewell{font:400 calc(3 * var(--tv-unit))/1.24 Georgia,serif;color:#214d4d;margin:0;height:auto;min-height:calc(3.72 * var(--tv-unit));max-height:calc(7.44 * var(--tv-unit));white-space:pre-wrap;overflow-wrap:anywhere;text-wrap:balance}
.screen-mode.ceremony-active .screen-divider{width:calc(8 * var(--tv-unit));height:calc(.18 * var(--tv-unit));background:#f6a718;margin:calc(1.1 * var(--tv-unit)) 0 calc(.9 * var(--tv-unit))}
.screen-mode.ceremony-active #screen-message-panel{display:grid;grid-template-columns:minmax(0,1fr);align-content:center;min-height:calc(11 * var(--tv-unit));column-gap:calc(2.2 * var(--tv-unit));align-items:center}
.screen-mode.ceremony-active #screen-message-panel.has-media{grid-template-columns:calc(24 * var(--tv-unit)) minmax(0,1fr);min-height:calc(16.5 * var(--tv-unit))}
.screen-mode.ceremony-active #screen-memory{grid-column:1;grid-row:1;margin:0;min-width:0;align-self:center}
.screen-mode.ceremony-active #screen-memory:empty{display:none}
.screen-mode.ceremony-active #screen-memory img,.screen-mode.ceremony-active #screen-memory iframe{display:block;width:100%;height:calc(16.5 * var(--tv-unit));max-height:none;object-fit:contain;border-radius:calc(.9 * var(--tv-unit));margin:0;border:calc(.25 * var(--tv-unit)) solid #fffdf7;background:#fffdf755;box-shadow:0 calc(.8 * var(--tv-unit)) calc(2 * var(--tv-unit)) #214d4d12}
.screen-mode.ceremony-active #screen-message-panel #screen-message{font:400 calc(2.7 * var(--tv-unit))/1.32 Georgia,serif;color:#214d4d;max-height:none;overflow:visible;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 calc(.7 * var(--tv-unit));grid-column:1;grid-row:1}
.screen-mode.ceremony-active #screen-message-panel #screen-author{font:400 calc(1.25 * var(--tv-unit))/1.3 Arial,sans-serif;color:#426263;margin:0;grid-column:1;grid-row:2}
.screen-mode.ceremony-active #screen-message-panel.has-media #screen-message,.screen-mode.ceremony-active #screen-message-panel.has-media #screen-author{grid-column:2}
.screen-mode.ceremony-active #screen-qr{position:fixed;right:3vw;bottom:calc(1.4 * var(--tv-unit));padding:calc(.45 * var(--tv-unit))}
.screen-mode.ceremony-active #screen-qr svg{width:calc(7.1 * var(--tv-unit));height:calc(7.1 * var(--tv-unit))}
.screen-mode.ceremony-active .screen-words>small{position:fixed;right:calc(3vw + 9 * var(--tv-unit));bottom:calc(2.7 * var(--tv-unit));max-width:calc(9 * var(--tv-unit));font:400 calc(1.15 * var(--tv-unit))/1.4 Arial,sans-serif;text-align:right}
/* Los dispositivos verticales conservan lectura cómoda y desplazamiento natural. */
@media(orientation:portrait){.screen-mode.ceremony-active{--tv-unit:8px}.screen-mode.ceremony-active .top{height:auto;min-height:76px;flex-wrap:wrap}.screen-mode.ceremony-active .brand{font-size:18px}.screen-mode.ceremony-active .brand small{font-size:9px}.screen-mode.ceremony-active .top .pets-logo{width:110px}.screen-mode.ceremony-active #screen-show:not([hidden]){height:auto;grid-template-columns:1fr;gap:28px;padding:28px 0 130px}.screen-mode.ceremony-active .screen-photo.gallery-host{height:40vh;max-width:440px;margin:auto}.screen-mode.ceremony-active #screen-pet{font-size:64px}.screen-mode.ceremony-active #screen-farewell{font-size:27px}.screen-mode.ceremony-active #screen-message-panel #screen-message{font-size:24px}.screen-mode.ceremony-active #screen-message-panel #screen-author{font-size:16px}.screen-mode.ceremony-active #screen-qr{position:static;margin-top:28px}.screen-mode.ceremony-active #screen-qr svg{width:125px;height:125px}.screen-mode.ceremony-active .screen-words>small{position:static;max-width:none;font-size:14px;text-align:left}}

/* Texto y firma forman una sola unidad, centrada junto al recuerdo. */
.screen-mode.ceremony-active .screen-message-copy{grid-column:1;grid-row:1;min-width:0;align-self:center}
.screen-mode.ceremony-active #screen-message-panel.has-media .screen-message-copy{grid-column:2}
@media(orientation:portrait){.screen-mode.ceremony-active #screen-message-panel.has-media{grid-template-columns:1fr;gap:18px}.screen-mode.ceremony-active #screen-memory{grid-column:1;grid-row:1;width:100%}.screen-mode.ceremony-active #screen-memory img,.screen-mode.ceremony-active #screen-memory iframe{height:auto;max-height:38vh;min-height:150px}.screen-mode.ceremony-active #screen-memory iframe{aspect-ratio:16/9}.screen-mode.ceremony-active #screen-message-panel.has-media .screen-message-copy{grid-column:1;grid-row:2}}

/* TV header: retain the full title and tagline within the existing band. */
@media (orientation:landscape){
 .screen-mode.ceremony-active .top{align-items:center;flex-direction:row;padding:calc(.8 * var(--tv-unit)) 3.5vw;gap:calc(2 * var(--tv-unit))}
 .screen-mode.ceremony-active .brand{flex:0 0 auto;max-width:none;align-items:center;line-height:1.12;gap:calc(1.8 * var(--tv-unit));white-space:nowrap}
 .screen-mode.ceremony-active .brand>span{display:block;flex:0 0 auto;padding-left:calc(1.8 * var(--tv-unit))}
 .screen-mode.ceremony-active .brand small{display:block;line-height:1.2;margin-top:calc(.5 * var(--tv-unit));white-space:nowrap}
 .screen-mode.ceremony-active .top nav{width:auto;min-width:0;flex:1 1 auto;justify-content:flex-end}
}
