:root {
  --primary-color: rgb(61, 61, 61);
  --text-color: white;
  --font-family: "Source Sans Pro", sans-serif;
  --font-weight-light: 300;
  --font-weight-bold: 600;
  --grid-gap: 0px;
  --box-padding: 1.5rem;
  --transition-speed: 0.3s;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-light);
  color: var(--text-color);
  background-color: var(--primary-color);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

.grid {
  display: grid;
  grid-gap: var(--grid-gap);
  padding-top: 75px;
  grid-auto-rows: 100vw;
  grid-template-columns: 1fr;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  left: 20%;
  width: 55%;
  bottom: 10%;
  cursor: pointer;
  transition: all var(--transition-speed) ease-in-out;
  height: 44px;
  position: absolute;
  border: 1px solid white;
}

.button a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 1;
  padding: 0;
}

.button:hover {
  background-color: white;
}

.button:hover a {
  color: black;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a:focus,
button:focus {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
}

.header li {
  
  min-height: 44px;
  display: flex;
  align-items: center;
}

.g_footer {
    grid-template-columns: 1fr 1fr;
}
.g_content {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 25vw max-content 25vw !important;
}
.g_content > .box:not(.wide_ultra) {
    grid-column: span 1;
    /* width: 100%; */
}
.g_content p {
    color: black;
}
.wide3 {
    grid-column-start: span 3;
}
.wide_ultra {
    grid-column-start: span 4;
}
.tall_ultra {
    grid-row-start: span 4;
}
.wideopt, .ultrawideopt, .ultrawideopt3 {
    grid-column-start: auto;
}

.header{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0px;
    margin: 10px;
}

.header li{
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
}
.eupl { height: 24px; }
 
@media (max-width: 389px) {
    body {
        margin: 0px;
    }
    .grid {
        grid-auto-rows: 100vw;
        grid-template-columns: 1fr;
    }
    /* .box, .tall, .viewer, .smallwide, .wideopt, .ultrawideopt3 {
        width: 100%;
    } */
    .g_main, .g_content {
        grid-template-columns: 1fr;
    }
    .g_sub {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: max-content;
    }  
    .wide, .tall, .ultrawideopt, .wideopt {
        grid-column-start: auto;
    }
    .wall {
        grid-column-start: span 2;
    }
    .grid>.box {
        padding: 1.5rem;
    }
    .grid>.box img {
        position: absolute;
    }
    .grid>.box .txt {
        position: relative;
        top: -5%;
    }
    h1 {
        font-size: 1.8rem;
        font-weight: 600;
    }
    h2 {
        font-size: 1.6rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    body, .sm {
        font-size: 1.2rem;
    }
    .button {
        bottom: 5%;
    }
    .lang, .eu {
        width: 25px;
        height: 25px;
    }
    .lang {
        right: 25px;
    }
    .hide {
        display: none !important;
    }
    .short {
        display: block !important;
    }
    .footer li {
        width: 90px; 
    }
    .logo {
        width: 35px; 
        opacity: 0.8;
    }
    .header li {
        font-size: 0.8  rem;
        padding-top: 0.4rem;
    }
    .g_content > .box:not(.wide_ultra) {
        grid-column: span 4;
    }
}

@media (min-width: 390px) {
    body {
        margin: 0px;
    }
    .grid {
        grid-auto-rows: 100vw;
    }
    /* .box, .tall, .viewer, .smallwide, .wideopt, .ultrawideopt3 {
        width: 100%;
    } */
    .g_main {
        grid-template-columns: 1fr;
    }
    .g_sub {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: max-content;
    }
    .wide, .tall, .ultrawideopt {
        grid-column-start: auto;
    }
    .wall {
        grid-column-start: span 2;
    }
    .grid>.box {
        padding: 1.5rem;
    }
    .grid>.box img {
        position: absolute;
    }
    .grid>.box .txt {
        position: relative;
        top: -3%;
    }
    h1 {
        font-size: 2.1rem;
        font-weight: 600;
    }
    h2 {
        font-size: 1.9rem;
    }
    h3 {
        font-size: 1.8rem;
    }
    body, .sm {
        font-size: 1.5rem;
    }
    .button {
        bottom: 7%;
    }
    .lang, .eu {
        width: 25px;
        height: 25px;
    }
    .lang {
        right: 25px;
    }
    .hide {
        display: none !important;
    }
    .short {
        display: block !important;
    }
    .footer li {
        width: 90px; 
    }
    .logo {
        width: 80px; 
        opacity: 0.8;
    }
    .header li {
        font-size: 0.9rem;
        padding-top: 0.4rem;
    }
    .g_content > .box:not(.wide_ultra) {
        grid-column: span 4;
    }
}

@media (min-width: 600px) {
    body {
        margin: 0px;
    }
    .grid {
        grid-auto-rows: 50vw;
    }
    .g_main {
        grid-template-columns: 1fr 1fr;
    }
    .g_sub {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: max-content;
    }  
    .wide, .tall, .ultrawideopt {
        grid-column-start: auto;
    }
    .smallwide {
        grid-column-start: span 2;
    }
    .wall {
        grid-column-start: span 2;
    }
    .grid>.box {
        padding: 0.8rem;
    }
    .grid>.box img {
        position: absolute;
    }
    h1 {
        font-size: 1.8rem;
        font-weight: 600;
    }
    h2 {
        font-size: 1.4rem;
    }
    body, .sm {
        font-size: 1.1rem;
    }
    .button {
        bottom: 5%;
    }
    .lang, .eu {
        width: 25px;
        height: 25px;
    }
    .lang {
        right: 25px;
    }
    .hide {
        display: none !important;
    }
    .short {
        display: block !important;
    }
    .footer li {
        width: 120px; 
    }
    .header li {
        font-size: 1rem;
    }
    .g_content > .box:not(.wide_ultra) {
        grid-column: span 1;
    }
    
}

@media (min-width: 860px) {
    .grid {
        grid-auto-rows: 33vw;
    }
    body {
        margin: 0px;
    }
    .g_main {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    .g_sub {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: max-content;
    }
    .wide, .ultrawideopt {
        grid-column-start: span 2;
    }
    .wall {
        grid-column-start: span 2;
        grid-row-start: span 2;
    }
    .wall_large {
        grid-column-start: span 3;
        grid-row-start: span 3;
    }
    .tall {
        grid-row-start: span 2;
    }
    .grid>.box {
        padding: 2rem;
    }
    .grid>.box img {
        position: absolute;
    }
    .grid>.box .txt {
        top: -6%;
    }
    h1 {
        font-size: 2.1rem;
        font-weight: 600;
    }
    h2 {
        font-size: 1.3rem;
    }
    body, .sm {
        font-size: 1rem;
    }
    .button {
        bottom: 5%;
    }
    .lang, .eu {
        width: 30px;
        height: 30px;
    }
    .lang {
        right: 30px;
    }
    .hide {
        display: none !important;
    }
    .short {
        display: block !important;
    }
    .footer li {
        width: 150px; 
    }
    .smallwide {
        grid-column-start: auto;
    }
}

@media (min-width: 1020px) {
    .grid {
        grid-auto-rows: 33vw;
    }
    .g_main {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
    .g_sub {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .grid>.box {
        padding: 2.5rem;
    }
    h1 {
        font-size: 2.8rem;
        font-weight: 600;
    }
    h2 {
        font-size: 1.7rem;
    }
    body, .sm {
        font-size: 1.0rem;
    }
    .button {
        padding: 1px 1px;
        bottom: 9%;
    }
    .lang, .eu {
        width: 40px;
        height: 40px;
    }
    .lang {
        right: 40px;
    }
    .hide {
        display: flex !important;
    }
    p.hide, span.hide {
        display: inline !important;
    }
    .short {
        display: none !important;
    }
    .header li {
        font-size: 0.95rem;
        padding-top: 0.4rem;
    }
    .eupl { height: 30px; }
}

@media (min-width: 1250px) {
    body, .menu {
        margin-right: 10px;
        margin-bottom: 10px;
        margin-left: 10px;
    }

    .grid {
        grid-auto-rows: 33vw;
    }
    .g_main {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
    .g_sub {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .grid>.box {
        padding: 3rem;
    }
    h1 {
        font-size: 3.0rem;
        font-weight: 600;
    }
    h2 {
        font-size: 2.2rem;
    }
    body, .sm {
        font-size: 1.2rem;
    }
    .button {
        padding: 2px 2px;
        bottom: 10%;
    }
    .lang, .eu {
        width: 40px;
        height: 40px;
    }
    .lang {
        right: 40px;
    }
    .header li {
        font-size: 1.0rem;
    }
    .logo {
        width: 95px; 
    }
}

@media (min-width: 1620px) {
    .g_main {
        grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    }
    .grid {
        grid-auto-rows: 33vw;
    }
    body, .sm {
        font-size: 1.4rem;
    }
    .header li {
        font-size: 1.2rem;
    }
}
@media (min-width: 2020px) {
    .grid {
        grid-auto-rows: 25vw;
    }
    .wideopt {
        grid-column-start: span 2;
    }
    .ultrawideopt {
        grid-column-start: span 4;
    }
    .ultrawideopt3 {
        grid-column-start: span 3 !important;
    }
    .logo {
        width: 110px; 
    }
}
@media (min-width: 2420px) {
    .g_main {
        grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    }
    .grid {
        grid-auto-rows: 25vw;
    }
    body, .sm {
        font-size: 1.5rem;
    }
    .button {
        bottom: 15%;
    }
    .header li{
        height: 3rem;
    }
}
@media (min-width: 2820px) {
    .g_main {
        grid-template-columns: repeat(auto-fill, minmax(700px, 1fr));
    }
}

.grid>.box {
    background: white;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid>.viewer {
    padding: 0rem !important;
}

.grid>.viewer div {
    font-size: 1.2rem !important;
}

.grid>.box:hover {
    background-image: linear-gradient( to bottom, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.1));
}

.grid>.box::before {
    content: "";
    display: block;
}

.grid>.box:not(.wall, .case) img {
    width: 101%;
    height: 101%;
    object-fit: cover;
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: 550% 550%;
    */
    transition: transform 10s, filter ease-in-out;
}

.grid>.box video {
    width: 100%;
    height: 100%;
    top: 0%;
    object-fit: cover;
    position: absolute;

}

.grid>.box .zoom:hover {
    /* transform-origin: 550% 550%; */
    transform: scale(1.1);
}

.grid>.box .txt {
    background: none !important;
}

.subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0px;
}

.subgrid>.subbox {
    background: black;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.subgrid>.subbox::before {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.subgrid>.subbox img {
    position: absolute;
    width: 101%;
    height: 101%;
    object-fit: cover;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.subgrid>.subbox p {
    padding: 1rem;
}

.shadow {
    background: gray;
    box-shadow: -10px -10px 0px blue;
}

.scaledown {
    object-fit: scale-down !important;
}

.button {
    position: absolute;
    border: 1px solid white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    background-color: white;
    color: black;
}

.button:hover a {
    color: black;
}

.button1 {
    padding: 3px 3px;
    left: 15%;
    width: 25%;
}

.button2 {
    padding: 3px 3px;
    left: 55%;
    width: 25%;
}

.socialmedia:hover a {
    color: black;
}

.socialmedia img {
    width: 30% !important;
    height: auto !important;
    filter: invert(100%);
}

.socialmedia:hover {
    background: white !important;
    color: black;
}

a {
    color: white;
    text-decoration: none;
}

.socialmedia:hover img {
    filter: invert(0%);
}

.team {
    background: white !important;
}

.team .hon {
    display: none;
}

.team:hover .hoff {
    display: none;
}

.team:hover .hon {
    display: block;
    color: black;
}

.team:hover .hon img {
    display: block;
    filter: invert(0%);
}

.mouse {
    position: absolute !important;
    object-fit: scale-down !important;
    width: 64px !important;
    height: 64px !important;
    transform: translate(0px, +32px) !important;
    z-index: 100;
    display: none;
    opacity: 0.5;
}

.viewer:hover>.mouse {
    display: none;
}

#wearfits_popup_content>img, #wearfits_popup_content_1>img{
    width: auto;
    height: auto;
}
.inv {
    filter: invert(100%);
}
.wall, .wall_large, .text {
    background-color: white;
    color: gray;
    display: block !important;
}

.wall img {
    width: 90% !important;
    height: auto !important;
    position: relative !important;
    margin-left: auto;
    margin-right: auto;
    display: block;

}

.eulogo {
    height: 70% !important;

}

.footer{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-right: 20px;
}

.footer li{
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer li img{
    width: 80%; 
    height: auto;
}

ul {
    font-size: 0.8rem;
    padding-inline-start: 20px;
}

.text ol ul,
.text ul {
    font-size: inherit;
    list-style-type: '- ';
    margin-bottom: 10px;
}

.text > ul,
.text > ol {
    margin-top: 10px;
    margin-bottom: 15px;
}

.text ul li,
.text ol li {
    margin-bottom: 8px;
}

.text table {
    margin: 20px 0;
    color: #000;
}

.floating {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 1000;
    background-color: rgb(61, 61, 61);
    height: 75px;
    margin: 0;
    padding: 0;
}

.header a {
    padding: 5px;
    color: rgb(222, 222, 222);
}
.header a:hover{
    color: white;
}
.header img:hover{
    opacity: 1;
}

.blog a { text-decoration: underline; color: silver;} 
.blog a:hover {color: white}
.blog_links a { text-decoration: underline; color: gray;}
.blog_links a:hover {color: black}

.selected { color: white !important; opacity: 1; font-weight: bold;}

@media (prefers-reduced-motion: no-preference) {
  .grid>.box .zoom:hover {
    transform: scale(1.02);
    transition: transform var(--transition-speed) ease-in-out;
  }
}

.lazy-load {
  opacity: 0;
  transition: opacity var(--transition-speed) ease-in-out;
}

.lazy-load.loaded {
  opacity: 1;
}

#container {
  position: relative;
  z-index: 1;
}

.grid > .box:first-child {
  padding-top: 1rem;
}

@media (max-width: 1019px) {
  .button {
    border: none !important;
    height: 44px;
    position: absolute;
    left: 20%;
    width: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border: 1px solid white;
    pointer-events: none;
  }
  .button:hover {
    background-color: white;
  }
  .button:hover::after {
    border-color: transparent;
  }
  .button:hover a {
    color: black;
  }
}

.logo-wide {
  display: block;
}
.logo-square {
  display: none;
}

@media (max-width: 455px) {
  .logo-wide {
    display: none !important;
  }
  .logo-square {
    display: block !important;
    width: 35px !important;
  }
}

.image-container {
    width: 100%;
    margin: 1rem 0rem 2rem 0rem;
    text-align: center;
}

.image-container img {
    max-width: 90%;
    height: auto;
    position: relative !important;
    margin: 0 auto;
    display: block;
}