Modified Executive Committee page

This commit is contained in:
Kent Joseph T. Palima
2026-04-30 12:06:01 +08:00
parent a620a96172
commit 0cb61910ad
+6 -12
View File
@@ -8,7 +8,6 @@
margin: 0 auto; margin: 0 auto;
min-height: 100vh; min-height: 100vh;
/* Matches the exact size and weight of Current Active Members */
h1 { h1 {
text-align: center; text-align: center;
color: $primary; color: $primary;
@@ -26,9 +25,7 @@
img { img {
width: 100%; width: 100%;
height: auto; height: auto; /* Allows the image to scale naturally based on its native aspect ratio */
max-height: 500px; /* Prevents the banner from getting absurdly tall on massive screens */
object-fit: cover;
display: block; display: block;
} }
} }
@@ -45,15 +42,14 @@
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease; transition: transform 0.3s ease;
/* Adds a subtle hover effect to make the photos feel interactive */
&:hover { &:hover {
transform: translateY(-5px); transform: translateY(-5px);
} }
img { img {
width: 100%; width: 100%;
height: 100%; height: auto;
aspect-ratio: 3 / 4; /* Standard portrait ratio. Adjust if your photos are squares! */ aspect-ratio: 1 / 1; /* CHANGED: Forces the images to be perfectly square */
object-fit: cover; object-fit: cover;
display: block; display: block;
} }
@@ -66,7 +62,6 @@
@media screen and (max-width: 1024px) { @media screen and (max-width: 1024px) {
.execomm-section { .execomm-section {
.photo-grid { .photo-grid {
/* Drop to 2 columns on tablets so the photos don't get too skinny */
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
gap: 1.5rem; gap: 1.5rem;
} }
@@ -75,12 +70,12 @@
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
.execomm-section { .execomm-section {
padding-top: 7rem; /* Safely clears the fixed mobile navigation bar */ padding-top: 7rem;
padding-bottom: 4rem; padding-bottom: 4rem;
padding-inline: 1rem; padding-inline: 1rem;
h1 { h1 {
font-size: 2rem; /* Scales down exactly like Current Members */ font-size: 2rem;
margin-bottom: 2rem; margin-bottom: 2rem;
} }
@@ -94,9 +89,8 @@
@media screen and (max-width: 480px) { @media screen and (max-width: 480px) {
.execomm-section { .execomm-section {
.photo-grid { .photo-grid {
/* Drop to 1 column on phones to keep the embedded text readable */
grid-template-columns: repeat(1, 1fr); grid-template-columns: repeat(1, 1fr);
gap: 1.5rem; gap: 1.5rem;
} }
} }
} }