/* 기본 컨테이너 스타일 */
.gallery-container {

}


.logotxt{height:40px; line-height:20px; text-align:center; color:#555; font-family:'SEBANG_Gothic_Bold';}


.gallery-stats {
    font-size: 18px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Masonry 레이아웃 */
.masonry-container {
	width:calc(100% + 20px);
	left:-20px;
    position: relative;
    margin-bottom: 40px;
    min-height: 400px;
}

.masonry-item {
    margin-bottom: 20px;
    break-inside: avoid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	border-radius: 15px;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.photo-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #f8f9fa;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.photo-wrapper:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
	border-radius: 15px;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item:hover .photo-overlay {
    opacity: 1;
}

.photo-date {
    font-size: 14px;
    font-weight: 500;
}

/* 더보기 버튼 */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* 빈 상태 */
.no-photos {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    font-size: 18px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

/* 이미지 슬라이더 모달 */
.image-slider-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

body.modal-open {
    overflow: hidden;
}

.slider-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10001;
}

.slider-info {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.slider-close {
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slider-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 슬라이더 컨테이너 수정 - 패딩 줄이고 높이 계산 개선 */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh; /* 전체 화면 높이 사용 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 60px 120px 60px; /* 좌우 패딩 줄임 */
    box-sizing: border-box;
}

/* 슬라이더 콘텐츠 수정 - 최대 크기 조정 */
.slider-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slider-image {
    max-width: calc(100vw - 120px); /* 뷰포트 너비에서 좌우 패딩 제외 */
    max-height: calc(100vh - 190px); /* 뷰포트 높이에서 상하 패딩 제외 */
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    user-select: none;
    -webkit-user-drag: none;
}


.image-info {
    margin-top: 20px;
    text-align: center;
    color: white;
}

.image-date {
    font-size: 16px;
    opacity: 0.8;
}

/* 네비게이션 버튼 위치 조정 */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 36px;
    font-weight: bold;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px; /* 좌측 여백 줄임 */
}

.slider-next {
    right: 20px; /* 우측 여백 줄임 */
}

/* 썸네일 */
.slider-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 30px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    z-index: 10001;
}

.slider-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.slider-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.slider-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.slider-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.thumbnail-item {
    display: inline-block;
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    opacity: 0.6;
}

.thumbnail-item:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #4CAF50;
    opacity: 1;
    transform: scale(1.1);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

* 태블릿 반응형 */
@media (max-width: 1024px) {
    .slider-container {
        padding: 70px 40px 120px 40px;
    }
    
    .slider-image {
        max-width: calc(100vw - 80px);
        max-height: calc(100vh - 190px);
    }
    
    .slider-prev {
        left: 15px;
    }
    
    .slider-next {
        right: 15px;
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .slider-container {
        padding: 70px 20px 120px 20px;
    }
    
    .slider-image {
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 190px);
    }
    
    .slider-nav {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
}

/* 작은 모바일 화면 */
@media (max-width: 480px) {
    .slider-container {
        padding: 60px 10px 100px 10px;
    }
    
    .slider-image {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 160px);
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .slider-prev {
        left: 5px;
    }
    
    .slider-next {
        right: 5px;
    }
    
    .slider-thumbnails {
        height: 80px;
        padding: 10px 15px;
    }
}








/* 반응형 스타일 */
@media (max-width: 1200px) {
 
    
    .masonry-container {
        column-count: 3;
        column-gap: 20px; /* 컬럼 간격 증가 */
    }
}

@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 36px;
    }
    
    .gallery-stats {
        font-size: 16px;
    }
    

    
    .masonry-container {
        column-count: 2;
        column-gap: 15px;
    }
    
    .masonry-item {
        margin-bottom: 15px;
        margin-left: 5px;
        margin-right: 5px;
    }
    
  
}

@media (max-width: 480px) {
    .gallery-header {
        padding: 30px 20px;
        margin-bottom: 20px;
        margin-left: 10px;  /* 좌우 여백 */
        margin-right: 10px;
    }
    
    .gallery-header h1 {
        font-size: 28px;
    }

    
    .masonry-container {
        column-count: 1;
    }
    
    .masonry-item {
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 20px;
    }
    
  
}

/* 로딩 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.masonry-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* 스크롤바 스타일링 */
.masonry-container::-webkit-scrollbar {
    width: 8px;
}

.masonry-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.masonry-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.masonry-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}