/**********************************************************/
/* ´ÙÀÌ¾ó·Î±× ±âº» ½ºÅ¸ÀÏ                                    */
/**********************************************************/
.f-dialog {
    padding: 0;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    width: 1000px;
    //height: auto;
    //max-height: 80vh;
    background: transparent;
    overflow: hidden;

}

/* ´ÙÀÌ¾ó·Î±× ¹è°æ */
.f-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

/* ´ÙÀÌ¾ó·Î±× ³»ºÎ ÄÁÅÙÃ÷ ·¹ÀÌ¾Æ¿ô */
.dialog-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ´ÙÀÌ¾ó·Î±× Çì´õ */
.dialog-close {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 10px;
    background: transparent;
}



/* ´ÙÀÌ¾ó·Î±× º»¹® */
.dialog-body {
    background: #fff;
    border-radius: 0 0 8px 8px;
}


/* frame ½ºÅ¸ÀÏ */

#dialogContent {
    width: 100%;
    height: 100%;
}

/* ´Ý±â ¹öÆ° */
.close-button {
    background: none;
    border: none;
    font-size: 4rem;
    color: #c9cac9;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #fff;
}

/* ¹ÝÀÀÇü ½ºÅ¸ÀÏ */
@media (max-width: 768px) {
    .f-dialog {
        width: 95%;
    }

    .dialog-close {
        padding: 12px 15px;
    }

}

/**********************************************************/
/* Ä§¼ö ÀÌ·Â ´ÙÀÌ¾ó·Î±× ¿Í ÀÎ¸íÇÇÇØ¿ì·ÁÁö¿ª ´ÙÀÌ¾ó·Î±× °øÅë ½ºÅ¸ÀÏ */
/**********************************************************/
.dialog-header {
    background-color: #3b207c;
    padding: 3rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    a {
      color: #fff;
    }
    a:hover, a:focus {
        color:orange;
    }
}

.dialog-title {
    font-size: 2rem;
    font-weight: 600;
}

.dialog-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
}

.container-body {
    height: 100%;
    overflow: hidden;
}

.scroll-container {
    max-height: 570px;
    /* ÃÖ´ë ³ôÀÌ Á¦ÇÑ */
    overflow-y: auto;
    /* ³»¿ëÀÌ ¸¹À» ¶§ ½ºÅ©·Ñ »ý¼º */
    padding: 20px;
}

/**********************************************************/
/* ÀÎ¸íÇÇÇØ¿ì·ÁÁö¿ª ´ÙÀÌ¾ó·Î±× Å×ÀÌºí ½ºÅ¸ÀÏ                    */
/**********************************************************/
.risk-zones-container {
    display: flex;
    gap: 32px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    align-items: stretch;
}

.risk-zones-table-area {
    flex: 2;
}

.risk-zones-photo-area {
    position: relative;
    min-width: 280px;
    min-height: 250px;
    background: #f8f7fb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.risk-zones-photo-title {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: #2d185e;
    color: #fff;
    font-weight: 700;
    font-size: 1.9rem;
    text-align: center;
    padding: 10px 0;
    margin-bottom: 16px;
    width: 100%;
}

.risk-zones-photo-content {
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    height: calc(100% - 4rem);
    padding: 16px;
    display: flex;
    gap: 16px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
}

.risk-zones-photo-content img {
    width: 100%;
    max-width: 320px;
    border-radius: 6px;
    margin-bottom: 16px;
    object-fit: cover;
    background: #eee;
}

@media (max-width: 900px) {
    .risk-zones-container {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }

    .risk-zones-photo-area {
        min-width: 0;
        padding: 10px 0;
    }

    .risk-zones-photo-content {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .risk-zones-photo-content img {
        width: auto;
    }

}