﻿
/* Modal */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1300;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

    .custom-modal .close-btn {
        position: absolute;
        z-index: 1250; /* Modal'dan daha yüksek */
        /* diğer stiller */
    }

/* İçerik kapsayıcısı */
.modal-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow: visible; /* Taşmaya izin ver */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: auto;
    max-width: 80vw;
    max-height: 80vh;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Çarpı dışarda, sağ üst köşenin biraz dışına taşacak */
.close-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1500;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
    transition: background 0.3s ease;
}

    .close-btn:hover {
        background-color: rgba(255, 0, 0, 0.8);
    }
