/* Hochzeit Natalie & Peter - Erweiterte Styles mit Pagination */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Crimson Text", serif;
  background: linear-gradient(135deg, #2d5a3d 0%, #1e3a2a 50%, #0f2317 100%);
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  pointer-events: none;
  z-index: -1;
}

/* Container Styles */
.container {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(248, 245, 238, 0.98);
  border-radius: 0;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(45, 90, 61, 0.2);
  position: relative;
}

.container.wide {
  max-width: 600px;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2d5a3d, #4a7c5a, #2d5a3d);
}

/* Config Loader Styles */
.config-loader {
  text-align: center;
  padding: 50px;
  color: #2d5a3d;
  font-family: "Crimson Text", serif;
}

.config-loader .spinner {
  border: 4px solid rgba(45, 90, 61, 0.1);
  border-left: 4px solid #2d5a3d;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.config-loader h3 {
  color: #2d5a3d;
  margin-bottom: 15px;
  font-family: "Amatic SC", cursive;
  font-size: 24px;
}

.config-loader p {
  color: #4a5a4f;
  font-size: 16px;
  line-height: 1.6;
}

/* Header Styles */
.header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.header::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2d5a3d, transparent);
}

.event-name {
  font-family: "Amatic SC", cursive;
  font-size: 24px;
  color: #2d5a3d;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

h1 {
  color: #2d5a3d;
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: 700;
  font-family: "Dancing Script", cursive;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(45, 90, 61, 0.1);
}

h1.small {
  font-size: 42px;
}

h2 {
  color: #2d5a3d;
  font-size: 28px;
  margin-bottom: 20px;
  margin-top: 30px;
  font-family: "Amatic SC", cursive;
  font-weight: 700;
  letter-spacing: 0.5px;
}

h3 {
  color: #2d5a3d;
  font-size: 20px;
  margin-bottom: 15px;
  margin-top: 25px;
  font-family: "Crimson Text", serif;
  font-weight: 600;
}

p {
  color: #4a5a4f;
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 16px;
}

.subtitle {
  color: #4a5a4f;
  font-size: 16px;
  line-height: 1.6;
  font-family: "Crimson Text", serif;
  font-style: italic;
  margin-top: 10px;
}

/* Upload Area Styles */
.upload-area {
  border: 2px dashed #4a7c5a;
  border-radius: 0;
  padding: 50px 20px;
  text-align: center;
  margin: 40px 0;
  cursor: pointer;
  transition: all 0.4s ease;
  background: linear-gradient(145deg, #f8f5ee, #f0ede4);
  position: relative;
  overflow: hidden;
}

.upload-area::before {
  content: "🌿";
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 20px;
  opacity: 0.3;
}

.upload-area::after {
  content: "🌿";
  position: absolute;
  bottom: 15px;
  right: 20px;
  font-size: 20px;
  opacity: 0.3;
  transform: rotate(180deg);
}

.upload-area:hover {
  border-color: #2d5a3d;
  background: linear-gradient(145deg, #f0ede4, #e8e3d8);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 90, 61, 0.15);
}

.upload-area.dragover {
  border-color: #1e3a2a;
  background: linear-gradient(145deg, #e8e3d8, #ddd6c8);
  transform: scale(1.01);
  border-style: solid;
}

#fileInput {
  display: none;
}

.upload-icon {
  font-size: 64px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  filter: sepia(100%) hue-rotate(90deg) saturate(0.8);
}

.upload-text {
  color: #2d5a3d;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  font-family: "Amatic SC", cursive;
  letter-spacing: 0.5px;
}

.upload-hint {
  color: #4a5a4f;
  font-size: 14px;
  position: relative;
  z-index: 2;
  font-family: "Crimson Text", serif;
  font-style: italic;
  line-height: 1.4;
}

/* Enhanced Preview Styles */
.preview-container {
  margin: 25px 0;
  text-align: center;
  position: relative;
}

.preview-item {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(45, 90, 61, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(45, 90, 61, 0.1);
}

.preview-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.preview-image:hover {
  transform: scale(1.02);
}

.image-info {
  background: rgba(45, 90, 61, 0.05);
  padding: 12px 20px;
  border-radius: 0;
  margin-top: 15px;
  font-size: 14px;
  color: #4a5a4f;
  font-family: "Crimson Text", serif;
  border: 1px solid rgba(45, 90, 61, 0.1);
}

/* Enhanced Progress Styles */
.progress-container {
  margin: 25px 0;
  display: none;
  background: rgba(45, 90, 61, 0.05);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(45, 90, 61, 0.1);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.progress-header #progressTitle {
  font-family: "Amatic SC", cursive;
  font-size: 20px;
  color: #2d5a3d;
  font-weight: 700;
}

.progress-header #progressStats {
  font-family: "Crimson Text", serif;
  font-size: 14px;
  color: #4a5a4f;
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(45, 90, 61, 0.2);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2d5a3d, #4a7c5a, #2d5a3d);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 6px;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(248, 245, 238, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

.progress-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

.progress-details .current-file {
  font-family: "Crimson Text", serif;
  font-size: 12px;
  color: #2d5a3d;
  font-weight: 600;
  text-align: left;
}

.progress-details .queue-status {
  font-family: "Crimson Text", serif;
  font-size: 12px;
  color: #4a5a4f;
  text-align: right;
}

.offline-indicator {
  background: linear-gradient(135deg, #fdf2f2, #f8d7da);
  color: #721c24;
  padding: 10px 15px;
  border-radius: 0;
  margin-top: 15px;
  font-family: "Amatic SC", cursive;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border-left: 4px solid #dc3545;
}

.progress-text {
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
  color: #2d5a3d;
  font-family: "Amatic SC", cursive;
  font-size: 18px;
  letter-spacing: 0.5px;
}

/* Service Worker Status */
.sw-status {
  background: rgba(74, 124, 90, 0.1);
  padding: 10px 15px;
  border-radius: 0;
  margin: 20px 0;
  border-left: 4px solid #4a7c5a;
}

.sw-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Crimson Text", serif;
  font-size: 14px;
  color: #2d5a3d;
}

.queue-count {
  background: #4a7c5a;
  color: #f8f5ee;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Button Styles */
.upload-button {
  width: 100%;
  background: linear-gradient(135deg, #2d5a3d 0%, #1e3a2a 100%);
  color: #f8f5ee;
  border: none;
  padding: 18px;
  border-radius: 0;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  font-family: "Amatic SC", cursive;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.upload-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(248, 245, 238, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.upload-button:hover::before {
  left: 100%;
}

.upload-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 90, 61, 0.3);
  background: linear-gradient(135deg, #4a7c5a 0%, #2d5a3d 100%);
}

.upload-button:disabled {
  background: #a0a8a0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.upload-button:disabled::before {
  display: none;
}

.back-link {
  display: inline-block;
  color: #2d5a3d;
  text-decoration: none;
  font-family: "Amatic SC", cursive;
  font-size: 18px;
  font-weight: 700;
  padding: 10px 20px;
  border: 2px solid #2d5a3d;
  border-radius: 0;
  transition: all 0.3s ease;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.back-link:hover {
  background: #2d5a3d;
  color: #f8f5ee;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(45, 90, 61, 0.3);
}

/* Status Message Styles */
.status-message {
  margin: 30px 0;
  padding: 20px;
  border-radius: 0;
  text-align: center;
  font-weight: 600;
  animation: slideIn 0.5s ease;
  font-family: "Crimson Text", serif;
  border-left: 4px solid;
}

.success {
  background: linear-gradient(135deg, #e8f5e8, #d4edda);
  color: #2d5a3d;
  border-left-color: #4a7c5a;
}

.error {
  background: linear-gradient(135deg, #fdf2f2, #f8d7da);
  color: #721c24;
  border-left-color: #dc3545;
}

.info {
  background: linear-gradient(135deg, #f0ede4, #e8e3d8);
  color: #2d5a3d;
  border-left-color: #4a7c5a;
}

/* Special Content Styles */
.contact-info {
  background: rgba(45, 90, 61, 0.05);
  padding: 25px;
  border-radius: 0;
  margin: 25px 0;
  border-left: 4px solid #4a7c5a;
}

.contact-info h3 {
  margin-top: 0;
}

.content {
  margin-top: 30px;
}

/* Footer Styles */
.footer {
  text-align: center;
  margin-top: 40px;
  color: #4a5a4f;
  font-size: 14px;
  font-family: "Crimson Text", serif;
  font-style: italic;
  padding-top: 20px;
  border-top: 1px solid rgba(45, 90, 61, 0.1);
}

.footer-link {
  color: #4a7c5a;
  text-decoration: none;
  font-size: 14px;
  font-family: "Crimson Text", serif;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #2d5a3d;
}

/* Navigation Styles */
.page-navigation {
  text-align: center;
  margin: 30px 0;
  padding: 25px 20px;
  background: rgba(45, 90, 61, 0.05);
  border: 2px solid rgba(45, 90, 61, 0.15);
  border-radius: 0;
  position: relative;
}

.page-navigation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2d5a3d, #4a7c5a, #2d5a3d);
}

.nav-button {
  display: inline-block;
  margin: 8px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #4a7c5a 0%, #2d5a3d 100%);
  color: #f8f5ee;
  text-decoration: none;
  border-radius: 0;
  font-family: "Amatic SC", cursive;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-width: 180px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nav-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(248, 245, 238, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.nav-button:hover::before {
  left: 100%;
}

.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(45, 90, 61, 0.4);
  background: linear-gradient(135deg, #2d5a3d 0%, #1e3a2a 100%);
  border-color: rgba(248, 245, 238, 0.3);
}

.nav-button:active {
  transform: translateY(-1px);
}

/* Navigation Grid Layouts */
.nav-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.nav-grid .nav-button {
  margin: 0;
  min-width: 180px;
  flex: 0 1 auto;
}

.nav-grid .nav-button:last-child {
  grid-column: 1 / -1;
  max-width: 200px;
  margin: 10px auto 0;
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  gap: 15px;
  margin: 30px 0;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.gallery-item {
  background: rgba(45, 90, 61, 0.05);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(45, 90, 61, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(45, 90, 61, 0.25);
}

.gallery-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  transition: transform 0.3s ease;
  background: #f8f5ee;
  cursor: pointer;
}

.gallery-image-container {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.gallery-button {
  flex: 1;
  background: linear-gradient(135deg, #2d5a3d 0%, #1e3a2a 100%);
  color: #f8f5ee;
  border: none;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Amatic SC", cursive;
  letter-spacing: 0.3px;
}

.gallery-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(45, 90, 61, 0.3);
}

.gallery-button.secondary {
  background: linear-gradient(135deg, #4a7c5a 0%, #2d5a3d 100%);
}

/* Load More Button Styles - NEW */
.load-more-section {
  text-align: center;
  margin: 40px 0;
  padding: 30px 20px;
  background: linear-gradient(
    135deg,
    rgba(45, 90, 61, 0.02),
    rgba(74, 124, 90, 0.05)
  );
  border-radius: 12px;
  border: 2px dashed rgba(45, 90, 61, 0.3);
  position: relative;
}

.load-more-info {
  font-family: "Crimson Text", serif;
  color: #4a5a4f;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.load-more-stats {
  font-family: "Amatic SC", cursive;
  color: #2d5a3d;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
}

.load-more-button {
  background: linear-gradient(135deg, #4a7c5a 0%, #2d5a3d 100%);
  color: #f8f5ee;
  border: none;
  padding: 18px 40px;
  border-radius: 0;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Amatic SC", cursive;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  min-width: 280px;
}

.load-more-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(248, 245, 238, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.load-more-button:hover::before {
  left: 100%;
}

.load-more-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(45, 90, 61, 0.4);
  background: linear-gradient(135deg, #2d5a3d 0%, #1e3a2a 100%);
}

.load-more-button:disabled {
  background: #a0a8a0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.load-more-button:disabled::before {
  display: none;
}

.load-more-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: "Amatic SC", cursive;
  font-size: 20px;
  color: #2d5a3d;
  font-weight: 700;
}

.load-more-loading .spinner {
  border: 3px solid rgba(45, 90, 61, 0.1);
  border-left: 3px solid #2d5a3d;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  animation: spin 1s linear infinite;
}

.load-more-loading.active {
  display: flex;
}

/* New Images Animation - NEW */
.gallery-item.new-loaded {
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Batch Info - NEW */
.batch-info {
  background: rgba(74, 124, 90, 0.1);
  padding: 12px 20px;
  border-radius: 0;
  margin: 20px 0;
  text-align: center;
  border-left: 4px solid #4a7c5a;
}

.batch-info-text {
  font-family: "Crimson Text", serif;
  color: #2d5a3d;
  font-size: 16px;
  font-weight: 600;
}

/* Control Styles */
.gallery-controls {
  display: grid;
  gap: 15px;
  margin: 20px 0;
  padding: 20px;
  background: rgba(45, 90, 61, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(45, 90, 61, 0.1);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.control-label {
  font-family: "Amatic SC", cursive;
  font-size: 16px;
  color: #2d5a3d;
  font-weight: 700;
}

.control-select,
.control-input {
  padding: 8px 12px;
  border: 2px solid #4a7c5a;
  border-radius: 0;
  background: #f8f5ee;
  color: #2d5a3d;
  font-family: "Crimson Text", serif;
  font-size: 14px;
}

.refresh-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 25px;
  background: #a0a8a0;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch.active {
  background: #4a7c5a;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background: #f8f5ee;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
  transform: translateX(25px);
}

.refresh-status {
  font-family: "Crimson Text", serif;
  font-size: 12px;
  color: #4a7c5a;
  font-weight: 600;
}

.refresh-countdown {
  background: rgba(45, 90, 61, 0.1);
  padding: 8px 12px;
  border-radius: 0;
  font-family: "Amatic SC", cursive;
  font-size: 16px;
  color: #2d5a3d;
  border: 1px solid rgba(45, 90, 61, 0.2);
}

.stats-display {
  background: linear-gradient(135deg, #e8f5e8, #d4edda);
  padding: 15px 20px;
  border-radius: 0;
  margin: 20px 0;
  border-left: 4px solid #4a7c5a;
}

.stats-text {
  font-family: "Crimson Text", serif;
  color: #2d5a3d;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-family: "Amatic SC", cursive;
  font-size: 24px;
  color: #2d5a3d;
}

.spinner {
  border: 4px solid rgba(45, 90, 61, 0.1);
  border-left: 4px solid #2d5a3d;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-right: 15px;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: 5% auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f8f5ee;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
  background: rgba(45, 90, 61, 0.7);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.lightbox-close:hover {
  background: rgba(45, 90, 61, 0.9);
}

.lightbox-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(45, 90, 61, 0.9);
  color: #f8f5ee;
  padding: 15px 20px;
  border-radius: 0;
  font-family: "Crimson Text", serif;
}

.lightbox-filename {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.lightbox-meta {
  font-size: 14px;
  opacity: 0.8;
}

/* Enhanced Navigation Buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(45, 90, 61, 0.8);
  color: #f8f5ee;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(248, 245, 238, 0.3);
}

.lightbox-nav:hover {
  background: rgba(45, 90, 61, 0.95);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(45, 90, 61, 0.5);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%) scale(0.9);
}

.lightbox-nav:disabled:hover {
  background: rgba(45, 90, 61, 0.8);
  transform: translateY(-50%) scale(0.9);
  box-shadow: none;
}

/* Lightbox Image Counter */
.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(45, 90, 61, 0.8);
  color: #f8f5ee;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: "Amatic SC", cursive;
  font-size: 18px;
  font-weight: 700;
  z-index: 1001;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(248, 245, 238, 0.3);
}

/* Touch indicator for mobile */
.lightbox-touch-hint {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(45, 90, 61, 0.7);
  color: #f8f5ee;
  padding: 6px 12px;
  border-radius: 15px;
  font-family: "Amatic SC", cursive;
  font-size: 14px;
  opacity: 0;
  animation: fadeInOut 3s ease-in-out;
  pointer-events: none;
  z-index: 1001;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
}

/* Enhanced Features Indicators */
.media-type-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(45, 90, 61, 0.8);
  color: #f8f5ee;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 8px;
  font-family: "Amatic SC", cursive;
  font-weight: 700;
}

.thumbnail-indicator {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(74, 124, 90, 0.8);
  color: #f8f5ee;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 7px;
  font-family: "Amatic SC", cursive;
}

.processing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 90, 61, 0.8);
  color: #f8f5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: "Amatic SC", cursive;
}

/* Gallery Specific Info Elements */
.gallery-info {
  padding: 8px;
  background: rgba(248, 245, 238, 0.9);
}

.gallery-filename {
  font-family: "Crimson Text", serif;
  color: #2d5a3d;
  font-size: 11px;
  margin-bottom: 4px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-meta {
  font-family: "Crimson Text", serif;
  color: #4a5a4f;
  font-size: 9px;
  margin-bottom: 6px;
  line-height: 1.1;
}

.gallery-actions {
  display: flex;
  gap: 4px;
}

/* Animations */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
  .gallery-image {
    height: 140px;
  }
  .gallery-controls {
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
  }
}

@media (min-width: 1024px) {
  .gallery-controls {
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }
  .gallery-image {
    height: 120px;
  }
  .gallery-controls {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-controls {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .gallery-image {
    height: 100px;
  }
}

@media (min-width: 480px) and (max-width: 599px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  .gallery-image {
    height: 80px;
  }
}

@media (max-width: 767px) {
  .gallery-controls {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }
  .control-group {
    text-align: center;
  }
  .refresh-toggle {
    justify-content: center;
  }
  .progress-details {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  .progress-details .current-file,
  .progress-details .queue-status {
    text-align: center;
  }

  /* Load More Mobile Styles */
  .load-more-button {
    min-width: auto;
    width: 100%;
    font-size: 18px;
    padding: 15px 30px;
  }

  .load-more-section {
    margin: 30px 0;
    padding: 20px 15px;
  }

  /* Lightbox Mobile */
  .lightbox-content {
    max-width: 95%;
    max-height: 80%;
    margin: 10% auto;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 24px;
    width: 35px;
    height: 35px;
    background: rgba(45, 90, 61, 0.9);
  }

  .lightbox-counter {
    top: 10px;
    left: 10px;
    font-size: 16px;
    padding: 6px 12px;
  }

  .lightbox-info {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .lightbox-filename {
    font-size: 14px;
  }
  .lightbox-meta {
    font-size: 12px;
  }

  .lightbox-touch-hint {
    bottom: 60px;
    font-size: 12px;
  }

  /* Mobile Navigation Buttons */
  .lightbox-nav {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }
}

@media (max-width: 479px) {
  .container {
    padding: 25px;
    margin: 10px;
    border-radius: 0;
  }

  h1 {
    font-size: 40px;
  }

  h1.small {
    font-size: 36px;
  }

  h2 {
    font-size: 24px;
  }

  .upload-area {
    padding: 40px 15px;
  }

  .upload-icon {
    font-size: 48px;
  }

  .upload-text {
    font-size: 22px;
  }

  .event-name {
    font-size: 20px;
  }

  .page-navigation {
    margin: 20px 0;
    padding: 20px 15px;
  }

  .nav-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 250px;
  }

  .nav-grid .nav-button:last-child {
    grid-column: 1;
    margin: 0;
  }

  .nav-button {
    margin: 0;
    padding: 12px 20px;
    font-size: 18px;
    min-width: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  .gallery-image {
    height: 70px;
  }
}

/* Touch Device Optimizations */
.gallery-grid.touch-device .gallery-item {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(45, 90, 61, 0.1);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.gallery-grid.touch-device .gallery-item:active {
  transform: scale(0.98);
}

.gallery-grid.device-smartphone {
  padding: 0 5px;
}

.gallery-grid.device-tablet-portrait {
  padding: 0 10px;
}

/* Hover Effects for Desktop */
@media (hover: hover) {
  .gallery-item:hover .gallery-image {
    transform: scale(1.05);
  }
  .gallery-item {
    cursor: pointer;
  }
  .gallery-image-container {
    cursor: pointer;
  }
  .gallery-image-container::after {
    content: "👁️";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(45, 90, 61, 0.8);
    color: #f8f5ee;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
  }
  .gallery-item:hover .gallery-image-container::after {
    opacity: 1;
  }
}

/* Touch Device Specific */
@media (hover: none) {
  .gallery-item {
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  .gallery-item:active {
    transform: scale(0.95);
    opacity: 0.8;
  }
  .gallery-grid.touch-device .gallery-image-container::after {
    display: none;
  }
}

/* iOS Safari specific styles */
@supports (-webkit-appearance: none) {
  input[type="file"] {
    -webkit-appearance: none;
  }
}

/* Mobile-spezifische Upload-Hinweise */
@media (max-width: 768px) {
  .upload-hint::after {
    content: '\A📱"Fotomediathek" oder "Foto aufnehmen" wählen';
    white-space: pre;
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #4a7c5a;
    font-weight: 600;
  }
}

/* Swipe Animation for Touch Feedback */
.lightbox-content.swiping {
  transition: transform 0.1s ease-out;
}

.lightbox-content.swipe-left {
  transform: translateX(-20px);
}

.lightbox-content.swipe-right {
  transform: translateX(20px);
}

/* Print Styles */
@media print {
  body::before {
    display: none;
  }

  .upload-area,
  .progress-container,
  .nav-button,
  .page-navigation,
  .gallery-controls,
  .load-more-section {
    display: none;
  }

  .container {
    box-shadow: none;
    background: white;
  }
}
