.gallerypreviwpainel {
    margin-top: 2vw;
    padding: 1vw;
    background: #fff;
    outline: 0.1rem solid;
}

.remove-image {
    border-radius: 32%;  
    transition: all .2s ease-in-out;
}

.remove-image:hover {
    background: #212121;
    transform: rotate(38deg);
}

.gd-fotos-gallery {
    display: grid; /* Usa grid layout */
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); /* Ajusta dinamicamente o número de colunas */
    gap: 0; /* Remove espaços entre as imagens */
    width: 100%; /* Garante que ocupe toda a largura */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margens */
    justify-items: stretch; /* Garante que cada célula preencha o espaço disponível */
}

.gd-fotos-image {
    width: 100%; /* Faz a imagem preencher completamente a célula */
    height: auto; /* Mantém a proporção original da imagem */
    object-fit: cover; /* Preenche o espaço sem distorcer a imagem */
    margin: 0;
    padding: 0;
    aspect-ratio: 1 / 1; /* Mantém as imagens em formato quadrado */
    position: relative; /* Necessário para sobreposição */
    transition: all 0.3s ease-in-out; /* Animação suave para o efeito hover */
    overflow: hidden;
}

.gd-fotos-image::after {
    content: ''; /* Adiciona uma camada de sobreposição */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0); /* Começa transparente */
    transition: background 0.3s ease-in-out; /* Animação suave no efeito hover */
    z-index: 1;
}

.gd-fotos-image:hover::after {
    background: rgba(0, 123, 255, 0.4); /* Adiciona uma cor azul transparente ao hover */
}

.gd-fotos-image:hover {
    transform: scale(1.02); /* Leve aumento de zoom */
    z-index: 2; /* Garante que a imagem fique acima das outras */
}

.gd-fotos-image img {
    width: 100%; /* Garante que a imagem preencha a célula */
    height: 100%;
    object-fit: cover; /* Preenche a célula sem distorção */
}

.button-18 {
  align-items: center;
  background-color: #0A66C2;
  border: 0;
  border-radius: 100px;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: -apple-system, system-ui, system-ui, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: 20px;
  max-width: 480px;
  min-height: 40px;
  min-width: 0px;
  overflow: hidden;
  padding: 0px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  touch-action: manipulation;
  transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
}

.button-18:hover,
.button-18:focus { 
  background-color: #16437E;
  color: #ffffff;
}

.button-18:active {
  background: #09223b;
  color: rgba(255, 255, 255, 0.7);
}

.button-18:disabled { 
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.3);
}