main {
    overflow: initial !important;
}

.sticky {
    display: none;
}


.tabnav ul::after {
    content: " ";
    border-bottom: 1px solid #d6d6d6;
    width: 100%;
    display: block;
    margin-top: -1px;
    height: 1px;
}

@media only screen and (max-width: 735px) {

    .tab-nav {
        display: none !important;
    }

    .model-container h2 {
        display: none !important;
    }

    .model-container {
        border-bottom: none !important;
    }

    .sticky {
        background-color: rgba(242, 242, 242, 0.9);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        font-size: 0.9rem;
        top: 48px;
        padding-top: 0.8em;
        padding-bottom: 0.75em;
        display: block !important;
    }

    .modal-inner {
        padding: 2.5em 1.5em !important;
    }

    .variant-container a.button {
        margin-top: 10px !important;
        float: left !important;

    }

}

.font-bold {
    font-weight: 600;
}

section-models .section-content {
    padding: 0 1em;
}

.model-image, .model-image img {
    width: 290px;
    height: 210px;
    border-radius: 10px;
}
.model-image.image, .model-image.text, .model-image.sound, .model-image.activity{
    background-size: cover;
}
.model-image.image {
    background-image: url('/machine-learning/models/images/image.png');
}

.model-image.text {
    background-image: url('/machine-learning/models/images/text.png');
}

.model-image.sound {
    background-image: url('/machine-learning/models/images/sound.png');
}

.model-image.activity {
    background-image: url('/machine-learning/models/images/activity.png');
}

.model-title {
    font-weight: 600;
    display: block;
    text-align: left;
    font-size: 1.2em;
    padding-top: 1em;
}

.model-description {
    display: block;
    text-align: left;
    line-height: 1.5;
    font-size: 0.9em;
}

.model-category {
    display: block;
    font-size: 0.9em;
    text-align: left;
    padding-top: 15px;
}


.model-details .button {
    margin-top: 15px;
}

.model-details {
    padding-top: 10px;
}

.model-container {
    border-bottom: 1px solid #d6d6d6;
}

.section-models .section-content:last-child div.model-container {
    border-bottom: none !important;
}

.section-models div.model-container {
    padding-bottom: 3em;
}

/* .section-models .section-content:not(:nth-child(2)) div.model-container {
    padding-top: 3em;
} */
.section-models .section-content div.model-container {
    padding-top: 3em;
}

section.tab-nav {
    background: #FFF;
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    position: -webkit-sticky;
    position: -moz-sticky;
    position: -ms-sticky;
    position: -o-sticky;
    position: sticky;
    top: 7px;
    z-index: 9;
}

.tabnav-link.current {
    font-weight: 600;
}

/* modal */

.modal {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    -webkit-overflow-scrolling: touch;
}

/* Inner */
body[data-color-scheme="dark"] .modal-inner {
        background: #222 !important;
}

.modal-inner {
    max-width: 700px;
    width: 90%;
    padding: 3em;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 18px;
	max-height: 90vh;
	overflow: auto;
}

.modal-inner h2{
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

/* Close Button */
.modal-close {
    position: absolute;
    z-index: 9999;
    overflow: hidden;
    top: 28px;
    left: 28px;
    margin: 0;
    padding: 0;
    font-size: 40px;
    line-height: 1;
    width: .75em;
    height: .75em;
    cursor: pointer;
    background: none;
    border: 0;
    color: #888
}

.modal-close::before,
.modal-close::after {
    font-family: "SF Pro Icons";
    color: inherit;
    display: inline-block;
    font-style: normal;
    font-weight: inherit;
    font-size: inherit;
    line-height: 1;
    text-decoration: underline;
    position: relative;
    z-index: 1;
    alt: ''
}

.modal-close::before,
.modal-close::after {
    text-decoration: none
}

.modal-close::before {
    display: none
}

.modal-close::before,
.modal-close::after {
    content: ""
}

.modal-close::after {
    position: absolute;
    top: -.025em;
    left: -.1em;
    padding: 0
}

@media only screen and (max-width: 1068px) {
    .modal-close {
        top: 22px;
        left: 22px;
        font-size: 32px;
        width: .75em;
        height: .75em
    }

    .modal-close::after {
        left: -.09375em
    }
}

.variant-container {
    padding: 1em 0 1em 0.5em;
}

.modal div.row:not(:first-child) {
    border-bottom: 1px solid #f2f2f2;
}

.modal div.row:last-child {
    border-bottom: none !important;
}

.variant-container .variant-icon {
    width: 64px;
    height: 64px;
}

.variant-container .variant-icon.ml-model {
    background-image: url("/assets/elements/icons/core-ml-file/core-ml-file-64x64_2x.png");
    background-size: 64px 64px;
}

.variant-container .variant-icon.xcode {
    background-image: url("/assets/elements/icons/xcode-project/xcode-project-64x64_2x.png");
    background-size: 64px 64px;
}

.variant-container .variant-title {
    display: block;
    font-weight: 600;
    padding-top: 10px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.variant-container .variant-description {
    display: block;
    font-size: 0.8em;
}

.variant-container a.button {
    margin-top: 20px;
}

/* end modal */

/* topnav */

@media only screen and (min-width: 1442px) {
    ul.tabnav-items {
        width: 980px;
    }
}

@media only screen and (max-width: 1068px) {
    ul.tabnav-items {
        width: 692px;
    }
}

@media only screen and (max-width: 735px) {
    ul.tabnav-items {
        width: 87.5%;
    }
}

#ml-models .link-models {
	color: rgba(51, 51, 51, 0.6);
	pointer-events: none;
}

.break-by-three{
    clear: both;
}

@media only screen and (max-width: 1068px) {
    .break-by-two{
        clear: both;
    }
    .break-by-three{
        clear: none;
    }
}
@media only screen and (max-width: 735px) {
    .break-by-two, .break-by-three{
        clear: none;
    }
}

.tabnav .tabnav-items{
    margin: 0 auto !important;
}
.tabnav{
    height: 2.61em;
}