/* Daeppang Gallery 스타일 */

.dp-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dp-gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.dp-gallery-header h1 {
    font-size: 48px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

/* 갤러리 그리드 */
.dp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* 카드 wrapper - 로고와 매장명을 위한 컨테이너 */
.dp-store-card-wrapper {
    position: relative;
    cursor: pointer;
    padding-top: 50px; /* 로고와 매장명을 위한 공간 */
}

.dp-store-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
    background: #fff;
}

.dp-store-card-wrapper:hover .dp-store-card {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.dp-store-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 로고 - 카드 왼쪽 위에서 튀어나오기 */
.dp-store-logo {
    position: absolute;
    top: 15px; /* wrapper 기준 */
    right: 15px;
    width: 120px;
    height: 90px;
     
    padding: 5px;
    z-index: 3;
     
     
}

/* 매장명 - 로고 옆에 배치 */
.dp-store-location {
    position: absolute;
    top: 10px; /* wrapper 기준 */
    left: 0;
    right: 0;
    color: black;
    padding: 8px 15px 8px 15px; /* 로고 공간 확보 */
    font-size:20px;
    font-weight: 700;
    z-index: 2;
      
     line-height: 1.2;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.dp-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.dp-load-more-btn {
    background: white;
    color: #333;
    border: 4px solid #333;
    border-radius: 50px;
    padding: 15px 60px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dp-load-more-btn:hover {
    background: #333;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dp-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 팝업 (라이트박스) */
.dp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2147483647;
    justify-content: center;
    align-items: center;
    animation: dpFadeIn 0.3s ease;
}

.dp-popup-overlay.active {
    display: flex;
}

@keyframes dpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dp-popup-content {
    background: #FFD700;
    border-radius: 30px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: dpSlideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: 60vh;
}

/* 커스텀 스크롤바 - Webkit (Chrome, Safari, Edge) */
.dp-popup-content::-webkit-scrollbar {
    width: 12px;
}

.dp-popup-content::-webkit-scrollbar-track {
    background: rgba(51, 51, 51, 0.1);
    border-radius: 10px;
    margin: 10px 0;
}

.dp-popup-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
    border: 2px solid #FFD700;
    transition: background 0.3s ease;
}

.dp-popup-content::-webkit-scrollbar-thumb:hover {
    background: #FF6B35;
}

/* 커스텀 스크롤바 - Firefox */
.dp-popup-content {
    scrollbar-width: thin;
    scrollbar-color: #333 rgba(51, 51, 51, 0.1);
}

@keyframes dpSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dp-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #333;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
    line-height: 1;
}

.dp-popup-close:hover {
    background: #333;
    color: white;
    transform: rotate(90deg);
}

.dp-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.dp-popup-title {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
	text-align:left;
}

.dp-popup-contacts {
    text-align:left; 
    padding: 15px 0px;
    border-radius: 15px;
    margin-bottom: 20px;
     
}

.dp-popup-contact {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 5px 0;
}

.dp-popup-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.dp-popup-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dp-popup-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 4px solid #333;
}

.dp-popup-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 캐릭터 아이콘 */
.dp-popup-character {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 200px;
    height: 150px;
    
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

/* 모바일 반응형 */
@media (max-width: 1200px) {
    .dp-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dp-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .dp-store-card-wrapper {
        padding-top: 40px;
    }

    .dp-store-logo {
        width: 60px;
        height: 60px;
        top: 15px;
        left: 10px;
    }

    .dp-store-location {
        font-size: 14px;
        padding: 6px 10px 6px 80px;
        min-height: 32px;
        top: 8px;
    }

    .dp-popup-content {
        padding: 30px 20px;
    }

    .dp-popup-title {
        font-size: 24px;
    }

    .dp-popup-character {
        width: 70px;
        height: 70px;
        font-size: 35px;
        right: 20px;
    }

    .dp-gallery-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .dp-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .dp-store-card-wrapper {
        padding-top: 35px;
    }
    
    .dp-store-logo {
        width: 50px;
        height: 50px;
        top: 12px;
        left: 8px;
    }
    
    .dp-store-location {
        font-size: 12px;
        padding: 5px 8px 5px 65px;
        min-height: 28px;
        top: 6px;
    }
}

/* 로딩 상태 */
.dp-loading {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #333;
    font-weight: 700;
}
