diff --git a/css/portfolio.css b/css/portfolio.css
index 79cd808..7cd72de 100644
--- a/css/portfolio.css
+++ b/css/portfolio.css
@@ -1,12 +1,19 @@
#portfolio-grid {
display: grid;
- grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
grid-auto-flow: dense;
- gap: 0.5rem;
+ gap: 1.5rem;
& > * {
overflow: hidden;
- border-radius: var(--small-border-radius);
+ border-radius: var(--border-radius);
+ transition: transform 0.3s, box-shadow 0.3s;
+ position: relative;
+ }
+
+ & > *:hover {
+ transform: translateY(-8px);
+ box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
& img {
@@ -14,6 +21,11 @@
width: 100%;
height: 100%;
object-fit: cover;
+ transition: transform 0.5s;
+ }
+
+ & > *:hover img {
+ transform: scale(1.08);
}
& > :nth-child(7n) {
diff --git a/html/portfolio.templ b/html/portfolio.templ
index 6c86016..3d62e6c 100644
--- a/html/portfolio.templ
+++ b/html/portfolio.templ
@@ -7,7 +7,9 @@ templ Portfolio(images []string) {