/* ---------- huecos: lo que aún falta (foto, vídeo) se ve como el visor de una cámara ----------
   <figure class="ph" data-ph="portfolio/restaurante-01.webp" data-ratio="4/5"></figure>
   <figure class="ph" data-kind="video" data-ph="..." data-ratio="16/9" data-label="FALTA SHOWREEL · 16:9 · 30–60 s"></figure>
   js/placeholder.js pone el ratio y el rótulo. Cuando el archivo exista se cambia el contenido por un
   <img>/<video> normal dentro de la misma .ph (con su data-ratio): el diseño no se mueve.
   Lista de huecos: PENDIENTES.md. Los textos BORRADOR llevan data-draft (sin estilo: solo para buscarlos). */
.ph {
  --ph-ratio: 4 / 5;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: var(--ph-ratio);
  overflow: hidden;
  background: #141111;
  color: #c9c0bb;
}
.ph > img,
.ph > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 4 escuadras de encuadre */
.ph__c {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid #F35411;
}
.ph__c--tl { left: 12px; top: 12px; border-width: 1.5px 0 0 1.5px; }
.ph__c--tr { right: 12px; top: 12px; border-width: 1.5px 1.5px 0 0; }
.ph__c--bl { left: 12px; bottom: 12px; border-width: 0 0 1.5px 1.5px; }
.ph__c--br { right: 12px; bottom: 12px; border-width: 0 1.5px 1.5px 0; }
.ph__label {
  display: grid;
  gap: 6px;
  padding: 0 28px;
  text-align: center;
  font: 400 11px / 1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ph__file {
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #8a807c;
  overflow-wrap: anywhere;
}
/* vídeo: punto REC que parpadea suave */
.ph__rec {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff2b2b;
  vertical-align: 1px;
  animation: ph-rec 2.4s ease-in-out infinite;
}
@keyframes ph-rec { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) {
  .ph__rec { animation: none; }
}
