/*===========================================
11📌 Notion 갤러리뷰 통합 커스텀
[목차]
0. 📁 공통 베이스 (Common Base)
1. 📁 기본 카드형 (Standard Cards)
2. 📁 커스텀형 (Custom Callout Cards)
3. 📁 전역 속성 제어 (Global Properties)
===========================================*/
/*0. 📁 공통 베이스-------------------------
- 모든 갤러리에 적용되는 화이트 카드 베이스
- PC글자:제목 16, 설명 12 /모바일 글자: 제목 15, 설명 10
-------------------------------------------*/
.notion-collection-gallery:has(.notion-collection-card__cover) .notion-collection-card__cover,
.notion-collection-gallery:has(.notion-collection-card__cover) .notion-collection-card__cover > div,
.notion-collection-gallery:has(.notion-collection-card__cover) .notion-collection-card__cover img {
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  object-fit: cover !important;
}
.notion-collection-gallery:has(.notion-collection-card__cover) .notion-collection-card {
  width: 100% !important;
  background: #fff !important;
  border-radius: 0px !important;
  box-shadow: none !important;
  border: 0px solid rgba(0,0,0,0.06) !important;
  overflow: hidden !important;
}
/*-----------------------------------------*/
/* 전역 속성 제어 (Global Properties) */
/* [1] 제목: PC 16px / 모바일 13px */
.notion-collection-card__property:first-child,
.notion-collection-card__property:first-child * {
    font-size: 16px !important;
    color: #000000 !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}
/* [2] 하단 모든 속성 통합 제어 (기본 12px / 볼드 포함) */
.notion-collection-card__property:not(:first-child),
.notion-collection-card__property:not(:first-child) *,
.notion-collection-card__property:not(:first-child) span,
.notion-collection-card__property:not(:first-child) div,
.notion-collection-card__property:not(:first-child) :is(b, strong, [style*="700"], [style*="bold"]) {
    font-size: 12px !important; 
    color: #666666 !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
}
/* [3] 관계형(Relation) 정렬 */
[class*="notion-property__relation"] :is(svg, img, .notion-item-icon, [class*="icon"]),
[class*="notion-property__relation"] a::before {
    display: none !important;
}
[class*="notion-property__relation"] a {
    display: inline-flex !important;
    align-items: center !important;
    background: transparent !important; 
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    text-decoration: none !important;
    transition: color 0.2s ease-in-out !important;
}
/* 📌 관계형 링크 호버 시 설정 */
[class*="notion-property__relation"] a:hover,
[class*="notion-property__relation"] a:hover * {
    color: #D34A45 !important;
    text-decoration: none !important; 
}
/* 텍스트 자체의 미세한 간격 조정 */
[class*="notion-property__relation"] span,
[class*="notion-property__relation"] .notion-link {
    margin-left: 0 !important;
    padding-left: 0 !important;
    color: inherit !important;
}
@media (max-width: 768px) {
    /* [1] 제목14px/속성10px */
    .notion-collection-card__property:first-child,
    .notion-collection-card__property:first-child * {
        font-size: 14px !important;
    }
    .notion-collection-card__property:not(:first-child),
    .notion-collection-card__property:not(:first-child) *,
    .notion-collection-card__property:not(:first-child) span,
    .notion-collection-card__property:not(:first-child) div,
    .notion-collection-card__property:not(:first-child) :is(b, strong, [style*="700"], [style*="bold"]) {
        font-size: 10px !important;
        line-height: 1.4 !important;
    }
    /* 관계형 링크 모바일 정렬 보정 */
    [class*="notion-property__relation"] a {
        font-size: 10px !important;
    }
}
/*=========[#1 갤러리뷰 기본형]==========*/
/*1. 📁 기본 카드형 (Standard Cards)
--------------------------------------------
[G 타입1] 기본 4열 (1:1 비율) 
[NOTE] PC 4열 / 모바일 2열
-------------------------------------------*/
.notion-page-content > .notion-collection-gallery:not(.notion-callout *) {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important; 
  gap: 8px !important;
}
/* 썸네일 비율 설정 */
.notion-collection-gallery:not(.notion-callout *):not([style*="flex"]) :is(.notion-collection-card__cover, img) {
  aspect-ratio: 1 / 1 !important;
}
@media (max-width: 768px) {
  .notion-collection-gallery:not(.notion-callout *):not([style*="flex"]) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}
