/* ==============================================
   커미션 갤러리 스킨  ·  style.css
   ============================================== */

.glr-wrap *,
.glr-write-wrap *,
.glr-view-wrap * {
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════
   목록
══════════════════════════════════════════════ */

.glr-wrap {
    padding: 24px 28px 60px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(248,250,252,0.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 24px rgba(0,0,0,.08);
    max-width: 100%;
    margin-left: auto;
    margin-right: 0;
    min-height: 600px;
}

/* 필터 바 */
.glr-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.25);
}

.glr-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.glr-chip {
    padding: 5px 16px;
    border-radius: 999px;
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 35%, transparent);
    background: color-mix(in srgb, var(--container-bg-color, #fff) 60%, transparent);
    color: var(--content-font-color, #555);
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .18s;
    letter-spacing: .02em;
}

.glr-chip:hover {
    border-color: rgba(255,255,255,.6);
    background: color-mix(in srgb, var(--container-bg-color, #fff) 40%, transparent);
    transform: translateY(-1px);
}

.glr-chip.active {
    background: var(--primary-color, #a78bfa);
    border-color: color-mix(in srgb, var(--primary-color, #a78bfa) 60%, rgba(255,255,255,.5));
    color: #fff;
    box-shadow: 0 3px 12px color-mix(in srgb, var(--primary-color, #a78bfa) 50%, transparent);
}

.glr-bar-actions {
    display: flex;
    gap: 6px;
}

.glr-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 35%, transparent);
    background: color-mix(in srgb, var(--container-bg-color, #fff) 60%, transparent);
    color: var(--content-font-color, #666);
    text-decoration: none;
    font-size: 13px;
    transition: all .18s;
}

.glr-icon-btn:hover {
    border-color: rgba(255,255,255,.6);
    background: color-mix(in srgb, var(--container-bg-color, #fff) 40%, transparent);
    transform: translateY(-1px);
}

/* 빈 상태 */
.glr-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted, #bbb);
}

.glr-empty i {
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
    opacity: .4;
}

/* 섹션 헤더 */
.glr-section {
    margin-bottom: 2.5rem;
}

.glr-section.is-collapsed {
    margin-bottom: 0.6rem;
}

.glr-section-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-radius: 3px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.70) !important;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: opacity .15s;
}

.glr-section-hd:hover { opacity: .85; }

.glr-section-bar {
    width: 5px;
    min-height: 36px;
    border-radius: 0;
    flex-shrink: 0;
    align-self: stretch;
}

.glr-section-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--content-font-color, #333);
    letter-spacing: .02em;
    flex: 1;
}

.glr-section-count {
    font-size: 12px;
    color: var(--text-muted, #bbb);
    font-weight: 400;
}

.glr-section-toggle {
    font-size: 11px;
    color: var(--text-muted, #bbb);
    margin-right: 10px;
    transition: transform .2s;
    flex-shrink: 0;
}

.glr-section.is-collapsed .glr-section-toggle {
    transform: rotate(-90deg);
}

.glr-section-hd::before { display: none; }
.glr-section-hd::after  { display: none; }
.glr-dot                 { display: none; }

/* Masonry */
.glr-masonry {
    columns: 5;
    column-gap: 10px;
}

.glr-masonry-wrap {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
}

.glr-masonry-wrap.glr-ready {
    transition: grid-template-rows .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}

.glr-section.is-collapsed .glr-masonry-wrap {
    grid-template-rows: 0fr;
    opacity: 0;
}

.glr-masonry-wrap > .glr-masonry {
    overflow: clip;
    overflow-clip-margin: 20px;
    min-height: 0;
}

@media (max-width: 1100px) { .glr-masonry { columns: 4; } }
@media (max-width: 800px)  { .glr-masonry { columns: 3; } }
@media (max-width: 500px)  { .glr-masonry { columns: 2; } }

/* 카드 */
.glr-card {
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    transition: transform .22s ease, box-shadow .22s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
}

.glr-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 14px 32px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
    z-index: 10;
    position: relative;
}

.glr-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.glr-img.glr-img-contain {
    object-fit: contain;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 5%, #f8f8f8);
}

.glr-no-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #ccc);
    font-size: 28px;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 8%, var(--card-bg-color, #f5f5f5));
}

/* 섹션 배지 */
.glr-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 85%, transparent);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    white-space: nowrap;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .18s;
    z-index: 1;
    letter-spacing: .02em;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.glr-card:hover .glr-badge { opacity: 0; }

/* 호버 오버레이 */
.glr-overlay {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.82) 0%,
        rgba(0,0,0,.25) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity .22s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    z-index: 1;
}

.glr-card:hover .glr-overlay { opacity: 1; }

.glr-ov-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.glr-ov-artist {
    font-size: 11px;
    color: rgba(255,255,255,.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.glr-ov-artist a { color: rgba(255,255,255,.85); text-decoration: none; }
.glr-ov-artist a:hover { text-decoration: underline; }

.glr-ov-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.glr-pf {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255,255,255,.18);
    color: rgba(255,255,255,.9);
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,.2);
}

.glr-ov-date {
    font-size: 10px;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
}

.glr-ov-amount {
    font-size: 10px;
    color: rgba(255,255,255,.45);
    text-align: right;
    margin-top: 4px;
}

.glr-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* ══════════════════════════════════════════════
   상세보기
══════════════════════════════════════════════ */

.glr-view-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 32px 60px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(248,250,252,0.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 24px rgba(0,0,0,.08);
}

.glr-view-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.glr-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted, #aaa);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color .15s, gap .15s;
}

.glr-back:hover {
    color: var(--primary-color, #a78bfa);
    gap: 10px;
}

.glr-view-btns { display: flex; gap: 8px; }

.glr-vbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.35);
    background: color-mix(in srgb, var(--container-bg-color, #fff) 22%, transparent);
    color: var(--content-font-color, #555);
    text-decoration: none;
    font-size: 13px;
    transition: all .15s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.glr-vbtn:hover {
    border-color: rgba(255,255,255,.6);
    background: color-mix(in srgb, var(--container-bg-color, #fff) 40%, transparent);
    transform: translateY(-1px);
}

.glr-vbtn-del:hover {
    border-color: rgba(248,113,113,.6);
    color: #f87171;
    background: color-mix(in srgb, #f87171 15%, transparent);
}

.glr-view-inner {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 36px;
    align-items: start;
}

@media (max-width: 680px) {
    .glr-view-inner { grid-template-columns: 1fr; }
}

.glr-view-img-col {
    border-radius: 16px;
    overflow: hidden;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 8%, transparent);
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

.glr-view-img { width: 100%; display: block; }

.glr-view-no-img {
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-muted, #ccc);
}

.glr-view-info-col { padding: 4px 0; }

.glr-view-sec {
    font-size: 20px;
    font-weight: 800;
    color: var(--content-font-color, #222);
    margin-bottom: 20px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 6px rgba(255,255,255,.4);
}

.glr-view-sec::before {
    content: '✦';
    font-size: 13px;
    color: var(--primary-color, #a78bfa);
    opacity: .6;
    flex-shrink: 0;
}

.glr-view-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.2);
    font-size: 14px;
}

.glr-view-key {
    width: 64px;
    flex-shrink: 0;
    color: var(--content-font-color, #666);
    font-size: 11px;
    font-weight: 700;
    padding-top: 2px;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .65;
}

.glr-view-val {
    flex: 1;
    color: var(--content-font-color, #333);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
}

.glr-view-val a {
    color: var(--primary-color, #a78bfa);
    text-decoration: none;
    font-weight: 600;
}

.glr-view-val a:hover { text-decoration: underline; }

.glr-view-priv {
    color: var(--content-font-color, #555);
    font-size: 12px;
    opacity: .55;
}

.glr-view-memo {
    margin-top: 18px;
    font-size: 13px;
    color: var(--content-font-color, #555);
    line-height: 1.8;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--container-bg-color, #fff) 18%, transparent);
    border-radius: 10px;
    border-left: 3px solid rgba(255,255,255,.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ══════════════════════════════════════════════
   작성/수정 폼
══════════════════════════════════════════════ */

.glr-write-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 32px 60px;
    background: var(--container-bg-color, #fff);
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--primary-color, #a78bfa) 20%, transparent);
}

.glr-write-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--content-font-color, #222);
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.glr-write-title::before {
    content: '✦';
    font-size: 13px;
    color: var(--primary-color, #a78bfa);
    opacity: .6;
}

.glr-write-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glr-write-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glr-write-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #aaa);
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.glr-req { color: var(--primary-color, #a78bfa); }

.glr-private {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted, #ccc);
    text-transform: none;
    letter-spacing: 0;
}

.glr-input,
.glr-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 25%, var(--card-border-color, #e0e0e0));
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 4%, var(--container-bg-color, #fff));
    color: var(--content-font-color, #333);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.glr-input:focus,
.glr-textarea:focus {
    border-color: var(--primary-color, #a78bfa);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #a78bfa) 15%, transparent);
}

.glr-textarea {
    min-height: 80px;
    resize: vertical;
}

.glr-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.glr-radio {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 25%, transparent);
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 4%, var(--container-bg-color, #fff));
    font-size: 12px;
    font-weight: 600;
    color: var(--content-font-color, #666);
    cursor: pointer;
    transition: all .15s;
}

.glr-radio:has(input:checked) {
    background: var(--primary-color, #a78bfa);
    border-color: var(--primary-color, #a78bfa);
    color: #fff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color, #a78bfa) 35%, transparent);
}

.glr-radio input[type="radio"] { display: none; }

.glr-write-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, var(--primary-color, #a78bfa) 15%, transparent);
}

.glr-btn-cancel {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 25%, transparent);
    background: transparent;
    color: var(--text-muted, #aaa);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.glr-btn-cancel:hover {
    color: var(--primary-color, #a78bfa);
    border-color: var(--primary-color, #a78bfa);
}

.glr-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 999px;
    border: none;
    background: var(--primary-color, #a78bfa);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .18s;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color, #a78bfa) 45%, transparent);
}

.glr-btn-submit:hover {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-color, #a78bfa) 55%, transparent);
}

/* ══════════════════════════════════════════════
   그누보드 썸네일 업로드 UI 오버라이드
══════════════════════════════════════════════ */

.thumbnail-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.thumbnail-type-selector label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 6%, var(--container-bg-color, #fff));
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 25%, transparent);
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--content-font-color, #666);
    transition: all .15s;
}

.thumbnail-type-selector label:hover {
    border-color: var(--primary-color, #a78bfa);
    color: var(--primary-color, #a78bfa);
}

.thumbnail-type-selector input[type="radio"] {
    accent-color: var(--primary-color, #a78bfa);
}

.thumbnail-type-selector label:has(input:checked) {
    border-color: var(--primary-color, #a78bfa);
    background: var(--primary-color, #a78bfa);
    color: #fff;
}

.thumbnail-upload-section { margin-top: 10px; }

.thumbnail-upload-method input[type="file"],
.thumbnail-upload-method input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 4%, var(--container-bg-color, #fff));
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 25%, var(--card-border-color, #e0e0e0));
    border-radius: 10px;
    color: var(--content-font-color, #333);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.thumbnail-upload-method input[type="file"]:focus,
.thumbnail-upload-method input[type="text"]:focus {
    border-color: var(--primary-color, #a78bfa);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #a78bfa) 15%, transparent);
}

.thumbnail-upload-method input[type="file"]::file-selector-button {
    padding: 6px 14px;
    margin-right: 10px;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 15%, var(--container-bg-color, #fff));
    color: var(--primary-color, #a78bfa);
    border: none;
    border-right: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 25%, transparent);
    border-radius: 7px 0 0 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    transition: background .15s, color .15s;
}

.thumbnail-upload-method input[type="file"]::file-selector-button:hover {
    background: var(--primary-color, #a78bfa);
    color: #fff;
}

.thumbnail-upload-method .form-help {
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted, #bbb);
}

.current-thumbnail {
    margin-top: 12px;
    padding: 14px;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 5%, var(--container-bg-color, #fff));
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 20%, transparent);
    border-radius: 12px;
}

.current-thumbnail > label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #bbb);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.current-thumbnail img {
    border-radius: 10px;
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 20%, transparent) !important;
    padding: 0 !important;
    max-width: 100%;
}

.btn-remove-thumbnail { opacity: 0; transition: opacity .2s; }
.current-thumbnail:hover .btn-remove-thumbnail { opacity: 1; }

/* ══════════════════════════════════════════════
   섹션 접기/펼치기
══════════════════════════════════════════════ */

.glr-section-toggle {
    font-size: 11px;
    color: var(--text-muted, #bbb);
    margin-right: 10px;
    transition: transform .2s;
    flex-shrink: 0;
}

.glr-section.is-collapsed .glr-section-toggle {
    transform: rotate(-90deg);
}



/* ══════════════════════════════════════════════
   다중 이미지 배지
══════════════════════════════════════════════ */

.glr-multi-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,.45);
    color: #fff;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ══════════════════════════════════════════════
   상세보기 슬라이더
══════════════════════════════════════════════ */

.glr-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 8%, transparent);
}

.glr-slide {
    display: none;
}

.glr-slide.active {
    display: block;
}

.glr-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 0 4px;
}

.glr-sl-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 35%, transparent);
    background: color-mix(in srgb, var(--container-bg-color, #fff) 60%, transparent);
    color: var(--content-font-color, #555);
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.glr-sl-btn:hover {
    background: var(--primary-color, #a78bfa);
    border-color: var(--primary-color, #a78bfa);
    color: #fff;
}

.glr-sl-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.glr-sl-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 30%, transparent);
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
}

.glr-sl-dot.active {
    background: var(--primary-color, #a78bfa);
    transform: scale(1.3);
}

/* ══════════════════════════════════════════════
   카드 모달 버튼
══════════════════════════════════════════════ */

.glr-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* ══════════════════════════════════════════════
   목록 모달
══════════════════════════════════════════════ */

.glr-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 70px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.glr-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}

.glr-modal-box {
    position: relative;
    background: rgba(18,18,28,.95);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr 260px;
    width: min(880px, 95vw);
    max-height: 88vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.65);
    transform: scale(.95) translateY(10px);
    transition: transform .26s cubic-bezier(.34,1.4,.64,1);
}

.glr-modal-backdrop.is-open .glr-modal-box {
    transform: scale(1) translateY(0);
}

@media (max-width: 640px) {
    .glr-modal-box {
        grid-template-columns: 1fr;
        max-height: 94vh;
    }
}

.glr-modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.glr-modal-close:hover { background: rgba(255,255,255,.2); }

.glr-modal-img-area {
    position: relative;
    background: #07070f;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    overflow: hidden;
}

.glr-modal-slider {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.glr-modal-slide { display: none; width: 100%; height: 100%; }
.glr-modal-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.glr-modal-slide img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    cursor: zoom-in;
}

.glr-modal-thumbs {
    display: flex;
    gap: 5px;
    padding: 7px 10px;
    overflow-x: auto;
    background: rgba(0,0,0,.35);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
    flex-shrink: 0;
}

.glr-modal-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 7px;
    overflow: hidden;
    border: 2px solid transparent;
    background: rgba(255,255,255,.06);
    cursor: pointer;
    padding: 0;
    transition: border-color .15s, transform .15s;
}
.glr-modal-thumb:hover { transform: scale(1.07); }
.glr-modal-thumb.active { border-color: var(--primary-color, #a78bfa); }
.glr-modal-thumb img { width: 100%; height: 100%; object-fit: cover; }

.glr-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.glr-modal-nav:hover { background: rgba(255,255,255,.22); }
.glr-modal-prev { left: 8px; }
.glr-modal-next { right: 8px; }

.glr-modal-info {
    padding: 22px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(12,12,20,.88);
    border-left: 1px solid rgba(255,255,255,.07);
}

.glr-mi-sec {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.35;
}

.glr-mi-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.65);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.glr-mi-row i { color: var(--primary-color, #a78bfa); font-size: 11px; flex-shrink: 0; }
.glr-mi-row a { color: var(--primary-color, #a78bfa); text-decoration: none; font-weight: 600; }
.glr-mi-row a:hover { text-decoration: underline; }

.glr-mi-memo {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    line-height: 1.75;
    padding: 10px 12px;
    background: rgba(255,255,255,.04);
    border-radius: 8px;
    margin-top: 4px;
}

.glr-mi-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: auto;
    padding-top: 14px;
}

.glr-mi-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.75);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}
.glr-mi-btn:hover { background: rgba(255,255,255,.13); color: #fff; }
.glr-mi-btn-edit {
    border-color: color-mix(in srgb, var(--primary-color, #a78bfa) 40%, transparent);
    color: var(--primary-color, #a78bfa);
}
.glr-mi-btn-edit:hover {
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 16%, transparent);
}

/* ══════════════════════════════════════════════
   라이트박스 (원본)
══════════════════════════════════════════════ */

.glr-lb-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}
.glr-lb-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}

.glr-lb-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    z-index: 2;
}
.glr-lb-close:hover { background: rgba(255,255,255,.2); }

.glr-lb-img-wrap {
    max-width: 96vw;
    max-height: 96vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.glr-lb-img-wrap img {
    max-width: 96vw;
    max-height: 96vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,.7);
    cursor: zoom-out;
}

.glr-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.glr-lb-nav:hover { background: rgba(255,255,255,.2); }
.glr-lb-prev { left: 14px; }
.glr-lb-next { right: 14px; }

.glr-lb-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255,255,255,.45);
    font-weight: 600;
    letter-spacing: .06em;
}

/* ══════════════════════════════════════════════
   view.skin - 썸네일 스트립
══════════════════════════════════════════════ */

.glr-thumb-strip {
    display: flex;
    gap: 6px;
    padding: 8px 10px 4px;
    overflow-x: auto;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 6%, transparent);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.12) transparent;
    flex-shrink: 0;
}

.glr-thumb-btn {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: rgba(0,0,0,.07);
    cursor: pointer;
    padding: 0;
    transition: border-color .15s, transform .15s;
}
.glr-thumb-btn:hover { transform: scale(1.06); }
.glr-thumb-btn.active { border-color: var(--primary-color, #a78bfa); }
.glr-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.glr-sl-counter {
    font-size: 12px;
    color: var(--text-muted, #bbb);
    font-weight: 600;
    min-width: 44px;
    text-align: center;
}

.glr-zoom-hint {
    text-align: center;
    padding: 5px;
    font-size: 11px;
    color: var(--text-muted, #bbb);
    opacity: .65;
}

/* ══════════════════════════════════════════════
   글쓰기 - 다중 이미지 업로드
══════════════════════════════════════════════ */

.glr-img-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1.5px dashed color-mix(in srgb, var(--primary-color, #a78bfa) 40%, transparent);
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 5%, var(--container-bg-color, #fff));
    color: var(--primary-color, #a78bfa);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.glr-img-add-btn:hover {
    border-color: var(--primary-color, #a78bfa);
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 10%, var(--container-bg-color, #fff));
}

.glr-img-hint {
    font-size: 11px;
    color: var(--text-muted, #bbb);
    margin: 4px 0 0;
}

.glr-img-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.glr-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 25%, transparent);
}
.glr-preview-item img { width: 100%; height: 100%; object-fit: cover; }

.glr-preview-del {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 기존 이미지 (수정 모드) */
.glr-existing-imgs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.glr-existing-img {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 35%, transparent);
    transition: opacity .2s;
}
.glr-existing-img img { width: 100%; height: 100%; object-fit: cover; }

.glr-existing-del {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glr-existing-img.glr-del-marked {
    opacity: .3;
    filter: grayscale(1);
}
.glr-existing-img.glr-del-marked .glr-existing-del {
    background: rgba(239,68,68,.7);
}

/* ══════════════════════════════════════════════
   글쓰기 - 이미지 업로드 UI
══════════════════════════════════════════════ */

.glr-lbl-hint {
    font-size: 10px;
    font-weight: 400;
    text-transform: none;
    color: var(--text-muted, #bbb);
    letter-spacing: 0;
    margin-left: 4px;
}

.glr-img-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1.5px dashed color-mix(in srgb, var(--primary-color, #a78bfa) 40%, transparent);
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 5%, var(--container-bg-color, #fff));
    color: var(--primary-color, #a78bfa);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    margin-top: 6px;
}
.glr-img-add-btn:hover {
    border-color: var(--primary-color, #a78bfa);
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 10%, var(--container-bg-color, #fff));
}

.glr-img-hint {
    font-size: 11px;
    color: var(--text-muted, #bbb);
    margin: 5px 0 0;
}

.glr-img-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* 기존 이미지 그리드 */
.glr-existing-imgs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.glr-existing-img,
.glr-preview-item {
    position: relative;
    width: 86px;
    height: 86px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--primary-color, #a78bfa) 25%, transparent);
    background: rgba(0,0,0,.05);
    transition: border-color .15s;
}

.glr-existing-img img,
.glr-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 썸네일로 지정된 상태 */
.glr-existing-img.is-thumb,
.glr-preview-item.is-thumb {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245,158,11,.3);
}

/* 삭제 표시 */
.glr-existing-img.glr-del-marked {
    opacity: .3;
    filter: grayscale(1);
}

/* 썸네일 지정 버튼 */
.glr-thumb-pick {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.45);
    color: rgba(255,255,255,.6);
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}
.glr-thumb-pick:hover,
.is-thumb .glr-thumb-pick {
    background: #f59e0b;
    color: #fff;
}

/* 삭제 버튼 */
.glr-existing-del,
.glr-preview-del {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.glr-existing-del:hover,
.glr-preview-del:hover { background: rgba(239,68,68,.7); }

/* ══════════════════════════════════════════════
   모달 테마 - 라이트 / 다크
══════════════════════════════════════════════ */

/* 다크 (기본) */
.glr-modal-box.glr-modal-dark {
    background: rgba(18,18,28,.95);
    border-color: rgba(255,255,255,.1);
}
.glr-modal-box.glr-modal-dark .glr-modal-img-area { background: #07070f; }
.glr-modal-box.glr-modal-dark .glr-modal-thumbs   { background: rgba(0,0,0,.35); }
.glr-modal-box.glr-modal-dark .glr-modal-info      { background: rgba(12,12,20,.88); border-left-color: rgba(255,255,255,.07); }
.glr-modal-box.glr-modal-dark .glr-mi-sec          { color: #fff; }
.glr-modal-box.glr-modal-dark .glr-mi-row          { color: rgba(255,255,255,.65); border-bottom-color: rgba(255,255,255,.06); }
.glr-modal-box.glr-modal-dark .glr-mi-memo         { color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); }
.glr-modal-box.glr-modal-dark .glr-mi-btn          { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); }
.glr-modal-box.glr-modal-dark .glr-mi-btn:hover    { background: rgba(255,255,255,.13); color: #fff; }
.glr-modal-box.glr-modal-dark .glr-modal-close     { background: rgba(0,0,0,.5); border-color: rgba(255,255,255,.18); }
.glr-modal-box.glr-modal-dark .glr-modal-nav       { background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.18); }

/* 라이트 */
.glr-modal-box.glr-modal-light {
    background: rgba(255,255,255,.98);
    border-color: rgba(0,0,0,.1);
}
.glr-modal-box.glr-modal-light .glr-modal-img-area { background: #f5f5f8; }
.glr-modal-box.glr-modal-light .glr-modal-thumbs   { background: rgba(0,0,0,.06); }
.glr-modal-box.glr-modal-light .glr-modal-nav      { background: rgba(255,255,255,.8); border-color: rgba(0,0,0,.15); color: #333; }
.glr-modal-box.glr-modal-light .glr-modal-nav:hover{ background: rgba(255,255,255,1); }
.glr-modal-box.glr-modal-light .glr-modal-close    { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.15); color: #333; }
.glr-modal-box.glr-modal-light .glr-modal-close:hover { background: rgba(0,0,0,.15); }
.glr-modal-box.glr-modal-light .glr-modal-info     { background: rgba(248,248,252,.98); border-left-color: rgba(0,0,0,.08); }
.glr-modal-box.glr-modal-light .glr-mi-sec         { color: #222; }
.glr-modal-box.glr-modal-light .glr-mi-row         { color: #444; border-bottom-color: rgba(0,0,0,.07); }
.glr-modal-box.glr-modal-light .glr-mi-row a       { color: var(--primary-color, #a78bfa); }
.glr-modal-box.glr-modal-light .glr-mi-memo        { color: #666; background: rgba(0,0,0,.04); }
.glr-modal-box.glr-modal-light .glr-mi-btn         { border-color: rgba(0,0,0,.12); background: rgba(0,0,0,.04); color: #444; }
.glr-modal-box.glr-modal-light .glr-mi-btn:hover   { background: rgba(0,0,0,.08); color: #222; }
.glr-modal-box.glr-modal-light .glr-modal-thumb    { background: rgba(0,0,0,.06); }

.glr-mi-btn-del {
    border-color: rgba(248,113,113,.3);
    color: #f87171;
}
.glr-mi-btn-del:hover {
    background: rgba(248,113,113,.15);
    color: #f87171;
}

/* ══════════════════════════════════════════════
   검색/정렬 패널
══════════════════════════════════════════════ */

.glr-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.glr-search-panel {
    width: 100%;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    animation: glrFadeIn .15s ease;
}

@keyframes glrFadeIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }

.glr-search-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 320px;
}

.glr-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 30%, transparent);
    background: color-mix(in srgb, var(--container-bg-color, #fff) 60%, transparent);
    color: var(--text-muted, #aaa);
    font-size: 12px;
}

.glr-search-input-wrap i { flex-shrink: 0; }

.glr-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--content-font-color, #333);
    font-family: inherit;
}
.glr-search-input::placeholder { color: var(--text-muted, #bbb); }

.glr-search-clear {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted, #bbb); font-size: 12px; padding: 0; line-height: 1;
    transition: color .15s;
}
.glr-search-clear:hover { color: var(--content-font-color, #555); }

.glr-sort-select {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 30%, transparent);
    background: color-mix(in srgb, var(--container-bg-color, #fff) 60%, transparent);
    color: var(--content-font-color, #333);
    font-size: 12px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
}

.glr-icon-btn.active {
    background: var(--primary-color, #a78bfa);
    border-color: var(--primary-color, #a78bfa);
    color: #fff;
}

/* 태그 필터 칩 */
.glr-tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
    max-width: 320px;
}

.glr-tag-chip {
    padding: 3px 12px;
    border-radius: 999px;
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 25%, transparent);
    background: transparent;
    color: var(--content-font-color, #666);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.glr-tag-chip:hover { border-color: var(--primary-color, #a78bfa); color: var(--primary-color, #a78bfa); }
.glr-tag-chip.active {
    background: var(--primary-color, #a78bfa);
    border-color: var(--primary-color, #a78bfa);
    color: #fff;
}

/* 결과 없음 */
.glr-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted, #bbb);
}
.glr-no-results i { display: block; font-size: 36px; margin-bottom: 10px; opacity: .4; }

/* ══════════════════════════════════════════════
   카드 - 즐겨찾기 버튼 + 태그
══════════════════════════════════════════════ */

.glr-like-btn {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: none;
    color: rgba(255,255,255,.4);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
    opacity: 0;
}
.glr-card:hover .glr-like-btn { opacity: 1; }
.glr-like-btn.is-liked { opacity: 1; color: #f87171; }
.glr-like-btn:hover { transform: scale(1.2); color: #f87171; }

.glr-ov-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}
.glr-ov-tag {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ══════════════════════════════════════════════
   모달 - 즐겨찾기 + 태그
══════════════════════════════════════════════ */

.glr-mi-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.glr-mi-like {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.4);
    font-size: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.glr-mi-like:hover { color: #f87171; border-color: rgba(248,113,113,.4); }
.glr-mi-like.is-liked { color: #f87171; background: rgba(248,113,113,.15); border-color: rgba(248,113,113,.4); }

/* 라이트 테마에서 */
.glr-modal-light .glr-mi-like { border-color: rgba(0,0,0,.12); background: rgba(0,0,0,.04); color: rgba(0,0,0,.3); }
.glr-modal-light .glr-mi-like.is-liked { color: #ef4444; background: rgba(239,68,68,.1); }

.glr-mi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}
.glr-mi-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 18%, transparent);
    color: var(--primary-color, #a78bfa);
    border: 1px solid color-mix(in srgb, var(--primary-color, #a78bfa) 30%, transparent);
}

/* ══════════════════════════════════════════════
   글쓰기 - 드래그앤드롭 이미지 업로드
══════════════════════════════════════════════ */

.glr-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    border: 2px dashed color-mix(in srgb, var(--primary-color, #a78bfa) 35%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 4%, var(--container-bg-color, #fff));
    color: var(--text-muted, #bbb);
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
    margin-bottom: 10px;
}
.glr-drop-zone i { font-size: 24px; color: color-mix(in srgb, var(--primary-color, #a78bfa) 60%, transparent); }
.glr-drop-zone:hover,
.glr-drop-zone.drag-over {
    border-color: var(--primary-color, #a78bfa);
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 8%, var(--container-bg-color, #fff));
    color: var(--primary-color, #a78bfa);
}

/* 이미지 그리드 (드래그 순서 변경) */
.glr-img-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.glr-img-item {
    position: relative;
    width: 86px;
    height: 86px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--primary-color, #a78bfa) 25%, transparent);
    background: rgba(0,0,0,.05);
    cursor: grab;
    transition: border-color .15s, transform .15s;
}
.glr-img-item:active { cursor: grabbing; }
.glr-img-item-ghost { opacity: .35; }
.glr-img-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.glr-img-item.is-thumb { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.3); }
.glr-img-item.glr-del-marked { opacity: .3; filter: grayscale(1); }

.glr-img-order {
    position: absolute;
    bottom: 3px;
    left: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,.5);
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1.4;
    pointer-events: none;
}

/* ══════════════════════════════════════════════
   글쓰기 - 태그 입력
══════════════════════════════════════════════ */

.glr-tag-input-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px 12px;
    border: 1.5px solid color-mix(in srgb, var(--primary-color, #a78bfa) 25%, var(--card-border-color, #e0e0e0));
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 4%, var(--container-bg-color, #fff));
    min-height: 42px;
    cursor: text;
}
.glr-tag-input-wrap:focus-within {
    border-color: var(--primary-color, #a78bfa);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #a78bfa) 15%, transparent);
}

.glr-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color, #a78bfa) 15%, transparent);
    color: var(--primary-color, #a78bfa);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.glr-tag-badge button {
    background: none; border: none; cursor: pointer;
    color: var(--primary-color, #a78bfa); font-size: 10px; padding: 0; line-height: 1;
    display: flex; align-items: center;
    transition: opacity .15s;
}
.glr-tag-badge button:hover { opacity: .6; }

#glrTagInput {
    border: none; outline: none; background: transparent;
    font-size: 13px; color: var(--content-font-color, #333);
    font-family: inherit; min-width: 120px; flex: 1;
}
#glrTagInput::placeholder { color: var(--text-muted, #bbb); }

.glr-tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}
.glr-tag-suggest-btn {
    padding: 3px 10px;
    border-radius: 999px;
    border: 1.5px dashed color-mix(in srgb, var(--primary-color, #a78bfa) 30%, transparent);
    background: transparent;
    color: var(--text-muted, #aaa);
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.glr-tag-suggest-btn:hover {
    border-color: var(--primary-color, #a78bfa);
    color: var(--primary-color, #a78bfa);
}

/* 라이트박스 */
.glr-mi-btn-del { border-color: rgba(248,113,113,.3); color: #f87171; }
.glr-mi-btn-del:hover { background: rgba(248,113,113,.15); color: #f87171; }

/* 모달 라이트/다크 테마 */
.glr-modal-box.glr-modal-dark { background: rgba(18,18,28,.95); border-color: rgba(255,255,255,.1); }
.glr-modal-box.glr-modal-dark .glr-modal-img-area { background: #07070f; }
.glr-modal-box.glr-modal-dark .glr-modal-thumbs   { background: rgba(0,0,0,.35); }
.glr-modal-box.glr-modal-dark .glr-modal-info      { background: rgba(12,12,20,.88); border-left-color: rgba(255,255,255,.07); }
.glr-modal-box.glr-modal-dark .glr-mi-sec          { color: #fff; }
.glr-modal-box.glr-modal-dark .glr-mi-row          { color: rgba(255,255,255,.65); border-bottom-color: rgba(255,255,255,.06); }
.glr-modal-box.glr-modal-dark .glr-mi-memo         { color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); }
.glr-modal-box.glr-modal-dark .glr-mi-btn          { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); }
.glr-modal-box.glr-modal-dark .glr-mi-btn:hover    { background: rgba(255,255,255,.13); color: #fff; }
.glr-modal-box.glr-modal-dark .glr-modal-close     { background: rgba(0,0,0,.5); border-color: rgba(255,255,255,.18); }
.glr-modal-box.glr-modal-dark .glr-modal-nav       { background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.18); }
.glr-modal-box.glr-modal-light { background: rgba(255,255,255,.98); border-color: rgba(0,0,0,.1); }
.glr-modal-box.glr-modal-light .glr-modal-img-area { background: #f5f5f8; }
.glr-modal-box.glr-modal-light .glr-modal-thumbs   { background: rgba(0,0,0,.06); }
.glr-modal-box.glr-modal-light .glr-modal-nav      { background: rgba(255,255,255,.8); border-color: rgba(0,0,0,.15); color: #333; }
.glr-modal-box.glr-modal-light .glr-modal-nav:hover{ background: #fff; }
.glr-modal-box.glr-modal-light .glr-modal-close    { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.15); color: #333; }
.glr-modal-box.glr-modal-light .glr-modal-close:hover { background: rgba(0,0,0,.15); }
.glr-modal-box.glr-modal-light .glr-modal-info     { background: rgba(248,248,252,.98); border-left-color: rgba(0,0,0,.08); }
.glr-modal-box.glr-modal-light .glr-mi-sec         { color: #222; }
.glr-modal-box.glr-modal-light .glr-mi-row         { color: #444; border-bottom-color: rgba(0,0,0,.07); }
.glr-modal-box.glr-modal-light .glr-mi-row a       { color: var(--primary-color, #a78bfa); }
.glr-modal-box.glr-modal-light .glr-mi-memo        { color: #666; background: rgba(0,0,0,.04); }
.glr-modal-box.glr-modal-light .glr-mi-btn         { border-color: rgba(0,0,0,.12); background: rgba(0,0,0,.04); color: #444; }
.glr-modal-box.glr-modal-light .glr-mi-btn:hover   { background: rgba(0,0,0,.08); color: #222; }
.glr-modal-box.glr-modal-light .glr-modal-thumb    { background: rgba(0,0,0,.06); }

/* 즐겨찾기 필터 칩 */
.glr-chip-like i { font-size: 10px; }
.glr-chip-like.active {
    background: #f87171;
    border-color: #f87171;
    color: #fff;
    box-shadow: 0 3px 12px rgba(248,113,113,.4);
}

/* ══════════════════════════════════════════════
   글쓰기 - 대표 이미지 크라운 배지
══════════════════════════════════════════════ */

.glr-thumb-crown {
    position: absolute;
    top: 3px;
    left: 3px;
    font-size: 11px;
    color: #f59e0b;
    display: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
    pointer-events: none;
}

.glr-img-item.is-thumb .glr-thumb-crown { display: block; }
.glr-img-item { cursor: pointer; }
.glr-img-item:hover { border-color: var(--primary-color, #a78bfa); }

/* 크롭 상태 표시 */
#glrCropStatus {
    align-items: center;
    gap: 8px;
}

/* ══════════════════════════════════════════════
   모달 - 작품 이전/다음 버튼
══════════════════════════════════════════════ */

.glr-modal-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: calc(min(880px, 95vw) + 120px);
}

.glr-work-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    flex-shrink: 0;
}
.glr-work-nav:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) scale(1.08); }
.glr-work-prev { left: 0; }
.glr-work-next { right: 0; }

@media (max-width: 800px) {
    .glr-modal-wrap { max-width: 100%; padding: 0 50px; }
    .glr-work-prev { left: 4px; }
    .glr-work-next { right: 4px; }
}

/* 커미션 타입 - 카드 오버레이 */
.glr-ov-comm-type {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 커미션 타입 - 모달 정보 패널 */
.glr-mi-comm-type {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}
.glr-modal-light .glr-mi-comm-type { color: #111; }

/* ══════════════════════════════════════════════
   날짜별 보기
══════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   날짜별 보기 (애플 갤러리 스타일)
══════════════════════════════════════════════ */

#glrDateView { padding: 0; }

.glr-date-year-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 28px 0 0;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}
.glr-date-year-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    font-size: 18px;
    font-weight: 800;
    color: var(--content-font-color, #222);
    background: #fff;
    letter-spacing: -.01em;
    line-height: 1;
    padding: 8px 14px;
    border-radius: 3px;
    gap: 8px;
}
.glr-date-year-label .glr-date-year-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.glr-date-year-count {
    font-size: 11px;
    font-weight: 400;
    color: rgba(0,0,0,.4);
}
.glr-date-year-chevron {
    font-size: 11px;
    color: rgba(0,0,0,.35);
    transition: transform .2s;
}
.glr-date-year-hd.is-collapsed .glr-date-year-chevron {
    transform: rotate(-90deg);
}

.glr-date-month-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0 8px;
    margin-bottom: 2px;
    cursor: pointer;
    user-select: none;
}
.glr-date-month-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--content-font-color, #444);
    white-space: nowrap;
}
.glr-date-month-count {
    font-size: 11px;
    color: var(--text-muted, #bbb);
    white-space: nowrap;
}
.glr-date-month-hd::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #fff;
    opacity: .5;
    border-radius: 1px;
}
.glr-date-month-hd .glr-date-month-chevron {
    font-size: 10px;
    color: var(--text-muted, #bbb);
    transition: transform .2s;
    margin-left: auto;
    flex-shrink: 0;
}
.glr-date-month-hd.is-collapsed .glr-date-month-chevron {
    transform: rotate(-90deg);
}

/* 접기 애니메이션 */
.glr-date-year-body {
    overflow: hidden;
    transition: max-height .3s cubic-bezier(.4,0,.2,1), opacity .2s;
    max-height: 9999px;
    opacity: 1;
    padding-left: 16px;
}
.glr-date-year-hd.is-collapsed + .glr-date-year-body {
    max-height: 0;
    opacity: 0;
}
.glr-date-month-body {
    overflow: hidden;
    transition: max-height .25s cubic-bezier(.4,0,.2,1), opacity .2s;
    max-height: 9999px;
    opacity: 1;
}
.glr-date-month-hd.is-collapsed + .glr-date-month-body {
    max-height: 0;
    opacity: 0;
}