diff --git a/src/components/Gallery.tsx b/src/components/Gallery.tsx
index 7a38b11..5451c69 100644
--- a/src/components/Gallery.tsx
+++ b/src/components/Gallery.tsx
@@ -3,6 +3,7 @@
/* eslint-disable @next/next/no-img-element */
import Image from "next/image";
import { useCallback, useEffect, useState } from "react";
+import { createPortal } from "react-dom";
import Reveal from "./Reveal";
import EmptyNote from "./EmptyNote";
import type { GalleryPhoto } from "@/lib/content";
@@ -241,9 +242,12 @@ export default function Gallery({ photos }: { photos: GalleryPhoto[] }) {
)}
- {open !== null && photos[open] && (
-