From 0cb61910ad25a9918d6897d7058c6039705a6009 Mon Sep 17 00:00:00 2001 From: "Kent Joseph T. Palima" Date: Thu, 30 Apr 2026 12:06:01 +0800 Subject: [PATCH] Modified Executive Committee page --- src/styles/executive-committee.scss | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/styles/executive-committee.scss b/src/styles/executive-committee.scss index 2dac68a..76f5c1d 100644 --- a/src/styles/executive-committee.scss +++ b/src/styles/executive-committee.scss @@ -8,7 +8,6 @@ margin: 0 auto; min-height: 100vh; - /* Matches the exact size and weight of Current Active Members */ h1 { text-align: center; color: $primary; @@ -26,9 +25,7 @@ img { width: 100%; - height: auto; - max-height: 500px; /* Prevents the banner from getting absurdly tall on massive screens */ - object-fit: cover; + height: auto; /* Allows the image to scale naturally based on its native aspect ratio */ display: block; } } @@ -45,15 +42,14 @@ box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; - /* Adds a subtle hover effect to make the photos feel interactive */ &:hover { transform: translateY(-5px); } img { width: 100%; - height: 100%; - aspect-ratio: 3 / 4; /* Standard portrait ratio. Adjust if your photos are squares! */ + height: auto; + aspect-ratio: 1 / 1; /* CHANGED: Forces the images to be perfectly square */ object-fit: cover; display: block; } @@ -66,7 +62,6 @@ @media screen and (max-width: 1024px) { .execomm-section { .photo-grid { - /* Drop to 2 columns on tablets so the photos don't get too skinny */ grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } @@ -75,12 +70,12 @@ @media screen and (max-width: 768px) { .execomm-section { - padding-top: 7rem; /* Safely clears the fixed mobile navigation bar */ + padding-top: 7rem; padding-bottom: 4rem; padding-inline: 1rem; h1 { - font-size: 2rem; /* Scales down exactly like Current Members */ + font-size: 2rem; margin-bottom: 2rem; } @@ -94,9 +89,8 @@ @media screen and (max-width: 480px) { .execomm-section { .photo-grid { - /* Drop to 1 column on phones to keep the embedded text readable */ grid-template-columns: repeat(1, 1fr); gap: 1.5rem; } } -} +} \ No newline at end of file