﻿
/* =========================================================
   SAINT ANNE'S RUN
   BROODMARE CAROUSEL CORRECTION
   ========================================================= */

/* Desktop carousel */

#mares .mare-carousel {
    width: 100%;
    min-width: 0;
}

#mares .mare-slide {
    display: grid !important;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%) !important;
    align-items: stretch !important;
    height: 610px !important;
    min-height: 0 !important;
    max-height: 610px !important;
    overflow: hidden !important;
    background: var(--cream);
}

/* Photograph column */

#mares .mare-image,
#mares .mare-image.homepage-image-slot {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #eeeae4;
}

    #mares .mare-image > img.assigned-homepage-photo,
    #mares .mare-image.homepage-image-slot > img.assigned-homepage-photo {
        position: relative !important;
        inset: auto !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

/* Information column */

#mares .mare-information {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 25px 6% !important;
    overflow: hidden !important;
}

    #mares .mare-information > .eyebrow,
    #mares .mare-information > .mare-pedigree,
    #mares .mare-information > .mare-divider,
    #mares .mare-information > .mare-detail-label,
    #mares .mare-information > .mare-stallion,
    #mares .mare-information > h3 {
        flex-shrink: 0;
    }

    /* Scrollable Horse Sense analysis */

    #mares .mare-information > .mare-reasoning {
        display: block !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 10px 17px 14px 12px !important;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 16px !important;
        line-height: 1.65 !important;
        white-space: pre-line !important;
        overflow-x: hidden !important;
        overflow-y: scroll !important;
        overscroll-behavior: contain;
        scrollbar-width: auto;
        scrollbar-color: #a69a91 #e7e1d9;
        border: 1px solid var(--border);
        background: rgba(255, 253, 250, .55);
    }

#mares .mare-reasoning::-webkit-scrollbar {
    width: 10px;
}

#mares .mare-reasoning::-webkit-scrollbar-track {
    background: #e7e1d9;
}

#mares .mare-reasoning::-webkit-scrollbar-thumb {
    background: #a69a91;
    border: 2px solid #e7e1d9;
    border-radius: 10px;
}

/* Tablet */

@media (max-width: 1050px) {
    #mares .mare-slide {
        grid-template-columns: minmax(0, 43%) minmax(0, 57%) !important;
    }
}

/* Mobile */

@media (max-width: 700px) {
    #mares .mare-slide {
        grid-template-columns: 1fr !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #mares .mare-image,
    #mares .mare-image.homepage-image-slot {
        height: auto !important;
        min-height: 0 !important;
        display: block !important;
        background: transparent;
    }

        #mares .mare-image > img.assigned-homepage-photo,
        #mares .mare-image.homepage-image-slot > img.assigned-homepage-photo {
            width: 100% !important;
            height: auto !important;
            max-height: none !important;
        }

    #mares .mare-information {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 25px 6% !important;
    }

        #mares .mare-information > .mare-reasoning {
            flex: none !important;
            height: 340px !important;
            max-height: 340px !important;
            overflow-y: scroll !important;
        }
}
