@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap');

.gallery-section,
.gallery-etc-section{
    width:100%;
    padding:80px 0;
    background:#f7f9fc;
    box-sizing:border-box;
}

.gallery-section .container,
.gallery-etc-section .container{
    width:100%;
    max-width:1380px;
    margin:0 auto;
    padding:0 20px;
    box-sizing:border-box;
}

.gallery-section .section-title,
.gallery-etc-section .section-title{
    width:100%;
    margin:0 auto 42px;
    text-align:center;
}

.gallery-section .section-title span{
    display:inline-block;
    margin-bottom:8px;
    color:#073e88;
    font-family:'Poppins',sans-serif;
    font-size:14px;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
}

.gallery-section .section-title h2,
.gallery-etc-section .section-title h2{
    margin:0;
    color:#16223b;
    font-family:'Poppins',sans-serif;
    font-size:38px;
    font-weight:700;
    line-height:1.15;
}

.gallery-grid,
.gallery-meat-grid,
.gallery-etc-grid{
    width:100%;
    display:grid;
    gap:2px;
    background:#052d66;
    border:1px solid #052d66;
    border-radius:4px;
    overflow:hidden;
    box-shadow:0 14px 35px rgba(7,62,136,.11);
    box-sizing:border-box;
}

.gallery-grid{
    grid-template-columns:repeat(4,1fr);
}

.gallery-meat-grid,
.gallery-etc-grid{
    grid-template-columns:repeat(3,1fr);
}

.gallery-item,
.gallery-meat-item,
.gallery-etc-item{
    position:relative;
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    aspect-ratio:1 / .72;
    padding:10px;
    background:linear-gradient(145deg,#fff 0%,#f8fbff 100%);
    overflow:hidden;
    isolation:isolate;
}

.gallery-item::before,
.gallery-meat-item::before,
.gallery-etc-item::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        145deg,
        rgba(7,62,136,.035),
        transparent 55%
    );
    pointer-events:none;
    z-index:-1;
}

.gallery-item::after,
.gallery-meat-item::after,
.gallery-etc-item::after{
    content:"";
    position:absolute;
    width:110px;
    height:110px;
    right:-60px;
    top:-60px;
    border-radius:50%;
    background:rgba(7,62,136,.04);
    pointer-events:none;
    z-index:-1;
}

.gallery-item,
.gallery-etc-item{
    opacity:0;
    transform:translateY(18px);
    transition:
        opacity .4s ease,
        transform .4s ease,
        box-shadow .3s ease;
}

.gallery-meat-item{
    display:none;
    opacity:0;
    transform:translateY(18px);
    transition:
        opacity .4s ease,
        transform .4s ease,
        box-shadow .3s ease;
}

.gallery-item.show,
.gallery-etc-item.show{
    opacity:1;
    transform:translateY(0);
}

.gallery-meat-item.show{
    display:flex;
    opacity:1;
    transform:translateY(0);
}

.gallery-item:hover,
.gallery-meat-item:hover,
.gallery-etc-item:hover{
    z-index:2;
    box-shadow:inset 0 0 0 1px rgba(7,62,136,.13);
}

.gallery-item img,
.gallery-meat-item img,
.gallery-etc-item img{
    position:relative;
    width:auto;
    height:auto;
    max-width:82%;
    max-height:calc(100% - 34px);
    object-fit:contain;
    object-position:center;
    flex:1 1 auto;
    min-height:0;
    transform-origin:center;
    filter:drop-shadow(0 7px 10px rgba(7,62,136,.07));
    transition:
        transform .35s ease,
        filter .35s ease;
}

.gallery-item:hover img,
.gallery-meat-item:hover img,
.gallery-etc-item:hover img{
    transform:scale(1.035);
    filter:drop-shadow(0 10px 14px rgba(7,62,136,.12));
}

.gallery-item.idle img,
.gallery-meat-item.idle img,
.gallery-etc-item.idle img{
    animation:galleryIdle 3.8s ease-in-out infinite;
}

.gallery-item.idle:hover img,
.gallery-meat-item.idle:hover img,
.gallery-etc-item.idle:hover img{
    animation-play-state:paused;
}

@keyframes galleryIdle{
    0%,100%{
        transform:translateY(0) scale(1);
    }

    25%{
        transform:translateY(-2px) scale(1.012);
    }

    50%{
        transform:translateY(0) scale(1.018);
    }

    75%{
        transform:translateY(2px) scale(1.012);
    }
}

.gallery-image-name{
    width:100%;
    height:24px;
    margin-top:4px;
    padding:0 4px;
    box-sizing:border-box;
    color:#073e88;
    font-family:'Poppins',sans-serif;
    font-size:14px;
    font-weight:600;
    line-height:24px;
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    flex:0 0 24px;
}

.gallery-meat{
    width:100%;
}

.gallery-meat-section .section-title{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin:0 auto 42px;
    text-align:center;
}

.gallery-meat-section .section-title h1,
.gallery-meat-section .section-title h2,
.gallery-meat-section .section-title h3,
.gallery-meat-section .section-title p{
    width:100%;
    margin:0 auto;
    text-align:center;
}

.gallery-pagination,
.gallery-meat-pagination,
.gallery-etc-pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
    margin-top:35px;
}

.gallery-pagination button,
.gallery-meat-pagination button,
.gallery-etc-pagination button{
    border:1px solid rgba(255,255,255,.08);
    padding:10px 20px;
    border-radius:8px;
    background:linear-gradient(135deg,#073e88,#052d66);
    color:#fff;
    font-family:'Poppins',sans-serif;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 6px 16px rgba(7,62,136,.13);
    transition:
        background .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.gallery-meat-pagination button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
}

.gallery-pagination button:hover:not(:disabled),
.gallery-meat-pagination button:hover:not(:disabled),
.gallery-etc-pagination button:hover:not(:disabled){
    background:linear-gradient(135deg,#0a4ca5,#073e88);
    transform:translateY(-2px);
    box-shadow:0 9px 20px rgba(7,62,136,.19);
}

.gallery-pagination button:disabled,
.gallery-meat-pagination button:disabled,
.gallery-etc-pagination button:disabled{
    opacity:.4;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
}

#pageNumbers,
#pageNumbersMeat,
#pageNumbersEtc{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:7px;
}

#pageNumbers button,
#pageNumbersMeat button,
#pageNumbersEtc button{
    width:40px;
    height:40px;
    padding:0;
    border:1px solid #dce5f0;
    border-radius:50%;
    background:#fff;
    color:#073e88;
    font-family:'Poppins',sans-serif;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 4px 11px rgba(7,62,136,.06);
    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

#pageNumbers button:hover:not(.active),
#pageNumbersMeat button:hover:not(.active),
#pageNumbersEtc button:hover:not(.active){
    background:#edf4fc;
    color:#052d66;
    transform:translateY(-2px);
}

#pageNumbers button.active,
#pageNumbersMeat button.active,
#pageNumbersEtc button.active{
    border-color:#073e88;
    background:linear-gradient(135deg,#073e88,#052d66);
    color:#fff;
    box-shadow:0 6px 15px rgba(7,62,136,.17);
}

@media(max-width:1200px){
    .gallery-section,
    .gallery-etc-section{
        padding:70px 0;
    }

    .gallery-section .container,
    .gallery-etc-section .container{
        max-width:1100px;
    }

    .gallery-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .gallery-meat-grid,
    .gallery-etc-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .gallery-item,
    .gallery-meat-item,
    .gallery-etc-item{
        aspect-ratio:1 / .74;
    }
}

@media(max-width:991px){
    .gallery-section,
    .gallery-etc-section{
        padding:60px 0;
    }

    .gallery-section .container,
    .gallery-etc-section .container{
        max-width:850px;
    }

    .gallery-grid,
    .gallery-meat-grid,
    .gallery-etc-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .gallery-section .section-title,
    .gallery-etc-section .section-title{
        margin-bottom:32px;
    }

    .gallery-section .section-title h2,
    .gallery-etc-section .section-title h2{
        font-size:32px;
    }

    .gallery-meat-section .section-title{
        margin-bottom:32px;
    }

    .gallery-item,
    .gallery-meat-item,
    .gallery-etc-item{
        aspect-ratio:1 / .74;
        padding:8px;
    }

    .gallery-item img,
    .gallery-meat-item img,
    .gallery-etc-item img{
        max-width:80%;
        max-height:calc(100% - 30px);
    }

    .gallery-image-name{
        height:22px;
        margin-top:3px;
        font-size:13px;
        line-height:22px;
        flex-basis:22px;
    }

    .gallery-pagination,
    .gallery-meat-pagination,
    .gallery-etc-pagination{
        margin-top:28px;
    }
}

@media(max-width:576px){
    .gallery-section,
    .gallery-etc-section{
        padding:35px 0;
    }

    .gallery-section .container,
    .gallery-etc-section .container{
        padding:0 8px;
    }

    .gallery-grid,
    .gallery-meat-grid,
    .gallery-etc-grid{
        grid-template-columns:repeat(2,1fr);
        gap:1px;
        border:1px solid #052d66;
        border-radius:6px;
        box-shadow:0 6px 15px rgba(7,62,136,.07);
    }

    .gallery-section .section-title,
    .gallery-etc-section .section-title{
        margin-bottom:20px;
    }

    .gallery-section .section-title span{
        margin-bottom:5px;
        font-size:10px;
        letter-spacing:1.3px;
    }

    .gallery-section .section-title h2,
    .gallery-etc-section .section-title h2{
        font-size:24px;
    }

    .gallery-meat-section .section-title{
        margin-bottom:20px;
    }

    .gallery-item,
    .gallery-meat-item,
    .gallery-etc-item{
        aspect-ratio:1 / .72;
        padding:5px;
    }

    .gallery-item::after,
    .gallery-meat-item::after,
    .gallery-etc-item::after{
        width:60px;
        height:60px;
        right:-34px;
        top:-34px;
    }

    .gallery-item img,
    .gallery-meat-item img,
    .gallery-etc-item img{
        max-width:78%;
        max-height:calc(100% - 25px);
        filter:drop-shadow(0 4px 6px rgba(7,62,136,.055));
    }

    .gallery-item:hover img,
    .gallery-meat-item:hover img,
    .gallery-etc-item:hover img{
        transform:scale(1.015);
    }

    .gallery-image-name{
        height:18px;
        margin-top:2px;
        padding:0 2px;
        font-size:9px;
        line-height:18px;
        flex:0 0 18px;
        letter-spacing:0;
    }

    .gallery-pagination,
    .gallery-meat-pagination,
    .gallery-etc-pagination{
        margin-top:18px;
        gap:3px;
    }

    .gallery-pagination button,
    .gallery-meat-pagination button,
    .gallery-etc-pagination button{
        padding:6px 9px;
        border-radius:6px;
        font-size:9px;
        box-shadow:0 3px 8px rgba(7,62,136,.09);
    }

    .gallery-meat-pagination button{
        gap:5px;
    }

    #pageNumbers,
    #pageNumbersMeat,
    #pageNumbersEtc{
        gap:3px;
    }

    #pageNumbers button,
    #pageNumbersMeat button,
    #pageNumbersEtc button{
        width:29px;
        height:29px;
        font-size:9px;
        box-shadow:0 2px 6px rgba(7,62,136,.05);
    }
}

@media(max-width:360px){
    .gallery-section,
    .gallery-etc-section{
        padding:32px 0;
    }

    .gallery-section .container,
    .gallery-etc-section .container{
        padding:0 6px;
    }

    .gallery-grid,
    .gallery-meat-grid,
    .gallery-etc-grid{
        gap:1px;
        border-radius:5px;
    }

    .gallery-item,
    .gallery-meat-item,
    .gallery-etc-item{
        aspect-ratio:1 / .68;
        padding:4px;
    }

    .gallery-item img,
    .gallery-meat-item img,
    .gallery-etc-item img{
        max-width:76%;
        max-height:calc(100% - 22px);
    }

    .gallery-image-name{
        height:17px;
        margin-top:2px;
        font-size:8px;
        line-height:17px;
        flex-basis:17px;
    }

    .gallery-pagination,
    .gallery-meat-pagination,
    .gallery-etc-pagination{
        margin-top:15px;
        gap:2px;
    }

    .gallery-pagination button,
    .gallery-meat-pagination button,
    .gallery-etc-pagination button{
        padding:5px 8px;
        font-size:8px;
    }

    #pageNumbers,
    #pageNumbersMeat,
    #pageNumbersEtc{
        gap:2px;
    }

    #pageNumbers button,
    #pageNumbersMeat button,
    #pageNumbersEtc button{
        width:27px;
        height:27px;
        font-size:8px;
    }
}

@media(prefers-reduced-motion:reduce){
    .gallery-item,
    .gallery-meat-item,
    .gallery-etc-item{
        transition:none;
    }

    .gallery-item.idle img,
    .gallery-meat-item.idle img,
    .gallery-etc-item.idle img{
        animation:none;
    }
}