
.popup-trigger {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.popup-trigger:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

dialog {
    border: none;
    background: transparent;
    padding: 60px; 
    width: fit-content; 
    max-width: 90vw;   
    max-height: 90vh;
    overflow: visible; 
    animation: fadeIn 0.3s ease-out;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.dialog-container {
    position: relative;
    display: inline-block;
    margin-top: 20px; 
    margin-right: 20px;
}


.full-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 80vw; 
    max-height: 80vh;  
    transition: transform 0.3s ease; 
    transform-origin: center;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    object-fit: contain; 
    user-select: none;
    -webkit-user-drag: none;
}


#closeBtn { 
    position: absolute;
    top: -40px;   
    right: -40px; 
    background: rgba(255,255,255,0.2);
    color: rgba(0, 0, 0, 0.699);
    border: 1px solid rgba(255,255,255,0.3);
    width: 32px;
    height: 32px;
    border-radius: 5%; 
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

#closeBtn:hover {
    opacity: 0.7;
    background: rgba(255,255,255,0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


@media (max-width: 600px) {
  dialog {
    padding: 40px;
  }
  #closeBtn {
    top: -30px;
    right: -30px;
  }
  .full-image {
    max-width: 80vw;
    max-height: 80vh;
  }
}
