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

.gallery-page{

    position: relative;

    padding: 30px 0 120px;

    overflow: hidden;

}

/*==================================================
BACKGROUND EFFECT
==================================================*/

.gallery-page::before{

    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    top: -220px;
    left: -260px;

    border-radius: 50%;

    background: rgba(140,184,204,.08);

    filter: blur(150px);

    pointer-events: none;

}

.gallery-page::after{

    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    bottom: -260px;
    right: -220px;

    border-radius: 50%;

    background: rgba(98,182,154,.08);

    filter: blur(150px);

    pointer-events: none;

}

.gallery-page .container{

    position: relative;

    z-index: 2;

}

/*==================================================
HERO
==================================================*/

.gallery-hero{

    position: relative;

    padding: 90px 0 55px;

    text-align: center;

}

.gallery-hero .container{

    position: relative;

    z-index: 2;

}

.gallery-hero span{

    display: inline-block;

    color: var(--accent);

    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 12px;

}

.gallery-hero h1{

    font-size: 60px;

    font-family: var(--heading);

    margin-bottom: 20px;

    line-height: 1.15;

}

.gallery-hero h1::after{

    content: "";

    display: block;

    width: 90px;

    height: 4px;

    margin: 22px auto 0;

    border-radius: 50px;

    background: linear-gradient(
        90deg,
        var(--accent),
        var(--accent2)
    );

}

.gallery-hero p{

    max-width: 760px;

    margin: auto;

    color: var(--text2);

    line-height: 1.9;

}

/*==================================================
BACK BUTTON
==================================================*/

.back-home{

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 45px;

    text-decoration: none;

    color: var(--accent);

    font-weight: 600;

    transition: .35s;

}

.back-home:hover{

    transform: translateX(-6px);

    color: #fff;

}

/*==================================================
FILTER
==================================================*/

.gallery-filter{

    padding-bottom: 60px;

}

.filter-wrapper{

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 18px;

}

/*==================================================
FILTER BUTTON
==================================================*/

.filter-btn{

    min-width: 120px;

    padding: 13px 22px;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 999px;

    background: rgba(255,255,255,.04);

    color: var(--text);

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    transition: .35s;

}

.filter-btn:hover{

    transform: translateY(-4px);

    border-color: var(--accent);

}

.filter-btn.active{

    color: #fff;

    border-color: transparent;

    background: linear-gradient(

        135deg,

        var(--accent),

        var(--accent2)

    );

    box-shadow:

        0 15px 35px rgba(0,0,0,.30),

        0 0 25px rgba(79,209,197,.30);

}

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

.gallery-page .gallery-filter {
    display: block;

    margin: 0;
    padding: 0 0 60px;
}

.gallery-page .gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 32px;

    margin-top: 30px;
}
/*==================================================
GALLERY CARD
==================================================*/

.gallery-card{

    opacity:1;

    transform:scale(1);

    position:relative;

    overflow:hidden;

    border-radius:22px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    cursor:pointer;

    transition:

        transform .45s ease,

        opacity .35s,

        border-color .45s ease,

        box-shadow .45s ease;

}

.gallery-card::before{

    content:"";

    position:absolute;

    top:-120%;

    left:-40%;

    width:40%;

    height:250%;

    background:

        rgba(255,255,255,.15);

    transform:rotate(25deg);

    transition:1s;

    z-index:2;

}

.gallery-card:hover::before{

    left:130%;

}

/* Glow saat hover */

.gallery-card:hover{

    transform:translateY(-10px);

    border-color:rgba(79,209,197,.55);

    box-shadow:

        0 25px 60px rgba(0,0,0,.35),

        0 0 25px rgba(79,209,197,.18);

}

/*==================================================
IMAGE
==================================================*/

.gallery-card img{

    width:100%;

    height:300px;

    display:block;

    object-fit:cover;

    transition:

        transform .8s ease,

        filter .6s ease;

}

.gallery-card:hover img{

    transform:scale(1.08);

    filter:brightness(.95);

}

/*==================================================
OVERLAY
==================================================*/

.gallery-overlay{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:30px;

    background:

    linear-gradient(

        transparent 25%,

        rgba(5,15,25,.92)

    );

    opacity:0;

    transition:.45s ease;

}

.gallery-card:hover .gallery-overlay{

    opacity:1;

}

.gallery-overlay span{

    width:max-content;

    padding:7px 16px;

    border-radius:999px;

    background:linear-gradient(

        135deg,

        var(--accent),

        var(--accent2)

    );

    color:#fff;

    font-size:13px;

    font-weight:600;

    margin-bottom:15px;

    transform:translateY(25px);

    opacity:0;

    transition:.45s;

}

.gallery-overlay h3{

    color:#fff;

    font-size:25px;

    line-height:1.4;

    font-family:var(--heading);

    transform:translateY(25px);

    opacity:0;

    transition:.45s;

}

.gallery-card:hover .gallery-overlay span,
.gallery-card:hover .gallery-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

/*==================================================
RESPONSIVE
==================================================*/
@media (max-width: 1200px) {
    .gallery-page .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .gallery-page .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-hero h1 {
        font-size: 48px;
    }

    .lightbox-info {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .gallery-page {
        padding-bottom: 80px;
    }

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

    .gallery-hero {
        padding: 70px 0 40px;
    }

    .gallery-hero h1 {
        font-size: 38px;
    }

    .gallery-hero p {
        font-size: 15px;
    }

    .filter-wrapper {
        gap: 12px;
    }

    .filter-btn {
        min-width: auto;
        width: calc(50% - 6px);
    }

    .gallery-card img {
        height: 210px;
    }

    .gallery-overlay {
        padding: 18px;
    }

    .gallery-overlay h3 {
        font-size: 18px;
    }

    .gallery-overlay span {
        margin-bottom: 10px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .gallery-hero {
        padding: 55px 0 32px;
    }

    .gallery-hero h1 {
        margin-bottom: 14px;
        font-size: 32px;
        line-height: 1.2;
    }

    .gallery-hero p {
        max-width: 340px;

        font-size: 13px;
        line-height: 1.75;
    }

    .filter-wrapper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;

        width: 100%;
    }

    .filter-btn {
        width: 100%;
        min-width: 0;
        min-height: 42px;

        padding: 9px 8px;

        font-size: 11px;
        line-height: 1.2;
    }

    .gallery-page .gallery-grid {
        gap: 10px;
    }

    .gallery-card {
        border-radius: 16px;
    }

    .gallery-card img {
        height: 145px;
    }

    .gallery-overlay {
        padding: 12px;
    }

    .gallery-overlay h3 {
        margin: 0;

        font-size: 14px;
        line-height: 1.3;
    }

    .gallery-overlay span {
        margin-bottom: 7px;
        padding: 5px 9px;

        font-size: 9px;
    }

    .lightbox-image {
        max-width: 95%;
    }

    .lightbox-tools {
        flex-direction: column;
        gap: 12px;
    }
}
/*==================================================
ANIMATION
==================================================*/

.gallery-card{

    animation:fadeGallery .6s ease both;

}

@keyframes fadeGallery{

    from{

        opacity:0;

        transform:translateY(35px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
/*==================================================
SCROLLBAR
==================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#08131f;

}

::-webkit-scrollbar-thumb{

    border-radius:20px;

    background:linear-gradient(

        var(--accent),

        var(--accent2)

    );

}

::-webkit-scrollbar-thumb:hover{

    opacity:.8;

}

.filter-btn:active{

    transform:scale(.95);

}

.download-btn{

    display:flex;

    align-items:center;

    gap:10px;

    padding:12px 20px;

    border-radius:999px;

    text-decoration:none;

    color:#fff;

    background:

        rgba(255,255,255,.08);

    transition:.35s;

}

.download-btn:hover{

    background:

    linear-gradient(

        135deg,

        var(--accent),

        var(--accent2)

    );

}

.download-btn:active{

    transform:scale(.95);

}

.gallery-card,
.gallery-card img,
.gallery-overlay,
.lightbox-image{

    will-change:transform,opacity;

}
/*==================================================
LIGHTBOX CONTENT
==================================================*/

.lightbox-content{

    width:min(95%,1250px);

    display:flex;

    flex-direction:column;

    align-items:center;

    animation:zoomOpen .45s ease;

}

@keyframes zoomOpen{

    from{

        opacity:0;

        transform:scale(.92);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}

/*==================================================
LIGHTBOX IMAGE
==================================================*/

.lightbox-image{

    width:auto;

    max-width:100%;

    max-height:78vh;

    border-radius:22px;

    transition:

        opacity .25s,

        transform .35s;

    box-shadow:

        0 40px 100px rgba(0,0,0,.6);

}

/*==================================================
LIGHTBOX INFO
==================================================*/

.lightbox-info{

    width:100%;

    margin-top:25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    color:#fff;

}

.lightbox-category{

    display:inline-block;

    padding:8px 18px;

    border-radius:999px;

    background:linear-gradient(

        135deg,

        var(--accent),

        var(--accent2)

    );

    font-size:13px;

    font-weight:600;

    margin-bottom:12px;

}

.lightbox-title{

    font-size:30px;

    font-family:var(--heading);

}

.lightbox-counter{

    color:#BFC9D9;

    font-size:15px;

    font-weight:600;

}

.lightbox-tools{

    display:flex;

    align-items:center;

    gap:18px;

}

.lightbox-prev,

.lightbox-next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:62px;

    height:62px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    color:#fff;

    font-size:26px;

    cursor:pointer;

    transition:.35s;

}

.lightbox-prev{

    left:40px;

}

.lightbox-next{

    right:40px;

}

.lightbox-prev:hover,

.lightbox-next:hover{

    background:var(--accent);

    transform:

        translateY(-50%)

        scale(1.08);

}

.lightbox-close{

    position:absolute;

    top:30px;

    right:35px;

    width:60px;

    height:60px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    color:#fff;

    font-size:24px;

    cursor:pointer;

    transition:.35s;

}

.lightbox-close:hover{

    background:#ef4444;

    transform:rotate(90deg);

}


.lightbox{

    backdrop-filter:blur(15px);

    -webkit-backdrop-filter:blur(15px);

}

.gallery-overlay{
    pointer-events: none;
}

.gallery-card{
    cursor: pointer;
}