/*==========[#2-오렌지 콜아웃]=======*/
/* [1] PC 버전: 4열 격자 그리드로 아래로 펼쳐지는 구조 */
.notion-callout[class*="orange"] .notion-collection-gallery {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* PC 기준 무조건 4열 고정 */
    grid-template-rows: unset !important; /* 기존 세로 2줄 강제 제어 해제 */
    grid-auto-flow: unset !important; /* 가로 누적 흐름 해제하여 아래로 쌓이게 변경 */
    gap: 10px !important;
    background: transparent !important;
    overflow-x: visible !important; 
}
/* 크롬, 사파리, 앱 내 브라우저 스크롤바 숨김 속성은 안전하게 유지 */
.notion-callout[class*="orange"] .notion-collection-gallery::-webkit-scrollbar {
    display: none !important;
}
.notion-callout[class*="orange"] .notion-collection-card {
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.notion-callout[class*="orange"] .notion-collection-card__content {
    background: transparent !important;
    padding: 10px 4px !important;
    display: flex !important;
    flex-direction: column !important;
}
/* [2] 썸네일 1:1 고정 */
.notion-callout[class*="orange"] .notion-collection-card__cover,
.notion-callout[class*="orange"] .notion-collection-card__cover img {
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    object-fit: cover !important;
}
/* [3] 속성 순서별 스타일 */
/* 공통: 아이콘 숨김 */
.notion-callout[class*="orange"] .notion-collection-card__property svg {
    display: none !important;
}
/* --- 속성 1: 제목 (항상 16px) --- */
.notion-callout[class*="orange"] .notion-collection-card__property:nth-child(1),
.notion-callout[class*="orange"] .notion-collection-card__property:nth-child(1) * {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    line-height: 1.4 !important;
    margin-bottom: 5px !important;
}
/* --- 속성 2:설명 (항상 12px) --- */
.notion-callout[class*="orange"] .notion-collection-card__property:nth-child(2),
.notion-callout[class*="orange"] .notion-collection-card__property:nth-child(2) * {
    font-size: 12px !important;
    color: #666666 !important;
    font-weight: 400 !important;
    margin-bottom: -5px !important;
}
/* --- 속성 3: NEW 태그 (다중선택 스타일)*/
.notion-callout[class*="orange"] .notion-collection-card__property:nth-child(3) {
    display: flex !important;
}
.notion-callout[class*="orange"] .notion-collection-card__property:nth-child(3) .notion-pill {
    background: transparent !important; 
    padding: 0 !important;
    color: #D34A45 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}
@media (max-width: 768px) {
    .notion-callout[class*="orange"] .notion-collection-gallery {
        display: grid !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-auto-flow: column !important; /* 모바일에서만 1줄 가로 방향 정렬 트리거 */
        /* 화면당 1.5개 노출 */
        grid-auto-columns: calc((100% - 10px) / 1.5) !important; 
        gap: 8px !important;
        overflow-x: auto !important; /* 가로 스크롤 활성화 */
        scrollbar-width: none !important;
        scroll-snap-type: x mandatory !important;
    }
    .notion-callout[class*="orange"] .notion-collection-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
        flex: none !important;
        scroll-snap-align: start !important;
    }
    /* 속성 1 (제목): 14px 고정 */
    .notion-callout[class*="orange"] .notion-collection-card__property:nth-child(1),
    .notion-callout[class*="orange"] .notion-collection-card__property:nth-child(1) * {
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    /* 속성 2 (설명): 10px 고정 */
    .notion-callout[class*="orange"] .notion-collection-card__property:nth-child(2),
    .notion-callout[class*="orange"] .notion-collection-card__property:nth-child(2) * {
        font-size: 10px !important;
        font-weight: 400 !important;
    }
    /* 속성 3 (태그): 모바일 9px 및 빨간색 유지 */
    .notion-callout[class*="orange"] .notion-collection-card__property:nth-child(3) .notion-pill {
        font-size: 9px !important;
        color: #D34A45 !important;
    }
}

/*------------------------------------------
[2-1][G 타입3] 슬라이드형 (파란색) "나중"
[Note] 카드형
- 설명 글 3줄이상 생략 + 박스 크기 고정
- 마지막 속성 윗줄에 구분선
-------------------------------------------*/
/*슬라이드 기능*/
.notion-callout[class*="blue"] .notion-collection-gallery {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 20px !important;
  scrollbar-width: none !important;
}
.notion-callout[class*="blue"] .notion-collection-card {
  flex: 0 0 46% !important;
  min-width: 46% !important;
}
/* 카드 내부 마진 조정 */
.notion-callout[class*="blue"] .notion-collection-card__content {
    padding-left: 20px !important;  
    padding-right: 0px !important; 
    padding-bottom: 15px !important; 
}
/*썸네일 이미지 16:9 비율 */
.notion-callout[class*="blue"] .notion-collection-card__cover,
.notion-callout[class*="blue"] .notion-collection-card__cover > div,
.notion-callout[class*="blue"] .notion-collection-card__cover img {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    aspect-ratio: 16 / 9 !important; 
    object-fit: cover !important;
}
/* 제목 크기 복구 (기본 갤러리 16px 반영) */
.notion-callout[class*="blue"] .notion-collection-card__property:first-child,
.notion-callout[class*="blue"] .notion-collection-card__property:first-child * {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin-bottom: 6px !important;
    /* 제목은 3줄 생략에서 제외하고 다 보여줌 */
    display: block !important;
    -webkit-line-clamp: unset !important;
    max-height: none !important;
}
/* 속성 3줄 생략 및 구분선 */
.notion-callout[class*="blue"] .notion-collection-card__property {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.45 !important; max-height: 5.5em !important;
}
.notion-callout[class*="blue"] .notion-collection-card__property:last-child {
  border-top: 0px solid #eeeeee !important;
  /*설명 위 구분선*/
  margin-top: 0px !important; 
  padding-top: 0px !important; 
}
/*속성 설명 숨기기*/
/* 이거 지우면 설명 3줄 생략 나타남*/
.notion-callout[class*="blue"] .notion-collection-card__property:last-child {
  /* 📌 텍스트 숨기기 핵심 코드 */
  font-size: 0 !important;  
  color: transparent !important; 
  min-height: 0px !important;    /* 선이 보일 수 있는 최소 높이 유지 */
  overflow: hidden !important;
}
@media (max-width: 768px) {
  /* 1. 카드 너비 조정 (기존 유지) */
  .notion-callout[class*="blue"] .notion-collection-card { 
      flex: 0 0 85% !important; 
      min-width: 85% !important;
  }
  /* 2. 모바일 썸네일 이미지 비율 변경 (세로형) */
  .notion-callout[class*="blue"] .notion-collection-card__cover,
  .notion-callout[class*="blue"] .notion-collection-card__cover > div,
  .notion-callout[class*="blue"] .notion-collection-card__cover img {
      aspect-ratio: 1 / 1 !important;
      object-fit: cover !important;
  }
  /* 3. 모바일 제목 크기 제어 */
  .notion-callout[class*="blue"] .notion-collection-card__property:first-child,
  .notion-callout[class*="blue"] .notion-collection-card__property:first-child * {
      font-size: 14px !important;
      line-height: 1.3 !important;
      margin-bottom: 0px !important; 
  }
  /* 4. 모바일 하단 속성/본문 크기 제어 */
  .notion-callout[class*="blue"] .notion-collection-card__property:not(:first-child),
  .notion-callout[class*="blue"] .notion-collection-card__property:not(:first-child) *,
  .notion-callout[class*="blue"] .notion-collection-card__property:not(:first-child) span {
      font-size: 10px !important;
      line-height: 1.4 !important;
  }
  /* 5. 마지막 속성 구분선 간격 조정 (선택 사항) */
  .notion-callout[class*="blue"] .notion-collection-card__property:last-child {
      margin-top: 0px !important; 
      padding-top: 0px !important;
  }
  /*속성 설명 숨기기*/
/* 이거 지우면 설명 3줄 생략 나타남*/
.notion-callout[class*="blue"] .notion-collection-card__property:last-child {
  font-size: 0 !important;      
  color: transparent !important;
  min-height: 0px !important;    /* 선이 보일 수 있는 최소 높이 유지 */
  overflow: hidden !important;
}
}
/*-------------------------------------------
[2-4]히어로 배너(노란색 / 세로형 Full Width
[1] 전역 레이아웃*/
body {
    overflow-x: hidden !important; 
}
.super-content,
.notion-page-content,
.notion-column {
    overflow: visible !important;
}
/* [2] 히어로 배너 본체 (화면 꽉 차게 설정) */
.notion-callout[class*="yellow"] {
    background-color: transparent !important;
    border: none !important;
    padding: 20px 0 !important;
    margin-top: -170px !important; 
    width: 100vw !important;
    max-width: none !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important; /* 슬라이드 시 프레임 밖으로 나가야 함 */
}
/* [3] SEO 텍스트 및 h1 숨김 */
.notion-callout[class*="yellow"] .notion-callout__icon,
.notion-callout[class*="yellow"] h1,
.notion-callout[class*="yellow"] .notion-text,
.notion-callout[class*="yellow"] > .notion-callout__content > div:not([class*="collection"]) {
    display: none !important;
}
/* [4] 슬라이드 화면 왼쪽 끝 밀착 */
.notion-callout[class*="yellow"] .notion-collection-gallery {
    display: flex !important;
    width: 100vw !important; 
    padding-left: 0 !important; 
    padding-right: 0 !important; 
    padding-top: 0 !important;
    padding-bottom: 20px !important; 
    gap: 10px !important; 
    overflow-x: auto !important;
    scrollbar-width: none !important;
}
.notion-callout[class*="yellow"] .notion-collection-gallery::-webkit-scrollbar {
    display: none !important;
}
/* [5] 첫 번째 카드 그리드 정렬 */
.notion-callout[class*="yellow"] .notion-collection-card {
    flex: 0 0 550px !important;
    width: 550px !important;
    min-height: 1000px !important;
    position: relative !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}
/* 💡 PC 시작점*/
.notion-callout[class*="yellow"] .notion-collection-card:first-child {
    margin-left: calc((66vw - 1200px) / 2 + 20px) !important; 
}
/* 슬라이드 마지막 여백 */
.notion-callout[class*="yellow"] .notion-collection-card:last-child {
    margin-right: 30px !important;
}
@media (max-width: 768px) {
    /* [1] 갤러리가 들어있는 노란색 콜아웃만 정밀 타격 */
    .notion-callout[class*="yellow"]:has(.notion-collection-gallery) {
        width: 100vw !important;
        max-width: none !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: -120px !important;
        overflow: visible !important; 
        padding-bottom: 3px !important;
    }
    /* [2] 갤러리 내부 구조 */
    .notion-callout[class*="yellow"] .notion-collection-gallery {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        width: 100vw !important;
        padding: 0 !important;
        gap: 10px !important;
        grid-template-columns: none !important; 
        grid-auto-columns: none !important;
    }
    /* [3] 카드 크기 제어 */
    .notion-callout[class*="yellow"] .notion-collection-card,
    .notion-callout[class*="yellow"] .notion-collection-card > a {
        min-width: 75vw !important; 
        max-width: 75vw !important;
        width: 75vw !important;
        flex: 0 0 75vw !important;
        min-height: 480px !important; /* 반응 확인을 위해 고정값 권장 */
        height: auto !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    /* [5] 시작점 정렬 */
    .notion-callout[class*="yellow"] .notion-collection-card:first-child {
        margin-left: 0px !important;
    }
    /* [6] Slide for more 글자: 패딩만 유지 */
    .notion-callout[class*="yellow"]:has(.notion-collection-gallery) + .notion-text {
        padding-left: 27px !important; 
        margin-top: 0px !important;
    }
}
/*-------[5]썸네일 이미지 및 호버효과-----*/
/* 카드 커버 이미지 초기 상태 */
.notion-callout[class*="yellow"] .notion-collection-card__cover,
.notion-callout[class*="yellow"] .notion-collection-card__cover img {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    z-index: 1 !important;
    border-radius: 18px !important;
    object-fit: cover !important;
/* 📍 [7]의 애니메이션 설정을 여기로 통합 */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    will-change: transform;
}
/* 📍 카드 호버 시 이미지 확대 (통합 적용) */
.notion-callout[class*="yellow"] .notion-collection-card:hover .notion-collection-card__cover,
.notion-callout[class*="yellow"] .notion-collection-card:hover .notion-collection-card__cover img {
    transform: scale(1.08) !important;
}
/* 그라데이션 및 텍스트 영역 */
.notion-callout[class*="yellow"] .notion-collection-card__content {
    position: absolute !important;
    bottom: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 75% !important; 
    padding: 0 30px 45px 30px !important;
    z-index: 3 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0) 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    pointer-events: none;
}
/*[6]슬라이드 안내 표시 (텍스트)*/
/* 1. 노란색 콜아웃 바로 뒤에 오는 텍스트 블록 찾기 */
.notion-callout[class*="yellow"] + .notion-text {
    display: block !important;
    background-color: transparent !important;
    margin-top: -35px !important; 
    width: 100vw !important;
    max-width: none !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -48vw !important;
    z-index: 100 !important;
}
/* 2. 가이드 문구 텍스트 스타일 */
.notion-callout[class*="yellow"] + .notion-text > div {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    padding-left: 5px !important;
}
/* [7]폰트 스타일 통합 제어 */
/* 속성1 : 다중선택 버튼 */
.notion-callout[class*="yellow"] .notion-collection-card__property:nth-child(1) {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}
.notion-callout[class*="yellow"] .notion-collection-card__property:nth-child(1) .notion-pill {
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}
/* 속성2 : 제목 */
.notion-callout[class*="yellow"] .notion-collection-card__property:nth-child(2),
.notion-callout[class*="yellow"] .notion-collection-card__property:nth-child(2) * {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}
/* 속성3 : 설명 */
.notion-callout[class*="yellow"] .notion-collection-card__property:nth-child(3),
.notion-callout[class*="yellow"] .notion-collection-card__property:nth-child(3) * {
    color: rgba(255,255,255,0.9) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin-top: 6px !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5) !important;
}
/* 공통 아이콘 숨김 */
.notion-callout[class*="yellow"] .notion-collection-card__property svg {
    display: none !important;
}
@media (max-width: 768px) {
    .notion-callout[class*="yellow"] .notion-collection-card {
        /* [7]번과 [8]번 중복 통합: 화면 너비에 맞추려면 85vw 추천 */
        flex: 0 0 85vw !important; 
        min-height: 500px !important;
    }
    .notion-callout[class*="yellow"] .notion-collection-card__content {
        padding: 20px !important;
    }
/* 모바일 속성 스타일 */
    .notion-callout[class*="yellow"] .notion-collection-card__property:nth-child(1) .notion-pill {
        font-size: 10px !important;
        padding: 1px 6px !important;
    }
    .notion-callout[class*="yellow"] .notion-collection-card__property:nth-child(2),
    .notion-callout[class*="yellow"] .notion-collection-card__property:nth-child(2) * {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    .notion-callout[class*="yellow"] .notion-collection-card__property:nth-child(3),
    .notion-callout[class*="yellow"] .notion-collection-card__property:nth-child(3) * {
        font-size: 11px !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
