.galeria {
  padding-top: 6.25rem;
  margin-top: -6.25rem;
  border-radius: 50px 50px 0px 0px;
  background: #f4f7f8;
}

.galeria .text-container .badge {
  display: flex;
  width: 115px;
  padding: 10px;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  border-radius: 5px;
  background: #df7100;
}

.galeria .text-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 5.625rem;
  gap: 12px;
}

.galeria .text-container .badge p {
  color: #fdfdfd;
  text-align: center;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  letter-spacing: 2.1px;
  text-transform: uppercase;
}

.galeria .text-container h2 {
  color: var(--Foundation-Blue-Darker, #00354a);
  text-align: center;
  font-size: 3rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 1.92px;
}

.galeria .text-container h2 span {
  color: var(--Foundation-Blue-Normal, #0097d4);
}

.galeria .galeria-container {
  width: 100%;
  padding: 4rem 0 5rem 0;
  background-color: #fff;
}

.galeria-container .tabs {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}

.galeria-container .tabs div {
  width: fit-content;
  cursor: pointer;
}

.galeria-container .tabs div p {
  color: var(--foundation-white-dark-hover, #8e8e8e);
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  max-width: 100%;
}

.tabs > div {
  position: relative;
}

.tabs > div.active::after {
  content: "";
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  height: 5px;
  background: #0097d4;
  top: 100%;
  margin-top: 20px;
}

.tabs > div.active p {
  color: #000;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.galeria-img img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.galeria-content {
  margin-top: 64px;
}

.ver-mais-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 70px;
}

.galeria .ver-mais {
  display: flex;
  height: 56px;
  width: 145px;
  border: none;
  justify-content: center;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 5px;
  background: var(--Foundation-Blue-Dark, #00719f);
  color: var(--Foundation-Blue-Light, #eaf2f4);
  text-align: center;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  transition: background-color 0.3s ease;
}

.galeria .ver-mais:hover {
  background-color: var(--Foundation-Blue-Normal, #0097d4);
}

.galeria .galeria-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media screen and (max-width: 768px) {
  .galeria .galeria-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 475px) {
  .galeria .galeria-content {
    grid-template-columns: 1fr;
    place-items: center;
  }
}

.galeria-img {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.galeria-img img {
  transition: transform 0.3s ease;
}

.galeria-img:hover img {
  transform: scale(1.1);
}

.galeria-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #222;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.galeria-img:hover::after {
  opacity: 0.5;
}

.galeria-img:hover .zoom-icon {
  opacity: 1;
}

.galeria-img .zoom-icon {
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  z-index: 10;
  width: 48px;
  height: 48px;
}

#preview-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1005;
  display: none;
}

#preview-box {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 2rem;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

#preview-box img {
  margin: 0 auto;
  display: block;
}

#modal-close-btn {
  position: absolute;
  right: 2rem;
  top: 2rem;
  z-index: 1004;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#modal-prev-img {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

#modal-next-img {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

#preview-box {
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#preview-box img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

#modal-prev-img svg,
#modal-next-img svg {
  width: 64px;
  height: 64px;
}

#modal-img-counter {
  position: absolute;
  left: 50%;
  color: #fff;
  bottom: 2rem;
  transform: translateX(-50%);
}

.galeria .galeria-title {
  color: var(--purple);
  font-size: 28px;
  font-weight: 700;
  line-height: 56px;
  text-transform: uppercase;
}

.galeria .galeria-title strong {
  color: #000;
}

.hidden-img {
  display: none;
}

#preview-box .arrows {
  display: none;
}

@media (max-width: 1024px) {
  .galeria-container .tabs {
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .galeria-content {
    flex-direction: column;
  }

  #preview-box {
    width: 90%;
    height: 90vh;
    padding: 1rem;
  }

  #preview-box img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
  }

  #modal-prev-img,
  #modal-next-img {
    display: none;
  }

  #preview-box > #modal-prev-img,
  #preview-box > #modal-next-img {
    display: none;
  }

  #modal-prev-img,
  #modal-next-img {
    position: static;
    transform: none;
  }

  #preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    height: auto;
    padding: 1rem;
  }

  #preview-box img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
  }

  #preview-box .arrows {
    margin-top: 1rem;
    display: flex;
    width: 100%;
    justify-content: space-around;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .galeria .text-container h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 475px) {
  #preview-box {
    width: 95%;
    height: 95vh;
    padding: 0.5rem;
  }

  #preview-box img {
    max-width: 100%;
    max-height: 95vh;
  }

  #modal-img-counter {
    font-size: 0.875rem;
  }

  #modal-close-btn {
    top: 1rem;
    right: 1rem;
  }
}
