.rmg-gallery {
max-width: 800px;
margin: 20px auto;
font-family: 'Noto Sans KR', -apple-system, sans-serif;
}
.rmg-title-text {
text-align: center;
font-size: 18px;
color: #c8102e;
margin-bottom: 12px;
font-weight: 600;
}
.rmg-hint-wrap {
text-align: center;
margin-bottom: 15px;
}
.rmg-hint {
display: inline-block;
font-size: 13px;
color: #888;
padding: 8px 14px;
background: #fff8e1;
border-radius: 20px;
}
.rmg-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
.rmg-thumb {
position: relative;
width: 100%;
padding-bottom: 75%;
overflow: hidden;
border-radius: 8px;
cursor: pointer;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
background: #f5f5f5;
-webkit-tap-highlight-color: transparent;
}
.rmg-thumb img {
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
pointer-events: none;
}
.rmg-thumb:active { transform: scale(0.96); }
@media (max-width: 600px) {
.rmg-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
.rmg-title-text { font-size: 16px; }
.rmg-hint { font-size: 12px; }
}
#rmgViewer {
display: none;
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
width: 100%;
height: 100%;
background: #000;
z-index: 2147483647;
-webkit-user-select: none;
user-select: none;
overflow: hidden;
}
#rmgViewer.rmg-active { display: block; }
.rmg-track {
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
display: flex;
will-change: transform;
touch-action: none;
}
.rmg-slide {
flex: 0 0 100%;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
box-sizing: border-box;
overflow: hidden;
}
.rmg-slide-inner {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
transform-origin: center center;
will-change: transform;
}
.rmg-slide-inner img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
pointer-events: none;
-webkit-user-drag: none;
}
.rmg-close {
position: absolute;
top: 15px; right: 15px;
width: 48px;
height: 48px;
border-radius: 50%;
background: rgba(255,255,255,0.2);
border: 2px solid rgba(255,255,255,0.7);
color: #fff;
font-size: 28px;
line-height: 1;
cursor: pointer;
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
font-family: Arial, sans-serif;
}
.rmg-page {
position: absolute;
top: 22px;
left: 50%;
transform: translateX(-50%);
background: rgba(0,0,0,0.6);
color: #fff;
padding: 6px 14px;
border-radius: 20px;
font-size: 14px;
z-index: 10;
font-weight: 500;
font-family: Arial, sans-serif;
}
.rmg-vtitle {
position: absolute;
top: 60px;
left: 50%;
transform: translateX(-50%);
color: #fff;
font-size: 14px;
z-index: 10;
font-family: 'Noto Sans KR', sans-serif;
white-space: nowrap;
max-width: 80%;
overflow: hidden;
text-overflow: ellipsis;
opacity: 0.85;
}
.rmg-guide {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
background: rgba(255,255,255,0.18);
color: #fff;
padding: 10px 20px;
border-radius: 25px;
font-size: 13px;
z-index: 10;
font-family: 'Noto Sans KR', sans-serif;
white-space: nowrap;
animation: rmgFadeOut 4s ease-in-out forwards;
}
.rmg-guide-arrow {
display: inline-block;
margin-right: 6px;
animation: rmgSlide 1.2s ease-in-out infinite;
}
@keyframes rmgSlide {
0%, 100% { transform: translateX(0); }
50% { transform: translateX(-8px); }
}
@keyframes rmgFadeOut {
0%, 70% { opacity: 1; }
100% { opacity: 0; visibility: hidden; }
}
.rmg-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 44px;
height: 44px;
border-radius: 50%;
background: rgba(255,255,255,0.15);
border: 1px solid rgba(255,255,255,0.3);
color: #fff;
font-size: 24px;
cursor: pointer;
z-index: 10;
display: none;
align-items: center;
justify-content: center;
font-family: Arial, sans-serif;
}
.rmg-prev { left: 20px; }
.rmg-next { right: 20px; }
@media (min-width: 768px) {
.rmg-nav { display: flex; }
}
body.rmg-locked {
overflow: hidden !important;
position: fixed !important;
width: 100% !important;
}