/* === For your Responsive CSS === */

img, .review-articles {
    max-width: 100%;
}

.figure img {
    /* (B1) DIMENSIONS */
    width: 50%; /* 2 items per row, 100% / 2 = 50% */
    height: auto;
    max-height: 161rem;
   
    /* (B2) RESIZE BEHAVIOR */
    object-fit: cover; /* none | cover | contain | scale-down | fill */
  }



.iframe-container{
position: relative;
width: 100%;
padding-bottom: 20%; 
height: 0;
}
.iframe-container article iframe{
/* position: absolute; */
top:0;
left: 0;
width: 100%;
height: 100%;
}
  
/* .hide {
    display: none;
} */

/* In the above example, the CSS class .hide sets the visibility property to hidden,
 which hides the element while preserving its space within the grid layout. 
*/
.hide {
    visibility: hidden;
  }


header {
    grid-template-columns: 1fr 1fr 1fr;
    display: flex;
    flex-wrap: nowrap;
    column-gap: 1rem;
}


/* Style the navigation menu */
/* .topnav {
    overflow: hidden;
    background-color: #333;
    position: relative;
  } */
  
  /* Hide the links inside the navigation menu (except for logo/home) */
  /* .topnav #myLinks {
    display: none;
  }
   */
  /* Style navigation menu links */
  /* .topnav a {
    color: #2490BE;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: flex;
    align-items: center;
  }
   */
  /* Style the hamburger menu */
  /* .topnav a.icon {
    background: lightblue;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    margin-right: 20rem;
  } */
  
  /* Add a grey background color on mouse-over */
  /* .topnav a:hover {
    background-color: #ddd;
    color: black;
  } */
  
  /* Style the active link (or home/logo) */
  .active {
    background-color: #04AA6D;
    color: white;
  }


  /* Style the navigation menu */
#myLinks {
    /* overflow: hidden; */
    background-color: lightblue;
    position: relative;
    /* max-height: 200px; Set the desired maximum height for the menu */
    /* width: 200px; Set the desired width for the menu */
    /* height: 100vh; /* Set the height to cover the entire viewport */     */
    overflow-y: auto; /* Enable vertical scrollbar when needed */
  }
  
/* Hide the links inside the navigation menu (except for logo/home) */
#myLinks {
    display: none;
}

  /* Style navigation menu links */
#myLinks  a {
    color: #2490BE;
    padding: 1px 1px;
    text-decoration: none;
    font-size: 17px;
    display: flex;
    align-items: center;
    font-weight: bold;
  }
  
  /* Style the hamburger menu */
#myLinks a.icon {
    background: lightblue;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    margin-right: 20rem;
  }
  
  /* Add a grey background color on mouse-over */
#myLinks  a:hover {
    background-color: #ddd;
    color: black;
  }

/*
@media screen and (max-width:600px){
    header {
        grid-template-columns: 100%;
    }

    #logo {
        text-align: center        
    }

    #nav a {
        display: block;
        background-color: orange;
        text-align: center; 
        padding: 0.25rem;
    }

    #splash {
        font-size: 2rem;
        line-height: 2.5rem;
        height: 10.7rem;
        grid-column: 1/2;
    }
    
    main {
        grid-template-columns: 100%;
        text-align: center;
    }
    #app {
        grid-column: 1/2;
    }

    footer {
        text-align: center; 
        grid-template-columns: 100%;
    }

    #social-media {
        text-align: center; 
    }
}
*/

/* @media screen and (min-width:601px){
    #mobile-menu {
        display: none;
} */

/* Style for elements with display: none */
#nav_horizontal:not([style*="display: none;"]) {
    max-width: none;
  }
  
#nav_horizontal[style*="display: none;"] {
    max-width: 0px;
}


@media screen and (min-width: 955px){
    #mobile-menu {
        display: none;
    }
    .topnav {
        display: none;
    }

    .treatments {
        grid-template-columns: repeat(4, 1fr);
    }
    .review-articles {
        grid-template-columns: repeat(2, 1fr);
    }

    #myLinks {
        display: none !important;
    }
}

@media screen and (min-width: 481px) and (max-width:955px){
    .treatments {
        grid-template-columns: 1fr 1fr;
    }
    
    .review-articles {
        grid-template-columns: 1fr;
    }

    .nav,
    .social-media {
        display: none;
    }


    #splash {
        font-size: 2rem;
        line-height: 2.5rem;
        height: 10.7rem;
        grid-column: 1/2;
    }
}


/* @media screen and (min-width: 180px) and (max-width:480px){ */
@media screen and (max-width:480px){    
    .treatments {
        grid-template-columns: 1fr;
    }
    .review-articles {
        grid-template-columns: 1fr;
    }

    header{
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); /* Reduced column width for mobile devices */
    }

    .nav,
    .social-media {
        display: none;
    }
    #mobile-menu {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
    }
}


/* 
@media screen and (max-width: 479px){
    .treatments {
        grid-template-columns: 1fr;
    }
    #logo,
    #nav {
        display: flex;
    }

    #logo {
        align-items: flex-start;
        justify-content: flex-start; 
    }
    #nav {
        align-items: flex-end;
        justify-content: flex-end;
        white-space: nowrap; 
    }
} */



@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #000000;
        --color-fg: #ffffff;
    }

    body {
        background-color: var(--color-bg);
        color: var(--color-fg);
    }

    #app {
        background-color: var(--color-bg);
        color: var(--color-fg);
    }

    #nav a {
        background-color: var(--color-bg);
        color: var(--color-fg);
    }
    
}


