body {
  margin: 0%;
}
li,
a,
button {
  font-family: auster, sans-serif;
  font-style: bold;
  font-weight: 200;
  font-size: 22px;
  color: #1c2519;
  cursor: pointer;
}
button {
  font-size: 20px;
  background-color: transparent;
  border: none;
}
.buttony {
  display: flex;
}
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 40px;
  color: #1c2519;
}
.mobile__nav {
  display: none; /* Ukryj menu mobilne */
  background-color: white; /* Lub inny kolor tła */
}

.mobile__nav.active {
  display: block; /* Pokaż menu kiedy jest aktywne */
}

/* NAWIGACJA DESKTOP
_____________________________________________________________________________________________________________*/

.nav__buttons {
  color: #1c2519;
  background-color: white;
  font-size: 27px;
  margin-left: 10px;
  position: relative;
  border: none;
}
.nav__buttons_active {
  color: #1c2519;
  background-color: white;
  font-size: 27px;
  margin-left: 10px;
  position: relative;
  border: none;
  text-decoration: none;
  border-bottom: 4px solid #e4622c;
}
.nav__buttons_active:hover {
  color: #e4622c;
}
.nav__hi {
  color: #e4622c;
  background-color: white;
  font-size: 27px;
  margin-left: 10px;
  position: relative;
  border: none;
}
.nav__buttons:hover {
  color: #e4622c;
}
.nav__icons {
  margin-left: 40px;
}
.nav__icon {
  color: #d884ae;
  font-size: 22px;
  top: 50%;
  height: 100px;
  margin-top: -50px;
}
.nav__active {
  color: #d884ae;
  font-size: 20px;
}
.headerstyle {
  z-index: 999;
  border-radius: 0 0 1.25rem 1.25rem;
}
header {
  width: 85%;
  align-items: center;
  max-width: 1300px;
  margin: auto;
  z-index: 999;
  background: white;
  box-shadow: #525252;
  -webkit-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 1.25rem 1.25rem;
  display: flex;
  justify-content: space-between;
  padding: 15px;
  box-sizing: border-box;
}
.logo {
  height: 70px;
  width: auto;
  border-radius: 0%;
}
.logo__mobile {
  display: none;
}
.mobile__nav {
  display: none;
}

/* NAGLOWEK + LINKI
_____________________________________________________________________________________________________________*/

h1 {
  font-size: 40px;
  font-family: auster, sans-serif;
  font-variation-settings: 'ital' 0, 'wght' 300;
  color: #1c2519;
  text-align: center;
  margin-bottom: 0%;
  padding-top: 3%;
  margin-top: 0%;
  animation-name: appear;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  opacity: 0;
}
h2 {
  font-size: 25px;
  font-family: auster, sans-serif;
  font-variation-settings: 'ital' 0, 'wght' 300;
  color: #1c2519;
  text-align: center;
  margin-bottom: 0%;
  margin-top: 0%;
  animation-name: appear;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  opacity: 0;
}
h3 {
  font-size: 25px;
  font-family: auster, sans-serif;
  font-variation-settings: 'ital' 0, 'wght' 300;
  color: #1c2519;
  text-align: center;
  margin-bottom: 0%;
  margin-top: 0%;
  animation-name: appear;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  opacity: 0;
}
a:link {
  text-decoration: none;
}
ul {
  text-align: center;
  list-style-type: none;
  padding-left: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}
li {
  display: inline;
  padding-left: 2%;
  padding-right: 2%;
}
.title {
  margin-top: 3%;
  width: 40%;
  margin-left: 30%;
  margin-right: auto;
}
/* GALERIA
_____________________________________________________________________________*/

img {
  max-height: 100%;
  width: auto;
  aspect-ratio: attr(width) / attr(height);
  border-radius: 1rem;
}
.gallery {
  padding-top: 20px;
  column-rule: 0px solid #eee;
  column-gap: 17px;
  width: 85%;
  max-width: 1300px;
  margin: auto;
  -webkit-column-count: 1;
  /* Chrome, Safari, Opera */
  -moz-column-count: 1;
  /* Firefox */
  column-count: 1;
}
.gallery-item {
  position: relative;
  animation-name: appear;
  animation-duration: 0.5s;
  animation-delay: 0.2s;
  animation-fill-mode: forwards;
  opacity: 0;
}
.gallery .gallery-item {
  display: inline-block;
  vertical-align: top;
  margin-bottom: 15%;
  max-width: 100%;
  width: 100%;
}
.gallery .gallery-item {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  width: 100%;
}
.cover {
  width: 50%;
  height: auto;
  margin-left: 25%;
  margin-right: auto;
}
.spread {
  width: 100%;
  height: auto;
  padding-top: 2%;
  padding-bottom: 2%;
}

/* LIGHTBOXES
_____________________________________________________________________________*/

.portfolio-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  opacity: 0;
  transition: 0.2s;
  align-items: center;
  justify-content: center;
}
.portfolio-lightbox:target {
  display: flex;
  opacity: 1;
}
.portfolio-lightbox__content {
  width: 100%;
  height: auto;
  padding: 0.5em;
  position: relative;
}

.close {
  position: absolute;
  width: 100%;
  height: 100%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.lightbox__item {
  margin: auto;
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5%;
}

.lightbox__item2 {
  margin: auto;
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5%;
}
.lightbox__item3 {
  margin: auto;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5%;
}

/* FOOTER
_________________________________________________________________*/

.rights {
  margin-top: 5%;
  margin-bottom: 8%;
  font-family: auster, sans-serif;
  font-size: 15px;
  text-align: center;
  color: #dd5a27;
}

/* ANIMATIONS
_________________________________________________________________*/

@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slidein {
  from {
    transform: translateY(100px);
  }
  to {
    transform: translateY(0);
  }
}

/* MQ
_________________________________________________________________*/

@media only screen and (min-width: 1500px) {
  .lightbox__item {
    width: 30%;
  }
}
@media only screen and (max-width: 1023px) {
  .gallery {
    -webkit-column-count: 3;
    /* Chrome, Safari, Opera */
    -moz-column-count: 3;
    /* Firefox */
    column-count: 3;
  }
  h1 {
    font-size: 90px;
  }
  .portfolio-lightbox:target {
    display: none;
  }
  .overlay:hover {
    opacity: 0;
  }
  .overlay2:hover {
    opacity: 0;
  }
  .overlay3:hover {
    opacity: 0;
  }
  .overlay4:hover {
    opacity: 0;
  }
}
@media only screen and (max-width: 768px) {
  .headerstyle {
    z-index: 999;
    border-radius: 0 0 1.25rem 1.25rem;
  }
  header {
    width: 85%;
    align-items: center;
    max-width: 1300px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: auto;
    z-index: 999;
    background: white;
    box-shadow: #525252;
    -webkit-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1.25rem 1.25rem;
    display: flex;
    justify-content: space-between;
    padding: 15px;
    box-sizing: border-box;
  }
  .headermobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 7%;
    padding-right: 7%;
    width: 93%;
    padding-bottom: 2%;
    padding-top: 2%;
  }
  h1 {
    font-size: 60px;
  }
  .logofooter {
    width: 40%;
    margin-bottom: 25%;
  }
  .hamburger {
    position: absolute;
    right: 10px; /* Możesz dostosować wartość */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    z-index: 1001;
  }
  /* Animacja hamburgera */
  /* Dla hamburgera */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
  }

  /* Dla menu mobilnego */
  .mobile__nav.active {
    display: block;
  }

  /* Menu mobilne */
  .mobile__nav {
    position: fixed;
    top: 0;
    padding-top: 20%;
    left: 100%;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: left;
    transition: left 0.2s ease-in-out;
    z-index: 998;
  }
  /* Aktywne menu */
  .mobile__nav.active {
    left: 0;
  }
  .buttony {
    display: none;
  }
  .logo {
    height: 50px;
    width: auto;
    border-radius: 0%;
  }
  .logo__mobile {
    align-items: center;
    justify-content: center;
  }
  .logo__mobile__img {
    width: 30%;
  }
  .mobile__nav__container {
    margin-left: 5%;
    margin-right: 5%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    width: 90%;
    padding-top: 40px;
  }
  .nav__hi {
    margin-left: 0;
    font-size: 30px;
  }
  .mobile__sites {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  .fontawesome {
    margin-left: 5px;
    margin-right: 5px;
  }
  .mobile__site,
  .mobile__link {
    font-size: 30px;
  }
}
@media only screen and (max-width: 480px) {
  .rights {
    margin-top: 10%;
    margin-bottom: 20%;
    font-size: 13px;
  }
  .logo__mobile__img {
    width: 50%;
    margin-bottom: 5%;
  }
  .gallery {
    width: 100%;
    -webkit-column-count: 1;
    /* Chrome, Safari, Opera */
    -moz-column-count: 1;
    /* Firefox */
    column-count: 1;
  }
  .cover {
    width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
  }
  .title {
    width: 80%;
    height: auto;
    margin-right: 10%;
    margin-left: 10%;
    margin-top: 20%;
  }
  h1 {
    font-size: 25px;
  }
  h2 {
    font-size: 15px;
  }
  h3 {
    font-size: 15px;
  }
  .portfolio-lightbox:target {
    display: none;
  }
  .overlay:hover {
    opacity: 0;
  }
  .overlay2:hover {
    opacity: 0;
  }
  .overlay3:hover {
    opacity: 0;
  }
  .overlay4:hover {
    opacity: 0;
  }
  #button.show {
    opacity: 1;
    visibility: visible;
  }
}
