* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PP Mori', sans-serif;
  background-color: #ab8867;
  overflow: hidden;
  opacity: 0;
  transition: opacity 2s;
}

body.fade-in {
  opacity: 1;
}

/* ---------------------- LOGO E MENU ---------------------- */
.logo {
  position: fixed;
  top: 0;
  left: 0;
  margin: 2.5vw;
  width: 15vw;
  height: auto;
  z-index: 1000;
}

.menu {
  position: fixed;
  top: 15vh;
  left: 0;
  margin: 2vw;
  width: 16vw;
  height: auto;
  z-index: 1000;
}

.menu-button {
  background: transparent;
  border: none;
  margin: 0 5% 0% 10%;
  display: block;
  font-size: clamp(1rem, 1.5vw, 2rem);
  font-family: 'OGG', sans-serif; /* Apply the font */
  color: #3e362e;
  outline: none;
  position: relative;
  transition: 0.3s;
  padding: 0.6em;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.menu-button:before {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #3e362e;
  transition: width 0.3s ease;
}

.menu-button:hover:before {
  width: 100%;
}

.menu-button:active {
  background: black;
  color: white;
  transition: none;
}

/* ---------------------- GALERIA ---------------------- */
.gallery {
  position: fixed;
  top: 0;
  right: 0;
  width: 80vw;
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  background-color: #3e362e;
}

.gallery-items {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2vw;
  height: 100%;
  cursor: grab;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  padding: 2.5rem 2rem 5rem 2rem;
}

.gallery-items.active {
  cursor: grabbing;
}

.gallery-items img {
  height: 100%;
  pointer-events: none;
}

figure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  justify-content: flex-start;
  position: relative;
}

figure img {
  height: 85%;
}

figcaption {
  font-size: clamp(0.8rem, 1vw, 1.5rem);
  color: #ab8867;
  margin-top: 0.75em;
  text-align: left;
  font-weight: 300;
}

/* ---------------------- GALERIA-ITEMS-NEW ---------------------- */

.gallery-items-new {
  display: flex;
  flex-direction: row;
  height: 100%;
  cursor: grab;
  overflow-x: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  padding: 5rem 0rem 0rem 0rem;
  position: relative;
}

.gallery-items-new.active {
  cursor: grabbing;
}

.gallery-items-new img {
  height: 100%;
  pointer-events: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* ---------------------- BOTÃO DE IMAGEM ---------------------- */
.image-btn {
  position: absolute;
  font-family: 'OGG', sans-serif; /* Apply the font */
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0);
  color: white;
  padding: 1em 1.5em;
  cursor: pointer;
  font-size: clamp(0.9rem, 1vw, 1.4rem);
  border-radius: 1em;
  border: 0.01em solid white;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.image-btn:hover {
  transform: translateX(-50%) scale(1.1);
}


/* Botão Voltar */
.back-button {
  position: fixed; /* <- change this from absolute to fixed */
  top: 2rem;
  right: 2rem;
  background-color: transparent;
  color: white;
  font-family: 'OGG', sans-serif;
  font-size: 1.2rem;
  transform: translateX(-50%);
  padding: 0.8rem 1.5rem;
  border: 1px solid white;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  z-index: 1001;
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%) scale(1.1);
}


/* ---------------------- SCROLLBAR ---------------------- */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ---------------------- MEDIA QUERY ---------------------- */
@media (max-width: 640px) {
  .gallery {
    width: 100vw;
    height: 80vh;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    justify-content: center;
    align-items: center;
  }

  .gallery-items {
    gap: 5vw;
    padding: 2rem 2rem 4rem 2rem;
    align-items: center;
  }

  .logo {
    top: 91%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    margin: 1.5%;
  }

  .menu {
	font-family: 'OGG', sans-serif; /* Apply the font */
    top: 82%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    width: auto;
  }

  .menu-button {
    margin: 0 2vw;
    font-size: 5vw;
    padding: 1vw;
    text-align: center;
  }

  .menu-button:before {
    left: 50%;
    width: 30%;
    transform: translateX(-50%);
    background-color: black;
  }

  .image-btn {
    padding: 4vw 5vw;
    font-size: 4vw;
    border-radius: 10vw;
    border: 1px solid white;
	font-family: 'OGG', sans-serif; /* Apply the font */
  }

  figcaption {
    font-size: 4vw;
  }
}
