/*
* [모듈명]: 이미지 뷰어 스타일
* [파일명]: viewer.css
* [역할]: 이미지를 전체 화면으로 보여주는 모달의 스타일을 정의합니다.
*/

.viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.viewer-modal.active {
    display: flex;
}

.viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.btn-viewer-close {
    position: absolute;
    top: calc(20px + env(safe-area-inset-top));
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20001;
}

.btn-viewer-close .material-icons {
    font-size: 24px;
}
