.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-modal {
    background: #fff;
    border-radius: 10px;
    max-width: 950px;
    width: 100%;
    padding: 20px;
    position: relative;
    font-family: Arial;
    max-height: 745px;
    overflow-y: auto;
}

.popup-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}
.popup-thumbnails {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.popup-thumbnails img {
    width: 60px;
    height: 60px!important;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ccc!important;
    border-radius: 6px!important;
    position: relative;
}
.popup-thumbnails img.video-thumb::after {
  content: '\25BA';
  position: absolute;
  color: white;
  font-size: 20px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 2px 5px;
}
.popup-media{
/*  overflow-y: auto;*/
/*  max-height: 500px;*/
}  
.popup-media img,
.popup-media video {
  width: 100%;
  object-fit: contain;
}


.popup-media video {
  max-width: 100%;
  max-height: 400px;
}


.popup-description {
    margin-top: 20px;
    font-size: 15px;
    color: #444;
    padding: 20px;
    margin: auto;
    width: 94%;
}


.pdf-thumb {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 60px;
  cursor: pointer;
}

.pdf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 2px solid #ccc;
  border-radius: 6px;
}

.pdf-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #FF5722;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}


.popup-features {
  margin-top: 10px;
  padding-left: 20px;
  list-style-type: disc;
}

.popup-features li {
  margin-bottom: 4px;
  font-size: 14px;
  color: #333;
}


.popup-key-features h2 {
    font-size: 19px;
    margin-left: 6%;
}



.popup-media-wrapper {
  position: relative;
  max-height: 500px;
/*  overflow: hidden;*/
}

.popup-media {
  width: 100%;
}

.media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: rgba(0, 0, 0, 0.7);
  background: #fff;
  border-radius: 50%;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  transition: background 0.3s;
}

.media-arrow:hover {
  background: #eee;
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}



.popup-thumbnails img.active-thumb {
    border: 2px solid #000000 !important;
    /* box-shadow: 0 0 4px #000000; */
}



.popup-actions {
  position: absolute;
  top: 50px;
  right: 20px;
  text-align: right;
  z-index: 999;
}

.popup-actions .action-label {
  font-weight: bold;
  margin: 0;
  font-size: 14px;
  color: #000;
}

/*.popup-actions .action-buttons {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}*/

.popup-actions .action-buttons {
    margin-top: 4px;
    display: flex;
    gap: 6px;
    flex-direction: column;
    align-items: end;
}

.action-btn {
    background: #673ab7;
    color: #fff;
    border-radius: 6px;
    padding: 5px;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease;
    width: 33px;
    text-align: center;
}

.action-btn:hover{
  color: white;
  transform: scale(1.1);
  transition: 0.2s;
}

.action-btn:hover {
  background: #5e35b1;
}

@media (max-width: 600px) {
  .popup-actions {
    top: 25px;
    right: 10px;
}

  .popup-actions .action-label {
    font-size: 12px;
    margin-top: 32px;
}

  .action-btn {
    font-size: 14px;
    padding: 6px;
  }

  .popup-close {
    top: 1px;
}

}
