/* ===============================================
   START : KMC-SHARP IMAGE GALLERY STYLES
============================================ */

.kmcsharp-gallery {
    background: #FFF3E0;
    padding: 40px 20px;
}

.kmcsharp-gallery-inner {
    max-width: 1200px;
    margin: auto;
}

.kmcsharp-gallery-title {
    font-size: 20px;
    color: #BF360C;
    border-bottom: 2px solid #E65100;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.kmcsharp-gallery-desc {
    font-size: 14px;
    color: #5D4037;
    margin-bottom: 20px;
}

/* Gallery Grid */
.kmcsharp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

/* Gallery Item */
.kmcsharp-gallery-item {
    background: #ffffff;
    border: 1px solid #FDC591;
    padding: 6px;
    transition: 0.3s ease;
}

.kmcsharp-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.kmcsharp-gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border: 1px solid #E65100;
}

/* Caption */
.kmcsharp-gallery-caption {
    padding: 6px 4px;
    text-align: left;
}

.gallery-title {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #BF360C;
}

.gallery-date {
    display: block;
    font-size: 12px;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {
    .kmcsharp-gallery-item img {
        height: 240px;
    }
}

/* ============================================
   END : KMC-SHARP IMAGE GALLERY STYLES
================================================ */




/* ===============================
   FRONTEND GALLERY PAGINATION
================================ */

#kmcGalleryPagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0 60px 0;
    flex-wrap: wrap;
}

/* Common pagination buttons */
#kmcGalleryPagination span {
    padding: 8px 14px;
    border: 1px solid #E65100;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s ease;
    background: #ffffff;
    color: #BF360C;
}

/* Hover */
#kmcGalleryPagination span:hover {
    background: #E65100;
    color: #ffffff;
}

/* Active page */
#kmcGalleryPagination span.active {
    background: #BF360C;
    color: #ffffff;
    font-weight: 600;
}

/* Disabled button */
#kmcGalleryPagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #FDC591;
    color: #999;
}




/* HEADER */
.gallery-header {
    text-align: center;
    padding: 30px 10px;
}

.gallery-header h2 {
    font-size: 28px;
    color: #BF360C;
}

.gallery-header p {
    color: #666;
}

/* GRID */
.gallery-container {
    width: 90%;
    margin: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* CARD */
.gallery-card {
    border: 1px solid #E0B07A;
    background: #ffffff;
    transition: 0.3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.gallery-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #FDC591;
}

.gallery-info {
    padding: 10px;
    text-align: center;
    background: #FFF8F0;
}

/* PAGINATION */

.gallery-pagination {
    text-align: center;
    margin: 30px 0;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #E65100;
    color: #BF360C;
    margin: 3px;
    text-decoration: none;
    background: #ffffff;
    transition: 0.3s;
}

.page-btn:hover {
    background: #E65100;
    color: #ffffff;
}

.page-active {
    padding: 6px 12px;
    background: #BF360C;
    color: #ffffff;
    border: 1px solid #BF360C;
}