/* Slideshow modal */
.slideshow {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.slideshow-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.slideshow-media {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
}

.caption {
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 18px;
}


.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
  }

  .preview-item img, .preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  .company-style {
  font-family: "Alex Brush", cursive;
  font-weight: 400;
  font-size: 3em;
  text-transform: none;
  font-style: normal;
  color: #8B4513; /* Cor elegante */
  margin-bottom: 10px;
}


  .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }


#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#progressContainer {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
max-width: 400px;
background: rgba(0, 0, 0, 0.8);
color: white;
text-align: center;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
z-index: 1000;
}

#progressBar {
width: 0%;
height: 10px;
background: #4caf50;
border-radius: 5px;
transition: width 0.3s ease-in-out;
}


.spinner {
position: absolute;
top: 40%;
left: 40%;
width: 24px;
height: 24px;
border: 5px solid rgba(255, 255, 255, 0.3);
border-top: 5px solid rgb(58, 58, 58);
border-radius: 50%;
animation: spin 1s linear infinite;
transform: translate(-50%, -50%);
}


@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.image-wrapper {
position: relative;
display: inline-block;
width: 100%;
height: 150px;
vertical-align: top;
border: 1px solid #ccc; /* Borda  */
border-radius: 8px;       /* Bordas arredondadas para combinar com a imagem */
box-sizing: border-box;   /* Garante que o padding/borda não estique o wrapper */
}

.image-wrapper img,
.image-wrapper video {
max-width: 100%;
height: 100%;
display: none; /* só aparece após carregamento */

border-radius: 8px;
}
