/*1. GLOBAL STYLES & RESET*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #0f0f12; /* Deep dark background */
    color: #e4e4e7; /* Light gray text for readability */
    line-height: 1.6;
    padding: 20px;
}

/*2. HEADER & LAYOUT CONTAINER*/
header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1f1212 0%, #0f0f12 100%);
    border-bottom: 3px solid #ff4500; /* Fiery orange accent border */
    margin-bottom: 30px;
    border-radius: 8px;
}

header h1 {
    font-size: 2.2rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 69, 0, 0.6);
    letter-spacing: 0.5px;
}

.content {
    max-width: 1000px;
    margin: 0 auto;
}

section {
    background-color: #16161a; /* Dark gray card background */
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

section h2 {
    font-size: 1.5rem;
    color: #ff6a00; /* Vivid orange heading color */
    margin-bottom: 20px;
    border-left: 4px solid #ff2a00;
    padding-left: 12px;
}

section h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin: 15px 0 10px 0;
}

p {
    color: #a1a1aa;
    margin-bottom: 15px;
}

p strong {
    color: #ff6a00;
}

/*3. SECTION 1: IMAGE GALLERY (FLEXBOX)*/
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.image-gallery figure {
    flex: 1 1 calc(33.333% - 20px); /* Responsive three-column structure */
    min-width: 250px;
    background-color: #202024;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3f3f46;
}

.image-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* Keeps image proportions clean */
    display: block;
}

.image-gallery figcaption {
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #e4e4e7;
    background-color: #1a1a1e;
}

/*4. SECTION 2 & 4: IMAGES & LINKED THUMBNAILS*/
.thumbnail {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 6px;
    border: 2px solid #3f3f46;
    display: block;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.thumbnail:hover {
    transform: scale(1.02);
    border-color: #ff6a00;
}

.caption {
    font-size: 0.85rem;
    color: #71717a;
    margin-top: 8px;
    font-style: italic;
}

/* Section 4 Specific Video Image Wrapper */
.image-link-wrapper {
    display: inline-block;
    max-width: 1000px;
    width: 100%;
    margin-top: 10px;
    text-decoration: none;
}

.clickable-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #27272a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-image:hover {
    transform: scale(1.01);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4); /* Hot glowing aura effect */
}

/*5. SECTION 3: TEXT WRAPPING (FLOATED GRAPHICS)*/
.wrap-container {
    overflow: hidden; /* Clearing floats cleanly */
}

.wrapped-image {
    float: left;
    width: 220px;
    height: auto;
    margin: 0 20px 15px 0;
    border-radius: 8px;
    border: 2px solid #ff4500;
}

/*6. SECTION 4: NATIVE AUDIO CONTROLS*/
audio {
    width: 100%;
    max-width: 500px;
    display: block;
    margin-bottom: 25px;
}

/*7. SECTION 5: CUSTOM REFERENCE BULLETS*/
.custom-bullets {
    list-style: none;
    padding-left: 0;
}

.custom-bullets li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.custom-bullets li::before {
    content: "🎤"; /* Music microphone emoji anchor template replacement */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

.custom-bullets a {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.custom-bullets a:hover {
    color: #ff4500;
    text-decoration: underline;
}

/*8. RESPONSIVE BREAKPOINTS (MOBILE CORRECTIONS)*/
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.6rem;
    }

    .image-gallery figure {
        flex: 1 1 100%; /* Collapse gallery items to single width listings on mobile */
    }

    .wrapped-image {
        float: none; /* Disables wrapping on tiny displays so text doesn't squeeze */
        display: block;
        margin: 0 auto 15px auto;
        width: 100%;
        max-width: 300px;
    }
    
    .thumbnail {
        max-width: 100%;
    }
}
