/* Sayfanın tamamını kaplayan overlay */
#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Flu efekt */
	z-index:9999;
}

/* Popup kutusu */
#popup {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: translateY(-100px); /* İlk durumda yukarıda olacak */
    opacity: 0; /* İlk durumda görünmez olacak */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    max-width: 80vw; /* Popup, sayfanın en fazla %70’i kadar geniş olabilir */
    max-height: 80vh; /* Popup, sayfanın en fazla %70’i kadar yüksek olabilir */
}

/* Açıldığında animasyon */
#popup.show {
    transform: translateY(0);
    opacity: 1;
}

/* Görsel, popup içine tam sığsın ve tamamen görünsün */
#popup img {
    width: 100%;
    height: 100%;
  max-width: 80vw; /* Popup, sayfanın en fazla %70’i kadar geniş olabilir */
    max-height: 80vh; /* Popup, sayfanın en fazla %70’i kadar yüksek olabilir */
    display: block;
    object-fit: contain; /* Görselin tamamen görünmesini sağlar */ padding:10px 0; border-radius:15px;
}

/* Sağ üst köşede kapatma butonu */
#close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

#close-popup:hover {
    background: red;
    color: white;
}

