.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999; 
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}


.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 1280px;
  height: 90vh;
  background-image:linear-gradient(to top, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.95) 100%), url('../images/S01.webp');
  position: relative;
  box-sizing: border-box; 
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.popup-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  background-color: #FD8932;
  width: 100%;
  padding: 8px 40px;
}

.popup-title {
  color: white;

}

.popup-close-x {
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.popup-close-x:hover {
  color: #333333;
}

.popup-btn-close:hover {
  background-color: #515154;
}


.popup-overlay.popup-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.popup-overlay.popup-active .popup-content {
  transform: translateY(0);
}

.popup-cont{
  display: flex;
  flex-direction: column;
  align-items: Center;
  justify-content: start;
  height: 100%;
  width: 100%;
  gap: 20px;
  padding: 40px;
  overflow: hidden;
  overflow-y: auto; 
}

.popup-cont::-webkit-scrollbar {
  width: 6px;
}

.popup-cont::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.popup-cont::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.popup-cont::-webkit-scrollbar-thumb:hover {
  background: #999;
}

#popup-embreve .popup-cont{
  justify-content: center;
}


.embreve{
  font-size: 8rem;
  font-style: italic;
  font-weight: 900;
}

.popup-text-size {
    font-size: 2rem;
    line-height: 2.4rem;
}

@media (max-width: 798px) {

.popup-content {
  width: 90%;
  height: 80vh;
  
}

.embreve{
  font-size: 3rem;
}

.popup-header{
  padding: 8px 16px;
}

.popup-cont{
  padding: 20px 16px;
}

}
