﻿/* Lightbox Actions */
.lightbox-actions-top {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 14px;
  z-index: 10010;
}

.lightbox-action-btn {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.lightbox-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-action-btn.delete {
  color: #ff4d4d;
}

/* Action Floating Menu */
.photo-action-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 20000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-action-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.photo-action-menu-card {
  width: 320px;
  background: rgba(30, 32, 40, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  padding: 55px 16px 16px 16px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 45px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.photo-action-menu-overlay.active .photo-action-menu-card {
  transform: scale(1);
}

.lp-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.lp-close-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.action-sheet-btn {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.action-sheet-btn span.lp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
}

.action-sheet-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.action-sheet-btn.delete {
  color: #ff4d4d;
}

.action-sheet-btn:last-child {
  margin-bottom: 0;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.lightbox-close {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10010;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 30px;
  padding: 15px;
  cursor: pointer;
  z-index: 2001;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  color: white;
  font-size: 1rem;
  background: rgba(0,0,0,0.6);
  padding: 5px 15px;
  border-radius: 15px;
}

