@import url('https://fonts.googleapis.com/css2?family=IM+Fell+French+Canon:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+French+Canon:ital@0;1&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


.im-fell-french-canon-regular {
    font-family: "IM Fell French Canon", serif;
    font-weight: 400;
    font-style: normal;
}

.montserrat {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: url('https://i.postimg.cc/x1ZZY2tc/header-idea-clean.jpg') center / cover no-repeat fixed;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Centering wrapper */
.page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

/* White content box */
.content-box {
    width: 80%;
    max-width: 1200px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 0;
}

/* HERO IMAGE */
.hero {
    width: 100%;
    aspect-ratio: 16 / 6;
    /* keeps hero shape on all screens */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-position: center top;
}

/* TITLE SECTION */
.title {
    font-family: "IM Fell French Canon", serif;
    margin: 25px 0;
    text-align: center;
}

.title h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.title p {
    font-size: 1rem;
    color: #666;
    margin-top: 8px;
}

.title2 {
   
    font-family: "IM Fell French Canon", serif;
    margin-bottom: -20px;
    text-align: center;
}

.title2 h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.title2 p {
    font-size: 1rem;
    color: #666;
    margin-top: 8px;
}

/* DETAILS GRID */
.details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.details .item {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.details .item span {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.details .item small {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-top: 4px;
}

/* SECTIONS */
h2.section-title {
    font-family: "IM Fell French Canon", serif;
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #222;
    border-bottom: 3px solid #ccc;
    padding-bottom: 6px;
}

.about,
.pedigree,
.cta {
    background: #fff;
    padding: 18px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.about p {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* PEDIGREE */
.pedigree-chart {
    margin-top: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* smooth mobile scrolling */
    background: #fff;
    border-radius: 8px;
    padding: 10px;
}

.pedigree-chart::after {
    content: "← swipe →";
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: #888;
    margin-top: 6px;
    display: none;
}

.pedigree-table {
    width: 100%;
    border-collapse: collapse;
    padding: 20px;
    text-align: center;
    min-width: 700px;
    /* keeps pedigree readable */
}

/* PEDIGREE SMALL HORSETELEX */

.pedigree-footnote {
    font-size: 0.75rem;
    text-align: right;
    margin-top: 8px;
}

.pedigree-footnote a {
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pedigree-footnote a:hover {
    text-decoration: underline;
}

.horsetelex-logo {
    height: 14px;
    width: auto;
    opacity: 0.8;
}

/* PHOTO GALLERY */
.gallery {
    margin-top: 50px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 3 / 2;
    /* keeps photo proportions */
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
}

.gallery-thumbs img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    opacity: 1;
    transform: scale(1.03);
}

a,
a:visited {
    color: #777 !important;
    text-decoration: none !important;
}

h4 .back-link,
h4 .back-link:link,
h4 .back-link:visited,
h4 .back-link:hover,
h4 .back-link:active {
    color: #777 !important;
    text-decoration: none !important;
}


@media (max-width: 768px) {

    .content-box {
        width: 95%;
        padding: 20px;
    }

    .title h1 {
        font-size: 1.8rem;
    }

    .hero {
        aspect-ratio: 16 / 9;
        /* taller hero on phones */
    }

    .gallery-main {
        aspect-ratio: 4 / 3;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }

    .gallery-thumbs {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-thumbs img {
        flex: 0 0 auto;      /* Prevent shrinking */
        width: 70px;
        height: 70px;
    }

    .gallery-thumbs::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

    .pedigree-chart {
        padding: 8px;
        margin-top: 30px;
    }

    .pedigree-table {
        font-size: 0.85rem;
        min-width: 600px;
    }

    .pedigree-footnote {
        font-size: 0.7rem;
        text-align: center;
    }

    .pedigree-chart::after {
        content: "← swipe →";
        display: block;
        text-align: center;
        font-size: 0.7rem;
        color: #888;
        margin-top: 6px;
    }

    /* Make details horizontal scroll */
    .details {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .details .item {
        flex: 0 0 auto;          /* Prevent shrinking */
        min-width: 160px;        /* Controls card width */
    }

.back-link {
    font-size: 0.6rem;  /* adjust smaller if needed */
    color: #777;
}

h4 .back-link,
h4 .back-link:link,
h4 .back-link:visited,
h4 .back-link:hover,
h4 .back-link:active {
    color: #777 !important;
    text-decoration: none !important;
}

}


