/*
 * sellmate.io 이벤트(/event) 전용 스타일 (WWW-4).
 * 수치는 2026-11-10 원본을 1920px·1100px·390px 에서 잰 값이다.
 * PC 본문 폭은 1160px 이고, 화면이 좁아지면 원본처럼 양쪽 40px(섹션 20 + 칸 20)를 두고 줄어든다.
 */
.sm-page--event .sm-mo { display: none; }
.sm-ev-sec { max-width: 1240px; margin: 0 auto; padding-right: 40px; padding-left: 40px; }

/* 제목: 위 60 · 글 위젯(위아래 10, h5 34.28px 줄 높이 1.2) · 아래 40 */
.sm-ev-head { padding-top: 60px; padding-bottom: 40px; }
.sm-ev-head .sm-ev-head__title { margin: 0; padding: 10px 0; color: #00295f; font-size: 34.28px; font-weight: 700; line-height: 1.2; letter-spacing: 2px; }

/* 카드 줄: 위아래 20px, 칸 사이 40px. 카드는 최대 360px(마지막 두 장 줄은 넓은 칸 가운데에 360px 그대로) */
.sm-ev-row { padding-top: 20px; padding-bottom: 20px; }
.sm-ev-sec .sm-ev-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.sm-ev-sec .sm-ev-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sm-ev-card { justify-self: center; width: 100%; max-width: 360px; }
/* 원본은 슈가맨워크 위젯만 높이가 고정(1920px 에서 482)이라 이미지가 1px 내려가 있다. 1920px 의 줄 높이만 맞춘다
   (원본은 화면이 좁아져 이미지가 작아져도 위젯 높이가 그대로라 그 카드만 아래로 처진다 — 그건 따르지 않는다) */
.sm-ev-card--tall { padding: 1px 0; }
.sm-ev-card a { position: relative; display: block; }
/* 원본은 이미지 높이를 정수로 반올림해 1280×1707 이미지도 360×480 이다. 세 장이 같은 3:4 로 보이게 비율을 고정한다 */
.sm-ev-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
/* 마우스를 올리면: 원본 이미지 위젯의 hover 이미지(배경 cover·가운데)가 0.3초 동안 나타난다 */
.sm-ev-card__hover { position: absolute; inset: 0; background-position: 50% 50%; background-size: cover; background-repeat: no-repeat; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.sm-ev-card a:hover .sm-ev-card__hover, .sm-ev-card a:focus-visible .sm-ev-card__hover { opacity: 1; }
.sm-ev-end { height: 69px; }
.sm-ev-gap { height: 30px; }

@media (max-width: 991px) {
    .sm-page--event .sm-pc { display: none; }
    .sm-page--event .sm-mo { display: block; }
    /* 제목 이미지: 화면 폭 그대로, 위아래 30px */
    .sm-ev-mhead { padding: 30px 0; }
    .sm-ev-mhead .sm-ev-mhead__title { margin: 0; line-height: 0; }
    .sm-ev-mhead img { display: block; width: 100%; height: auto; }
    /* 카드: 양쪽 20px, 위아래 12px, 카드 사이 24px */
    .sm-ev-mlist { display: flex; flex-direction: column; gap: 24px; padding: 12px 20px; }
    .sm-ev-gap { height: 15px; }
}
