@charset "utf-8";
/* 사진 크게 보기 — www/js(community/)galleryViewer.js 와 짝. PC·모바일 같은 파일
   AyeobiWeb/www/css/community/galleryViewer.css == AyeobiMobile/www/css/galleryViewer.css */
.gv{--gv-dim: 1; position: fixed; inset: 0; z-index: 10000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); color: #fff; opacity: 0; transition: opacity .2s ease; -webkit-user-select: none; user-select: none; font-family: inherit;}
.gv::before{content: ""; position: absolute; inset: 0; z-index: -1; background: #0c0e0b; opacity: var(--gv-dim);}
.gv[hidden]{display: none;}
.gv.is_open{opacity: 1;}

/* 위: 몇 번째 · 확대 · 닫기 */
.gv_top{display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; z-index: 2;}
.gv_count{font-size: 15px; font-weight: 700; letter-spacing: .5px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.85);}
.gv_tools{display: flex; gap: 8px;}
.gv_btn{display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .15s;}
.gv_btn:hover{background: rgba(255,255,255,.24);}
.gv_btn:focus-visible{outline: 2px solid #9fd38f; outline-offset: 2px;}
.gv_btn svg{width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}

/* 가운데: 사진 */
.gv_stage{position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; touch-action: none; cursor: zoom-in;}
.gv.is_zoomed .gv_stage{cursor: grab;}
.gv.is_zoomed .gv_stage:active{cursor: grabbing;}
.gv_img{display: block; max-width: calc(100% - 32px); max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.45); transform-origin: center center; transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .28s ease; will-change: transform; pointer-events: none;}
.gv_spin{position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; opacity: 0; transition: opacity .2s; animation: gvSpin .8s linear infinite; pointer-events: none;}
.gv.is_loading .gv_spin{opacity: 1; transition-delay: .15s;}
@keyframes gvSpin{to{transform: rotate(360deg);}}

/* 좌우 */
.gv_nav{position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; z-index: 2;}
.gv_nav svg{width: 26px; height: 26px;}
.gv_prev{left: 20px;}
.gv_next{right: 20px;}
.gv.is_zoomed .gv_nav{opacity: 0; pointer-events: none;}

/* 아래: 설명 · 썸네일 줄 */
.gv_bottom{padding: 10px 0 calc(14px + env(safe-area-inset-bottom)); z-index: 2; transition: opacity .2s;}
.gv.is_zoomed .gv_bottom{opacity: 0; pointer-events: none;}
.gv_cap{margin: 0 16px 10px; font-size: 15px; line-height: 1.45; text-align: center; color: rgba(255,255,255,.9); word-break: keep-all;}
.gv_thumbs{display: flex; gap: 8px; padding: 4px 16px; overflow-x: auto; scrollbar-width: none; justify-content: safe center;}
.gv_thumbs::-webkit-scrollbar{display: none;}
.gv_thumb{flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #222; opacity: .5; cursor: pointer; transition: opacity .15s, border-color .15s, transform .15s;}
.gv_thumb img{display: block; width: 100%; height: 100%; object-fit: cover;}
.gv_thumb:hover{opacity: .85;}
.gv_thumb.is_on{border-color: #fff; opacity: 1; transform: translateY(-2px);}
.gv_thumb:focus-visible{outline: 2px solid #9fd38f; outline-offset: 2px;}

/* 휴대폰: 좌우 버튼은 작게, 사진은 가장자리까지 */
@media (max-width: 640px) {
	.gv_top{padding: 10px 10px 4px;}
	.gv_img{max-width: 100%; border-radius: 0; box-shadow: none;}
	.gv_nav{width: 40px; height: 40px; margin-top: -20px; background: rgba(0,0,0,.35);}
	.gv_nav svg{width: 20px; height: 20px;}
	.gv_prev{left: 6px;}
	.gv_next{right: 6px;}
	.gv_cap{font-size: 14px;}
	.gv_thumb{width: 48px; height: 48px; border-radius: 6px;}
}
@media (prefers-reduced-motion: reduce) {
	.gv, .gv_img, .gv_thumb{transition: none;}
}
