/* 위치: 큐레이션 > 온라인 컬렉션 - 섬네일 */
/* 기능: 가로로 긴 형태, 컬렉션뷰 / 2그리드 */



/*------------------------------------------
🟦 [타입 C] 블루 콜아웃+ 토글 트리거
    -> 오버랩+가로형 : 온라인 전시 (독립형 수정본)
  -----------------------------------------*/
/*트리거 숨김*/
.notion-callout[class*="blue"]:has(.notion-toggle):has(.notion-collection-gallery) .notion-toggle__trigger {
    display: none !important;
}

/* 토글 전체 영역은 남겨두어 기능 유지 */
.notion-callout[class*="blue"]:has(.notion-toggle):has(.notion-collection-gallery) .notion-toggle__summary {
    display: block !important;
    height: 0px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* 1. 그리드 레이아웃 설정 */
/*PC 2열 */
.notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
}





/* 2. 카드 전체 설정 및 비율 */
.notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card {
    position: relative !important;
    background: transparent !important;
    border: none !important;
    overflow: hidden !important;
    border-radius: 0px !important;
    aspect-ratio: 5 / 2 !important; /* 비율 유지 */
}
/* 3. */
.notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__cover,
.notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__cover > div,
.notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__cover img {
    height: 100% !important;
    width: 100% !important;
    max-height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    object-fit: cover !important;
    transition: transform 0.4s ease-in-out !important; 
    will-change: transform;
}

/* 4. 호버 효과 정밀 제어 */
/* 카드 전체에 호버했을 때 텍스트 레이어(그라데이션)가 유지되도록 함 */
.notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card:hover .notion-collection-card__content {
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%) !important;
}

/* 호버 시 이미지 커짐 효과 유지 */
.notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card:hover .notion-collection-card__cover,
.notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card:hover .notion-collection-card__cover img {
    transform: scale(1.1) !important;
}


/* 5. 텍스트 레이어 */
.notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 0 25px 15px 25px !important;
    z-index: 10 !important;
    pointer-events: none;
    text-align: left !important;
}

/*제목 스타일*/
.notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__property:first-child,
.notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__property:first-child * {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
    display: block !important;
}


/*제목 위치*/
.notion-callout[class*="blue"]:has(.notion-toggle)
.notion-collection-card__content{

    display:flex !important;
    flex-direction:row !important;

    align-items:flex-end !important;
    justify-content:space-between !important;

    width:100% !important;
}

/*속성 화살표 스타일*/
.notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__property:not(:first-child),
.notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__property:not(:first-child) * {
    color: rgba(255,255,255,0.9) !important;
    font-size: 35px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5) !important;

}

/* 🚨 속성(첫 번째 제외한 모든 것) 숨김 처리 */
.notion-callout[class*="blue"]:has(.notion-toggle)
.notion-collection-card__property:nth-child(3){
    display:none !important;
}

/*------------------------------------------
📱 [모바일 전용 스타일] (768px 이하)
------------------------------------------*/
@media (max-width: 768px) {
    /* 모바일 1열 */
    .notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-gallery {
        grid-template-columns: 1fr !important;
    }

    /* 모바일 비율 16:9 */
    .notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card { 
        aspect-ratio: 16 / 9 !important; 
    }

    /* [모바일 그라데이션 높이 더 아래로 조정] */
    .notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__content {
        height: 35% !important; /* 이미지의 아래쪽 1/3만 덮음 */
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%) !important;
        padding: 0 12px 12px 12px !important;
    }

    /* [모바일 폰트 제어] - 구체적인 클래스 타겟팅 */
    .notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__property:first-child,
    .notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__property:first-child .notion-semantic-string,
    .notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__property:first-child * {
        font-size: 15px !important; /* 모바일 제목 크기 */
        font-weight: 700 !important;
    }

    .notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__property:not(:first-child),
    .notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__property:not(:first-child) .notion-semantic-string,
    .notion-callout[class*="blue"]:has(.notion-toggle) .notion-collection-card__property:not(:first-child) * {
        font-size: 30px !important; /* 모바일 속성 크기 */
        line-height: 1.2 !important;
    }
}
    
    
