/* 모달 기본 스타일 */
.portfolio-modal {
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-backdrop {
    position: absolute;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
}
/* 1번
.modal-content {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}*/
/* 2번
.modal-content {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 0;    
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
*/

/* 1번
.modal-img {
    max-width: 60vw;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}*/
/* 2번번
.modal-img {
  width: 100vw;
  height: 100vh;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;   
  border-radius: 0;      
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  background: #000;      이미지 비율상 여백이 생기면 검은 배경
  display: block;
}
*/
.modal-content {
  position: relative;  
  background: #fff;
  padding: 0;
  border-radius: 0;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  overflow: visible;
}

.modal-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0;
  margin: 0;
  background: none;
}

.modal-close {
    position: absolute;
    top: 8px; right: 8px;
    background: none; border: none;
    font-size: 2rem; color: #333;
    cursor: pointer;
}

.modal-arrow {
    background: #333;
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 2;
    opacity: 0.85;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-arrow.left { left: 0.5rem; }
.modal-arrow.right { right: 0.5rem; }
.modal-arrow:hover { background: #555; }
@media (max-width: 768px) {
    .modal-arrow.left { left: 0.2rem; }
    .modal-arrow.right { right: 0.2rem; }
    .modal-arrow { font-size: 1.5rem; width: 2rem; height: 2rem; }
}

