/* Photo Modal */
.phototube-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 22, 22, 0.516);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.phototube-modal-overlay.show {
  display: flex;
  opacity: 1;
}

#phototube-modal-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
}

#phototube-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background 0.2s ease;
}

#phototube-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.phototube-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10000;
}

.phototube-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.phototube-nav-btn.left {
  left: 30px;
}

.phototube-nav-btn.right {
  right: 30px;
}

/* Адаптив */
@media (max-width: 768px) {
  .phototube-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .phototube-nav-btn.left { left: 10px; }
  .phototube-nav-btn.right { right: 10px; }
  #phototube-modal-close {
    top: 10px;
    right: 10px;
    font-size: 28px;
  }
}