
.image-gallery-all {
    font-family: 'Arial', sans-serif;
    background: rgba(159, 94, 94, 0.5);
    min-height: 100%;
    border: 2px solid #542525;
    min-width: 98%;
    border-radius: 15px;
    padding: 20px 0;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.image-gallery-all .container {
    max-width: 1200px;
    padding: 0 20px;
    margin-left: -10px;
    margin-right: -10px;
}

.image-gallery-all header {
    text-align: center;
    margin-bottom: 20px;
    color: rgb(1, 81, 37);
}

.image-gallery-all .text-img-gallery {
    color: rgb(9, 197, 169);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.image-gallery-all .subtitle {
    color: #ddd;
}

.gallery-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(159, 94, 94, 0.3);
    background: rgb(1, 104, 9);
}

.gallery {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 400px;
    margin-left: -15px;
    margin-right: -15px;
    margin-top: -15px;
    margin-bottom: -15px;
    border-radius: 15px;
}

.gallery-item {
    flex: 0 0 100%;
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(182, 191, 184, 0.5);
    color: #ee0505;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-btn:hover {
    background: rgb(41, 173, 116);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-btn.prev {
    left: 20px;
}

.nav-btn.next {
    right: 20px;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    background: rgba(2, 81, 23, 0.95);
}

.indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.indicator:hover {
    background: #999;
    transform: scale(1.2);
}

.indicator.active {
    background: #667eea;
    transform: scale(1.3);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Responsive Design */
/* 📊 TABLET - 575px ឡើងទៅ */
@media (min-width: 575px) {

    .image-gallery-all .text-img-gallery {
        font-size: 35px;
    }
    
    .image-gallery-all .subtitle {
        font-size: 20px;
    }
    
    .gallery {
        height: 400px;
    }
    
    .gallery-item {
        padding: 15px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .nav-btn.prev {
        left: 10px;
    }
    
    .nav-btn.next {
        right: 10px;
    }
    
    .indicator {
        width: 14px;
        height: 14px;
    }
}

/* 📱 PHONE - ទូរស័ព្ទតូចៗ (រហូតដល់ 574px) */
@media (max-width: 574px) {

    .image-gallery-all .text-img-gallery {
        font-size: 20px;
    }
    .image-gallery-all .subtitle {
        font-size: 13px;
    }
    
    .gallery {
        height: 280px;
    }
    
    .gallery-item {
        padding: 10px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
     .nav-btn.prev {
        left: 5px;
    }
    
    .nav-btn.next {
        right: 5px;
    }
    
    .gallery-indicators {
        gap: 8px;
        padding: 20px 0;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
}

/* Loading animation */
.gallery-item img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-btn:focus,
.indicator:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}