From 4fbabab8005d96d2bdb976da3a99dd9a66ff8617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estelle=20K=C3=B6hler?= Date: Thu, 23 Apr 2026 07:55:30 +0200 Subject: [PATCH 1/3] Instagram Herze und Kommentare overlay auf den Fotos. --- css/index.css | 46 ++++++++++++++++++++ index.html | 113 +++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 145 insertions(+), 14 deletions(-) diff --git a/css/index.css b/css/index.css index cb991d7..29bb4d3 100644 --- a/css/index.css +++ b/css/index.css @@ -233,6 +233,52 @@ object-fit: cover; } +/* ========================================= + NEW INSTAGRAM HOVER STYLES START HERE + ========================================= */ + +.ig-post-wrapper { + position: relative; + width: 100%; + height: 100%; /* Ensures it fills the existing gallery__item */ + aspect-ratio: 1 / 1; + overflow: hidden; + cursor: pointer; +} + +.ig-post-wrapper img { + width: 100%; + height: 100%; + object-fit: cover; + display: block; +} + +.ig-overlay { + position: absolute; + inset: 0; + background-color: rgba(0, 0, 0, 0.4); + display: flex; + justify-content: center; + align-items: center; + gap: 24px; + color: #ffffff; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; + font-weight: 600; + font-size: 1.1rem; + opacity: 0; + transition: opacity 0.2s ease-in-out; +} + +.ig-post-wrapper:hover .ig-overlay { + opacity: 1; +} + +.ig-overlay span { + display: flex; + align-items: center; + gap: 8px; +} + .gallery__arrow { position: absolute; display: grid; diff --git a/index.html b/index.html index 21e0eba..fe890e6 100644 --- a/index.html +++ b/index.html @@ -82,7 +82,7 @@