/* Home – the new slider (partials/home-cinema.php, setting home_style = "cinema"). */
.cine { position: relative; height: calc(100svh - var(--header-h) - var(--top-bar-h, 0px) - var(--bottom-h)); min-height: 420px; overflow: hidden; background: #0d0d0d; color: #fff; touch-action: pan-y; }
.cine__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.4s ease, visibility 0s 1.4s; }
.cine__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.4s ease; }
.cine__media { position: absolute; inset: 0; overflow: hidden; }
.cine__media .cine__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transform-origin: var(--focus, 50% 50%); }
.cine__img--phone { display: none; }
/* the slow drift while a slide shows */
.cine__slide.is-active .cine__img, .cine__slide.is-leaving .cine__img { animation: cineDrift calc(var(--cine-ms) + 1600ms) linear both; }
/* the outgoing photo keeps its zoom (and keeps drifting) while it fades – no snap back to the start */
.cine__slide.is-leaving { z-index: 0; }
@keyframes cineDrift { from { transform: scale(1.0); } to { transform: scale(1.07); } }
/* the fade the words sit on: from the bottom and the left, the photo stays clear */
.cine__slide::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .35) 32%, transparent 58%),
              linear-gradient(to right, rgb(0 0 0 / .45) 0%, transparent 55%); }

.cine__text { position: absolute; z-index: 2; left: clamp(20px, 5vw, 96px); right: clamp(20px, 5vw, 96px); bottom: clamp(40px, 9vh, 96px); max-width: 680px; }
.cine__text > * { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.cine__slide.is-active .cine__text > * { opacity: 1; transform: none; }
.cine__slide.is-active .cine__text > :nth-child(2) { transition-delay: .12s; }
.cine__slide.is-active .cine__text > :nth-child(3) { transition-delay: .24s; }
.cine__slide.is-active .cine__text > :nth-child(4) { transition-delay: .36s; }
.cine__kicker { margin: 0 0 14px; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: .9; }
.cine__kicker::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: currentColor; }
.cine__title { margin: 0; font: 300 clamp(2.4rem, 1.4rem + 4vw, 5.2rem)/1 var(--f-head); letter-spacing: -.02em; text-shadow: 0 2px 24px rgb(0 0 0 / .25); }
.cine__line { margin: 16px 0 0; font-size: clamp(15px, .9rem + .3vw, 19px); line-height: 1.5; color: rgb(255 255 255 / .88); }
.cine__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.cine__btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border: 1px solid rgb(255 255 255 / .85); border-radius: 999px; color: #fff; text-decoration: none;
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; transition: background .2s, color .2s, gap .2s; backdrop-filter: blur(2px); }
.cine__btn:hover { background: #fff; color: #111; gap: 14px; }
.cine__actions { align-items: center; }
.cine__price { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: rgb(255 255 255 / .9); padding-left: 6px; }

/* the one control: pause (a moving slideshow needs a way to stop it) */
.cine__pause { position: absolute; z-index: 3; right: clamp(14px, 3vw, 40px); bottom: clamp(14px, 3vw, 36px); display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; background: rgb(0 0 0 / .15); color: #fff; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.cine__pause:hover, .cine__pause:focus-visible { opacity: 1; border-color: #fff; }
.cine__pause-i { width: 9px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.cine__pause[aria-pressed="true"] .cine__pause-i { width: 0; height: 0; border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.cine.is-paused .cine__slide.is-active .cine__img, .cine.is-paused .cine__slide.is-leaving .cine__img { animation-play-state: paused; }
.cine:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* phones: the phone photo when there is one */
@media (max-width: 700px) {
  .cine__media.has-phone .cine__img:not(.cine__img--phone) { display: none; }
  .cine__media.has-phone .cine__img--phone { display: block; }
  .cine__slide::after { background: linear-gradient(to top, rgb(0 0 0 / .82) 0%, rgb(0 0 0 / .4) 38%, transparent 62%); }
  .cine__text { bottom: 34px; }
  .cine__title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .cine__actions { margin-top: 22px; }
  .cine__btn { padding: 12px 18px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .cine__slide, .cine__text > * { transition: none; }
  .cine__slide.is-active .cine__img, .cine__slide.is-leaving .cine__img { animation: none; }
}
