/* 관리자바 호버 시 보이게 */
#wpadminbar {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#wpadminbar:hover {
    opacity: 1;
}

/* 푸터 메뉴 위 마진 삭제 */
.wp-site-blocks > footer.wp-block-template-part {
    margin-block-start: 0 !important;
}

/* 헤더 고정 */
header.wp-block-template-part {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: transform 0.1s ease-in-out;
}

/* 스크롤 시 숨김 */
header.wp-block-template-part.hide-header {
  transform: translateY(-100%);
}

/* ------------------------
   모바일 푸터 (<= 768px)
------------------------ */
@media (max-width: 768px) {
  footer.wp-block-template-part {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 200px;
    height: 100vh;
    z-index: 998;
    display: flex;
    flex-direction: column;      /* 수직 방향 정렬 */
    justify-content: center;     /* 세로 중앙 정렬 */
    align-items: center;         /* 가로 중앙 정렬 */
    background: var(--wp--preset--color--base);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
  }

  footer.wp-block-template-part.visible {
    right: 0;
  }
}

/* ------------------------
   데스크탑 푸터 (>= 769px)
------------------------ */
@media (min-width: 769px) {
  footer.wp-block-template-part {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-in-out;
    z-index: 996;
  }

  footer.wp-block-template-part.visible {
    max-height: 500px;
  }
}
}
