mingle-website/css/gallery.css
2025-09-14 00:24:42 +09:00

325 lines
6.2 KiB
CSS

/* ========================================
Gallery 페이지 전용 스타일
======================================== */
/* 페이지 헤더 */
.page-header {
background: var(--gradient-main);
color: var(--text-white);
padding: var(--spacing-3xl) 0;
text-align: center;
}
.page-header h1 {
font-size: var(--font-5xl);
margin-bottom: var(--spacing-md);
}
.page-header p {
font-size: var(--font-xl);
opacity: 0.95;
}
/* 갤러리 그리드 */
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: var(--spacing-xl);
margin-top: var(--spacing-2xl);
}
.gallery-item {
position: relative;
background: var(--bg-white);
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
transition: var(--transition);
}
.gallery-item:hover {
transform: translateY(-8px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.gallery-img {
width: 100%;
height: 250px;
object-fit: cover;
transition: var(--transition);
}
.gallery-item:hover .gallery-img {
transform: scale(1.05);
}
.gallery-caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
color: var(--text-white);
padding: var(--spacing-lg);
font-weight: 500;
font-size: var(--font-base);
text-align: center;
transform: translateY(100%);
transition: var(--transition);
}
.gallery-item:hover .gallery-caption {
transform: translateY(0);
}
/* 라이트박스 모달 */
.lightbox {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.9);
z-index: 1000;
cursor: pointer;
overflow: hidden;
}
.lightbox.active {
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
box-sizing: border-box;
}
.lightbox-content {
max-width: 70vw;
max-height: 70vh;
position: relative;
margin: auto;
display: block;
}
.lightbox-img {
width: 100%;
height: auto;
max-height: 70vh;
object-fit: contain;
display: block;
border-radius: 8px;
}
.lightbox-caption {
position: absolute;
bottom: -50px;
left: 50%;
transform: translateX(-50%);
color: var(--text-white);
font-size: var(--font-lg);
font-weight: 500;
text-align: center;
white-space: nowrap;
}
.lightbox-close {
position: absolute;
top: -60px;
right: 0;
background: rgba(255, 255, 255, 0.9);
color: #333;
font-size: var(--font-xl);
cursor: pointer;
width: 45px;
height: 45px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
border: 3px solid #fff;
}
.lightbox-close::before {
content: '✕';
font-weight: bold;
font-size: 18px;
}
.lightbox-close:hover {
background: var(--primary-color);
color: white;
transform: scale(1.1);
box-shadow: 0 6px 20px rgba(255, 136, 0, 0.4);
}
.lightbox-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
color: var(--text-white);
font-size: var(--font-2xl);
background: rgba(0, 0, 0, 0.5);
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: var(--transition);
}
.lightbox-nav:hover {
background: var(--primary-color);
color: var(--text-white);
}
.lightbox-prev {
left: -80px;
}
.lightbox-next {
right: -80px;
}
/* 갤러리 카테고리 필터 */
.gallery-filters {
display: flex;
justify-content: center;
gap: var(--spacing-md);
margin-bottom: var(--spacing-2xl);
flex-wrap: wrap;
}
.filter-btn {
padding: var(--spacing-sm) var(--spacing-lg);
border: 2px solid var(--primary-color);
background: transparent;
color: var(--primary-color);
border-radius: var(--border-radius-full);
cursor: pointer;
transition: var(--transition);
font-weight: 500;
font-size: var(--font-sm);
}
.filter-btn:hover,
.filter-btn.active {
background: var(--primary-color);
color: var(--text-white);
}
/* 로딩 스피너 */
.gallery-loading {
display: none;
text-align: center;
padding: var(--spacing-2xl);
}
.loading-spinner {
width: 40px;
height: 40px;
border: 3px solid #f3f3f3;
border-top: 3px solid var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto var(--spacing-md);
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* 반응형 디자인 */
@media (max-width: 768px) {
.page-header h1 {
font-size: var(--font-3xl);
}
.page-header p {
font-size: var(--font-base);
}
.gallery-grid {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: var(--spacing-lg);
}
.gallery-img {
height: 200px;
}
.lightbox-nav {
font-size: var(--font-xl);
width: 40px;
height: 40px;
}
.lightbox-prev {
left: -60px;
}
.lightbox-next {
right: -60px;
}
.lightbox-caption {
font-size: var(--font-base);
}
}
@media (max-width: 480px) {
.gallery-grid {
grid-template-columns: 1fr;
gap: var(--spacing-md);
}
.gallery-img {
height: 180px;
}
.lightbox-content {
max-width: 90vw;
max-height: 75vh;
}
.lightbox-nav {
position: fixed;
bottom: 20px;
}
.lightbox-prev {
left: 20px;
}
.lightbox-next {
right: 20px;
}
.lightbox-close {
top: 20px;
right: 20px;
position: fixed;
}
.lightbox-caption {
position: fixed;
bottom: 80px;
left: 50%;
transform: translateX(-50%);
font-size: var(--font-sm);
}
.gallery-filters {
gap: var(--spacing-sm);
}
.filter-btn {
font-size: var(--font-xs);
padding: var(--spacing-xs) var(--spacing-md);
}
}