:root {
    /* ----- Site Colors ----- */    
    --color-1: rgb(101, 115, 113); 
    --color-2: rgb(102, 51, 153);
    --color-3: rgb(255, 255, 255);
    --color-4: rgb(120, 88, 135);
    --color-5: rgb(108, 126, 172);
    --color-6: rgb(108, 77, 140);
    --color-7: rgb(138, 149, 147);
    --color-8: rgb(230, 230, 250);
}
/* ----- Universal css ----- */
*, *:after, *:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }  
  html {
      min-height: 100%;
      min-width: 100%;
      font-family: -apple-system, BlinkMacSystemFont, "Garamond", serif;
      font-size: 16px;
      line-height: 1.8em;
      margin: 0;
      padding: 0;
  }
  body {
      margin: 0;
      color: rgb(51, 51, 51);
  }
  ul {
      margin: 0;
      padding: 0;
      list-style: none;
  }  
  li {
      margin: 0;
      padding: 0;
  }  
  a {
      text-decoration: underline;
      word-wrap: break-word;
      font-weight: 500;
      color: var(--color-6);
      transition: all 0.6s ease-in-out;
  }  
  a:hover {text-decoration: none;}  
  a img {border: none;}  
  h1 {
      font-size: 2em;
      font-weight: 600;
      margin: 0;
      line-height: 1em;
      color: var(--color-7);
  }  
  h2, h3, h4, h5 {
      margin: .5rem 0;
      line-height: 1.375em;
      color: var(--color-7);
  }  
  h2 {font-size: 1.728em;}
  h3 {font-size: 1.44em;}
  h4 {font-size: 1.2em;}
  h5 {font-size: 1.1em;}
  p {margin: .5em 0;}
  p a {text-decoration: underline;}
  li a {font-size: 1.1em; font-weight: 600; text-decoration: none; padding: 1rem;}
  li span {color: var(--color-6); font-weight: 600;}
  strong {font-weight: 600;}
/* -------- Nav -------- */
nav a:link { 
    color: var(--color-2); 
}
nav a:visited {       
    color: var(--color-2);
}
nav a:hover {
    color: var(--color-3);
    background-color: var(--color-4);
    text-decoration: none;
}
nav a:focus { 
    color: var(--color-3);    
}
nav li .active {
    color: var(--color-3);
    background-color: var(--color-5);
}
footer .menu a {
    text-decoration: none; 
    padding: .5rem;
    color: var(--color-2);
    background-color: var(--color-8);
}
footer .menu a:link { 
    color: var(--color-2);
    background-color: var(--color-8); 
}
footer .menu a:visited{
    color: var(--color-2); 
}
footer .menu a:hover {
    color: var(--color-3);
    background-color: var(--color-4);
    text-decoration: none;
}
footer .menu a:focus { 
    color: var(--color-3);
}
footer .menu a .active {
    color: var(--color-3);
    background-color: var(--color-5);
}
  /* -------- CSS Grid Core -------- */
header {grid-area: head;}
main {grid-area: main;}
footer {grid-area: footer;}
body {
    display: grid;
    width: 100%;
    height: auto;
    grid-template-areas:  
        "head"
        "main"
        "footer";
}
 header {    
    display: grid;
    height: auto;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
    color: var(--color-1);
    background-color: var(--color-header-bg);
    min-height: 100px;
    padding: .5rem 0;
}
main {
    display: grid;
    min-height: calc(100vh - 350px);
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
}
footer {
    display: grid;
    height: auto;
    border-top: solid 3px var(--color-8);
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, minmax(80px, 1fr));
    padding: 1rem;
}
/* -------- Header -------- */
.logo {
    grid-column: 1 / 7;
    grid-row: 1 / 2;
    display: grid;
    grid-template-columns: repeat(2, auto);
    align-items: center;
    justify-content: center;
    align-content: center;
}
.logo_img {
    max-height: 150px;
}
.logo a {
    display: grid;
    text-decoration: none;
}
.logo a p {
    font-size: 2em;
    margin: 0;
    line-height: 1em;
    color: var(--color-1);
}
.title {
    grid-column: 1 / 7;
    grid-row: 2 / 3;
    display: grid;
    justify-content: center;
    align-content: center;
    text-align: center;
}
.sitename {
    font-size: 2.7em;
    font-weight: 600;
    margin: 0;
    line-height: 1em;
    color: var(--color-6);
}
.strap {
    font-size: 1.2em;
    margin: 0;
}
nav {
    grid-column: 1 / 7;
    grid-row: 3 / 4;
    align-self: center;
    background-color:var(--color-8);
}
nav ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    min-height: 110px;
    justify-items: center;
    align-content: space-around;
}
/* -------------------- Starter Website -------------------- */
.large_img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: flex;
    align-self: center;
}
.landscape_img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: flex;
    align-self: center;
}
.portrait_img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: flex;
    align-self: center;
}
.list_img {
    width: auto;
    /* max-width: 500px; */
    height: auto;
    display: flex;
    align-self: center;
}
/* -------- title panel (100% accross) -------- */
.title_panel,
.title_panel_sm {
    grid-column: span 12;
    grid-row: auto;
    display: flex;
    flex-direction: row;
    align-self: flex-start;
    padding: 1rem;
    justify-content: space-between;
}
.title_panel_sm {
    padding: 0;
}
/* -------- full panel (100% accross) -------- */
.content_panel_full {
    grid-column: span 12;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    padding: 1rem;
}
/* -------- half panel (50% accross) -------- */
.content_panel_half {
    grid-column: span 12;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    padding: 1rem;
}
/* -------- large panel (70% accross) -------- */
.content_panel_large {
    grid-column: span 12;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    padding: 1rem;
}
/* -------- small panel (30% accross) -------- */
.content_panel_small {
    grid-column: span 12;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    padding: 1rem;
    height: 100%;
    justify-content: space-between;
}
/* -------- full Text Panel (100% accross in mobile) -------- */
.text_panel_full {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-self: center;
}
/* -------- large Text Panel (100% accross in mobile) -------- */
.text_panel_large {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-self: center;
}
/* -------- Breadcrumb -------- */
.breadcrumb {
    grid-column: 2 / 12;
    grid-row: auto; 
    display: grid;
    justify-items: end;
}
/* -------- Card panel -------- */
.card_panel {
    grid-column: span 12;
    grid-row: auto;
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    max-width: 1300px;
    justify-self: center;
    justify-content: space-around;
    padding: 1rem;
}
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0 .3rem 2rem;
}
.card_link {    
    border: solid 1px var(--color-7);
    padding: .3rem;
}
.card_link:hover {
    border: solid 1px var(--color-2);
}
/* -------- Mini Gallery panel -------- */
.mini_gallery {    
    grid-column: span 12;
    grid-row: auto;
    padding: 0 0 1rem;
}
.mini_gallery ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    justify-content: center;
}  
.mini_gallery li {
    flex-grow: 1;
    max-width: fit-content;
}
.mini_gallery img {
    max-height: 100%;
    min-width: 100%;
    object-fit: cover;
    vertical-align: bottom;
}
/* Smaller screens in portrait */
@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
    .mini_gallery ul {
        flex-direction: row;
    }    
    .mini_gallery li {
        height: auto;
        width: 100%;
    }
    .mini_gallery img {
        width: 100%;
        max-height: 75vh;
        min-width: 0;
    }
}
 @media only screen and (min-width: 33.75em) { /* 768px */
 .mini_gallery li {
    width: auto;
    height: 40vh;
    max-height: 175px;
}
} 
/* -------- sitemap -------- */
.sitemap {
    grid-column: 1 / 13;
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}
.sitemap2 {
    display: flex;
    flex-direction: column;
}
.sitemap li,
.sitemap2 li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .5rem;
} 
.sitemap a {
    text-decoration: underline;
    font-size: 1.4em;
}
.sitemap a:hover {
    text-decoration: none;
}
/* -------- Contact Form Full Page -------- */
.contact_form_fullpage {
    grid-column: 3 / 11;
    grid-row: auto;
}
form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    justify-content: center;
    align-content: center;
    grid-gap: .5rem;
    margin: 0;
}
input,
textarea {
    cursor: pointer;
    grid-column: 1 /5;
    font-size: 16px;
    height: auto;
    outline: 0;
    padding: 15px;
    color: rgb(105, 108, 113);
    box-shadow: 2px 2px 3px rgba(0,0,0,0.06) inset;
    margin: 0 0 8px;
    }
input[type="text"],
input[type="email"],
textarea {
    grid-column: 1 /5;
    font-size: 16px;
    height: auto;
    outline: 0;
    padding: 15px;
    border: 2px solid var(--color-8);
    border-radius: 5px;
}
label {   
    grid-column: 1 /5;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--color-6);
    display: block;
}
button[type="submit"]  {
    grid-column: 1 / 2;
    border-radius: 8px;
    color: var(--color-3); 
    background-color: var(--color-5);
    padding: .8rem;
    border: solid 3px var(--color-5);
    font-family: var(--font-family_two);
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
}
button:hover {
    color: var(--color-3);
    background-color: var(--color-4);
}
.error {
    color: rgb(220, 20, 60);
}
form p {
    grid-column: 2 / 4;
}
/* -------- Footer -------- */
.social_icon {
    height: 40px;
}
footer {
    min-height: 60px;
    justify-content: center;
    align-content: center;
}
.social {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
}
.social img {
    transition: all .5s ease-in-out; 
}
.social img:hover { 
    transform: scale(1.4); 
}
.menu {
    grid-column: 3 / 7;
    grid-row: 1 / 2;
    justify-self: center;
    align-self: center;
}
.menu ul li {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    }
.copyright {
    grid-column: 1 / 7;
    grid-row: 2 / 3;
    justify-self: center;
    align-self: center;
}
@media screen and (min-width: 280px) {
    html {
      font-size: calc(14px + 4 * ((100vw - 320px) / 680));
    }
}
@media screen and (min-width: 360px) {
    nav ul {
        grid-template-columns: repeat(5, 1fr);
        min-height: 50px;
        align-content: center;
    }
  }
  @media screen and (min-width: 29em) {   /* 464px */    
/* -------- sitemap -------- */ 
    .sitemap {
        grid-column: 2 / 12;
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
    }  
}
@media only screen and (min-width: 33.75em) {  /* 540px */
    body {
        padding: 1rem 3rem;
    }
    header {    
        display: grid;
        width: 100%;
        height: auto;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: auto;
        grid-gap: 1rem;
    }
    .logo {
        grid-column: 1 /3;
        grid-row: 1 / 2;
    }
    .title {
        grid-column: 3 / 7;
        grid-row: 1 / 2;
        justify-content: start;
    }
    nav {
        grid-column: 1 / 7;
        grid-row: 2 / 3;
        align-self: center;
    }    
}
@media only screen and (min-width: 48em) { /* 768px */
    /* -------- full panel (100% accross) -------- */
    .content_panel_full {
        grid-column: span 12;
        grid-row: auto;
        display: flex;
        flex-direction: column;
        align-self: flex-start;
        padding: 1rem;
    }
    /* -------- half panel (50% accross) -------- */
    .content_panel_half {
        grid-column: span 6;
        grid-row: auto;
        display: flex;
        flex-direction: column;
        align-self: flex-start;
        padding: 1rem;
    }
    /* -------- large panel (70% accross) -------- */
    .content_panel_large {
        grid-column: span 7;
        grid-row: auto;
        display: flex;
        flex-direction: column;
        align-self: flex-start;
        padding: 1rem;
    }
    /* -------- small panel (30% accross) -------- */
    .content_panel_small {
        grid-column: span 5;
        grid-row: auto;
        display: flex;
        flex-direction: column;
        align-self: flex-start;
        padding: 1rem 0;
    }
    /* -------- full Text Panel (100% accross in mobile) -------- */
    .text_panel_full {
        width: 100%;
    }
    /* -------- large Text Panel (100% accross in mobile) -------- */
    .text_panel_large {
        width: 70%;
    }
    /* -------- Footer -------- */
    footer {
        grid-template-rows: minmax(80px, 1fr);
    }
    .social {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    .menu {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    } 
    .copyright {
        grid-column: 4 / 7;
        grid-row: 1 / 2;
    }
}