body {
  font-family: Arial, sans-serif;
  margin: 40px auto;
  padding: 0 20px;
  background-color: #111;
  color: #e0e0e0;
  max-width: 1200px;
}

body.noscroll {
  height: 100vh;
  overflow: hidden;
}

h1,
.info {
  text-align: center;
}

.info {
  margin-bottom: 20px;
  color: #ccc;
  font-size: 15px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.video-card {
  background: #1e1e1e;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: none;
  width: 100%;
  overflow: hidden;
}

.video-card img {
  height: auto;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.video-card .filename {
  font-size: 14px;
  margin-bottom: 6px;
  word-break: break-word;
  color: #ddd;
}

.video-card .download-btn {
  color: white;
  background-color: #0070f3;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  margin-top: auto;
}

.video-card .download-btn:disabled {
  background-color: #555;
  color: #888;
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.video-card .download-btn.clicked {
  background-color: purple;
}

.video-card a.download-btn:hover {
  background-color: #0055c2;
}

.video-card .download-btn:disabled:hover {
  background-color: #555;
}

details {
  margin-bottom: 30px;
}

summary {
  font-size: 1.4em;
  font-weight: bold;
  cursor: pointer;
  margin: 20px 0 10px 0;
  color: #fff;
}

@media (max-width: 500px) {
  .kofi-wrapper {
    bottom: 10px;
  }
}

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
  touch-action: none;
  overscroll-behavior: contain;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

#lightbox img:active {
  cursor: grabbing;
}

#lightbox[hidden] {
  display: none;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.details-controls {
  display: flex;
  gap: 12px;
  margin: 20px 0 10px;
}

.details-controls button {
  background: #0070f3;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font: 14px/1.2 Arial, sans-serif;
  cursor: pointer;
}

.details-controls button:hover   { background: #0059c0; }
.details-controls button:active  { background: #00459d; }