/* polaroid.css —— 从 photography.css 拆出（原第 302-407 行）
   拍立得画廊
   拆分日期：2026-10-30 */

/* ---------- 拍立得画廊（其它摄影页使用） ---------- */
.polaroid-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.clothesline {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 2rem 0 3rem;
  border-radius: 2px;
}

.polaroid-item {
  position: relative;
  width: 240px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.polaroid-item:hover {
  transform: translateY(-10px) rotate(1deg);
}
.polaroid-item::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 26px;
  background: var(--accent-color);
  clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 20% 100%);
  z-index: 10;
}
.polaroid-item::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 6px;
  background: #E5B37A;
  border-radius: 3px;
  z-index: 9;
}

.polaroid-frame {
  background: var(--bg-card);
  padding: 18px 18px 55px;
  box-shadow: var(--shadow-md);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.polaroid-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(135deg, transparent 8px, #FFD700 8px);
  border-radius: 4px 4px 0 0;
}
.polaroid-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 2px;
  background: #f0f0f0;
}
.polaroid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.polaroid-item:hover .polaroid-image img {
  transform: scale(1.05);
}
.polaroid-footer {
  position: absolute;
  bottom: 15px;
  left: 18px;
  right: 18px;
  text-align: center;
  border-top: 2px dashed #e0e0e0;
  padding-top: 10px;
}
.polaroid-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.polaroid-date {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
}

