body {
  padding-top: 96px;
}

#gallery-container {
  position: relative;
  padding: 64px;
  background-color: var(--transparent-white-color);
  border: 1px solid var(--text-color);
  border-radius: 16px;

  @media screen and (max-width: 767px) {
    padding: 16px;
  }
}

.page-title-container {
  position: relative;
  display: flex;
  width: 100%;
}

.page-title-container > img {
  @media screen and (min-width: 933px) {
    position: absolute;
    top: -140px;
  }

  @media screen and (min-width: 768px) and (max-width: 932px) {
    position: absolute;
    top: -120px;
    width: 55%;
  }

  @media screen and (max-width: 767px) {
    width: 70%;
  }
}

#gallery-container > #gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

.section {
  position: relative;
  display: flex;
  flex-wrap: wrap;
}

.section > h2 {
  font-family: "Audiowide", sans-serif;
  position: absolute;
  left: 16px;
  top: -44px;
  font-size: 28px;
  color: var(--secondary-light-color);
  text-shadow: 4px 0 #fff, -4px 0 #fff, 0 4px #fff, 0 -4px #fff,
    4px 4px #fff, -4px -4px #fff, 4px -4px #fff, -4px 4px #fff;

  @media screen and (max-width: 767px) {
    top: -28px;
    font-size: 18px;
    text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
      2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff;
  }
}

.section > div {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 16px;
  padding: 24px 16px 16px 16px;
  background-color: var(--transparent-white-color);
  border: 1px solid var(--text-color);
  border-radius: 16px;

  @media screen and (max-width: 767px) {
    justify-content: center;
  }
}

.section > div > img {
  object-fit: cover;
  background-size: 100% 100%;
  background-position: 0px 0px,0px 0px,0px 0px,0px 0px,0px 0px;
  background-image: radial-gradient(49% 81% at 45% 47%, #FFFFFF45 0%, #073AFF00 100%),radial-gradient(113% 91% at 17% -2%, #FD83FFFF 1%, #FF000000 99%),radial-gradient(142% 91% at 83% 7%, #FFD38DFF 1%, #FFFFFF94 99%),radial-gradient(142% 91% at -6% 74%, #FF83DEFF 1%, #FF000000 99%),radial-gradient(142% 91% at 111% 84%, #FFFFFFFF 0%, #F700FFFF 100%);
  border-radius: 8px;
  box-shadow: 0 0 4px var(--primary-color);
  padding: 4px;
  max-width: 150px;
}

.section > div > img:hover {
  filter: brightness(110%);
  cursor: pointer;
  box-shadow: 0 0 6px var(--primary-color);
}

/* Modal styles */

.image-viewer {
  top: 0;
  border: none;
  height: 100%;
  width: -webkit-fill-available;
  background: #96628980;
  position: fixed;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  @media screen and (max-width: 767px) {
    max-width: 100%;
  }

  @media screen and (min-width: 768px) {
    min-width: 500px;
    max-width: 80%;
  }
}

.image-container > div {
  display: flex;
  gap: 32px;
  position: relative;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}

#image-title {
  color: var(--secondary-light-color);
  text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
    2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff;
  font-weight: bold;
  font-size: 16px;
  margin: 8px;
}

#image-viewed {
  background-size: 100% 100%;
  background-position: 0px 0px,0px 0px,0px 0px,0px 0px,0px 0px;
  background-image: radial-gradient(49% 81% at 45% 47%, #FFFFFF45 0%, #073AFF00 100%),radial-gradient(113% 91% at 17% -2%, #FD83FFFF 1%, #FF000000 99%),radial-gradient(142% 91% at 83% 7%, #FFD38DFF 1%, #FFFFFF94 99%),radial-gradient(142% 91% at -6% 74%, #FF83DEFF 1%, #FF000000 99%),radial-gradient(142% 91% at 111% 84%, #FFFFFFFF 0%, #F700FFFF 100%);
  border-radius: 8px;
  box-shadow: 0 0 4px var(--primary-color);
  padding: 4px;

  @media screen and (max-width: 767px) {
    max-width: 100%;
  }

  @media screen and (min-width: 768px) {
    min-width: 500px;
    max-width: 80%;
  }
}

.close-button {
  border: none;
  background: transparent;
  border-radius: 16px;
  padding: 4px 8px;
  position: absolute;
  top: -10%;
  right: 10%;
  z-index: 3;
  cursor: pointer;
  font-size: 36px;
  color: #fff;
}

.right-arrow {
  position: absolute;
  right: -96px;
  border: none;
  background: transparent;
  border-radius: 16px;
  padding: 4px 8px;
  z-index: 3;
  cursor: pointer;
  font-size: 42px;
  color: #fff;

  @media screen and (max-width: 767px) {
    display: none;
  }
}

.right-arrow:hover {
  transform: translate(5px, 0px);
  transition: linear;
  transition-duration: 0.1s;
}

.left-arrow {
  position: absolute;
  left: -96px;
  border: none;
  background: transparent;
  border-radius: 16px;
  padding: 4px 8px 12px 8px;
  z-index: 3;
  cursor: pointer;
  rotate: 180deg;
  font-size: 42px;
  color: #fff;

  @media screen and (max-width: 767px) {
    display: none;
  }
}

.left-arrow:hover {
  transform: translate(5px, 0px);
  transition: linear;
  transition-duration: 0.1s;
}

/* Decoration styles */

@keyframes bobble-back {
  0%, 100% {
    bottom: 150px;
  }
  50% {
    bottom: 155px;
  }
}

@keyframes bobble-middle {
  0%, 100% {
    bottom: 190px;
  }
  50% {
    bottom: 195px;
  }
}

@keyframes bobble-front {
  0%, 100% {
    top: 110px;
  }
  50% {
    top: 105px;
  }
}

#butterfly-back {
  animation: bobble-back 2s linear infinite;
  position: fixed;
  z-index: 1;
  left: 60px;
  transform: scaleX(-1);

  @media screen and (max-width: 767px) {
    display: none;
  }
}

#butterfly-middle {
  animation: bobble-middle 2s linear infinite;
  position: fixed;
  z-index: 1;
  left: 20px;

  @media screen and (max-width: 767px) {
    display: none;
  }
}

#butterfly-front {
  animation: bobble-front 2s linear infinite;
  position: fixed;
  z-index: 1;
  right: 20px;

  @media screen and (max-width: 767px) {
    display: none;
  }
}

#flowers-bottom {
  position: fixed;
  width: 100vw;
  bottom: -60px;
  z-index: -1;

  @media screen and (max-width: 767px) {
    bottom: -5vw;
  }
}
