/* 실제 제작 릴스 갤러리 (메인 · 릴스 몇 개보다, 어떤 릴스인가) */
.gm-reels { margin-top: 72px; }
.gm-reels__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.gm-reels__kicker { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--color-brand); margin-bottom: 10px; }
.gm-reels__title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.2; letter-spacing: -.03em; margin: 0; }
.gm-reels__title em { font-style: normal; color: var(--color-brand); }
.gm-reels__hint { font-size: 14px; color: var(--color-muted); margin: 0; }
.gm-reels__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gm-reel-card__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--color-ink); border-radius: 18px; overflow: hidden; aspect-ratio: 9 / 16; cursor: pointer; color: #fff; text-align: left; }
.gm-reel-card__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .5s; }
.gm-reel-card__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.78) 100%); }
.gm-reel-card__play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 10px 30px rgba(255,75,31,.45); transition: transform .3s; }
.gm-reel-card__play::before { content: ""; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.gm-reel-card__meta { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; }
.gm-reel-card__type { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--color-brand); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.gm-reel-card__name { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; }
.gm-reel-card__btn:hover img, .gm-reel-card__btn:focus-visible img { transform: scale(1.05); }
.gm-reel-card__btn:hover .gm-reel-card__play, .gm-reel-card__btn:focus-visible .gm-reel-card__play { transform: scale(1.1); }
.gm-reel-card__btn:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; }

@media (max-width: 900px) {
  .gm-reels__list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
  .gm-reels__list::-webkit-scrollbar { display: none; }
  .gm-reels__list > li { flex: 0 0 62%; max-width: 260px; scroll-snap-align: start; }
  .gm-reel-card__play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
}

/* 재생 창 */
.gm-reel-player { width: min(92vw, calc(86vh * 9 / 16)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.gm-reel-player::backdrop { background: rgba(0,0,0,.86); }
.gm-reel-player video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 86vh; border-radius: 18px; background: #000; }
.gm-reel-player__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--color-ink); font-size: 26px; line-height: 44px; cursor: pointer; }
.gm-reel-player__close:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; }
@media (max-height: 640px) { .gm-reel-player__close { top: 8px; right: 8px; z-index: 1; } }

@media (prefers-reduced-motion: reduce) {
  .gm-reel-card__btn img, .gm-reel-card__play { transition: none; }
}

/* 대표 영상: 데스크톱에서 2x2로 크게 (나머지 8개가 4x3을 채운다) */
.gm-reel-card--feature { grid-column: span 2; grid-row: span 2; }
.gm-reel-card--feature .gm-reel-card__btn { height: 100%; aspect-ratio: auto; }
.gm-reel-card--feature .gm-reel-card__play { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.gm-reel-card--feature .gm-reel-card__name { font-size: 20px; }
@media (max-width: 900px) {
  .gm-reel-card--feature .gm-reel-card__btn { aspect-ratio: 9 / 16; height: auto; }
  .gm-reel-card--feature .gm-reel-card__play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
  .gm-reel-card--feature .gm-reel-card__name { font-size: 15px; }
}

/* 카메라 뒤에만 있지 않습니다: 영상 두 편 나란히 */
.gm-films { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.gm-films .gm-film { width: 100%; margin: 0; }
.gm-films .gm-film--second { transform: rotate(-2deg); margin-top: 48px; }
.gm-films .gm-film--second.is-playing { transform: none; }
.gm-films .gm-film__play { padding: 12px 18px; font-size: 14px; }
@media (min-width: 768px) { .gm-story__grid:has(.gm-films) { grid-template-columns: 1fr 1.25fr; } }
@media (max-width: 767px) {
  .gm-films { gap: 14px; margin-top: 16px; }
  .gm-films .gm-film--second { margin-top: 28px; }
  .gm-films .gm-film__screen { box-shadow: 8px 8px 0 var(--color-brand); }
  .gm-films .gm-film__badge { font-size: 11px; padding: 6px 10px; right: -6px; }
  .gm-films .gm-film__play { padding: 9px 12px; font-size: 12px; gap: 6px; }
  .gm-films figcaption { margin-top: 16px; }
}
