html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}


html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0;
    padding-bottom: 0;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

.bold {
    font-weight: bold;
}

.hidden {
    display: none !important;
}

.text-purple {
    color: #a78bfa;
}

.text-overflow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*#region box Styles */
.info-box {
    padding: 15px;
    background-color: #fafafa;
    font-size: 0.9rem;
    border: 1px solid #efefef;
}
[data-bs-theme=dark] .info-box {
    background-color: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #333;
}

.info-label {
    color: #a0aec0;
}

.info-value {
    font-weight: 500;
    color: #e0e0e0;
}

.alerts-content {
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
    align-items: flex-start;
}
[data-bs-theme=dark] .alert-item {
    border-bottom: 1px solid #f0f0f030;
}

.alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
    .alert-icon.red {
        background-color: rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }

    .alert-icon.yellow {
        background-color: rgba(239, 226, 68, 0.2);
        color: #facc15;
    }
    .alert-icon.blue {
        background-color: rgba(68, 81, 239, 0.2);
        color: #3b82f6;
    }
    .alert-icon svg {
        max-width: 20px;
    }

.alert-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-grow: 1;
}

.alert-title {
    font-weight: 500;
    margin-bottom: 3px;   
}
    .alert-title a {
        color: var(--bs-body-color);
    }

.alert-desc {
    color: #a0aec0;
    font-size: 0.85rem;
}

.alert-time {
    color: var(--bs-body-color);
    font-size: 0.9rem;
    margin-top: 3px;
    margin-right: 8px;
}

.alert-panel-list {
    max-height: 145px;
    padding: 0;
    overflow-y: auto;
    padding-right: 4px;
}
    .alert-panel-list::-webkit-scrollbar {
        width: 6px;
    }

    .alert-panel-list::-webkit-scrollbar-thumb {
        background-color: #444;
        border-radius: 3px;
    }

.alert-panel {
    background-color: #2b2b2b;
    padding: 9px 14px;
    border-radius: 5px;
    border-left: 5px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
[data-bs-theme=dark] .apexcharts-canvas g text, [data-bs-theme=dark] .apexcharts-legend-text {
    fill: #fff !important;
    color: #fff !important;
}
[data-bs-theme=dark] .apexcharts-canvas .apexcharts-datalabels {
    background: #fff !important;
}
[data-bs-theme=dark] .apexcharts-canvas .apexcharts-datalabels text {
    background: #fff !important;
    fill: #000 !important;
    color: #fff !important;
    text-shadow:2px 2px 2px  white;
}
/* »óÅÂº° »ö»ó ¶óÀÎ */
.border-left-red {
    border-left-color: #ef4444;
}

.border-left-yellow {
    border-left-color: #facc15;
}

.border-left-blue {
    border-left-color: #3b82f6;
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup {
    background: #2c3e50;
    color: #ffffff;
    border-radius: 12px;
    width: 380px;
    max-width: 90vw;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-header {
    background: #34495e;
    padding: 7px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4a5568;
}

.popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    color: #bdc3c7;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        background: #4a5568;
        color: #ffffff;
    }

.popup-body {
    padding: 24px 20px;
}

.notice-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.notice-content {
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.notice-footer {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.info-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    opacity: 0.7;
}

.popup-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}


/* Ä¿½ºÅÒ ¿À¹ö·¹ÀÌ ½ºÅ¸ÀÏ */
.customoverlay {
    position: relative;
    border-radius: 8px;
    min-width: 160px;
    font-size: 13px;
    cursor: auto;
    z-index: 999;
    background: #ededed;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
    [data-bs-theme=dark] .customoverlay {
        background: #2d3748;
        border: 1px solid #4a5568;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .customoverlay:after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 10px solid #ededed;
    }

    [data-bs-theme=dark] .customoverlay:after {
        border-top: 10px solid #2d3748;
    }

    .customoverlay .header {
        background: #fff;
        padding: 8px 12px;
        border-radius: 8px 8px 0 0;
        border-bottom: 1px solid #b9b9b9;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    [data-bs-theme=dark] .customoverlay .header {
        background: #1a202c;
        border-bottom: 1px solid #4a5568;
    }

    .customoverlay .school-name {
        color: #333;
        font-size: 1.2em;
        font-weight: 600;
        margin: 0;
    }

    [data-bs-theme=dark] .customoverlay .school-name {
        color: #ffffff;
    }

.status-badge {
    background: #153a32;
    border: 1px solid #22c55e;
    color: #22c55e;
    padding: 4px 6px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}
    .status-badge.off {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid #878787;
        color: #878787;
    }

    .status-badge.error {
        background: #3b0820;
        border: 1px solid #ef4444;
        color: #ef4444;
    }

    .status-badge.warning {
        background: #4a2c0f;
        border: 1px solid #facc15;
        color: #facc15;
    }

.customoverlay .content {
    padding: 8px 12px;
}

.customoverlay .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #c5c5c5;
    gap : 10px;
}

[data-bs-theme=dark] .customoverlay .info-row {
    border-bottom: 1px solid #4a5568;
}

.customoverlay .info-label {
    color: #333;
    font-size: 1em;
    font-weight: 400;
}

[data-bs-theme=dark] .customoverlay .info-label {
    color: #ffffff;
}

.customoverlay .info-value {
    color: #333;
    font-size: 1em;
    font-weight: 500;
}

[data-bs-theme=dark] .customoverlay .info-value {
    color: #ffffff;
}

.customoverlay .status-value {
    color: #68d391;
    font-size: 0.9em;
    font-weight: 500;
}

    .customoverlay .status-value.error {
        color: #bdbdbd;
    }

    .customoverlay .status-value.off {
        color: #878787;
    }

.customoverlay .timestamp {
    text-align: left;
    padding-top: 8px;
    margin-top: 4px;
}

.customoverlay .timestamp-text {
    color: #bdbdbd;
    font-size: 0.9em;
    font-weight: 400;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .customoverlay {
        min-width: 180px;
        bottom: 75px;
    }

        .customoverlay .school-name {
            font-size: 14px;
        }

        .customoverlay .info-grid {
            gap: 8px;
        }

        .customoverlay .info-item {
            padding: 6px;
        }
}

/*#endregion */


.cctv-grid {
    flex: 1;
    height: calc(100vh - 145px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    overflow-y: auto;
    margin-top: 15px;
}

.cctv-item {
    background: #2a2a2a;
    border-radius: 8px;
    position: relative;
    max-height: 252px;
}

.cctv-video {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .cctv-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.no-signal {
    color: #666;
    font-size: 14px;
    text-align: center;
}

.cctv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cctv-name {
    font-size: 14px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cctv-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-active {
    background: #00ff00;
    box-shadow: 0 0 6px #00ff00;
  


}

.status-inactive {
    background: #ff0000;
    box-shadow: 0 0 6px #ff0000;
 

    
}

.status-netError {
    background: #d4bb24;
    box-shadow: 0 0 6px #ff0000;
    padding-left:1px;
  
}



.cctv-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #252525;
    padding: 3px 10px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    color: #ccc;
}

.cctv-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cctv-item:hover .cctv-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(0,0,0,0.7);
    border: 1px solid #444;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .control-btn:hover {
        background: rgba(74, 144, 226, 0.8);
        border-color: #4a90e2;
    }


/* ½ºÅ©·Ñ¹Ù ½ºÅ¸ÀÏ¸µ */
.cctv-grid::-webkit-scrollbar {
    width: 6px;
}

.cctv-grid::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.cctv-grid::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

    .cctv-grid::-webkit-scrollbar-thumb:hover {
        background: #666;
    }

/* ¹ÝÀÀÇü */
@media (max-width: 1200px) {
    .cctv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {

    .cctv-grid {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        margin-bottom: 50px;
    }
}

@media (max-width: 600px) {

    .cctv-grid {
        grid-template-columns: 1fr;
    }
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: auto;
    border-radius: 50%;
    background-color: #1e1e1e;
}

    .status-icon.success {
        background-color: rgba(34, 197, 94, 0.1);
        color: #22c55e; 
    }

    .status-icon.error {
        background-color: rgba(255, 255, 255, 0.1);
        color: #878787;
    }

    .status-icon i {
        font-size: 18px;
    }

.scrollable-tbody {
    display: block;
    overflow-y: auto;
}

    .scrollable-tbody tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .scrollable-tbody::-webkit-scrollbar {
        width: 6px;
    }

    .scrollable-tbody::-webkit-scrollbar-thumb {
        background: #444;
        border-radius: 3px;
    }

/* header °íÁ¤ È¿°ú À¯Áö */
.table-operation-history thead {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.table-operation-history td,
.table-operation-history th {
    background-color: #2b2b2b ;
    vertical-align: middle;
    font-size: 0.9rem;
    color: #e0e0e0;
    border-bottom: 3px solid #212121;
}

.table-operation-history th {
    background-color: transparent;
    font-weight: 500;
    color: #a0aec0;
}

.table-operation-history tr {
    border-radius: 8px;
}

    .table-operation-history tr td:first-child {
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        text-wrap-mode: nowrap;
    }

    .table-operation-history tr td:last-child {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

table.dataTable {
    margin-bottom: 20px !important;
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: 0;
    color: var(--bs-gray);
}
div.dataTables_wrapper div.dataTables_length {
    color: var(--bs-gray);
}
div.dataTables_wrapper td.dataTables_empty {
    color: var(--bs-gray);
}

.dataTables_wrapper .row {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

div.table-responsive > div.dataTables_wrapper > div.row > div[class^=col-]:last-child{
    padding-left:0;
}

div.dataTables_wrapper div.dataTables_filter {
    text-align: left !important;
    margin-bottom:10px;
}
    div.dataTables_wrapper div.dataTables_filter input{
        margin-left: 0;
    }

    div.dataTables_wrapper div.dataTables_length label {
        text-align: right;
        float: right;
    }
table.dataTable thead > tr > th.dt-orderable-asc:hover, table.dataTable thead > tr > th.dt-orderable-desc:hover, table.dataTable thead > tr > td.dt-orderable-asc:hover, table.dataTable thead > tr > td.dt-orderable-desc:hover {
    outline: none !important;
    background-color: rgba(0, 0, 0, .03);
}

[data-bs-theme=dark] table.dataTable thead > tr > th.dt-orderable-asc:hover, [data-bs-theme=dark] table.dataTable thead > tr > th.dt-orderable-desc:hover, table.dataTable thead > tr > td.dt-orderable-asc:hover, table.dataTable thead > tr > td.dt-orderable-desc:hover {
    outline: none !important;
    background-color: rgba(12, 20, 39, .93);
}

/* Index */

.region-label {
    position: relative;
    transform: translate(-50%,-50%);
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
}

/* ===== Region side-panel ===== */
#regionPanel {
    height: 812px;
    overflow: hidden;
}

.region-header {
    flex: 0 0 auto;
    padding-bottom: 10px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    .region-header .head-left {
        display: flex;
        flex-direction: column;
    }

    .region-header .title {
        font-size: 15px;
        color: #868686;
    }

    .region-header .sub {
        font-size: 12px;
        color: #94a3b8;
    }

#regionBackBtn {
    display: none;
    padding: .32rem .6rem;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,.18);
    font-weight: 700;
}

    #regionBackBtn:hover {
        background: rgba(255,255,255,.06);
    }

/* ½ºÅ©·Ñ ¹Ùµð */
#regionList.region-body {
    flex: 1 1 auto;
    overflow: auto;
}

/* Çì´õ ¾È ·¹ÀÌ¾Æ¿ô ¿ä¼Ò */
.region-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.region-name {
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ä«¿îÆ® ¹èÁö */
.region-count.badge {
    min-width: 36px;
    font-weight: 700;
    background: rgba(163, 219, 38,.1);
    color: #93d500;
    padding: .38rem .6rem;
}
/* ¹èÁö¿Í ¿À¸¥ÂÊ chevron °£°Ý */
#regionList .accordion-button .region-count {
    margin-right: .6rem;
}

/* === ¼­ºê¸®½ºÆ®: ÅØ½ºÆ® + ON/OFF¸¸ === */
#regionList .region-sublist {
    margin: 8px 0 4px 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
}

#regionList .region-subitem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 2px;
    margin: 2px 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

    #regionList .region-subitem .name {
        flex: 1;
        min-width: 0; /* flex Ç×¸ñ ¸»ÁÙÀÓ¿¡ ÇÊ¼ö */
    }

/* "ÇØ´ç Áö¿ª ÀåÄ¡°¡ ¾ø½À´Ï´Ù." °°Àº ¸Þ½ÃÁöµµ ÇÑ ÁÙ ¸»ÁÙÀÓ */
#regionList .region-sublist .empty {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ellipsis-1 {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* ¾ÆÄÚµð¾ð ¹Ùµð ÀüÃ¼ ÆùÆ® Å©±â ¡é */
#regionList .accordion-body {
    font-size: .85rem;
    padding: 0.65rem ;
    text-overflow: ellipsis
}

/* 15px Á¤µµ */

/* ON/OFF ÅØ½ºÆ® ¶óº§ */
#regionList .state-label {
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .3px;
    padding: 0;
    background: transparent;
    border: 0;
    text-shadow: none;
}

#regionList .state-on {
    color: #22c55e;
}

#regionList .state-off {
    color: #94a3b8;
}

/* ½ºÅ©·Ñ¹Ù(´ÙÅ©) */
#regionList.region-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(122,138,158,.6) transparent;
}

    #regionList.region-body::-webkit-scrollbar {
        width: 10px;
    }

    #regionList.region-body::-webkit-scrollbar-track {
        background: transparent;
    }

    #regionList.region-body::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg,rgba(148,163,184,.45),rgba(71,85,105,.55));
        border-radius: 10px;
        border: 2px solid transparent;
        background-clip: padding-box;
    }

        #regionList.region-body::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg,rgba(203,213,225,.6),rgba(100,116,139,.7));
        }

.calendar {
    display: block;
    user-select: none;
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 10px 15px 10px;
}

    .calendar-header h5 {
        font-size: 1rem;
        font-weight: 600;
        margin: 0;
    }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 4px;
    padding: 0 4px;
}

    /* ±âº» ¼¿ */
    .calendar-grid div {
        padding: 0.3rem 0;
        border-radius: 50%;
    }

    .calendar-grid .day-name {
        font-weight: 600;
        font-size: 0.85rem;
        color: #444;
        background: none;
        padding: 0.2rem 0;
    }


        [data-bs-theme=dark] .calendar-grid .day-name {
            color: #999;
        }

            .calendar-grid .day {
                position: relative;
                font-size: 0.9rem;
                color: #222;
                line-height: 1.8rem; 
                z-index:1;
                cursor: pointer
            }

        [data-bs-theme=dark] .calendar-grid .day {
            color: #d0d6e1;
        }

        .calendar-grid .day.complete::before,
        .calendar-grid .day.incomplete::before,
        .calendar-grid .day.partial::before {
            content: "";
            position: absolute;
            width: 35px;
            height: 35px;
            inset: 0; /* ºÎ¸ð ¼¿ Å©±â¸¸Å­ Ã¤¿ò */
            margin: auto;
            border-radius: 50%;
            z-index: -1;
        }

        .calendar-grid .day.complete {
            color: #fff;
        }

            .calendar-grid .day.complete::before {
                background: #3b82f6; /* Á¡°Ë ¿Ï·á */
            }

        .calendar-grid .day.incomplete {
            color: #fff;
        }

            .calendar-grid .day.incomplete::before {
                background: #ef4444; /* Á¡°Ë ¹Ì¿Ï·á */
            }

        .calendar-grid .day.partial {
            color: #fff;
        }

            .calendar-grid .day.partial::before {
                background: #22c55e; /* ÀÏºÎ ¿Ï·á */
            }

        .calendar-grid .day.today {
            color: #97d700;
            font-weight: 600;
        }

.calendar-grid .day.dot {
    background-color: #97d700;
    color: #fff;
}

@media (max-width: 550px) {
    .calendar-grid .day {
        font-size: 0.75rem;
        line-height: 1.4rem;
    }

    .calendar-grid .day-name {
        font-size: 0.75rem;
    }

    .calendar-header h5 {
        font-size: 0.9rem;
    }
}


.legend {
    display: flex;
    justify-content: space-between;
    margin: 15px 10px 10px 10px;
}

.legend-item {
    display: flex;
    justify-content:space-between;
    align-items: center;    
    margin-top: 4px;
    padding: 2px 2px;
}
/*    .legend-item div:nth-of-type(1){
        width:80px;
        margin-right:10px;
    }
    .legend-item div:nth-of-type(2){
        width:120px
    }*/

    .legend-item i {
        font-size: 10px;
        margin-right: 6px;
    }

    .legend-item .count {
        font-weight: 600;
        color: #333;
        text-align: right;
        margin-left: 5px;
    }
        [data-bs-theme=dark] .legend-item .count{
            color:#999
        }
.overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

    .overflow-x-auto:hover {
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }

.photo-list {
    display: flex;
    gap: 6px;
}

    .photo-list img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        object-fit: cover;
        background-color: #eee;
        border: 1px solid #dadada;
        cursor: pointer;
    }
.photo-modal-viewer {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
}

    .photo-modal-viewer img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90% !important;
        max-height: 90% !important;
        width: auto !important;
        height: auto !important;
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    }

.modal-close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    font-weight: 200;
}