/* CINE: the photo and video viewer of the hoja and the work page.
   Always on true black, in both themes, so nothing of the page shows behind. */
.cine {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000000;
  color: #ffffff;
  font-family: 'BBTorsosPro-Regular', Arial, sans-serif;
  text-transform: lowercase;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.cine[hidden] { display: none; }
.cine.is-open { opacity: 1; }
.cine-top {
  position: absolute;
  top: 26px;
  left: 79px;
  right: 79px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 15px;
}
.cine-meta { display: flex; align-items: baseline; gap: 18px; min-width: 0; }
.cine-cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cine-post {
  flex: none;
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.cine-post:hover { border-bottom-color: #ffffff; }
.cine-count { color: #8f8f8f; font-variant-numeric: tabular-nums; }
.cine-close,
.cine-nav,
.cine-controls button {
  background: none;
  border: 0;
  color: #ffffff;
  font: inherit;
  text-transform: lowercase;
  cursor: pointer;
}
.cine-close {
  justify-self: end;
  padding: 12px 0;
  font-family: 'BBTorsosPro-Medium', Arial, sans-serif;
  font-size: 15px;
}
.cine-stage {
  position: absolute;
  inset: 70px 104px 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cine-img,
.cine-video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.cine-img { opacity: 0; transition: opacity 0.3s ease; }
.cine-img.is-loaded { opacity: 1; }
.cine-img[hidden],
.cine-video[hidden] { display: none; }
.cine-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  padding: 20px;
  font-size: 34px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.cine-nav:hover { opacity: 1; }
.cine-prev { left: 24px; }
.cine-next { right: 24px; }
.cine-controls {
  position: absolute;
  left: 104px;
  right: 104px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  color: #d9d9d9;
}
.cine-controls[hidden] { display: none; }
.cine-controls button {
  padding: 12px 0;
  font-family: 'BBTorsosPro-Medium', Arial, sans-serif;
  font-size: 13.5px;
  white-space: nowrap;
}
.cine-bar {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
/* A taller click area than the 2px line it draws. */
.cine-bar::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; bottom: -14px; }
.cine-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #ffffff; }
.cine-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cine :focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
@media (max-width: 700px) {
  .cine-top { top: 14px; left: 16px; right: 16px; grid-template-columns: 1fr auto; row-gap: 6px; font-size: 13px; }
  .cine-meta { grid-column: 1 / -1; grid-row: 2; gap: 14px; }
  .cine-count { grid-column: 1; grid-row: 1; justify-self: start; }
  .cine-close { grid-column: 2; grid-row: 1; }
  .cine-stage { inset: 92px 16px 88px; }
  .cine-nav { display: none; }
  .cine-controls { left: 16px; right: 16px; bottom: 18px; gap: 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cine, .cine-img, .cine-nav { transition: none; }
}
