/* style.css */
:root {
    --primary-color: #2c3e50;
    --accent-color: #8e44ad;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --link-color: #2980b9;
    --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Georgia', 'Times New Roman', serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    flex: 1;
}

/* Header & Nav */
header {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #666;
    margin-top: 0;
}

.subtitle a { text-decoration: none; color: #555; border-bottom: 1px dotted #999; }
.subtitle a:hover { color: var(--link-color); border-bottom: 1px solid var(--link-color); }

nav.main-nav {
    margin-top: 15px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

nav.main-nav a {
    margin-right: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.2s;
}

nav.main-nav a:hover { color: var(--accent-color); }

/* Main Grid Layout */
.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar / Photo */
.sidebar {
    text-align: center;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
}

.profile-img {
    width: 100%;
    max-width: 250px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.contact-info {
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

/* Typography & Content */
h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- NEW GALLERY STYLES --- */
.gallery {
    display: grid;
    /* Larger columns: min 300px wide */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    background: #fff;
    padding: 10px;      /* Creates the white "mat" inside the frame */
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;       /* Allows full height (no cropping) */
    display: block;     /* Removes bottom gap */
}
/* -------------------------- */

.apa-entry {
    padding-left: 2em;
    text-indent: -2em;
    margin-bottom: 1em;
}

footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    color: #777;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer nav a { margin-right: 15px; color: #555; }

@media (max-width: 768px) {
    .profile-grid { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
    .container { padding: 15px; width: 100%; box-shadow: none; }
    h1 { font-size: 2rem; }
}
