/* =========================
   GALERIA — STRONICOWANA
========================= */

.gallery-page{
    padding: 92px 0 105px;
    background:
        radial-gradient(circle at 50% 0%, rgba(8,112,90,.08), transparent 34%),
        linear-gradient(180deg, #f4f8f6 0%, #ffffff 30%, #ffffff 100%);
}

.gallery-page-head{
    max-width: 780px;
    margin: 0 auto 48px;
    text-align: center;
}

.gallery-page-kicker{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #08705a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.gallery-page-kicker::before{
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: #ff6426;
}

.gallery-page-title{
    margin-bottom: 14px;
    color: #032b23;
    font-size: clamp(42px, 6vw, 72px);
    line-height: .98;
    letter-spacing: -.055em;
}

.gallery-page-subtitle{
    color: #687872;
    font-size: 17px;
    line-height: 1.7;
}

.gallery-counter{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 9px 14px;
    border: 1px solid rgba(6,61,49,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    color: #21453a;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(6,61,49,.06);
}

.gallery-counter span{
    color: #87958f;
}

/* GRID */

.gallery-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* TILE */

.gallery-tile{
    position: relative;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(6,61,49,.08);
    border-radius: 22px;
    background: #dce7e3;
    cursor: pointer;
    box-shadow: 0 14px 38px rgba(5,43,34,.09);
    transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-tile:hover{
    transform: translateY(-7px);
    box-shadow: 0 25px 58px rgba(5,43,34,.16);
}

.gallery-tile-image-wrap{
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-tile img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .55s ease;
}

.gallery-tile:hover img{
    transform: scale(1.07);
}

/* OVERLAY */

.gallery-tile-overlay{
    position: absolute;
    inset: auto 0 0;
    padding: 65px 20px 20px;
    color: #ffffff;
    background: linear-gradient(to top, rgba(3,25,20,.9), rgba(3,25,20,.48) 54%, transparent);
}

.gallery-tile-badge{
    display: inline-flex;
    min-height: 25px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
    border-radius: 999px;
    background: #ff6426;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gallery-tile-title{
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.gallery-tile-date{
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.66);
    font-size: 11px;
}

/* PAGINATION */

.gallery-pagination{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    padding: 17px;
    border: 1px solid rgba(6,61,49,.09);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(5,43,34,.07);
}

.gallery-pagination-arrow{
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border-radius: 11px;
    color: #075442;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}

.gallery-pagination-arrow:last-child{
    justify-self: end;
}

.gallery-pagination-arrow:hover{
    color: #ffffff;
    background: #075442;
}

.gallery-pagination-arrow.disabled{
    color: #b6c0bd;
    cursor: default;
}

.gallery-pagination-pages{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.gallery-pagination-pages a,
.gallery-pagination-pages span:not(.gallery-pagination-dots){
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #274a40;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.gallery-pagination-pages a:hover{
    background: #e8f2ef;
}

.gallery-pagination-pages .active{
    color: #ffffff;
    background: #075442;
    box-shadow: 0 10px 22px rgba(7,84,66,.2);
}

.gallery-pagination-dots{
    padding: 0 4px;
    color: #8a9793;
}

/* CTA */

.gallery-page-cta{
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.gallery-page-link{
    display: inline-flex;
    min-height: 48px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #075442;
    background: #e8f2ef;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}

.gallery-page-link:hover{
    color: #ffffff;
    background: #075442;
    transform: translateY(-2px);
}

/* EMPTY */

.gallery-empty{
    padding: 45px 20px;
    border: 1px dashed rgba(6,61,49,.18);
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
}

/* LIGHTBOX */

.gallery-lightbox{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2,9,12,.94);
    backdrop-filter: blur(8px);
}

.gallery-lightbox.open{
    display: flex;
}

.gallery-lightbox-content{
    max-width: min(1180px, 92vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-lightbox img{
    max-width: 100%;
    max-height: 78vh;
    display: block;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.gallery-lightbox-caption{
    min-height: 20px;
    margin-top: 14px;
    color: rgba(255,255,255,.86);
    font-size: 14px;
    text-align: center;
}

.gallery-lightbox-close,
.gallery-lightbox-arrow{
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255,255,255,.09);
    cursor: pointer;
    transition: .2s ease;
}

.gallery-lightbox-close{
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    font-size: 24px;
}

.gallery-lightbox-arrow{
    position: absolute;
    top: 50%;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    font-size: 29px;
}

.gallery-lightbox-arrow.left{ left: 20px; }
.gallery-lightbox-arrow.right{ right: 20px; }

.gallery-lightbox-close:hover,
.gallery-lightbox-arrow:hover{
    border-color: #ff6426;
    background: #ff6426;
}

.gallery-lightbox-arrow:hover{
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 960px){
    .gallery-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-pagination{
        grid-template-columns: 1fr 1fr;
    }

    .gallery-pagination-pages{
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .gallery-pagination-arrow{
        grid-row: 2;
    }
}

@media (max-width: 620px){
    .gallery-page{
        padding: 72px 0 82px;
    }

    .gallery-grid{
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .gallery-page-head{
        margin-bottom: 32px;
    }

    .gallery-tile{
        border-radius: 18px;
    }

    .gallery-pagination{
        gap: 12px;
        padding: 12px;
    }

    .gallery-pagination-arrow{
        padding: 0 10px;
        font-size: 12px;
    }

    .gallery-pagination-pages a,
    .gallery-pagination-pages span:not(.gallery-pagination-dots){
        width: 34px;
        height: 34px;
    }

    .gallery-lightbox-arrow{
        width: 44px;
        height: 44px;
        font-size: 23px;
    }

    .gallery-lightbox-arrow.left{ left: 8px; }
    .gallery-lightbox-arrow.right{ right: 8px; }
}
