/* ==========================================
   UNIVERSAL GALLERY STYLESHEET (gallery-style.css)
   ========================================== */

/* Base Page Styling */
body {
    background-color: white;
    font-family: Arial, "AvantGarde Bk BT", sans-serif;
    margin: 0;
    padding: 20px;
    color: #333333;
}

/* Centered Layout Wrapper Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Header & Typography Elements */
header {
    margin-bottom: 2rem;
}

h1 {
    color: #d3050f;
    font-family: Futura, "Futura Bk", "AvantGarde Bk BT", "Times New Roman", serif;
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
}

.dates {
    font-family: "First-Grader", "AvantGarde Bk BT", "Times New Roman", serif;
    font-size: 1.1rem;
    color: #555555;
}

/* Biography Sections (Left-aligned text with floating portrait) */
.bio-section {
    text-align: left;
    margin-bottom: 2.5rem;
    overflow: hidden; /* Safely clears floating text wraps */
}

.bio-portrait {
    float: left;
    margin: 0 20px 15px 0;
    max-width: 100%;
    height: auto;
}

.bio-text {
    font-family: "First-Grader", "AvantGarde Bk BT", Arial, sans-serif;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Text Callout Formatting */
.instruction {
    font-family: "First-Grader", "AvantGarde Bk BT", Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* Artwork Details Formatting (e.g., Marius Jensen Page) */
.details {
    color: #5f68ad;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.details em {
    font-style: italic;
}

/* Multi-image Galleries - Preserving Natural Staggered Sizes */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: bottom; /* Aligns them flat along their bottom edges */
    gap: 15px;
    margin-bottom: 3rem;
}

.gallery img {
    border: 0;
    max-width: 100%;
    height: auto; /* Lets each image use its own height naturally */
}

/* Individual Centered Artworks */
.single-artwork {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
}

/* Video Component Boxes */
.video-box {
    border: 1px solid #e0e0e0;
    padding: 20px;
    max-width: 450px;
    margin: 0 auto 3rem auto;
    border-radius: 4px;
}

.video-title-img {
    display: block;
    margin: 0 auto 15px auto;
    max-width: 100%;
    height: auto;
}

.video-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.video-thumbnail {
    max-width: 100%;
    height: auto;
}

.video-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.video-links a {
    font-family: "AvantGarde Bk BT", Arial, sans-serif;
    color: #5f68ad;
    text-decoration: none;
    font-weight: bold;
}

.video-links a:hover {
    text-decoration: underline;
}

/* Bottom Navigation Link Bar */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eeeeee;
}

.nav-menu img {
    border: 0;
    vertical-align: bottom;
    width: 162px;
    height: 44px;
}
