 .vmg-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.vmg-gallery-card{border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 5px 24px rgba(0,0,0,.045)}.vmg-gallery-card>.vmg-lightbox-trigger{display:block;cursor:zoom-in}.vmg-gallery-card img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block;transition:transform .25s}.vmg-gallery-card>.vmg-lightbox-trigger:hover img{transform:scale(1.03)}.vmg-visually-hidden{display:none!important}.vmg-card-content{padding:16px}.vmg-card-content strong{font-size:18px}.vmg-card-content p{margin:8px 0;color:#667085}.vmg-card-details{font-size:14px;color:#31543d}.vmg-post-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px;margin:24px 0}.vmg-post-photos img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:10px}.vmg-lightbox-trigger{cursor:zoom-in}.vmg-lightbox[hidden]{display:none!important}.vmg-lightbox{position:fixed;inset:0;background:rgba(9,15,19,.94);z-index:999999;display:flex;align-items:center;justify-content:center;color:#fff;padding:55px 65px;box-sizing:border-box}.vmg-lightbox figure{margin:0;text-align:center;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.vmg-lb-image{display:block;max-width:100%;max-height:calc(100vh - 140px);width:auto;height:auto;object-fit:contain}.vmg-lb-caption{margin-top:10px;font-size:15px;color:#e5e7eb}.vmg-lightbox button{position:absolute;background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:50%;cursor:pointer;width:44px;height:44px;font-size:32px;line-height:1}.vmg-lightbox button:focus-visible{outline:3px solid white;outline-offset:3px}.vmg-lb-close{top:16px;right:20px}.vmg-lb-prev{left:12px;top:50%}.vmg-lb-next{right:12px;top:50%}.vmg-lb-count{position:absolute;bottom:15px;font-size:13px;color:#d1d5db}@media(max-width:900px){.vmg-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.vmg-gallery{grid-template-columns:1fr}.vmg-lightbox{padding:60px 45px}.vmg-lb-image{max-height:calc(100dvh - 150px)}.vmg-lightbox button{width:36px;height:36px;font-size:28px}.vmg-lb-prev{left:4px}.vmg-lb-next{right:4px}}
/* 1.3.1: keep navigation above themes' global button styles */
.vmg-lightbox .vmg-lb-prev,.vmg-lightbox .vmg-lb-next{display:flex;align-items:center;justify-content:center;z-index:3;transform:translateY(-50%);opacity:1;visibility:visible;background:rgba(255,255,255,.25);color:#fff;box-shadow:0 2px 12px rgba(0,0,0,.3)}
.vmg-lightbox .vmg-lb-prev:hover,.vmg-lightbox .vmg-lb-next:hover{background:rgba(255,255,255,.42)}
.vmg-lightbox .vmg-lb-close{z-index:4;display:flex;align-items:center;justify-content:center;}
.vmg-lightbox button[hidden]{display:none!important}

/* v1.4.0 category filters and numbered pagination */
.vmg-gallery-area{width:100%;min-width:0}
.vmg-category-filters{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:0 0 26px}
.vmg-category-filters .vmg-filter-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border:1px solid #dbe7dd;border-radius:999px;background:#fff;color:#31543d;text-decoration:none;font-size:15px;line-height:1.35;font-weight:600;transition:background .2s,border-color .2s,color .2s}
.vmg-category-filters .vmg-filter-btn:hover{background:#eef6ee;border-color:#a5c6ac}
.vmg-category-filters .vmg-filter-btn.is-active{background:#315f40;border-color:#315f40;color:#fff}
.vmg-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:34px}
.vmg-pagination .vmg-page-btn{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:8px 12px;border:1px solid #dbe7dd;border-radius:9px;background:#fff;color:#31543d;font-weight:600;font-size:14px;line-height:1.3;text-decoration:none}
.vmg-pagination .vmg-page-btn:hover{background:#eef6ee}
.vmg-pagination .vmg-page-btn.is-current{background:#315f40;border-color:#315f40;color:#fff}
.vmg-pagination .vmg-page-ellipsis{padding:0 3px;color:#718275}
.vmg-gallery-empty{padding:25px 12px;text-align:center;color:#647067}
.vmg-category-filters a:focus-visible,.vmg-pagination a:focus-visible{outline:3px solid #8bbf99;outline-offset:3px}
@media(max-width:600px){.vmg-category-filters{gap:7px;margin-bottom:20px}.vmg-category-filters .vmg-filter-btn{padding:9px 13px;font-size:13px}.vmg-pagination{gap:5px}.vmg-pagination .vmg-page-btn{min-width:34px;min-height:36px;padding:6px 9px}}

/* v1.4.1: 갤러리 목록을 이미지 전용 카드로 표시 */
.vmg-gallery-card { line-height: 0; }
.vmg-gallery-card > .vmg-lightbox-trigger { display: block; width: 100%; overflow: hidden; }
.vmg-gallery-card > .vmg-lightbox-trigger img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.vmg-gallery-card .vmg-card-content { display: none !important; }

/* v1.4.2: show only the post title below each image */
.vmg-gallery-card { line-height: normal; }
.vmg-gallery-title { padding: 13px 15px 16px; color: #243c2b; font-size: 16px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
@media(max-width:600px){.vmg-gallery-title{font-size:15px;padding:11px 13px 13px}}

/* v1.4.3: borderless photo gallery and centered, regular-weight titles */
.vmg-gallery-area .vmg-gallery-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}
.vmg-gallery-area .vmg-gallery-title {
  padding: 12px 4px 0;
  text-align: center;
  font-weight: 400;
  color: #34443a;
}

/* v1.4.4: title opens the post, image still opens lightbox */
.vmg-gallery-area .vmg-gallery-title-link { color: inherit; font: inherit; font-weight: 400; text-decoration: none; display: inline; }
.vmg-gallery-area .vmg-gallery-title-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.vmg-gallery-area .vmg-gallery-title-link:focus-visible { outline: 2px solid #315f40; outline-offset: 3px; }

/* v1.4.5 Single photo post detail */
.vmg-detail{max-width:1000px;margin:0 auto 60px;color:#293d30;font-family:'Noto Sans KR',sans-serif}
.vmg-detail-header{text-align:center;padding:28px 12px 35px;border-bottom:1px solid #e9eeea;margin-bottom:32px}
.vmg-detail-category{font-size:14px;color:#527d5d;font-weight:600;margin-bottom:12px}
.vmg-detail-heading{font-size:clamp(27px,3.5vw,40px);line-height:1.35;font-weight:650;margin:0 0 14px}
.vmg-detail-meta{font-size:14px;color:#7a8a7e;margin:0}
.vmg-detail-slider{position:relative;margin:0 auto 28px;max-width:920px;background:#f5f7f4;border-radius:14px;overflow:hidden}
.vmg-detail-slide[hidden]{display:none!important}
.vmg-detail-slide>a{display:flex;align-items:center;justify-content:center;cursor:zoom-in}
.vmg-detail-slide img{display:block;width:100%;height:auto;max-height:620px;object-fit:contain}
.vmg-detail-slider>button{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;border:0;background:rgba(18,35,25,.65);color:#fff;cursor:pointer;font-size:21px;line-height:1;padding:0}
.vmg-detail-slider>button:hover{background:rgba(18,35,25,.88)}
.vmg-detail-prev{left:14px}.vmg-detail-next{right:14px}
.vmg-detail-counter{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);border-radius:30px;background:rgba(14,29,19,.65);padding:5px 13px;color:#fff;font-size:13px}
.vmg-detail-content{font-size:17px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;margin:34px 0 42px}
.vmg-detail-footer{border-top:1px solid #e9eeea;padding:24px 0;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.vmg-detail-back,.vmg-detail-edit{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid #dbe8de;border-radius:6px;padding:8px 16px;text-decoration:none!important;color:#335943!important;font-size:14px}
.vmg-detail-actions{display:flex;align-items:center;gap:9px}.vmg-detail-delete{margin:0!important}.vmg-detail-delete button{background:#fff!important;color:#ad4545!important;border:1px solid #e7c9c9!important;border-radius:6px!important;min-height:40px;padding:8px 16px!important;font-size:14px!important;cursor:pointer}
@media(max-width:600px){.vmg-detail-header{padding-top:12px}.vmg-detail-slide img{max-height:450px}.vmg-detail-slider>button{width:36px;height:36px;font-size:16px}.vmg-detail-prev{left:6px}.vmg-detail-next{right:6px}.vmg-detail-content{font-size:16px}.vmg-detail-footer{align-items:stretch}.vmg-detail-back{flex:1}}
