/* modile media query */
@media screen and (max-width:767px) {

    .gds-header .gds-header__main #mobilemenutoggle::before{
        display:none;
    }

    .hero-home .gds-hero .gds-hero__background-image .gds-image {
        width: 100vw;
        position: relative;
    }

    .hero-home .gds-hero .gds-hero__background-image {
        position: static;
        translate: none;
        order: 1;
    }

    .hero-home .gds-hero .gds-hero__full-background {
        display: flex;
        flex-direction: column;
    }

    .hero-home .gds-hero .gds-hero__full-background .gds-grid {
        order: 2;
    }

    .hero-home .gds-hero .gds-hero__content {
        padding-block: var(--spacer-l) var(--spacer-xxl);
    }

    .hero-home .gds-hero .gds-hero__content .gds-heading {
        font-size: var(--typography-heading-m-font-size);
        line-height: var(--typography-heading-m-line-height);
    }

    .heading-post-banner .gds-cell .gds-heading {
        font-size: var(--typography-caption-l-font-size);
        line-height: var(--typography-caption-l-line-height);   
    }

    .gds-footer .gds-footer__branding .gds-image img {
        max-width: 100%
    }

    .isi .gds-isi-tray__inner .gds-isi-tray__accordion button.gds-isi-tray__accordion-title--is-button {
        justify-content: space-between;
    }

    .isi .gds-isi-tray__inner .gds-cell {
        padding-inline: calc(var(--spacer-base)/2);
    }

    .isi .gds-isi-tray__inner .gds-paragraph.gds-paragraph--align-right{
        text-align:left;
    }  
    .hero-section .gds-hero .gds-hero__content{
        padding-block:var(--spacer-l) var(--spacer-xxl);
    }

    .hero-section .gds-hero .gds-hero__content .gds-heading{
        font-size:1.5rem;
    }
    picture img:not(.gds-secondary-hero img):not(.gds-hero img){
        max-width: unset;
        height:100%;
    }
    .heading-post-banner picture img:not(.gds-secondary-hero img):not(.gds-hero img){
        max-width: 80%;
    }
    .blood-sugar-caption .gds-rich-text .gds-heading{
        margin-bottom:var(--spacer-xs);
    }
    .bring-down-blood-sugar .gds-key-fact__content .gds-key-fact__headline{
        padding-bottom:0;
    }
    .blood-sugar-caption  > .gds-cell{
        padding-block:var(--spacer-base);
    }
    .proven-diabetes-medications .gds-rich-text .gds-heading{
        margin-bottom:var(--spacer-xl);
    }
    .blood-sugar-caption .gds-rich-text h2.gds-heading,
    .proven-diabetes-medications .gds-rich-text .gds-heading{
        font-size:var(--typography-p-font-size);
        line-height:var(--typography-p-line-height);
    }
    .proven-diabetes-medications .gds-key-fact,
    .one-day-pill .gds-key-fact{
        flex-direction:column;
    }
    .proven-diabetes-medications .gds-key-fact .gds-key-fact__media-container,
    .one-day-pill .gds-key-fact .gds-key-fact__media-container{
        margin-inline:auto;
    }
    .one-day-pill .gds-key-fact,
    .proven-diabetes-medications .gds-key-fact{
        gap: var(--spacer-base);
    }
    .proven-diabetes-medications .main-region .gds-key-fact:not(:nth-child(5)){
        margin-bottom:var(--spacer-xl);
    }
    .gds-grid--color-bg:has(>.gds-cell *).proven-diabetes-medications{
        padding-block-end:0;
    }
    .one-day-pill .gds-key-fact .gds-key-fact__headline{
        margin-bottom:var(--spacer-base);
    }
    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-content-block__content {
        text-align:center;
    }
    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-content-block__content  .gds-paragraph{
        margin-bottom:0;
    }
    .gds-content-block:not(.gds-content-block--default) .gds-grid .gds-cell:first-child{
        padding-bottom:0;
    }

    /* breadcrumb */
    .breadcrumb .gds-breadcrumb .gds-breadcrumb__list .gds-breadcrumb__list-item:first-child{
        margin-bottom:0;
    }
    .breadcrumb .gds-breadcrumb__list--size-p .gds-breadcrumb__list-item:last-child{
        margin-bottom: 0;
        display: flex;
        order: 1;
    }
    .breadcrumb .gds-breadcrumb__list--size-p .gds-breadcrumb__list-item:first-child{
        order:2;
    }
    .breadcrumb .gds-breadcrumb .gds-icon--base_chevron-left{
        margin-inline:.0625rem var(--spacer-xs) ;
    }
    .breadcrumb .gds-breadcrumb__list--size-p .gds-breadcrumb__list-item:first-child > span:nth-child(2){
        display: none;
    }

    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-grid .gds-cell .gds-btn-wrapper{
        margin-inline:auto;
    }
    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-grid {
        flex-direction: column;
    }

    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-grid .gds-cell {
        width: 100%
    }

    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-grid .gds-cell:last-child {
        order: 1
    }

    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-grid .gds-cell:first-child {
        padding: 0;
    }   
    .one-day-pill .gds-key-fact--big .gds-key-fact__media-container,
    .proven-diabetes-medications .gds-key-fact--big .gds-key-fact__media-container ,
    .bring-down-blood-sugar .gds-key-fact--big .gds-key-fact__media-container {
        max-width: 296px;
    }

    body:has(button.mobilemenutoggle:is(.open)) .gds-isi-tray {
        z-index: 99;
    }

    .gds-header .gds-mega-nav {
        height: 100% !important;
    }

    .sitemap-content .gds-cell p.gds-border-mobile {
        padding-bottom: var(--spacer-s);
        margin-bottom: 0;
        border-bottom: solid 1.2px var(--color-sitemap-border);
    }
}

@media screen and (max-width:767px) and (orientation: landscape){
    .gds-header .gds-mega-nav .gds-mega-nav-main{
        padding-bottom: var(--spacer-massive);
    }
}

@media screen and (min-width:992px) {
    .hero-home .gds-hero .gds-hero__content {
        padding-block: var(--spacer-xxl) var(--spacer-huge);   
    }

    .heading-post-banner .gds-heading span {
        display: block;
    }
    .heading-post-banner .gds-image img{
        max-width: 768px;
    }

    .hero-section .gds-hero .gds-hero__content{
        padding-inline-end:0;
    }
    
    .hero-section .gds-hero .gds-hero__content {
        padding-block: 80px;
    }
    .bring-down-blood-sugar .gds-cell .gds-key-fact{
        padding-block: var(--spacer-m);
    }
    .proven-diabetes-medications.gds-grid--color-bg:has(> .gds-cell *){
        padding-block: var(--spacer-m) 0;
    }
    .one-day-pill .gds-key-fact .gds-key-fact__content,
    .proven-diabetes-medications .gds-key-fact .gds-key-fact__content{
        padding-inline: var(--spacer-m);
        padding-block: var(--spacer-base) var(--spacer-m);
    }
    .one-day-pill .gds-key-fact,
    .proven-diabetes-medications .gds-key-fact{
        gap: 0;
    }
    .proven-diabetes-medications .main-region .gds-key-fact:not(:nth-child(5)){
        margin-bottom: var(--spacer-m);
    }
    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-content-block .gds-grid .gds-cell:first-child{
        padding-block: var(--spacer-3xl);
        padding-left: 0;
    }
    .hero-section .gds-grid .gds-cell:last-child {
        position: unset;
    }

    .hero-section .gds-grid .gds-cell .gds-hero__media .gds-image {
        max-width: 50%;
        margin-left: auto;
    }

    .hero-section .gds-grid .gds-cell .gds-hero__media {
        max-width: 1366px;
    }

    .hero-section .gds-hero .gds-hero__with-media {
        position: relative;
    }
    
    .hero-section .gds-grid .gds-cell .gds-hero__media,
    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-grid .gds-cell .gds-content-block__figure {
        position: absolute;
        width: 100%;
        transform: translateX(-50%);
    }

    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-grid .gds-cell .gds-image {
        margin-left: auto;
    }

    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-grid .gds-cell .gds-content-block__figure {
        transform: none;
        height: 100%;
    }
    .one-day-pill .gds-key-fact--big .gds-key-fact__media-container,
    .proven-diabetes-medications .gds-key-fact--big .gds-key-fact__media-container {
        max-width: 384px;
    }

    .gds-header .gds-mega-nav {
        height: auto !important;
    }
}

/* ipad portait view*/
@media screen and (min-width: 1024px) and (max-width: 1292px) and (orientation: portrait) {
    .gds-footer .gds-footer__branding .gds-footer__legal-links {
        max-width: 90%;
        margin-inline: auto;
        margin-top: 0;
    }

    .gds-footer__logo-bi,
    .gds-footer__secondary-logo {
        width: auto;
    }

    .hero-home .gds-hero .gds-hero__content .gds-paragraph--l {
        font-size: 1rem;
        line-height: 1.25rem;
    }
    .hero-home .gds-hero .gds-hero__content .gds-paragraph--spacer-s {
        line-height: 1.25rem;
    }

    .hero-home .gds-hero .gds-hero__content .gds-heading {
        margin-bottom: var(--spacer-base);
    }

    .hero-home .gds-hero .gds-hero__content {
        padding-block: 2.25rem;   
    }
    .hero-section .gds-grid .gds-cell:first-child .gds-heading{
        font-size: 2.25rem;
        line-height: 2.75rem;
    }
    .proven-diabetes-medications .main-region .gds-key-fact:nth-child(3) img{
        object-fit: contain;
    }
    .gds-error-page{
        margin-block-end:30rem;
    }
}

/* tab landscape view */
@media only screen and (min-width: 1030px) and (max-width: 1280px) and (orientation: landscape) {
    .gds-footer .gds-footer__branding .gds-footer__legal-links {
        max-width: 75%;
        margin-inline: auto;
        margin-top: 0;
    }

    .gds-footer__logo-bi,
    .gds-footer__secondary-logo {
        width: calc(8.75rem + var(--spacer-xxl));
    }
    .gds-footer .gds-footer__secondary-logo{
        max-width: unset;
    }

    .hero-home .gds-hero__full-background .gds-hero__content-inner {
        max-width: 560px;
        width: 100%;
    }

    .hero-home .gds-hero .gds-hero__content {
        padding-block: calc(var(--spacer-xxl) - var(--spacer-xxs)) var(--spacer-3xl);
    }
}

/* ipad portrait and tab landscape */
@media only screen and (min-width: 1030px) and (max-width: 1280px) and (orientation: landscape),
screen and (min-width: 1024px) and (max-width: 1292px) and (orientation: portrait){
    .dialog-off-canvas-main-canvas.show {
        overflow-x: hidden; 
    }

    .gds-header .mobilemenutoggle  span:last-child{
        display:none;
    }

    .hero-home .gds-hero .gds-hero__content .gds-heading--xxl{
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .gds-footer__logo--secondary {
        width: calc(8.75rem + var(--spacer-xxl));
    }

    .gds-footer .gds-footer__legal-links.gds-footer__align-center .gds-inline-menu {
        justify-content: center;
    }

    .gds-footer__legal-links.gds-footer__align-center ul li.gds-inline-menu__item:nth-child(6) {
        margin-inline-end: 0;
    }

    .gds-footer__logo.gds-footer__logo--secondary {
        display: flex;
        justify-content: end;
    }

    .hero-section .gds-hero .gds-hero__with-media .gds-grid .gds-cell:not(:has(.gds-hero__media)){
        padding-inline-start:var(--spacer-base);
    }
    div.starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-content-block .gds-grid .gds-cell.gds-cell--m-half:last-child {
        padding-left: var(--spacer-base);
    }
}

/* desktop view */
@media screen and (min-width: 1280px) {
    .hero-home .gds-hero__full-background .gds-hero__content-inner {
        max-width: 580px;
        width: 100%;
    }

    .hero-home .gds-hero .gds-hero__full-background {
        max-width: 1366px;
        margin-inline: auto;
    }

    .hero-section .gds-hero .gds-grid .gds-cell:first-child{
        padding-right: var(--spacer-base);
    }

    .hero-section .gds-hero .gds-grid .gds-cell:last-child {
        padding-left: var(--spacer-base);
    }

    .heading-post-banner .gds-rich-text .gds-paragraph{
        max-width: 98%;
        margin-inline: auto;
    }

    .gds-footer .gds-footer__legal-links--full-width {
        margin-block-start: 0;
    }

    .gds-footer .gds-footer__branding .gds-footer__legal-links {
        max-width: 75%;
    }

    .gds-footer__logo-bi,
    .gds-footer__secondary-logo {
        width: auto;
    }   

    .gds-footer{
        position: absolute;
        width:100%;
    }

    /* error-page */
    .gds-error-page{
        margin-block-end:10rem;
    }

    .hero-home .gds-hero .gds-hero__content .gds-paragraph.gds-paragraph--spacer-s span {
        display: block;   
    }

    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-content-block .gds-grid .gds-cell:first-child {
        width: 100%;
        max-width: calc(592px + var(--spacer-l));
        padding-right: var(--spacer-l);
    }

    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-content-block .gds-grid .gds-cell:last-child {
        width: 100%;
        max-width: calc(100% - 624px);
    }

    .hero-section .gds-grid .gds-cell .gds-hero__media .gds-image,
    .starting-the-conversation-can-be-as-quick-as-1-2-3 .gds-content-block__figure .gds-image {
        min-width: 667px;
    }

    .one-day-pill .gds-key-fact__content .gds-key-fact__headline {
        max-width: 95%;
    }

    .proven-diabetes-medications .main-region .gds-key-fact:nth-child(3) .gds-key-fact__content .gds-paragraph{
        padding-right: var(--spacer-base);
    }

    .proven-diabetes-medications .main-region .gds-key-fact:not(:nth-child(5)) .gds-key-fact__content .gds-paragraph{
        max-width: 99%;
    }

    .proven-diabetes-medications .gds-rich-text .gds-heading.gds-heading--xs {
        max-width: 97%;
        margin-inline: auto;
    }

    .isi .gds-isi-tray__content .gds-isi-tray__accordion:first-child {
        padding-bottom: var(--spacer-xs);
    }

    .isi .gds-isi-tray__content .gds-isi-tray__accordion:first-child .gds-isi-tray__accordion-content-inner p:nth-child(2) {
        padding-right: 4.5px;
    }

    /* ISI update fixes */
    .isi .gds-isi-tray__content .gds-isi-tray__accordion:last-child .gds-isi-tray__accordion-content-inner>ul:first-of-type>li>p {
        max-width: 40%;
    }
    .isi .gds-isi-tray__content .gds-isi-tray__accordion:last-child .gds-isi-tray__accordion-content-inner p:nth-child(12){
        max-width: 92%;
    }
    .isi .gds-isi-tray__content .gds-isi-tray__accordion:last-child .gds-isi-tray__accordion-content-inner ul:nth-child(22) li:last-child{
        padding-right:var(--spacer-base);
    }
    .isi .gds-isi-tray__content .gds-isi-tray__accordion:last-child .gds-isi-tray__accordion-content-inner ul:nth-child(26) li {
        max-width: 98%;
    }
}