/* ====== GALLERY PAGE HERO ====== */
.gallery-page-hero {
    background: linear-gradient(-45deg, #0e3722, #1b4332, #2d6a4f, #1b4332);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

@keyframes gradientShift {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

.gallery-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(100, 232, 166, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(100, 232, 166, 0.05) 0%, transparent 40%);
    z-index: 1;
}

.gallery-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66 3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-45c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm10-44c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm58 88c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-28-45c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm54-70c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2364e8a6' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.gal-hero-inner {
    position: relative;
    z-index: 2;
}

.gal-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #c8f7e1;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.gallery-page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 14px;
    line-height: 1.1;
}

.gallery-page-hero h1 span {
    color: #64e8a6;
}

.gallery-page-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

.gal-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.gal-hero-stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: #64e8a6;
    line-height: 1;
}

.gal-hero-stat span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

/* ====== CATEGORY SHOWCASE ====== */
.gal-categories-section {
    padding: 50px 0 25px;
    background: var(--bg-primary);
}

.gal-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    margin-top: 25px;
}

.gal-cat-card {
    background: linear-gradient(180deg, #fff 0%, rgba(var(--cat-rgb, 45,106,79), 0.07) 100%);
    border: 1.5px solid rgba(var(--cat-rgb, 45,106,79), 0.22);
    border-radius: 20px;
    padding: 28px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(.4, 0, .2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    box-shadow: 0 4px 16px -6px rgba(var(--cat-rgb, 45,106,79), 0.18),
                inset 0 -4px 0 rgba(var(--cat-rgb, 45,106,79), 0.10);
}

body.dark-mode .gal-cat-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(var(--cat-rgb, 45,106,79), 0.10) 100%);
    border-color: rgba(var(--cat-rgb, 45,106,79), 0.28);
    box-shadow: 0 4px 16px -6px rgba(var(--cat-rgb, 45,106,79), 0.25),
                inset 0 -4px 0 rgba(var(--cat-rgb, 45,106,79), 0.15);
}

.gal-cat-card:hover,
.gal-cat-card.active {
    background: linear-gradient(135deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 60%, #000));
    border-color: var(--cat-color);
    transform: translateY(-7px) scale(1.03);
    box-shadow:
        0 18px 38px -10px rgba(var(--cat-rgb), 0.45),
        inset 0 -4px 0 rgba(0,0,0,0.12);
    color: white;
}

.gal-cat-card:hover .gal-cat-icon,
.gal-cat-card.active .gal-cat-icon {
    background: rgba(255, 255, 255, 0.22);
    color: white;
    transform: scale(1.12) rotate(5deg);
}

.gal-cat-card:hover .gal-cat-name,
.gal-cat-card.active .gal-cat-name {
    color: white;
}

.gal-cat-card:hover .gal-cat-count,
.gal-cat-card.active .gal-cat-count {
    background: rgba(255, 255, 255, 0.22);
    color: white;
    border-color: transparent;
}

body.dark-mode .gal-cat-card {
    background: linear-gradient(160deg, rgba(30,30,40,0.9) 0%, rgba(var(--cat-rgb), 0.10) 100%);
    border-color: rgba(var(--cat-rgb), 0.28);
}

body.dark-mode .gal-cat-card:hover,
body.dark-mode .gal-cat-card.active {
    background: linear-gradient(135deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 60%, #000));
    box-shadow: 0 16px 36px -10px rgba(var(--cat-rgb), 0.50), inset 0 -4px 0 rgba(0,0,0,0.2);
}

/* Legacy overrides no longer needed — class .gal-cat-all uses inline --cat-color now */
.gal-cat-all {
    /* kept for specificity; actual colors come from inline --cat-color var */
}

.gal-cat-icon i {
    width: 24px;
    height: 24px;
}

/* ====== FILTER BAR ====== */
.gal-filter-bar {
    position: sticky;
    top: 60px; /* Adjust based on your header height */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 18px 0;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

body.dark-mode .gal-filter-bar {
    background: rgba(18, 18, 18, 0.82);
    border-color: rgba(255, 255, 255, 0.05);
}

.gal-filter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.gal-filter-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
    flex-grow: 1;
}

.gal-filter-pills::-webkit-scrollbar {
    display: none;
}

.gal-pill {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gal-pill:hover,
.gal-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.gal-pill i {
    width: 14px;
    height: 14px;
}

/* ====== SORT BAR ====== */
.gal-sort-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gal-sort-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gal-sort-pill {
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gal-sort-pill i {
    width: 13px;
    height: 13px;
}

.gal-sort-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.gal-sort-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
}

body.dark-mode .gal-sort-pill.active {
    box-shadow: 0 4px 12px rgba(100, 232, 166, 0.2);
}

.gal-search-wrap {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.gal-search-input {
    width: 100%;
    padding: 10px 35px 10px 40px;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s;
    outline: none;
}

.gal-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

body.dark-mode .gal-search-input:focus {
    box-shadow: 0 0 0 3px rgba(100, 232, 166, 0.15);
}

.gal-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.gal-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gal-search-clear:hover {
    color: var(--error-color, #e63946);
}

.gal-count-wrap {
    width: 100%;
}

.gal-count-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.gal-count-label strong {
    color: var(--text-primary);
    font-weight: 800;
}

/* ====== MASONRY GRID ====== */
.gal-section {
    padding: 50px 0 80px;
    background: var(--bg-primary);
}

.gal-grid {
    columns: 4 280px;
    column-gap: 18px;
}

.gal-item {
    break-inside: avoid;
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.gal-item i {
    stroke-width: 2px;
}

.gal-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gal-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(45, 106, 79, 0.25);
    z-index: 10;
    border-color: var(--primary-color);
}

.gal-item:hover img {
    transform: scale(1.1);
}

.gal-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gal-item:hover .gal-item-overlay {
    opacity: 1;
}

.gal-item-cat-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 50px;
    align-self: flex-start;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gal-item-caption {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.gal-item-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.3s;
}

.gal-item:hover .gal-item-zoom {
    opacity: 1;
    transform: scale(1);
}

/* ====== SKELETON ====== */
.gal-skel {
    border-radius: 16px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimGal 1.5s infinite;
    break-inside: avoid;
    margin-bottom: 18px;
}

@keyframes shimGal {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

/* ====== LIGHTBOX ====== */
.gal-lb {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.gal-lb.open {
    display: flex;
    animation: lbFadeIn 0.3s ease;
}

@keyframes lbFadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.gal-lb-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gal-lb img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.gal-lb-meta {
    margin-top: 20px;
    text-align: center;
    color: white;
    max-width: 600px;
}

.gal-lb-caption-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

.gal-lb-caption-text strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #64e8a6;
}

.gal-lb-close {
    position: fixed;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.gal-lb-close:hover {
    background: #e63946;
    border-color: #e63946;
    transform: rotate(90deg);
}

.gal-lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gal-lb-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(100, 232, 166, 0.3);
}

.gal-lb-prev {
    left: 30px;
}

.gal-lb-next {
    right: 30px;
}

.gal-lb-counter {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 700;
}

@media(max-width:1200px) {
    .gal-grid {
        columns: 3 300px;
    }
}

@media(max-width:900px) {
    .gal-grid {
        columns: 2 300px;
    }
}

@media(max-width:768px) {
    .gal-filter-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .gal-sort-bar {
        margin-top: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .gal-sort-pills {
        margin-top: 5px;
    }

    .gal-search-wrap {
        max-width: 100%;
        order: -1;
        /* Move search above pills on mobile */
    }

    .gal-lb-nav {
        width: 50px;
        height: 50px;
    }

    .gal-lb-prev {
        left: 5px;
    }

    .gal-lb-next {
        right: 5px;
    }
}

@media(max-width:600px) {
    .gal-grid {
        columns: 2 160px;
        column-gap: 12px;
    }

    .gal-item {
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .gal-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* .gal-lb-nav is now visible on mobile */
    .gal-lb-nav {
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.3);
        z-index: 10001; /* Ensure it's above the image */
        display: flex; /* Ensure display is flex, overriding any potential issues */
    }

    .gallery-page-hero h1 {
        font-size: 2.2rem;
    }

    .gal-pill {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

@media(max-width: 480px) {
    .gal-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gal-grid {
        columns: 1;
        column-gap: 0;
    }

    .gal-filter-pills {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* ── Centered Premium 3D Pagination ───────────────────────── */
#pagination-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
    margin-bottom: 2rem;
}

.pagination-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: var(--bg-card, #fff);
    border: 1.5px solid var(--border-color, #e5e7eb);
    border-radius: 20px;
    box-shadow: 0 4px 20px -6px rgba(0,0,0,0.08),
                inset 0 -4px 0 rgba(0,0,0,0.05);
    max-width: 100%;
}

.pagination-info {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary, #888);
    letter-spacing: 0.03em;
    margin: 0;
}

.pagination-info strong {
    color: var(--primary-color, #2d6a4f);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Pagination buttons */
.p-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1.5px solid var(--border-color, #e5e7eb);
    background: var(--bg-card, #fff);
    color: var(--text-primary, #1a1a1a);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    box-shadow: 0 2px 8px -2px rgba(0,0,0,0.07),
                inset 0 -3px 0 rgba(0,0,0,0.07);
    text-decoration: none;
    user-select: none;
}

.p-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.p-btn:hover:not([disabled]) {
    background: linear-gradient(135deg, var(--primary-color, #2d6a4f) 0%, #1a4535 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 24px -6px rgba(45, 106, 79, 0.42),
                0 4px 8px -2px rgba(45, 106, 79, 0.28),
                inset 0 -3px 0 rgba(0,0,0,0.15);
}

/* Active Page */
.p-btn.active {
    background: linear-gradient(135deg, var(--primary-color, #2d6a4f) 0%, #1a4535 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px -4px rgba(45, 106, 79, 0.48),
                inset 0 -4px 0 rgba(0,0,0,0.18);
    transform: translateY(-1px);
    pointer-events: none;
    cursor: default;
}

/* Prev / Next pills */
.p-btn.p-nav {
    min-width: 90px;
    padding: 0 16px;
    gap: 6px;
    font-size: 0.85rem;
    border-radius: 50px;
    color: var(--primary-color, #2d6a4f);
    border: 1.5px solid rgba(45, 106, 79, 0.3);
    box-shadow: 0 3px 10px -3px rgba(45, 106, 79, 0.15),
                inset 0 -3px 0 rgba(45, 106, 79, 0.1);
}

.p-btn.p-nav:hover:not([disabled]) {
    background: linear-gradient(135deg, var(--primary-color, #2d6a4f) 0%, #1a4535 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 28px -8px rgba(45, 106, 79, 0.45),
                inset 0 -4px 0 rgba(0,0,0,0.18);
}

.p-btn[disabled] {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.p-dots {
    min-width: 36px;
    height: 44px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    color: var(--text-secondary, #888);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    user-select: none;
}

/* Dark mode pagination */
body.dark-mode .pagination-wrapper {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .p-btn {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: #e5e7eb;
}

body.dark-mode .p-btn.p-nav {
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

body.dark-mode .p-btn:hover:not([disabled]),
body.dark-mode .p-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 24px -6px rgba(16, 185, 129, 0.5),
                inset 0 -3px 0 rgba(0,0,0,0.2);
}

@media(max-width: 600px) {
    #pagination-container {
        padding: 0 12px;
    }
    .p-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.82rem;
        border-radius: 10px;
    }
    .p-btn.p-nav {
        min-width: auto;
        padding: 0 10px;
        font-size: 0.78rem;
        border-radius: 50px;
    }
    .pagination-wrapper {
        padding: 14px 12px;
        border-radius: 16px;
        width: 100%;
    }
    .pagination-info {
        font-size: 0.78rem;
    }
}