/* PicPlug420 - scroll infinito y carga de fotos */
@keyframes pp-aparecer {
    from { opacity: 0; transform: translateY(30px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
.item-infinito.aparecer {
    animation: pp-aparecer .6s cubic-bezier(.2, .7, .2, 1) both;
}
.infinito-aviso {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 0 60px;
    color: #fff;
    font-size: 14px;
    letter-spacing: .05em;
    opacity: 0;
    transition: opacity .3s;
}
.infinito-aviso.activo,
.infinito-aviso:has(button) { opacity: 1; }
.infinito-logo {
    width: 70px;
    animation: pp-latido 1s ease-in-out infinite;
}
@keyframes pp-latido {
    0%, 100% { transform: scale(1); opacity: .6; }
    50%      { transform: scale(1.12); opacity: 1; }
}
.infinito-boton {
    background: #f8d800;
    color: #0c0c0c;
    border: 0;
    padding: 10px 28px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

/* Fotos de los álbumes: mientras cargan se ve el logo, sin romper la grilla */
.Album img.foto-album {
    display: block;
    height: auto;
    background: #141414 url('/assets/img/logo.png') center / 22% no-repeat;
    transition: opacity .5s;
}
.Album img.foto-album.foto-cargando {
    animation: pp-latido-fondo 1.4s ease-in-out infinite;
}
@keyframes pp-latido-fondo {
    0%, 100% { background-color: #141414; }
    50%      { background-color: #1f1f1f; }
}
.Album img.foto-album.foto-lista {
    background: none;
}
@media (prefers-reduced-motion: reduce) {
    .item-infinito.aparecer, .infinito-logo, .Album img.foto-album.foto-cargando { animation: none; }
}

/* Galería a pantalla completa */
.pp-galeria { position: fixed; inset: 0; z-index: 2147483647; background: #080808; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.pp-galeria.abierta { display: flex; opacity: 1; animation: pp-fundido .25s ease; }
@keyframes pp-fundido { from { opacity: 0; } to { opacity: 1; } }
.pp-galeria__escena { position: absolute; inset: 60px 70px; display: flex; align-items: center; justify-content: center; }
.pp-galeria__foto { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transform: scale(.98); transition: opacity .35s, transform .35s; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.pp-galeria__foto.lista { opacity: 1; transform: none; }
.pp-galeria__cargando { position: absolute; width: 80px; animation: pp-latido 1s ease-in-out infinite; }
.pp-galeria__arriba { position: absolute; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: #fff; z-index: 2; font-size: 15px; letter-spacing: .1em; }
.pp-galeria__cerrar { background: none; border: 0; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; }
.pp-galeria__flecha { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.08); border: 0; color: #fff; font-size: 48px; width: 56px; height: 80px; cursor: pointer; transition: background .2s, color .2s; }
.pp-galeria__flecha:hover { background: #f8d800; color: #0c0c0c; }
.pp-galeria__flecha--izq { left: 8px; }
.pp-galeria__flecha--der { right: 8px; }
@media (max-width: 768px) {
  .pp-galeria__escena { inset: 60px 0 20px; }
  .pp-galeria__flecha { width: 40px; height: 60px; font-size: 36px; background: rgba(0,0,0,.35); }
}
