/*==================================================
GALLERY
==================================================*/

.gallery-home-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:14px;
}

.gallery-home-card{
    display:block;
    background:#0E2436;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    overflow:hidden;
    transition:.25s;
}

.gallery-home-card:hover{
    transform:translateY(-5px);
    border-color:#C78C32;
}

.gallery-home-thumb{
    aspect-ratio:4/3;
    overflow:hidden;
    background:#10293E;
}

.gallery-home-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.gallery-home-thumb-video{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg, #0d2340, #16324a);
    color:#C78C32;
    font-size:2.2rem;
}

.gallery-home-info{
    padding:10px 12px 12px;
}

.gallery-home-title{
    font-size:.92rem;
    font-weight:700;
    color:#fff;
}

.gallery-home-count{
    margin-top:4px;
    color:#B7C4D1;
    font-size:.8rem;
}

.gallery-empty{
    color:#B7C4D1;
    text-align:center;
    padding:16px;
}

.gallery-page{
    min-height:100vh;
    background:#071826;
    color:#fff;
}

.gallery-page-main{
    padding:110px 0 70px;
}

.gallery-page-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:24px;
}

.gallery-page-title{
    font-size:2rem;
}

.gallery-back-link{
    background:#C78C32;
    color:#071826;
    font-weight:700;
    border-radius:999px;
    padding:10px 18px;
}

.gallery-filter-panel{
    background:#0E2436;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:18px;
    margin-bottom:24px;
}

.gallery-filter-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
}

.gallery-filter-grid input,
.gallery-filter-grid select{
    width:100%;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.14);
    background:#081a2a;
    color:#fff;
    padding:11px 12px;
}

.gallery-filter-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-top:16px;
}

.gallery-filter-summary{
    color:#B7C4D1;
    margin:0;
}

.gallery-filter-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.gallery-filter-reset{
    border:none;
    border-radius:999px;
    padding:10px 16px;
    background:#C78C32;
    color:#071826;
    font-weight:700;
    cursor:pointer;
}

.gallery-detail-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:20px;
}

.gallery-detail-card{
    background:#0E2436;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    overflow:hidden;
}

.gallery-detail-image{
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    display:block;
    cursor:zoom-in;
}

.gallery-video-card{
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg, #0d2340, #16324a);
    cursor:pointer;
    text-decoration:none;
}

.gallery-video-play{
    display:flex;
    align-items:center;
    justify-content:center;
    width:64px;
    height:64px;
    border-radius:50%;
    background:rgba(199,140,50,.9);
    color:#0d2340;
    font-size:1.6rem;
}

.gallery-detail-caption{
    padding:12px 14px 14px;
    color:#D3DEE9;
}

.gallery-detail-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:0 14px 14px;
}

.gallery-detail-chip{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    background:rgba(199,140,50,.16);
    border:1px solid rgba(199,140,50,.36);
    color:#F5D89B;
    font-size:.78rem;
    padding:5px 10px;
}

.gallery-lightbox{
    position:fixed;
    inset:0;
    background:rgba(3,10,18,.9);
    z-index:3000;
    display:none;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    padding:20px;
}

.gallery-lightbox.is-open{
    display:flex;
}

.gallery-lightbox-image{
    max-width:min(1200px, 94vw);
    max-height:82vh;
    width:auto;
    height:auto;
    object-fit:contain;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.2);
    background:#071826;
}

.gallery-lightbox-caption{
    margin-top:10px;
    color:#E1E8EF;
    text-align:center;
    max-width:92vw;
}

.gallery-lightbox-close{
    position:absolute;
    top:14px;
    right:18px;
    border:none;
    background:transparent;
    color:#fff;
    font-size:2rem;
    line-height:1;
    cursor:pointer;
}

.gallery-lightbox-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    border:none;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:2.2rem;
    line-height:1;
    width:48px;
    height:48px;
    border-radius:50%;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.gallery-lightbox-nav:hover{
    background:rgba(255,255,255,.18);
}

.gallery-lightbox-prev{
    left:14px;
}

.gallery-lightbox-next{
    right:14px;
}

@media(max-width:680px){
    .gallery-lightbox-nav{
        width:38px;
        height:38px;
        font-size:1.8rem;
    }
    .gallery-lightbox-prev{
        left:6px;
    }
    .gallery-lightbox-next{
        right:6px;
    }
}

.gallery-lightbox-actions{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:16px;
}

.gallery-action-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:9px 16px;
    border-radius:999px;
    font-weight:700;
    font-size:.85rem;
    color:#fff;
    text-decoration:none;
    border:none;
    cursor:pointer;
    transition:transform .2s ease, filter .2s ease;
}

.gallery-action-btn:hover{
    transform:translateY(-2px);
    filter:brightness(1.1);
}

.gallery-action-download{ background:#C78C32; }
.gallery-action-share{ background:#2D4861; }

@media(max-width:768px){
    .gallery-page-main{
        padding:94px 0 56px;
    }

    .gallery-page-title{
        font-size:1.5rem;
    }

    .gallery-home-grid{
        grid-template-columns:repeat(4, minmax(0, 1fr));
        gap:8px;
    }

    .gallery-home-card{
        border-radius:10px;
    }

    .gallery-home-thumb{
        aspect-ratio:1/1;
    }

    .gallery-home-info{
        padding:6px 6px 7px;
    }

    .gallery-home-title{
        font-size:.7rem;
        line-height:1.2;
    }

    .gallery-home-count{
        font-size:.64rem;
        margin-top:2px;
    }

    .gallery-detail-grid{
        grid-template-columns:1fr;
    }

    .gallery-filter-grid{
        grid-template-columns:1fr;
    }

    .gallery-filter-actions{
        flex-direction:column;
        align-items:flex-start;
    }

    .gallery-filter-buttons{
        width:100%;
        flex-direction:column;
    }
}
