/* =========================================
   MODAL DEMO / WRAPPER
========================================= */

.containermodal {
    max-width: 400px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
}

.containermodal h1 {
    font-size: 42px;
    margin-bottom: 20px;
}


/* =========================================
   POPUP LINK
========================================= */

.popup-link {
    display: inline-block;
    padding: 14px 28px;

    background: #111;
    color: #fff;

    text-decoration: none;
    border-radius: 4px;

    transition: background 0.3s ease;
}

.popup-link:hover {
    background: #333;
    color: #fff;
}


/* =========================================
   MODAL OVERLAY
========================================= */

.modal-overlay {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 20px;

    background: rgba(0, 0, 0, 0.65);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 999999 !important;
}


/* =========================================
   MODAL ACTIVE
========================================= */

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================
   MODAL BOX
========================================= */

.modal-box {
    position: relative;

    width: 100%;
    max-width: 80%;
    max-height: 90vh;
 overflow-x: hidden;
    overflow-y: auto;
    margin: 0;


    background: #f3f1eb;

    border-radius: 10px;

    text-align: left;

    transform: translateY(30px) scale(0.96);

    transition: transform 0.35s ease;

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}


/* Modal açılınca kutu animasyonu */

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.mpad {
    padding: 30px 30px!important;
	position: relative;
}

/* =========================================
   CLOSE BUTTON
========================================= */

.modal-close {
	
border:	1px solid #ced0ca;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    background: #f3f1eb;
    color: #111;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 100;

    line-height: 40px;
    text-align: center;

    cursor: pointer;

    z-index: 10;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.modal-close:hover {
    background: #f3f1eb;
    color: #111;

    transform: rotate(90deg);
}

.modal-close:focus {
    outline: none;
}


/* =========================================
   MODAL CONTENT
========================================= */

.modal-box h2 {
    font-size: 2.4rem;
    margin-bottom: 0px !important;
	font-weight: 300;
}

.modal-box h3 {
    margin-top: 15px;
}

.modal-box p {
    color: #666;
    line-height: 1.3!important;
 	font-size: 1.1rem !important;
	font-family: "Times New Roman", Times, serif;
	font-weight: 100;
}
.modaluptext {
    color: #bd7b4f!important;
	text-transform: uppercase;
	font-size: .7rem;
	font-weight: 100!important;
	letter-spacing: 1px;
	margin-bottom: 20px;
}

.modalbottomtext {
  margin-top: 10px;
	color: #536069;
	margin-bottom: 40px;
	font-size: 14px;letter-spacing: 1px;
	
	}
	 


/* =========================================
   MODAL IMAGE
========================================= */

.modal-image {
	object-fit: cover;
	object-position: center top;
  
min-height: 600px;
	 
}


 

.subbox {
border-top: 1px solid #ced0ca;
bottom: 20px;
	position: absolute;
}


/* =========================================
   MODAL BUTTON
========================================= */

.modal-button {
    display: inline-block;

    margin-top: 10px;

    padding: 13px 24px;

    background: #111;
    color: #fff;

    text-decoration: none;

    border-radius: 4px;

    transition: background 0.3s ease;
}

.modal-button:hover {
    background: #444;
    color: #fff;
}


/* =========================================
   BODY LOCK
========================================= */

/* Popup açıkken arka sayfanın scroll olmasını engeller */

body.modal-open {
    overflow: hidden !important;
}


/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 768px) {

    .containermodal {
        padding: 70px 20px;
    }

    .containermodal h1 {
        font-size: 32px;
    }

    .modal-overlay {
        padding: 15px;
    }

    .modal-box {
        max-height: 92vh;

        padding: 50px 25px 30px;
    }

    .modal-box h2 {
        font-size: 26px;
    }

    .modal-box h3 {
        font-size: 22px;
    }

    .modal-box p {
        font-size: 15px;
        line-height: 1.7;
    }

    .modal-close {
        top: 12px;
        right: 12px;

        width: 36px;
        height: 36px;

        font-size: 23px;
        line-height: 36px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .modal-overlay {
        padding: 10px;
    }

    .modal-box {
        max-height: 94vh;

        padding: 50px 20px 25px;

        border-radius: 7px;
    }

}