.overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.grid-rule-of-thirds {
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  gap: 0;
}

.grid-rule-of-thirds::before,
.grid-rule-of-thirds::after {
  content: '';
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cinemascope-235 {
  border-top: 2px solid red;
  border-bottom: 2px solid red;
  aspect-ratio: 2.35/1;
}

.crosshair {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid cyan;
}

.overlay-layer {
  position: absolute;
  inset: 0;
  display: grid;
  pointer-events: none;
}

.overlay-layer .guide {
  border: 1px dashed rgba(255, 255, 255, 0.4);
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px,
    transparent 12px
  );
  mix-blend-mode: screen;
}

.overlay-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.overlay-pill {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #e2e8f0;
  pointer-events: auto;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.overlay-pill.active {
  border-color: rgba(125, 211, 252, 0.8);
  background: rgba(125, 211, 252, 0.15);
}

@media (max-width: 640px) {
  .overlay-toggle-row {
    gap: 8px;
  }
}
