diff --git a/src/layouts/PostLayout.astro b/src/layouts/PostLayout.astro
index 82f306e..dbbcad2 100644
--- a/src/layouts/PostLayout.astro
+++ b/src/layouts/PostLayout.astro
@@ -100,12 +100,12 @@ const year = date.getFullYear();
Full-size image
Click outside or press Esc to close
-
+
-
-
+
+
diff --git a/src/styles/global.css b/src/styles/global.css
index a4210b8..5972648 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -183,8 +183,7 @@ code {
right: 1rem;
background: var(--color-primary);
border: none;
- color: white;
- font-size: 1.5rem;
+ font-size: 0;
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
@@ -196,6 +195,24 @@ code {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
+.lightbox-close::before,
+.lightbox-close::after {
+ content: '';
+ position: absolute;
+ width: 1.1rem;
+ height: 2.5px;
+ background: white;
+ border-radius: 1px;
+}
+
+.lightbox-close::before {
+ transform: rotate(45deg);
+}
+
+.lightbox-close::after {
+ transform: rotate(-45deg);
+}
+
.lightbox-close:hover {
background: var(--color-primary-hover);
transform: scale(1.1);
@@ -227,7 +244,7 @@ code {
background: var(--color-primary);
border: none;
color: white;
- font-size: 2rem;
+ font-size: 0;
width: 3rem;
height: 3rem;
border-radius: 50%;
@@ -240,6 +257,25 @@ code {
z-index: 10;
}
+.lightbox-nav::before {
+ content: '';
+ display: block;
+ width: 0.6rem;
+ height: 0.6rem;
+ border-top: 2.5px solid white;
+ border-right: 2.5px solid white;
+}
+
+.lightbox-prev::before {
+ transform: rotate(-135deg);
+ margin-left: 0.2rem;
+}
+
+.lightbox-next::before {
+ transform: rotate(45deg);
+ margin-right: 0.2rem;
+}
+
.lightbox-nav:hover:not(.disabled) {
background: var(--color-primary-hover);
transform: translateY(-50%) scale(1.1);