/* Reset and box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Core style */
body {
  margin: 0;
  font-family: 'Helvetica', sans-serif;
  font-weight: 500;
  text-align: center;
  background: #fff;
  color: #232323;
  font-size: 1.1rem;
}

/* Links */
a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: hsl(0, 0%, 100%);
}

/* HEADER */
.header {
  margin: 0px;
  background-color: rgb(255, 255, 255);
  box-shadow: 1px 1px 4px 0 rgba(0,0,0,.1);
  position: fixed;
  width: 100%;
  z-index: 7;
  top: 0; left: 0; right: 0;
}
.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background-color: #fff;
}
.header li a {
  display: block;
  padding: 20px 20px;
  border-right: 1px solid #f4f4f4;
  text-decoration: none;
}
.header li a:hover,
.header .menu-btn:hover {
  background-color: #999;
}
.header .logo {
  display: block;
  float: left;
    font-size: 1.3em;
      padding: 0.6em 10px 10px 20px;
      hover:  color #999;
  text-decoration: none;
  font-family: 'Lexend Peta', sans-serif;
  font-weight: 900;
}



/* menu */
.header .menu {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
  font-size: 0.7em;
  font-family: 'Lexend Peta', sans-serif;
}

/* menu icon */
.header .menu-icon {
  cursor: pointer;
  float: right;
  padding: 28px 20px;
  position: relative;
  user-select: none;
}
.header .menu-icon .nav-icon {
  background: #333;
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px;
}
.header .menu-icon .nav-icon:before,
.header .menu-icon .nav-icon:after {
  background: #333;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}
.header .menu-icon .nav-icon:before { top: 5px; }
.header .menu-icon .nav-icon:after { top: -5px; }

/* menu btn */
.header .menu-btn { display: none; }
.header .menu-btn:checked ~ .menu { max-height: 240px; }
.header .menu-btn:checked ~ .menu-icon .nav-icon { background: transparent; }
.header .menu-btn:checked ~ .menu-icon .nav-icon:before { transform: rotate(-45deg); top: 0; }
.header .menu-btn:checked ~ .menu-icon .nav-icon:after { transform: rotate(45deg); top: 0; }

/* Responsive NAV */
@media (min-width: 768px) {
  .header li { float: left; }
  .header li a { padding: 20px 20px; }
  .header .menu { clear: none; float: right; max-height: none; }
  .header .menu-icon { display: none; }
}

/* Responsive NAV */
@media (min-width: 768px) {
  .header li { float: left; }
  .header li a { padding: 20px 20px; }
  .header .menu { clear: none; float: right; max-height: none; }
  .header .menu-icon { display: none; }
}

  .menu .current {
    background-color: #666;
    color: #f4f4f4;  }
    .header li a:hover {
      background-color: #999;
    }

/* GALLERY GRID */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-gap: 20px;
  grid-auto-flow: dense;
  position: relative;
  padding: 7rem 3rem 6rem 3rem;
}

.gallery-container {
  width: 100%;
  height: 100%;
  position: relative;
}
.gallery-item {
  width: 100%;
  height: 100%;
  position: relative;
}
.gallery-item .image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.gallery-item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  cursor: pointer;
  transition: 0.4s ease-in-out;
}
.gallery-item:hover .image img {
  transform: scale(1.1);
  opacity: 30%;
}
.gallery-item .text {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: #000;
  font-family: Barlow, sans-serif;
  font-weight: bold;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 4;
  transition: 0.3s ease-in-out;
  width: 100%;
}
.gallery-item:hover .text {
  opacity: 1;
  animation: move-down 0.3s linear;
  padding: 1em;
  width: 100%;
}
.text-body {
  font-size: 0.8rem;
  font-weight: normal;
}

/* Responsive grid spans */
.w-1 { grid-column: span 1; }
.w-2 { grid-column: span 2; }
.w-3 { grid-column: span 3; }
.w-4 { grid-column: span 4; }
.w-5 { grid-column: span 5; }
.w-6 { grid-column: span 6; }
.h-1 { grid-row: span 1; }
.h-2 { grid-row: span 2; }
.h-3 { grid-row: span 3; }
.h-4 { grid-row: span 4; }
.h-5 { grid-row: span 5; }
.h-6 { grid-row: span 6; }

/* Responsive Gallery Breakpoints */
@media screen and (min-width: 1920px) {
  .container { grid-template-columns: repeat(14, 1fr); }
}
@media screen and (max-width: 1920px) {
  .container { grid-template-columns: repeat(10, 1fr); }
}
@media screen and (max-width: 1600px) {
  .container { grid-template-columns: repeat(8, 1fr); }
}
@media screen and (max-width: 1200px) {
  .container { grid-template-columns: repeat(6, 1fr); }
}
@media screen and (max-width: 900px) {
  .container { grid-template-columns: repeat(4, 1fr); }
}
@media screen and (max-width: 500px) {
  .container { grid-template-columns: repeat(2, 1fr); }
  .w-1,
  .w-2,
  .w-3,
  .w-5,
  .w-6 { grid-column: span 1; }
  .w-4 { grid-column: span 2; }
}
@media screen and (max-width: 400px) {
  .container { grid-template-columns: 1fr; }
  .gallery-item .image img { height: auto; }
}

/* Price styling */
.text-price {
  color: #000000;
  font-weight: 900;
  margin-top: 0.3rem;
  font-size: 1rem;
}

/* Gallery animation */
@keyframes move-down {
  0% { top: 45%; }
  50% { top: 48%; }
  100% { top: 50%; }
}

/* FOOTER */
.footer {
  background-color: #fff;
  box-shadow: 4px 0 4px 0 rgba(0,0,0,.1);
  padding: 10px 0 10px 0;
  margin: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}
.socialmedia {
  display: flex;
  align-items: center;
  padding-left: 1rem;
}
.socialmedia a img {
  margin-right: 0.7rem;
  vertical-align: middle;
  border-radius: 4px;
}
.legal {
  font-family: Barlow, sans-serif;
  font-size: 0.8em;
  line-height: 4em;
}
.legal a {
  color: #232323;
  text-decoration: underline;
  margin-right:0.2rem;
}
.legal a:hover { color: #ffffff; text-decoration: underline; }
.copyright {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7em;
  margin-left: 1rem;
  padding-right: 1rem;
}

/* Responsive Footer */
@media screen and (max-width: 650px) {
  .footer {
    flex-direction: column;
    text-align: center;
    position: static;
    padding-bottom: 2em;
  }
  .container {
    padding-bottom: 7.5em !important;
  }
  .socialmedia { margin-bottom: 1em; }
  .legal { margin-top: 0.5em; }
}