/* ==========================================================
   MAGICTRICKS.COM - MAGIC LIBRARY PAGES
   Shared stylesheet for the Magic Library section

   File:
   /assets/templates/magictricks-core/css/library-pages.css

   Current cache-busting version: v=6
   ========================================================== */


/* ==========================================================
   BASE LIBRARY PAGE
   ========================================================== */

.mt-library {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 20px 50px;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.mt-library *,
.mt-library *::before,
.mt-library *::after {
    box-sizing: border-box;
}


/* ==========================================================
   HERO IMAGE
   ========================================================== */

.mt-library-hero-image {
    width: 100%;
    margin: 0 auto 28px;
}

.mt-library-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}


/* ==========================================================
   INTRODUCTION
   ========================================================== */

.mt-library-intro {
    max-width: 850px;
    margin: 0 auto 38px;
    text-align: center;
    color: #444;
    font-size: 17px;
    line-height: 1.7;
}

.mt-library-intro p {
    margin: 0 0 14px;
}

.mt-library-intro p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   SECTION HEADINGS
   ========================================================== */

.mt-library-section-heading {
    margin: 0 0 8px;
    text-align: center;
    color: #005778;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}

.mt-library-section-intro {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
    color: #555;
    font-size: 17px;
    line-height: 1.6;
}


/* ==========================================================
   CARD GRID
   ========================================================== */

.mt-library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 44px;
}


/* ==========================================================
   LIBRARY CARDS
   ========================================================== */

.mt-library-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px;
    background: #F3F8F8;
    border: 1px solid #d7e5e8;
    border-top: 5px solid #005778;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.mt-library-card-title {
    margin: 0 0 12px;
    color: #005778;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 700;
}

.mt-library-card p {
    margin: 0 0 16px;
    color: #444;
    font-size: 16px;
    line-height: 1.6;
}


/* ==========================================================
   CARD LINK LISTS
   ========================================================== */

.mt-library-card-links {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.mt-library-card-links li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 17px;
    color: #444;
    font-size: 15px;
    line-height: 1.45;
}

.mt-library-card-links li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: -1px;
    color: #E65100;
    font-size: 20px;
    font-weight: 700;
}

.mt-library-card-links a {
    color: #005778;
    text-decoration: none;
    font-weight: 600;
}

.mt-library-card-links a:hover,
.mt-library-card-links a:focus {
    color: #E65100;
    text-decoration: underline;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.mt-library-button-wrap {
    margin-top: auto;
    padding-top: 4px;
}

.mt-library-button {
    display: inline-block;
    padding: 11px 18px;
    background: #E65100;
    border: 2px solid #E65100;
    border-radius: 4px;
    color: #fff !important;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.mt-library-button:hover,
.mt-library-button:focus {
    background: #fff;
    color: #E65100 !important;
}


/* ==========================================================
   FEATURE / COLLECTION PANEL
   Used for prominent informational sections
   ========================================================== */

.mt-library-collection {
    margin: 8px 0 34px;
    padding: 30px 34px;
    background: #005778;
    border-radius: 8px;
    text-align: center;
    color: #fff;
}

.mt-library-collection h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
}

.mt-library-collection p {
    max-width: 850px;
    margin: 0 auto;
    color: #fff;
    font-size: 16px;
    line-height: 1.65;
}


/* ==========================================================
   INFORMATION / REFERENCE PANEL
   Useful for sources, fair use and supporting information
   ========================================================== */

.mt-library-info {
    max-width: 850px;
    margin: 0 auto;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.mt-library-info h2 {
    margin: 0 0 10px;
    color: #005778;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

.mt-library-info p {
    margin: 0 0 14px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.mt-library-info-links {
    margin: 0;
}

.mt-library-info-links a {
    display: inline-block;
    margin: 4px 8px;
    color: #E65100;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.mt-library-info-links a:hover,
.mt-library-info-links a:focus {
    text-decoration: underline;
}


/* ==========================================================
   STANDARD LIBRARY CONTENT
   For individual/interior Library pages
   ========================================================== */

.mt-library-content {
    max-width: 900px;
    margin: 0 auto;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
}

.mt-library-content h2 {
    margin: 32px 0 12px;
    color: #005778;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
}

.mt-library-content h3 {
    margin: 26px 0 10px;
    color: #005778;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

.mt-library-content p {
    margin: 0 0 16px;
}

.mt-library-content a {
    color: #005778;
    font-weight: 600;
    text-decoration: underline;
}

.mt-library-content a:hover,
.mt-library-content a:focus {
    color: #E65100;
}


/* ==========================================================
   STANDARD LIBRARY LISTS
   ========================================================== */

.mt-library-content ul,
.mt-library-content ol {
    margin: 0 0 20px;
    padding-left: 28px;
}

.mt-library-content li {
    margin-bottom: 8px;
}


/* ==========================================================
   INTERIOR LIBRARY PAGE HEADER
   Used for collection and topic landing pages
   ========================================================== */

.mt-library-page-header {
    max-width: 900px;
    margin: 0 auto 36px;
    text-align: center;
}

.mt-library-page-title {
    margin: 0 0 10px;
    color: #005778;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
}

.mt-library-page-tagline {
    max-width: 800px;
    margin: 0 auto 18px;
    color: #E65100;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 600;
}

.mt-library-page-description {
    max-width: 830px;
    margin: 0 auto;
    color: #444;
    font-size: 17px;
    line-height: 1.7;
}

.mt-library-page-description p {
    margin: 0 0 14px;
}

.mt-library-page-description p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   LIBRARY BACK LINK
   ========================================================== */

.mt-library-back {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.4;
}

.mt-library-back a {
    color: #005778;
    font-weight: 700;
    text-decoration: none;
}

.mt-library-back a::before {
    content: "‹";
    display: inline-block;
    margin-right: 6px;
    color: #E65100;
    font-size: 20px;
    line-height: 0;
    vertical-align: -1px;
}

.mt-library-back a:hover,
.mt-library-back a:focus {
    color: #E65100;
    text-decoration: underline;
}


/* ==========================================================
   TOPIC GROUPS
   Major organizational sections on Library hub pages
   ========================================================== */

.mt-library-topic-section {
    margin: 0 0 38px;
}

.mt-library-topic-section-title {
    margin: 0 0 8px;
    padding-bottom: 9px;
    border-bottom: 3px solid #E65100;
    color: #005778;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

.mt-library-topic-section-intro {
    max-width: 900px;
    margin: 0 0 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}


/* ==========================================================
   COMPACT TOPIC TILE GRID
   ========================================================== */

.mt-library-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}


/* ==========================================================
   COMPACT TOPIC TILES
   ========================================================== */

.mt-library-topic {
    display: block;
    min-height: 100%;
    padding: 18px 18px 17px;
    background: #F3F8F8;
    border: 1px solid #d7e5e8;
    border-radius: 6px;
    color: #333;
    text-decoration: none !important;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.mt-library-topic:hover,
.mt-library-topic:focus {
    border-color: #E65100;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.mt-library-topic-title {
    display: block;
    margin: 0 0 6px;
    color: #005778;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
}

.mt-library-topic:hover .mt-library-topic-title,
.mt-library-topic:focus .mt-library-topic-title {
    color: #E65100;
}

.mt-library-topic-description {
    display: block;
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}


/* ==========================================================
   FEATURED TOPIC
   For especially strong Library destinations
   ========================================================== */

.mt-library-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin: 0 0 24px;
    padding: 24px 26px;
    background: #005778;
    border-radius: 8px;
    color: #fff;
}

.mt-library-featured-content {
    min-width: 0;
}

.mt-library-featured-title {
    margin: 0 0 7px;
    color: #fff;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

.mt-library-featured p {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
}

.mt-library-featured .mt-library-button {
    white-space: nowrap;
    background: #E65100;
    border-color: #E65100;
}

.mt-library-featured .mt-library-button:hover,
.mt-library-featured .mt-library-button:focus {
    background: #fff;
    color: #E65100 !important;
}


/* ==========================================================
   SMALL LIBRARY FOOTER / FAIR USE LINK
   ========================================================== */

.mt-library-footer-links {
    margin: 42px auto 0;
    padding-top: 18px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.mt-library-footer-links a {
    margin: 0 7px;
    color: #005778;
    font-weight: 600;
    text-decoration: none;
}

.mt-library-footer-links a:hover,
.mt-library-footer-links a:focus {
    color: #E65100;
    text-decoration: underline;
}


/* ==========================================================
   HISTORICAL FEATURE GRID
   Used for small groups of featured people or subjects
   ========================================================== */

.mt-library-history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 40px;
}

.mt-library-history-card {
    overflow: hidden;
    background: #F3F8F8;
    border: 1px solid #d7e5e8;
    border-radius: 8px;
    text-align: center;
}

.mt-library-history-image {
    width: 100%;
    background: #fff;
}

.mt-library-history-image img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
}

.mt-library-history-content {
    padding: 18px 18px 20px;
}

.mt-library-history-name {
    margin: 0 0 7px;
    color: #005778;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
}

.mt-library-history-content p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.55;
}

.mt-library-history-card a {
    color: #005778;
    text-decoration: none;
}

.mt-library-history-card a:hover .mt-library-history-name,
.mt-library-history-card a:focus .mt-library-history-name {
    color: #E65100;
}


/* ==========================================================
   A-Z DIRECTORY INTRO
   ========================================================== */

.mt-library-directory-heading {
    margin: 0 0 8px;
    text-align: center;
    color: #005778;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}

.mt-library-directory-intro {
    max-width: 820px;
    margin: 0 auto 22px;
    text-align: center;
    color: #555;
    font-size: 16px;
    line-height: 1.65;
}


/* ==========================================================
   A-Z JUMP NAVIGATION
   ========================================================== */

.mt-library-az-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    max-width: 900px;
    margin: 0 auto 38px;
    padding: 16px 18px;
    background: #F3F8F8;
    border: 1px solid #d7e5e8;
    border-radius: 8px;
}

.mt-library-az-nav a,
.mt-library-az-nav span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}

.mt-library-az-nav a {
    background: #fff;
    border: 1px solid #cbdcdf;
    color: #005778;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.mt-library-az-nav a:hover,
.mt-library-az-nav a:focus {
    background: #E65100;
    border-color: #E65100;
    color: #fff;
}

.mt-library-az-nav span {
    background: transparent;
    border: 1px solid transparent;
    color: #aaa;
}


/* ==========================================================
   ALPHABETICAL DIRECTORY
   ========================================================== */

.mt-library-directory {
    max-width: 1000px;
    margin: 0 auto;
}

.mt-library-letter-section {
    margin: 0 0 30px;
    scroll-margin-top: 180px;
}

.mt-library-letter-heading {
    margin: 0 0 13px;
    padding: 0 0 7px;
    border-bottom: 2px solid #E65100;
    color: #005778;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}


/* ==========================================================
   DIRECTORY NAME LISTS
   ========================================================== */

.mt-library-name-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mt-library-name-list li {
    margin: 0;
    padding: 3px 0;
    color: #444;
    font-size: 15px;
    line-height: 1.45;
    break-inside: avoid;
}

.mt-library-name-list a {
    color: #005778;
    font-weight: 600;
    text-decoration: none;
}

.mt-library-name-list a:hover,
.mt-library-name-list a:focus {
    color: #E65100;
    text-decoration: underline;
}


/* ==========================================================
   DIRECTORY LINK KEY
   Explains why some names are linked and others are not
   ========================================================== */

.mt-library-directory-key {
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 12px 16px;
    background: #fff;
    border-left: 4px solid #E65100;
    color: #666;
    font-size: 14px;
    line-height: 1.55;
}

.mt-library-directory-key strong {
    color: #005778;
}


/* ==========================================================
   BACK TO A-Z
   ========================================================== */

.mt-library-back-to-az {
    margin: 12px 0 0;
    text-align: right;
    font-size: 13px;
}

.mt-library-back-to-az a {
    color: #777;
    font-weight: 600;
    text-decoration: none;
}

.mt-library-back-to-az a:hover,
.mt-library-back-to-az a:focus {
    color: #E65100;
    text-decoration: underline;
}


/* ==========================================================
   V6 - INDIVIDUAL BIOGRAPHY
   Reusable structure for magician biography pages
   ========================================================== */

.mt-library-bio-intro {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    gap: 32px;
    align-items: start;
    max-width: 940px;
    margin: 0 auto 38px;
}

.mt-library-bio-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mt-library-bio-images-single {
    grid-template-columns: 1fr;
}

.mt-library-bio-image {
    margin: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #d7e5e8;
    border-radius: 8px;
}

.mt-library-bio-image img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
}

.mt-library-bio-image figcaption {
    margin: 9px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.mt-library-bio-facts {
    overflow: hidden;
    background: #F3F8F8;
    border: 1px solid #d7e5e8;
    border-radius: 8px;
}

.mt-library-bio-facts-title {
    margin: 0;
    padding: 14px 18px;
    background: #005778;
    color: #fff;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
}

.mt-library-bio-fact-list {
    margin: 0;
    padding: 4px 18px;
}

.mt-library-bio-fact {
    display: grid;
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #d7e5e8;
}

.mt-library-bio-fact:last-child {
    border-bottom: 0;
}

.mt-library-bio-fact dt {
    margin: 0;
    color: #005778;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.mt-library-bio-fact dd {
    margin: 0;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

.mt-library-bio-body {
    max-width: 820px;
    margin: 0 auto;
    color: #333;
    font-size: 17px;
    line-height: 1.75;
}

.mt-library-bio-body h2 {
    margin: 34px 0 14px;
    color: #005778;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
}

.mt-library-bio-body h3 {
    margin: 28px 0 11px;
    color: #005778;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

.mt-library-bio-body p {
    margin: 0 0 18px;
}

.mt-library-bio-body a {
    color: #005778;
    font-weight: 600;
    text-decoration: underline;
}

.mt-library-bio-body a:hover,
.mt-library-bio-body a:focus {
    color: #E65100;
}

.mt-library-bio-source {
    max-width: 820px;
    margin: 32px auto 0;
    padding: 18px 20px;
    background: #F3F8F8;
    border-left: 4px solid #E65100;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.mt-library-bio-source-title {
    display: block;
    margin: 0 0 5px;
    color: #005778;
    font-weight: 700;
}


/* ==========================================================
   V6 - BIOGRAPHY LETTER DIRECTORY
   For A, B, C, etc. biography index pages
   ========================================================== */

.mt-library-bio-letter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    max-width: 900px;
    margin: 0 auto 34px;
    padding: 16px 18px;
    background: #F3F8F8;
    border: 1px solid #d7e5e8;
    border-radius: 8px;
}

.mt-library-bio-letter-nav a,
.mt-library-bio-letter-nav span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    height: 31px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}

.mt-library-bio-letter-nav a {
    background: #fff;
    border: 1px solid #cbdcdf;
    color: #005778;
    text-decoration: none;
}

.mt-library-bio-letter-nav a:hover,
.mt-library-bio-letter-nav a:focus {
    background: #E65100;
    border-color: #E65100;
    color: #fff;
}

.mt-library-bio-letter-nav span {
    background: #005778;
    border: 1px solid #005778;
    color: #fff;
}

.mt-library-bio-entries {
    max-width: 900px;
    margin: 0 auto;
}

.mt-library-bio-entry {
    margin: 0;
    padding: 21px 0;
    border-bottom: 1px solid #ddd;
}

.mt-library-bio-entry:first-child {
    padding-top: 0;
}

.mt-library-bio-entry:last-child {
    border-bottom: 0;
}

.mt-library-bio-entry-name {
    margin: 0 0 6px;
    color: #005778;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.mt-library-bio-entry-meta {
    margin: -1px 0 8px;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
    font-style: italic;
}

.mt-library-bio-entry p {
    margin: 0 0 10px;
    color: #444;
    font-size: 16px;
    line-height: 1.65;
}

.mt-library-bio-entry-link {
    display: inline-block;
    color: #E65100;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
}

.mt-library-bio-entry-link:hover,
.mt-library-bio-entry-link:focus {
    text-decoration: underline;
}


/* ==========================================================
   V6 - REFERENCE COLLECTIONS
   Flexible structure for directories, records, glossaries,
   dates, locations, paired information and grouped data
   ========================================================== */

.mt-library-reference {
    max-width: 960px;
    margin: 0 auto;
}

.mt-library-reference-section {
    margin: 0 0 38px;
    scroll-margin-top: 180px;
}

.mt-library-reference-section-title {
    margin: 0 0 16px;
    padding: 0 0 9px;
    border-bottom: 3px solid #E65100;
    color: #005778;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

.mt-library-reference-section-intro {
    margin: -4px 0 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.65;
}

.mt-library-reference-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mt-library-reference-item {
    padding: 15px 0;
    border-bottom: 1px solid #e2e2e2;
}

.mt-library-reference-item:first-child {
    padding-top: 0;
}

.mt-library-reference-item:last-child {
    border-bottom: 0;
}

.mt-library-reference-title {
    margin: 0 0 5px;
    color: #005778;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}

.mt-library-reference-value {
    margin: 0;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.mt-library-reference-note {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.55;
}

.mt-library-reference-pairs {
    margin: 0;
    border-top: 1px solid #d7e5e8;
}

.mt-library-reference-pair {
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    padding: 14px 16px;
    border-bottom: 1px solid #d7e5e8;
}

.mt-library-reference-pair:nth-child(odd) {
    background: #F3F8F8;
}

.mt-library-reference-key {
    color: #005778;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
}

.mt-library-reference-data {
    color: #333;
    font-size: 15px;
    line-height: 1.55;
}

.mt-library-reference-group {
    margin: 0 0 28px;
}

.mt-library-reference-group-title {
    margin: 0 0 10px;
    color: #005778;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.mt-library-reference-subgroup {
    margin: 0 0 18px;
    padding-left: 18px;
    border-left: 3px solid #d7e5e8;
}

.mt-library-reference-subgroup-title {
    margin: 0 0 8px;
    color: #444;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.mt-library-reference-simple-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mt-library-reference-simple-grid li {
    margin: 0;
    color: #444;
    font-size: 15px;
    line-height: 1.5;
}

.mt-library-reference-simple-grid a {
    color: #005778;
    font-weight: 600;
    text-decoration: none;
}

.mt-library-reference-simple-grid a:hover,
.mt-library-reference-simple-grid a:focus {
    color: #E65100;
    text-decoration: underline;
}


/* ==========================================================
   V6 - REFERENCE JUMP NAVIGATION
   Reusable for A-Z, months or other section jumps
   ========================================================== */

.mt-library-reference-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    max-width: 900px;
    margin: 0 auto 36px;
    padding: 15px 16px;
    background: #F3F8F8;
    border: 1px solid #d7e5e8;
    border-radius: 8px;
}

.mt-library-reference-nav a,
.mt-library-reference-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 31px;
    padding: 6px 9px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.mt-library-reference-nav a {
    background: #fff;
    border: 1px solid #cbdcdf;
    color: #005778;
    text-decoration: none;
}

.mt-library-reference-nav a:hover,
.mt-library-reference-nav a:focus {
    background: #E65100;
    border-color: #E65100;
    color: #fff;
}

.mt-library-reference-nav span {
    color: #aaa;
}


/* ==========================================================
   V6 - REFERENCE / ACKNOWLEDGEMENT NOTE
   ========================================================== */

.mt-library-reference-credit {
    max-width: 850px;
    margin: 30px auto 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #E65100;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.mt-library-reference-credit strong {
    color: #005778;
}


/* ==========================================================
   V6 - HISTORICAL ARTICLE / FEATURE
   Long-form Library stories and multi-story collections
   ========================================================== */

.mt-library-article {
    max-width: 820px;
    margin: 0 auto;
    color: #333;
    font-size: 17px;
    line-height: 1.75;
}

.mt-library-article p {
    margin: 0 0 18px;
}

.mt-library-article h2 {
    margin: 38px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E65100;
    color: #005778;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
}

.mt-library-article h3 {
    margin: 30px 0 10px;
    color: #005778;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

.mt-library-article a {
    color: #005778;
    font-weight: 600;
    text-decoration: underline;
}

.mt-library-article a:hover,
.mt-library-article a:focus {
    color: #E65100;
}

.mt-library-article-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 0 auto 32px;
}

.mt-library-article-images-single {
    grid-template-columns: 1fr;
    max-width: 560px;
}

.mt-library-article-figure {
    margin: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #d7e5e8;
    border-radius: 8px;
}

.mt-library-article-figure img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
}

.mt-library-article-figure figcaption {
    margin: 9px 2px 1px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.mt-library-story-list {
    max-width: 850px;
    margin: 0 auto;
}

.mt-library-story {
    margin: 0;
    padding: 25px 0;
    border-bottom: 1px solid #ddd;
}

.mt-library-story:first-child {
    padding-top: 0;
}

.mt-library-story:last-child {
    border-bottom: 0;
}

.mt-library-story-title {
    margin: 0 0 9px;
    color: #005778;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

.mt-library-story p {
    margin: 0 0 14px;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
}

.mt-library-story p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   V6 - ARTICLE CALLOUT / FURTHER READING
   ========================================================== */

.mt-library-article-callout {
    max-width: 820px;
    margin: 30px auto;
    padding: 20px 22px;
    background: #F3F8F8;
    border: 1px solid #d7e5e8;
    border-left: 5px solid #005778;
    border-radius: 6px;
}

.mt-library-article-callout-title {
    margin: 0 0 7px;
    color: #005778;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.mt-library-article-callout p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}


/* ==========================================================
   V6 - HISTORICAL GALLERY / COLLECTION
   Image-led collections of posters, sheet music,
   photographs, documents and other historical artifacts
   ========================================================== */

.mt-library-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto 38px;
}

.mt-library-gallery-item {
    overflow: hidden;
    background: #fff;
    border: 1px solid #d7e5e8;
    border-radius: 8px;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.05);
}

.mt-library-gallery-image {
    padding: 16px;
    background: #F3F8F8;
}

.mt-library-gallery-image img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: contain;
    object-position: center;
}

.mt-library-gallery-content {
    padding: 20px 22px 22px;
}

.mt-library-gallery-title {
    margin: 0 0 8px;
    color: #005778;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.mt-library-gallery-content p {
    margin: 0 0 8px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.mt-library-gallery-content p:last-child {
    margin-bottom: 0;
}

.mt-library-gallery-meta {
    color: #777;
    font-size: 14px;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .mt-library-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mt-library-name-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mt-library-history-image img {
        height: 210px;
    }

    .mt-library-bio-intro {
        grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
        gap: 24px;
    }

    .mt-library-bio-images {
        grid-template-columns: 1fr;
    }

    .mt-library-bio-image img {
        height: 230px;
    }

    .mt-library-reference-simple-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mt-library-gallery-image img {
        height: 320px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .mt-library {
        padding: 8px 14px 38px;
    }

    .mt-library-hero-image {
        margin-bottom: 22px;
    }

    .mt-library-hero-image img {
        border-radius: 6px;
    }

    .mt-library-intro {
        margin-bottom: 30px;
        font-size: 16px;
        line-height: 1.65;
    }

    .mt-library-section-heading {
        font-size: 25px;
    }

    .mt-library-section-intro {
        margin-bottom: 22px;
        font-size: 16px;
    }

    .mt-library-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 34px;
    }

    .mt-library-card {
        padding: 23px 21px;
    }

    .mt-library-card-title {
        font-size: 21px;
    }

    .mt-library-collection {
        padding: 25px 20px;
    }

    .mt-library-collection h2 {
        font-size: 22px;
    }

    .mt-library-info {
        padding: 22px 18px;
    }

    .mt-library-content {
        font-size: 16px;
        line-height: 1.65;
    }

    .mt-library-content h2 {
        font-size: 23px;
    }

    .mt-library-content h3 {
        font-size: 20px;
    }


    /* Interior page header */

    .mt-library-page-header {
        margin-bottom: 30px;
    }

    .mt-library-page-title {
        font-size: 29px;
    }

    .mt-library-page-tagline {
        font-size: 18px;
        line-height: 1.4;
    }

    .mt-library-page-description {
        font-size: 16px;
        line-height: 1.65;
    }


    /* Topic sections */

    .mt-library-topic-section {
        margin-bottom: 32px;
    }

    .mt-library-topic-section-title {
        font-size: 22px;
    }

    .mt-library-topic-section-intro {
        font-size: 15px;
    }


    /* Topic tiles */

    .mt-library-topic-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mt-library-topic {
        padding: 17px 18px 16px;
    }

    .mt-library-topic-title {
        font-size: 17px;
    }


    /* Featured topic */

    .mt-library-featured {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 20px;
    }

    .mt-library-featured-title {
        font-size: 20px;
    }

    .mt-library-featured .mt-library-button {
        white-space: normal;
    }


    /* Historical feature cards */

    .mt-library-history-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 34px;
    }

    .mt-library-history-card {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        align-items: center;
        text-align: left;
    }

    .mt-library-history-image {
        height: 100%;
    }

    .mt-library-history-image img {
        width: 100%;
        height: 150px;
        object-fit: contain;
    }

    .mt-library-history-content {
        padding: 16px;
    }

    .mt-library-history-name {
        font-size: 18px;
    }


    /* Directory heading */

    .mt-library-directory-heading {
        font-size: 25px;
    }

    .mt-library-directory-intro {
        margin-bottom: 18px;
        font-size: 15px;
    }


    /* A-Z navigation */

    .mt-library-az-nav {
        gap: 6px;
        margin-bottom: 32px;
        padding: 14px 12px;
    }

    .mt-library-az-nav a,
    .mt-library-az-nav span {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }


    /* Alphabetical directory */

    .mt-library-letter-section {
        margin-bottom: 27px;
        scroll-margin-top: 145px;
    }

    .mt-library-letter-heading {
        font-size: 22px;
    }

    .mt-library-name-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 5px;
    }

    .mt-library-name-list li {
        font-size: 14px;
    }


    /* Directory key */

    .mt-library-directory-key {
        margin-bottom: 24px;
        font-size: 13px;
    }


    /* Individual biography */

    .mt-library-bio-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .mt-library-bio-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mt-library-bio-image {
        padding: 7px;
    }

    .mt-library-bio-image img {
        height: 220px;
    }

    .mt-library-bio-facts-title {
        font-size: 18px;
    }

    .mt-library-bio-fact {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 12px;
    }

    .mt-library-bio-body {
        font-size: 16px;
        line-height: 1.7;
    }

    .mt-library-bio-body h2 {
        font-size: 23px;
    }

    .mt-library-bio-body h3 {
        font-size: 20px;
    }


    /* Biography letter directory */

    .mt-library-bio-letter-nav {
        gap: 6px;
        margin-bottom: 30px;
        padding: 14px 12px;
    }

    .mt-library-bio-letter-nav a,
    .mt-library-bio-letter-nav span {
        min-width: 30px;
        height: 30px;
        padding: 0 7px;
        font-size: 13px;
    }

    .mt-library-bio-entry {
        padding: 18px 0;
    }

    .mt-library-bio-entry-name {
        font-size: 19px;
    }

    .mt-library-bio-entry p {
        font-size: 15px;
    }


    /* Reference collections */

    .mt-library-reference-section {
        margin-bottom: 32px;
        scroll-margin-top: 145px;
    }

    .mt-library-reference-section-title {
        font-size: 22px;
    }

    .mt-library-reference-pair {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 13px 14px;
    }

    .mt-library-reference-simple-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
    }

    .mt-library-reference-nav {
        gap: 6px;
        margin-bottom: 30px;
        padding: 14px 12px;
    }

    .mt-library-reference-nav a,
    .mt-library-reference-nav span {
        min-width: 32px;
        min-height: 30px;
        padding: 6px 8px;
        font-size: 12px;
    }


    /* Historical articles */

    .mt-library-article {
        font-size: 16px;
        line-height: 1.7;
    }

    .mt-library-article h2 {
        font-size: 23px;
    }

    .mt-library-article h3 {
        font-size: 20px;
    }

    .mt-library-article-images {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 26px;
    }

    .mt-library-article-figure img {
        max-height: 380px;
    }

    .mt-library-story {
        padding: 21px 0;
    }

    .mt-library-story-title {
        font-size: 20px;
    }


    /* Historical gallery */

    .mt-library-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }

    .mt-library-gallery-image img {
        height: auto;
        max-height: 420px;
    }

    .mt-library-gallery-content {
        padding: 18px 19px 20px;
    }

    .mt-library-gallery-title {
        font-size: 19px;
    }


    /* Footer links */

    .mt-library-footer-links {
        margin-top: 34px;
    }

    .mt-library-footer-links a {
        display: inline-block;
        margin: 4px 7px;
    }
}


/* ==========================================================
   SMALL PHONES
   ========================================================== */

@media (max-width: 480px) {

    .mt-library-history-card {
        grid-template-columns: 95px minmax(0, 1fr);
    }

    .mt-library-history-image img {
        height: 135px;
    }

    .mt-library-history-content {
        padding: 14px;
    }

    .mt-library-name-list {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }

    .mt-library-name-list li {
        padding: 2px 0;
        font-size: 15px;
    }


    /* Individual biography */

    .mt-library-bio-images {
        grid-template-columns: 1fr;
    }

    .mt-library-bio-image img {
        height: auto;
        max-height: 320px;
    }

    .mt-library-bio-fact {
        grid-template-columns: 1fr;
        gap: 3px;
    }


    /* Reference collections */

    .mt-library-reference-simple-grid {
        grid-template-columns: 1fr;
        row-gap: 7px;
    }
}