/* 비디오 관련 */
video{
  display: inline-block;
  vertical-align: baseline;
}

/* 팝업 전체 영역 (화면 맨 위에 배치) */
.popup {
  position: absolute;
  z-index: 999;
  background-color:#e56363;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: flex-start; /* 팝업을 화면 맨 위에 배치 */
  padding-top: 50px; /* 화면 맨 위에 너무 붙지 않게 */
}

/* 팝업창 스타일 */
.popup-content {
  position: relative;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
/* 닫기 버튼 스타일 */
.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: aliceblue;
  cursor: pointer;
}

/* 팝업 이미지 크기 */
.popup-content img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 500px;
  height: 500px;
  border-radius: 5px;
}

/* 원래 웹페이지 내용을 기본적으로 숨김 */
.hidden {
  display: none;
}

/* 원래 웹페이지 내용을 기본적으로 숨김 */
.hidden {
  display: none;
}

/* 📱 태블릿 & 모바일 반응형 스타일 */
@media (max-width: 1024px) { /* 아이패드 */
  
  .popup-content {
    min-width: 300px; 
    min-height: 300px;
    padding: none;
    display: flex; 
    justify-content: center; 
    align-items: center;
    object-fit: contain;
  }
  .popup-content img {
    max-width: 100%;
    max-height: 100%;
  }


@media (max-width: 600px) { /* 스마트폰 */
  .popup-content {
    position: relative;
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    
    /* 이미지 크기에 맞게 조정 */
    display: inline-block;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
  }
/* 팝업 이미지 크기 */
  .popup-content img {
    width: 100%;
    height: auto;
    max-width: 500px;
    max-height: 500px;
    aspect-ratio: 1 / 1; /* 정사각형 비율 유지 */
    object-fit: contain; /* 이미지 찌그러짐 방지 */
    border-radius: 5px;
    }
  }
  .close-btn {
      font-size: 30px;
      top: 10px;
      right: 20px;
  }
}