/* --- Simple Staff Directory Styles (SSD) --- */

.ssd-container {
    margin-bottom: 80px; 
    position: relative;
}

.ssd-group-title {
    margin-bottom: 25px;
    margin-top: 0;
}

/* 3. GRID LAYOUT (UL) */
.ssd-grid {
    display: grid;
    /* Default: Small Cards */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 0; 
    list-style: none;
    padding: 0;
    margin-left: 0;
}

/* 4. CARDS (LI) */
.ssd-card {
    background: #fff;
    /* Replaced the heavy 2px dark border with a delicate 1px light gray outline */
    border: 1px solid #eaeaea; 
    border-radius: 8px;
    overflow: hidden;
    /* Added a soft resting drop-shadow to mimic paper */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.ssd-card:hover {
    transform: translateY(-5px);
    /* Lifts the card higher with a slightly deeper shadow on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1); 
    /* Keeps that nice JCC Pink accent border when hovered */
    border-color: #bd4467; 
}

/* 5. PHOTO (FIGURE) */
.ssd-photo-wrapper {
    width: 100%;
    height: 250px; /* Default Landscape Height */
    overflow: hidden;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    margin: 0; 
}

.ssd-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* --- NEW: PLACEHOLDER STYLES --- */
.ssd-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2f6; /* Light gray-blue */
}

.ssd-placeholder-icon {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

.ssd-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ssd-name {
    margin: 0 0 8px 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1E2C42;
    line-height: 1.2;
}

/* --- NEW: PRONOUNS STYLING --- */
.ssd-pronouns {
    display: inline-block;
    font-size: 0.7em;
    font-weight: 400;
    color: #666;
    margin-left: 5px;
    vertical-align: middle;
    text-transform: lowercase;
}

.ssd-position {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #bd4467;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0; 
}

.ssd-contact {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.95em;
    font-style: normal;
}

.ssd-phone, .ssd-email {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.ssd-link {
    text-decoration: none;
    color: #555;
    transition: color 0.2s ease;
}

.ssd-link:hover {
    color: #bd4467;
}

.ssd-phone-ext {
    font-size: 0.85em;
    color: #888;
    margin-left: 5px;
}

/* =========================================
   PORTRAIT MODE (photos="true")
   ========================================= */

/* 1. Force 2 Columns (Wider Cards) */
.ssd-layout-portrait .ssd-grid {
    /* Use 350px min-width to force 2 columns on most screens */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* 2. Taller Photo Area (Portrait Aspect Ratio) */
.ssd-layout-portrait .ssd-photo-wrapper {
    height: 450px; /* Taller fixed height */
    /* Or use aspect-ratio if you prefer responsive height: */
    /* aspect-ratio: 3 / 4; height: auto; */
}

/* =========================================
   BIO LAYOUT [staff_bios]
   ========================================= */

.ssd-bio-list {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between people */
}

.ssd-bio-card {
    display: flex;
    flex-direction: column; /* Mobile: Stacked */
    background: #fff;
    border: 2px solid #1a2c42;
    border-radius: 8px;
    padding: 30px;
    gap: 30px;
}

/* Tablet & Desktop: Side-by-Side */
@media (min-width: 768px) {
    .ssd-bio-card {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .ssd-bio-left {
        flex: 0 0 250px; /* Fixed width for photo column */
    }

    .ssd-bio-right {
        flex: 1; /* Content takes remaining space */
    }
}

/* Photo Styling */
.ssd-bio-photo {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    aspect-ratio: 3/4; /* Nice portrait ratio */
    object-fit: cover;
}

.ssd-bio-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f0f0f0;
    border-radius: 4px;
}

/* Typography Overrides for Bio Layout */
.ssd-bio-name {
    font-size: 1.75rem;
    margin: 0 0 5px 0;
    color: #1E2C42;
    font-weight: 800;
}

.ssd-bio-contact {
    margin: 15px 0 20px 0;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.ssd-sep {
    color: #ccc;
    margin: 0 10px;
}

.ssd-bio-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.ssd-bio-text p {
    margin-bottom: 1em;
}

.ssd-bio-text p:last-child {
    margin-bottom: 0;
}
.ssd-container-note {
	margin-top:-60px;
	margin-bottom:80px;
}

/* =========================================
   GRID ALIGNMENT UTILITIES
   ========================================= */

/* CENTER ALIGNMENT */
.ssd-align-center .ssd-grid {
    justify-content: center;
    /* When centered, we use a fixed max-width so they clump together instead of stretching */
    grid-template-columns: repeat(auto-fit, 320px); 
}
/* If portrait mode is on, use slightly wider cards */
.ssd-layout-portrait.ssd-align-center .ssd-grid {
    grid-template-columns: repeat(auto-fit, 350px);
}


/* RIGHT ALIGNMENT */
.ssd-align-right .ssd-grid {
    justify-content: end;
    grid-template-columns: repeat(auto-fit, 320px); 
}
.ssd-layout-portrait.ssd-align-right .ssd-grid {
    grid-template-columns: repeat(auto-fit, 350px);
}


/* CENTER ALIGNMENT FOR BIOS (Vertical List) */
.ssd-align-center .ssd-bio-list {
    align-items: center; /* Centers the cards in the column */
}
/* Center the text INSIDE the bio card too if desired? usually not for paragraphs. */
/* But we can center the whole card: */
.ssd-align-center .ssd-bio-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px; /* Optional: cap width so it doesn't get too wide */
}

/* RIGHT ALIGNMENT FOR BIOS */
.ssd-align-right .ssd-bio-list {
    align-items: flex-end;
}
.ssd-align-right .ssd-bio-card {
    margin-left: auto;
    margin-right: 0;
}