diff --git a/css/styles.css b/css/styles.css
index f35a254..c559fc1 100644
--- a/css/styles.css
+++ b/css/styles.css
@@ -1,3 +1,23 @@
+/* ==========================================================================
+ Layout Stability
+ ========================================================================== */
+
+/* Reserve scrollbar gutter to prevent layout shift when body.overflow
+ toggles between auto and hidden (openModal/closeModal). This stops
+ the page from "jumping" when the user opens or closes a project modal. */
+html {
+ scrollbar-gutter: stable;
+}
+
+/* When a modal is open, prevent background scroll without causing the
+ scrollbar to disappear (which would shift the layout). */
+body.modal-open {
+ overflow: hidden;
+ /* Compensate for any scrollbar difference on platforms where
+ scrollbar-gutter isn't fully respected. */
+ padding-right: var(--scrollbar-width, 0px);
+}
+
/* ==========================================================================
Self-Hosted Fonts & Icons
========================================================================== */
@@ -60,37 +80,16 @@
src: url('../fonts/instrument/instrument-serif-v5-latin-italic.woff2') format('woff2');
}
-/* Material Symbols Outlined */
-@font-face {
- font-display: block;
- font-family: 'Material Symbols Outlined';
- font-style: normal;
- font-weight: 100 700;
- src: url('../fonts/material-symbols-outlined.woff2') format('woff2');
-}
+/* Material Symbols replaced by inline SVGs (see .icon below) */
-.material-symbols-outlined {
- font-family: 'Material Symbols Outlined';
- font-weight: normal;
- font-style: normal;
- font-size: 24px;
+/* Inline icon (replaces Material Symbols font) */
+.icon {
width: 1em;
height: 1em;
- overflow: hidden;
- line-height: 1;
- letter-spacing: normal;
- text-transform: none;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- white-space: nowrap;
- word-wrap: normal;
- direction: ltr;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- -moz-osx-font-smoothing: grayscale;
- font-feature-settings: 'liga';
- -webkit-font-feature-settings: 'liga';
+ fill: currentColor;
+ flex-shrink: 0;
+ vertical-align: middle;
+ display: inline-block;
}
/* Glass Morphism Effect */
diff --git a/fonts/material-symbols-outlined.woff2 b/fonts/material-symbols-outlined.woff2
deleted file mode 100644
index a876954..0000000
Binary files a/fonts/material-symbols-outlined.woff2 and /dev/null differ
diff --git a/huella.html b/huella.html
index 94f64c5..a87b6c0 100644
--- a/huella.html
+++ b/huella.html
@@ -29,7 +29,6 @@
},
};
-
-