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;
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;
}
}
}
}