/* 아트서울 작품 공유 모달 - 크기 단위 rem/em/%만 사용 */
.as-share-modal[hidden] { display: none !important; }
.as-share-modal { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 1.25rem; font-family: inherit; }
.as-share-backdrop { position: absolute; inset: 0; background: rgba(9, 19, 30, .6); backdrop-filter: blur(.25rem); }
.as-share-panel { position: relative; width: 100%; max-width: 35rem; max-height: calc(100vh - 2.5rem); overflow-y: auto; box-sizing: border-box; background: #fff; color: #263948; border-radius: .95rem; padding: 1.75rem; box-shadow: 0 1.4rem 4.5rem rgba(0,0,0,.22); -webkit-overflow-scrolling: touch; }
.as-share-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.as-share-eyebrow { color: #9aa4af; font-size: .68rem; letter-spacing: .15em; font-weight: 700; }
.as-share-header h2 { font-size: 1.6rem; font-weight: 750; line-height: 1.25; margin: .2rem 0 0; color: #1b2b39; }
.as-share-close { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; cursor: pointer; border: .0625rem solid #e7eaef; border-radius: 50%; color: #344556; background: #fff; padding: .58rem; }
.as-share-close svg { width: 100%; height: 100%; }
.as-share-preview { display: flex; align-items: center; gap: .9rem; border: .0625rem solid #eef0f3; background: #fafbfc; padding: .75rem; border-radius: .5rem; min-height: 4.4rem; box-sizing: border-box; }
.as-share-preview img { width: 3.6rem; height: 3.6rem; border-radius: .25rem; object-fit: cover; background: #eff1f3; flex-shrink: 0; }
.as-share-preview img[hidden] { display: none; }
.as-share-preview-text { flex: 1; min-width: 0; }
.as-share-preview-text p { margin: 0 0 .35rem; font-size: .76rem; color: #768393; }
.as-share-preview-text strong { display: block; font-size: .96rem; line-height: 1.4; font-weight: 650; color: #263948; overflow-wrap: anywhere; }
.as-share-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin: 1.6rem 0 1.3rem; }
.as-share-option { appearance: none; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .6rem; padding: .25rem .05rem; background: transparent; border: 0; cursor: pointer; text-decoration: none; color: #344556; font-family: inherit; font-size: .76rem; line-height: 1.35; text-align: center; word-break: keep-all; }
.as-share-option:hover .as-share-icon, .as-share-option:focus-visible .as-share-icon { transform: translateY(-.15rem); box-shadow: 0 .3rem .75rem rgba(15,30,48,.14); }
.as-share-option:focus-visible, .as-share-close:focus-visible, .as-share-url button:focus-visible { outline: .16rem solid #416b91; outline-offset: .16rem; }
.as-share-icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; transition: transform .15s, box-shadow .15s; box-sizing: border-box; }
.as-share-icon svg { width: 1.65rem; height: 1.65rem; }
.as-share-icon--kakao { background: #fee500; color: #392020; }
.as-share-icon--facebook { background: #1877f2; color: #fff; }
.as-share-icon--facebook strong { font-family: Arial, sans-serif; font-size: 2.15rem; line-height: 1; padding-top: .25rem; }
.as-share-icon--x { background: #121417; color: #fff; }
.as-share-icon--x strong { font-size: 1.5rem; line-height: 1; }
.as-share-icon--sms { background: #6b8e96; color: #fff; }
.as-share-icon--link { background: #eef1f5; color: #374a5f; }
.as-share-url { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: #f4f6f8; border: .0625rem solid #e6eaf0; border-radius: .45rem; padding: .45rem .45rem .45rem .75rem; }
.as-share-url span { color: #77838e; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.as-share-url button { background: #263948; color: #fff; border: 0; border-radius: .3rem; padding: .55rem .8rem; flex-shrink: 0; font-size: .72rem; cursor: pointer; }
.as-share-status { min-height: 1.35rem; margin: .65rem 0 0; font-size: .75rem; color: #536d82; line-height: 1.5; }
body.as-share-open { overflow: hidden; }
body.as-share-open .art-detail-floating { visibility: hidden; pointer-events: none; }
@media (max-width: 42em) {
  .as-share-modal { padding: .8rem; align-items: center; }
  .as-share-panel { border-radius: .85rem; padding: 1.35rem 1rem; max-height: calc(100dvh - 1.6rem); }
  .as-share-options { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.35rem; column-gap: .25rem; }
  .as-share-icon { width: 3rem; height: 3rem; }
  .as-share-header h2 { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) { .as-share-icon { transition: none; } }
