/* ============ 画廊 ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.g-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  isolation: isolate;
}
.g-item:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 46, 107, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 46, 107, 0.15);
  z-index: 2;
}

.g-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.g-item:hover .g-img { transform: scale(1.06); }

.g-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(14, 10, 30, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  z-index: 1;
}

.g-jp {
  font-family: 'Noto Sans SC', 'Noto Sans JP', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--pink-soft);
  margin-bottom: 6px;
  font-weight: 500;
}
.g-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.g-tag {
  font-size: 10px;
  color: var(--text-dimmer);
  letter-spacing: 2px;
  margin-top: 4px;
  text-transform: uppercase;
}

/* 角标 */
.g-corner {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: #fff;
  text-transform: uppercase;
}
