shtml {
    scroll-behavior: smooth;
}
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*::before, *::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  background: #efefef;
}

h1,h2,h3,h4,h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
}
h1 {
  -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #000;
    color: transparent;
}

/* All links */
a {
  color:#000;
  text-decoration:none;
}
a:hover {
  color:#000;
  text-decoration:underline;
}

/* Buttons */
.btn.btn-primary {
    background:#FFF;
    color:#000;
    border:1px solid #000;
    border-radius:0
}
.btn.btn-primary:hover {
  background:#000;
  color:#FFF;
}

/* alert */
.alert-success {
    width: 100%;
}
.alert-success {
  color:rgba(255,255,255,0.7);
  border:0;
}
.alert-success a {
  color:rgba(255,255,255,0.7);
  text-decoration:underline
}
.alert-success a:hover {
  text-decoration:none
}

/* White background */
.white-bg {
  background-color:#FFF
}

/* Bootstrap accordion fix */
.collapse.in { display: block!important; } .collapse { display: none!important; }

.input-group>.custom-select:not(:first-child), .input-group>.form-control:not(:first-child) {
  border-radius: 0
}
.custom-select {
  border: 0;
}

/* Tables */
.table-responsive>.table-bordered {
  border: 1px solid #efefef;
}

/* Reset paragraph */
p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Overlay - used for search input */
#overlay {
  background-color: #000;
  z-index:3000;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

/* Remove glow from inputs */
textarea, select, input, button, button:focus { outline: none; border:0; border-radius:0 !important }
label {
  display: inline-block;
  line-height: 2rem;
}
/* Loading */
@keyframes example {
  0% {
    top:0;
  }
  100% {
    top:-100%
  }
}
@keyframes progress {
  0% {
    width:0;
  }
  100% {
    width:300px;
  }
}
#loading .progress {
  height:1px;
  width:0;
  background-color:#000;
  animation-name: progress;
  animation-duration:1.5s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-delay: 0s;
}
#loading .loading {
  display:block;
}
#loading .loading-cont {
  height:1px;
  width:300px;
  background-color:transparent
}
#loading {
  text-transform: uppercase;
  display:flex;
  justify-content:center;
  align-items:center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  z-index: 2300;
  background-color: #FFF;
  animation-name: example;
  animation-duration: 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-delay: 2s;
}
/* Firms scroller scrollbar */
.scroller::-webkit-scrollbar, ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.scroller::-webkit-scrollbar-track, ::-webkit-scrollbar-track {
  background: #FFF;
}
.scroller::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb {
  background: #000;
}
.scroller::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:hover {
  background: #000;
}


/* Placeholders */
::placeholder {
  color: #ccc;
  opacity: 1;
}
:-ms-input-placeholder {
  color: #ccc;
}
::-ms-input-placeholder {
  color: #ccc;
}

/* temp */
#mobile-menu {
    position: fixed;
    z-index: 20;
    top: 0;
    height: 100%;
    left: -250px;
    width: 250px;
    background: #FFF;
    -webkit-transition: all 0.3s ease-in;
    -moz-transition: all 0.3s ease-in;
    -khtml-transition: all 0.3s ease-in;
    -o-transition: all 0.3s ease-in;
    transition: all 0.3s ease-in;
}
#mobile-menu.active {
  left:0;
}
#mobile-menu.active #burgerBtn {
  right:0;
  top:24px;
}
#burgerBtn {
  border-top: 2px solid #000;
  height: 25px;
  width: 30px;
  box-sizing: border-box;
  position: fixed;
  z-index: 30;
  left: 16px;
  top: 24px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease-in;
  -moz-transition: all 0.3s ease-in;
  -khtml-transition: all 0.3s ease-in;
  -o-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
}
#burgerBtn:before {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  width: 30px;
  left: 0;
  background: #000;
  top: 10px;
  -webkit-transition: all 0.3s ease-in;
  -moz-transition: all 0.3s ease-in;
  -khtml-transition: all 0.3s ease-in;
  -o-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
}
#burgerBtn:after {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  width: 30px;
  left: 0;
  background: #000;
  bottom: 0;
  -webkit-transition: all 0.3s ease-in;
  -moz-transition: all 0.3s ease-in;
  -khtml-transition: all 0.3s ease-in;
  -o-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
}
.active #burgerBtn {
  border-color: transparent;
  left:206px;
}
.active #burgerBtn:before {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -khtml-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  width: 33px;
  left: -2px;
}
.active #burgerBtn:after {
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -khtml-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  transform: rotate(135deg);
  bottom: 11px;
  width: 33px;
  left: -2px;
}

#mobile-menu .logo {
  background:transparent url('../image/logo.png') 1.5em center no-repeat;
  display: block;
  height: 70px;
  padding: 0 1.5em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
#mobile-menu .nav {
  color:#000;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  height: calc(100% - 70px);
}
#mobile-menu .nav > ul {
  margin: 0;
  padding: 0 20px;
  list-style-type: none;
}
#mobile-menu .nav > ul > li {
  color: #000;
  padding: 0 0 20px 0;
}
#mobile-menu .nav a {
  text-decoration: none;
  color: #000;
}
#mobile-menu .menu {
  width: 100%;
}

/* Menu */
.sidebar {
  position: relative;
  top: 0;
  bottom: 0;
  left: 0;
  padding:0;
  z-index: 100;
  background: #FFF;
}
.sidebar-sticky {
  position: sticky;
  position: -webkit-sticky;
  margin-top: 70px;
  top:70px;
  bottom:0;
  height: calc(100vh - 70px);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}
.menu > ul {
  list-style-type: none;
  margin:0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding:0;
}

.menu ul li.active > ul {
  display:block;
}
.menu ul li ul li.active a {
  background-color:#000;
  color:#FFF !important;
}
.menu ul li ul li.active a:hover {
  background-color:#000;
  color:#FFF !important;
}
.menu ul li ul li:not(.active) a:hover {
  background-color: #eee
}
.menu ul li a div {
  display:inline-block
}
.menu ul li a div:after {
    display: block;
    content: ' ';
    background-image: url('../image/arrow-down.svg');
    height: 1em;
    width: 1em;
}
.menu ul li:hover {

}
.menu ul li a {
  color:#000;
  display:block;
  padding:0.7em 1.5em;
  text-decoration:none
}
.menu ul li a svg {
  vertical-align: baseline;
  margin-right:10px;
}
.sidebar .logo {
  position:sticky;
  position: -webkit-sticky;
  top:0;
  background:transparent url('../image/logo.png') 1.5em center no-repeat;
  display:block;
  height: 70px;
  color:#000;
  font-weight: bold;
  padding:0 1.5em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu ul li ul {
  display:none;
  margin:0;
  padding:0;
  list-style-type: none
}
.menu ul li ul li {
  margin-left:35px;
  font-size:0.9em
}
.menu ul li ul li a {
  color:#000
}
ul.privacy {
  border-bottom:0
}
.social-icons {
  padding:1.5em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.social-icons a {
  margin-right:10px;
  width:1.5em;
  height:1.5em;
  display:inline-block;
}
.social-icons a.facebook {
  background-image: url('../image/facebook.svg');
}
.social-icons a.twitter {
  background-image: url('../image/twitter.svg');
}
.social-icons a.instagram {
  background-image: url('../image/instagram.svg');
}
.social-icons a.linkedin {
  background-image: url('../image/linkedin.svg');
}
.social-icons a:hover, .compare-it:hover {
    animation-name: ckw;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    transform-origin: 50% 50%;
    display: inline-block;

}
@keyframes ckw {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.privacy a {
  font-size:0.9em
}
/* Top links */
a.top {
  color:#000; margin-right:10px;
}
a.top:hover {
  text-decoration: underline;
}
.links {
  margin-top:1rem
}
.top-links {
  background:#FFF;
}
@media screen and (max-width: 992px) {
  .links {
    margin-top: 70px;
  }
}

/* Search form */
input:-internal-autofill-selected {
  background:#FFF
}
#search .search-area {
  width:50%;
  margin:auto;
  position: relative
}
#search input {
  width:100%;
  border-radius: 0;
  padding:1em;
  padding-right: 50px;
  background-image: url('../image/search.svg');
  background-repeat: no-repeat;
  background-position: right 20px top 20px;
}
@media (max-width: 576px) {
  #search .search-area {
    width:100%
  }
}
#search .searches {
  margin:0;
  width: 100%;
  margin-top:57px;
  padding:0;
  list-style-type: none;
  background:#FFF;
  z-index:5000;
  position:absolute;
  left:0;
  top:0
}
#search .searches li {
  text-align: left;
}
#search .searches li a {
  display:block;
  background-color:#fff;
  text-decoration: none;
  padding:1em;
}
#search .searches li a:hover {
  background-color:#efefef;
  text-decoration:none
}

/* Cart */
.cart-top {
  color:#000;
  background-color: transparent;
  text-decoration: none;
  position: relative

}
.cart-top:hover {
  text-decoration:none;
}
@media (max-width: 576px) {
  .cart-top {
    width: 100%
  }
}
/* Cart drowpdown */
#cart .dropdown-cart {
  background-color: #FFF;
    list-style-type: none;
    z-index: 1000;
    display:none;
    margin: 0;
    border: 1px solid #CCC;
    position: absolute;
    right: -16px;
    top: 60px;
    padding: 1rem;
}
.img-thumbnail  {
  max-width: none;
}
.cart-opt {
  position:relative;
  margin-right:20px;
  text-decoration:none;
}
.cart-opt:hover {
  text-decoration: none;
}
#wishlist-total {
  background-image:url('../image/wishlist.svg');
  background-size: cover;
  height:2em;
  width:2em;
  position: relative;
  display:inline-block;
}
.profile {
  background-image:url('../image/user.svg');
  background-size: cover;
  height:2em;
  width:2em;
  display:inline-block;
}
#cart-cont {
  background-image:url('../image/cart.svg');
  background-size: cover;
  height:2em;
  width:2em;
  display:inline-block;
}
#cart {
  position: relative;
}
.cart-position {
  text-align: right;
}
#cart-total, #wishlist-total span {
  position:absolute;
  top:-8px;
  font-size:0.8em;
  padding:0px 6px;
  border-radius:4px;
  color:#FFF;
  background:red;
  right:-4px;
}
#cart .dropdown-cart.opened {
  display:block;
}
#cart .cart-button {
  background:#e9e9e9;
  margin-bottom:4px;
  display:block;
  text-align: center;
  color:#000;
  width:100%
}
#cart .cart-button:hover {
  text-decoration: none;
  color:#FFF
}
#cart .cart-top {
  font-weight: 100;
  display: inline-block;
  width:36px;
  height:36px;
}
#cart {
    display:inline-block;
}
#cart .img-thumbnail {
    padding: .25rem;
    background-color: #FFF;
    border: none;
    border-radius: 0;
}
#cart .cart-remove {
  background-color:transparent
}
a.cart svg {
  vertical-align: middle
}
a.cart {
  text-decoration:none;
  color:#000;
  background:#FFF;
  padding:1em;
  display: inline-block;
}
a.cart:hover {
  background:#000;
  color:#FFF
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #efefef
}
.table td, .table th {
  border-top:0;
}

/* Swiper */
.swiper-slide {
    text-align: center;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center center;
    background-size: cover;
    height: 500px !important;
}
.swiper-container {
  border:1px solid #FFF
}
@media (max-width: 576px) {
  .swiper-container {
    display:none
  }
}

/* Products */
.product-container {
  width:100%;
  min-height:350px;
  overflow: hidden;
  background-color:#FFF;
  padding:2em
}
.product-container .cont {
  overflow:hidden;
}
.product-container .strike {
  text-decoration: line-through;
  font-weight: normal !important
}
.product-container a.love-it {
  background-image: url('../image/heart.svg');
  display:inline-block;
  background-size: cover;
  background-repeat:no-repeat;
  background-position:center center;
  width:1.5em;
  height:1.5em;
}
.product-container a.love-it:hover {
  background-image: url('../image/heart-full.svg');
}
.product-container a.compare-it {
  background-image: url('../image/compare.svg');
  display:inline-block;
  background-size: cover;
  background-repeat:no-repeat;
  background-position:center center;
  width:1.5em;
  height:1.5em;
  margin-left:10px;
}
.product-container .price {
  padding-top:1em;
  font-weight: bold
}
.product-container .product-image {
  display:block;
  width:100%;
  height:300px;
  background-size:cover;
  background-position:center center;
  transition:transform 1s;
}
.product-container .product-image:hover {
  transform: scale(1.5);
}
.product-container .product-title {
  background:#000;
  color:#FFF;
  display:block;
  text-decoration:none;
  padding:0.5em 1em
}
.product-container .product-title:hover {
  color:#FFF;
  text-decoration: none;
}

/* Change currency, language */
#form-currency {
  position:relative;
  display:inline-block;
}
#form-currency .dropdown-toggle {
  display: inline-block;
  background: #FFF;
  text-decoration: none;
  padding: 0.5rem;
}
#form-currency .dropdown-toggle:hover {
  text-decoration:none !important
}
#form-currency .dropdown-menu {
  background: #FFF;
  border:1px solid #CCC;
  border-radius:0;
  padding:0;
}
.dropdown-menu {
  left:inherit;
  right:0 !important
}
#form-currency .dropdown-menu.opened {
  display:block
}
#form-currency .currency-select {
  text-align: left;
  font-weight: 100;
  color:#000 !important;
  font-size:1rem !important;
}
#form-currency .currency-select:hover {
  background-color: #efefef !important;
  text-decoration: none;
}

/* Language select */
#form-language {
  position:relative;
  display:inline-block;
}
#form-language .dropdown-toggle {
  display: inline-block;
  background: #FFF;
  text-decoration: none;
  padding: 0.5rem;
}
#form-language .dropdown-toggle:hover {
  text-decoration:none !important
}
#form-language .dropdown-menu {
  background: #FFF;
  border: 1px solid #CCC;
  right:0;
  border-radius:0;
  padding:0;
}
#form-language .dropdown-menu.opened {
  display:block
}
#form-language .language-select {
  text-align: left;
  font-weight: 100;
  color:#000 !important;
  font-size:1rem !important;
}
#form-language .language-select:hover {
  background-color: #efefef !important;
  text-decoration: none;
}
.language-container {
  position:relative;
  display:inline-block;
}


/* Account select */
#form-account {
  position:relative;
  display:inline-block;
}
#form-account .dropdown-menu {
  background: #FFF;
  border:1px solid #ccc;
  right:0;
  border-radius:0;
  padding:0;
}
#form-account .dropdown-menu.opened {
  display:block
}
#form-account .account-select {
  text-align: left;
  font-weight: 100;
  border-radius:0 !important;
  color:#000 !important;
  font-size:1rem !important;
}
#form-account .account-select:hover {
  background-color: #efefef !important;
  text-decoration: none;
}
.account-container {
  position:relative;
  display:inline-block;
}


/* Load More */
.load-more {
  display:block
}
.load-more a {
  display:inline-block;
  background:#FFF;
  padding:1em;
  text-decoration: none;
  color:#000
}
.load-more a:hover {
  background:#000;
  color:#FFF;
  text-decoration: none;
}

/* Manufacturers grid squares */
#firm-grid {
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  height:120px;
}
#firm-grid.scroller {
  overflow-x: scroll;
}

#firm-grid > a {
  padding:2em;
  background: #FFF;
  background-size:contain;
  background-repeat: no-repeat;
  background-position: center center;
  width: calc(20% + 50px);
  margin-right:10px;
  height:100%;
  display:inline-block;
}
#firm-grid > a:last-of-type {
  margin-right:0
}


/* Content */
#content {
  width: 100%;
}

/* Callout Module */
.callout {
  display:block
}
@media only screen and (max-width: 767px) {
  .links-left-side {
    text-align:right;
    margin-bottom: 2em;
  }
  #form-account, #form-currency, #form-language {
    display:inline-block
  }
}


/* Refine search */
.refine-search {
  list-style-type: none;
  padding:0;
  margin:0
}
.refine-search li {
  display: inline-block;
  margin-bottom:5px;
  margin-right:5px;
}
.refine-search li a {
  background-color:#FFF;
  padding:0.5em 1em;
  text-decoration:none;
  display:block;
  border-radius: 50px;
}
.refine-search li a:hover {
  background:#000;
  color:#FFF;
  text-decoration:none
}
.refine-search li a:hover svg {
  fill:#FFF
}
#product-category .description {
  background-color: #FFF
}
.input-group-addon {
  margin-right:10px
}

/* Specials grid */
.specials {
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: minmax(100px, auto);
  grid-gap:8px;
  justify-items: stretch;
  height:500px;
  align:stretch
}
.special-1 {
  grid-column:1/3;
  grid-row:1/4;
}
.special-2 {
  grid-column:3/4;
  grid-row:1/2;
}
.special-3 {
  grid-column:3/4;
  grid-row:2/4;
}

.specials div {
  display:flex;
  justify-content: center;
  align-items: center;
  position:relative;
  background-repeat:no-repeat;
  background-size:100%;
  background-color:transparent;
  background-position:center center;
  background-color:#fff;
  transition: background-size 1s;
}
.specials > div:hover {
  background-size:200%;
}
.specials > div > a {
  position:absolute;
  padding:1em;
  background:rgba(255,255,255, 0.4)
}
.specials > div > a .btn {
  background-color:#000;
  color:#FFF;
  display:block;
  clear:both
}
.specials div a:hover {
  text-decoration: none
}
@media only screen and (max-width: 767px) {
  .specials h2 {
    font-size: 1em
  }
  .specials {
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: minmax(100px, auto);
    grid-gap:8px;
    justify-items: stretch;
    height:500px;
    align:stretch
  }
  .special-1 {
    grid-column:1/4;
    grid-row:1/2;
  }
  .special-2 {
    grid-column:1/4;
    grid-row:2/3;
  }
  .special-3 {
    grid-column:1/4;
    grid-row:3/4;
  }
}



/* Pagination */
.pagination {
  list-style-type: none;
  margin:0;
  padding:0;
}
.pagination li {
  display:inline-block;
}
.pagination li.active span {
  background:#000;
  color:#FFF;
  padding:0.5em 1em;
}
.pagination li a {
  background:#FFF;
    padding:0.5em 1em;
}
.pagination li:hover a {
  background-color: #000;
  text-decoration:none;

}
.pagination li a:hover {
    color:#FFF;
    text-decoration:none
}

/* Nav */

.nav li.active a {
  color:#FFF;
  display:block;
  padding:0.5em 1em;
  text-decoration: none;
}
.nav li a {
  padding:0.5em 1em;
  display:block
}
.nav li a {
  text-decoration:none
}

/* form reviews */
.form-horizontal .form-group {
  margin-left:-15px;
  margin-right:-15px
}
#review {
  margin:2rem 0 2rem 0;
}
.fa-stack-2x {
  font-size:1em !important
}
.fa-stack {
  width:1em !important
}

/* breadcrumbs */
.breadcrumb {
    margin:0;
    padding:0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    list-style: none;
    background-color: transparent;
    border-radius: 0;
}
.breadcrumb li {
  margin-right:10px
}
.breadcrumb li a::after {
  display: inline-block;
  content: '';
  vertical-align: middle;
  line-height: 1em;
  margin-left:10px;
  background-image: url('../image/arrow-right.svg');
  height: 1em;
  width: 1em;
}
.breadcrumb li:last-of-type a::after {
  display: none
}

/* Tags */
.tags a {
  color:#000;
  margin: 5px 5px;
  display: inline-block;
  border-radius:50px;
  border:1px solid #000;
  padding:0.5em 1em;
  text-decoration:none
}
.tags a:hover {
  color:#FFF;
  background-color:#000;
  text-decoration:none
}
/* Fix because last a is empty */
.tags a:last-of-type {
  display:none
}

/* input-quantity */
#input-quantity {
  text-align: center;
  padding: .5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    height:inherit !important;
}

/* Price */
#product-product .price {
  background-color:#efefef
}
#product-product .price h2 {
  font-size:2em;
}

/* Header */
.strip-top {
  background-color:#FFF !important;
  height:100px;
  width:100%;
  background-image: url('../image/strip-top.png');
  background-size:cover
}
@media only screen and (max-width: 767px) {
  .strip-top {
    height:50px
  }
}

/* Footer */
.line {
  height:100px;
  width:100%;
  background-image: url('../image/strip.png');
  background-size:cover
}
.footer .omnia a {
  text-decoration:underline;
  color:rgba(255,255,255,0.6)
}
.footer .omnia a:hover {
  text-decoration:none
}
.footer {
  background-color:#000;
  color: rgba(255,255,255,0.6);
}
.footer ul {
  margin:0;
  padding:0;
  list-style-type: none
}
.footer ul > li > a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer ul > li > a:hover {
  color:#FFF;
  text-decoration:none
}
.footer h6, .footer h5, .footer h3 {
  color:#FFF
}
.copyright {
  border-top:1px solid rgba(255,255,255,0.2);
  color:#FFF
}
.footer svg {
  fill:#FFF
}
.footer .cards img {
  margin-bottom:10px
}
.footer ul li a {
  transition: margin-left 0.5s;
}
.footer ul li a:hover {
  margin-left: 10px
}
#scroll-top {
  display:none;
  position:fixed;
  bottom:10px;
  width:45px;
  height:45px;
  background-position:center center;
  background-repeat: no-repeat;
  z-index:2000;
  right:10px;
  background-color:#000;
  background-image: url('../image/up.svg');
}


/* Grid wrapping */
/* CSS test */
.fallback {
  padding: 0;
  margin: 0;
  margin-top:10px;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow: row wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.fallback a {
  text-align: center;
  height:100px;
  width: 25%;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
}
.fallback a:first-of-type {
  margin-left:0
}
.fallback a:last-of-type {
  margin-right:0
}
.fallback a img {
  width:1px;
  height:1px
}
.first-large {
  display: block;
  height:520px !important;
  width:100% !important;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
}


/* Grid compatibility */
.grid-wrapper {
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: minmax(100px, auto);
    grid-gap:8px;
    height:500px;
    justify-items: stretch;
    align:stretch
}
@media only screen and (max-width: 767px) {
  .grid-wrapper {
    height:300px
  }
}
.grid-wrapper a {
  background:#eee;
  cursor:pointer;
}

/* assume no support */
.grid-wrapper { display: none; } 

@supports (display: grid) {
  .grid-wrapper { display: grid; }
  .fallback { display:none !important; }
}

#box1,#box2,#box3,#box4,#box5 {
  border:1px solid #ccc;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center
}
#box1 {
  grid-column:1/3;
  grid-row:1/3;
}
#box2 {
  grid-column:3/4;
  grid-row:1/2;
}
#box3 {
  grid-column:3/4;
  grid-row:2/4;
}
#box4 {
  grid-column:1/2;
  grid-row:3/4;
}
#box5 {
  grid-column:2/3;
  grid-row:3/4;
}