main {
  margin-top: 3rem;
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.8);
  -webkit-box-shadow: 0 0 40px 40px rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 40px 40px rgba(255, 255, 255, 0.8);
}

.podcasts {
  max-width: 85%;
}

.gallery {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  min-width: 100%;
  gap: 2rem;
  max-width: 85%;
}

.preview {
  width: 20rem;
  height: 15rem;
  aspect-ratio: 4/3;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px black solid;
  font-family: "Buenard", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 2.5rem;
}

.preview:hover {
  -webkit-box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.3);
  filter: brightness(0.95);
  background-color: rgba(0, 0, 0, 0.03);
  width: 21rem;
  height: 15.75rem;
  transition: 500ms;
  z-index: 2;
}

.previewImg {
  height: 75%;
  width: auto;
  object-fit: contain;
  border: 1px black solid;
}

h1 {
  font-family: "Charm", cursive;
  font-weight: 700;
  font-style: normal;
}

h2 {
  margin-top: 2rem;
  font-family: "Oswald", sans-serif;
}

#booksPublications {
  margin-top: 1rem;
}

p {
  margin-top: 1.5rem;
  /* font-family: "Charm", cursive; */
  /* font-weight: 400;
  font-style: normal; */
  font-family: "Buenard", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1.3rem;
  text-align: justify;
  color: rgb(46, 46, 46);
}

li {
  font-family: "Charm", cursive;
  font-weight: 400;
  font-size: 1.3rem;
  font-style: normal;
}

ul {
  text-align: left;
}

.spotify {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  text-align: justify;
  align-items: center;
}

.youtube {
  aspect-ratio: 16/9;
  width: 40%;
}

.podcastText {
  width: 60%;
  padding-left: 5rem;
  font-family: "Buenard", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1.1rem;
  text-align: justify;
  color: rgb(0, 0, 0);
}

.podcastHeader {
  margin-top: 7rem;
  margin-bottom: 5rem;
}

iframe {
  flex-grow: 1;
  border-radius: 14px;
}

iframe:hover {
  -webkit-box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.3);
  transition: 250ms;
}

.background-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.background-overlay.disabled {
  display: none;
}

.arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 10%;
}

#leftArrow {
  width: 50px;
  cursor: pointer;
}

#leftArrow:hover {
  width: 60px;
  transition: 500ms;
}

#rightArrow {
  width: 50px;
  cursor: pointer;
}

#rightArrow:hover {
  width: 60px;
  transition: 500ms;
}

#cross {
  position: absolute;
  top: 10px; /* odsunięcie od góry */
  right: 10px; /* odsunięcie od prawej krawędzi */
  width: 30px;
  cursor: pointer;
}

#cross:hover {
  width: 35px;
  transition: 500ms;
}

.fullImgDiv {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 80%;
}

.fullImg {
  width: auto;
  max-width: 100%;
  height: 100vh;
  object-fit: contain;
}

.book {
  font-family: "Charm", cursive;
  font-weight: 400;
  font-size: 1.3rem;
  font-style: normal;
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 5rem;
}

.bookImg {
  height: 28rem;
  margin-right: 5rem;
  width: auto;
}

.bookImg:hover {
  height: 29rem;
  -webkit-box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.3);
  transition: 500ms;
}

@media (max-width: 768px) {
  .book {
    flex-direction: column;
    justify-content: center;
  }

  .bookImg {
    width: 100%;
    height: auto;
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .bookImg:hover {
    height: auto;
  }

  main {
    max-width: 85%;
  }

  #cross:hover {
    width: 30px;
    transition: 0s;
  }

  #rightArrow:hover {
    width: 30px;
    transition: 0s;
  }

  #leftArrow:hover {
    width: 30px;
    transition: 0s;
  }

  #leftArrow {
    width: 30px;
  }

  #rightArrow {
    width: 30px;
  }

  .spotify {
    display: block;
  }

  .youtube {
    width: 100%;
  }

  iframe {
    width: 100%;
  }

  .podcastText {
    width: 100%;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 4rem;
  }
}
