/* ---------- "See All" button on onswerk.php ---------- */
.see-all-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.see-all-btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.see-all-btn:hover {
  background: currentColor;
  transform: translateY(-2px);
}

.see-all-btn:hover {
  color: #fff;
}

/* ---------- allwerk.php grid page ---------- */
.all-work-section {
  padding: 6rem 1.5rem;
  text-align: center;
}

.all-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1400px;
  margin: 2.5rem auto 0;
}

.all-work-item {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.all-work-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.all-work-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 3px; /* optically center the triangle */
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.all-work-item:hover .play-icon-overlay {
  opacity: 1;
}

@media (max-width: 640px) {
  .all-work-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }
}

/* ---------- Video pop-out modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.video-modal.open {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.9);
  transition: transform 0.25s ease;
}

.video-modal.open .video-modal-content {
  transform: scale(1);
}

.video-modal-content video {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  display: block;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: -2.2rem;
  right: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}