/* YLGP album grid alignment 2026-10-19 */
.album-grid > p:has(> a.album-card:empty):not(:has(img, h2, figure)),
.album-grid > a.album-card:empty,
.album-grid > a.album-card > p:empty {
  display: none;
}
.album-grid { align-items: stretch; }
.album-grid > a.album-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}
.album-grid .ylgp-album-new {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-block;
  padding: 5px 10px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #c51d24;
  color: #fff;
  font: 800 15px/1.2 Arial, sans-serif;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
  pointer-events: none;
}
.album-grid > a.album-card > .album-image {
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  box-sizing: border-box;
}
.album-grid > a.album-card > .album-image > img {
  object-fit: contain;
  object-position: center;
}
@media (max-width: 900px) {
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .album-grid { grid-template-columns: minmax(0, 1fr); }
}
