/* 
---- 01 TYPOGRAPHY SYSTEM


- FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98




------ 02 WITESPACE

 - SPACING SYSTEM (px)
      2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* 1 rem = 16px -> dla domyslnej czcionki*/
  /* Ustawienia dla 1 rem = 10px */
  /* font-size: 10px; */
  /* 10 px / 16 px = 0.625 = 62.5% */
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  font-family: "Lato", sans-serif;
  line-height: 1;
  font-weight: 400;
  color: #fdf2e9;
  background-color: #1f1f1f;

  /* Only works if there is nothing absolutely positioned in relation to body */
  overflow-x: hidden;
}

/**************************/
/* GENERAL REUSABLE COMPONENT */
/**************************/

.container {
  /* Standard 1140px */
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.grid {
  display: grid;
  row-gap: 9.6rem;
  column-gap: 6.4rem;

  /* margin-bottom: 9.6rem; */
}

/* .grid:last-child { */
/* margin-bottom: 0; */
/* } */

.grid:not(:last-child) {
  margin-bottom: 9.6rem;
}
.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-cols {
  grid-template-columns: repeat(4, 1fr);
}

.grid-section {
  display: grid;
  gap: 6.4rem;
}

.center {
  align-items: center;
}

.center-img {
  justify-content: center;
  align-content: center;
}

.center-text {
  text-align: center;
}

.margin-top {
  margin-top: 8rem !important;
}

.margin-bottom {
  margin-bottom: 8rem !important;
}

.margin-bottom2 {
  margin-bottom: 6.4rem;
}

.padding-botton-head--1 {
  padding-bottom: 22.449rem !important;
}

.padding-botton-head--2 {
  padding-bottom: 22.449rem !important;
}

.padding-botton {
  padding-bottom: 128rem !important;
}

.heading-primary {
  font-size: 5.2rem;
  line-height: 1.05;
  margin-bottom: 3.2rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #fff;
  font-style: italic;
}

.heading-secondary {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 3.2rem;
  letter-spacing: -0.5px;
}

.heading-tertiary {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 3.2rem;
}

.btn,
.btn:link,
.btn:visited {
  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.btn--outline:link,
.btn--outline:visited {
  background-color: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}

.btn--outline:hover,
.btn--outline:active {
  background-color: #fff;
  color: #333;
}

.box-img,
.section-img {
  width: 100%;
}

.section-text {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 2.4rem;
  letter-spacing: 0.05rem;
}
.social-icon,
.contact-icon {
  height: 3.2rem;
  width: 3.2rem;
}

.img {
  width: 100%;
  /* height: 15.4rem; */
  transition: all 0.4s;
  border: #fdf2e9 solid 0.1rem;
  object-fit: cover;
  /* aspect-ratio: 1.5 / 1; */
  display: block;
}

.section-gallery-item {
  position: relative;
  box-shadow: 0rem 0rem 2.1rem 0rem rgba(177, 183, 177, 0.9);
  transition: all 0.4s;
  display: block;
  cursor: pointer;
}

.section-gallery-item:hover {
  box-shadow: 0rem 0rem 2.1rem 0rem rgba(177, 183, 177, 0.9);
  transform: scale(1.1);
}

.section-img:hover {
  border: #fdf2e9 solid 0.1rem;
  /* object-fit: cover; */
}

/* OPEN GALLERY */
.popup {
  animation: fade-in 0.4s;
  align-content: center;
  background-color: rgb(0, 0, 0, 0.5);
  backdrop-filter: blur(0.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  height: 100vh;
  left: 0;
  top: 0;
  width: 100vw;
  position: fixed;
  z-index: 9999;
}

.popup-fade-out {
  animation: fade-out 0.4s both;
}

.popup-img {
  max-height: 90%;
  max-width: 100%;
}

.popup-close {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: rgb(253, 242, 233);
  font-size: 4rem;
  position: fixed;
  right: 4.4rem;
  top: 1.6rem;
  opacity: 0.5;
  transition: all 0.3s;
}

.popup-close:hover {
  opacity: 1;
}

.popup-arrow {
  border: none;
  position: absolute;
  top: 50%;
  font-size: 5.2rem;
  height: 5.2rem;
  width: 5.2rem;
  line-height: 5.2rem;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s;
  background-color: #fdf2e9;
  /* font-weight: 300; */
}

.popup-arrow:hover {
  opacity: 1;
}
.popup-arrow--left {
  left: 3.6rem;
}

.popup-arrow--right {
  right: 3.6rem;
}
.popup-arrow-icon {
  color: #333333;
  height: 70%;
  width: 70%;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.popup-arrow.touch-active {
  background-color: #fdf2e9; /* Lub inne właściwości, które chcesz zresetować */
}
