﻿body {
    margin: 0;
    background-color: #f4f4f4;
    font-family: Arial;
    font-size: 14px;
    text-align: center;
    line-height: 20px;
    color: #000;
}

img {
    display: block;
}

.con {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 15px;
    box-sizing: border-box;
}

.rd {
    max-width: 650px;
    margin-bottom: 20px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 999;
}

    .popup-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.popup {
    position: relative;
    height: 65%;
    padding:15px;
    box-sizing:border-box;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.puImg {
    max-width: 800px;
    height:100%;
    object-fit:cover;
}

.popup-overlay.active .popup {
    transform: scale(1);
}

.popup .close-btn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 30px;
    right: 30px;
    background: #fff;
    color: #000;
    border: 2px #000 solid;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 30px;
    font-family: Arial;
    text-align: center;
}

@media (max-width: 800px) {
    .rd {
        max-width: 100%;
        width: 100%;
    }

    .puImg {
        max-width: 100%;
        height:auto;
    }
}
