/*=========================================================
  CyberLabs IIIT Kottayam
  Album Viewer
  File : css/album.css
  Version : 1.0
=========================================================*/

/*=========================================================
  ROOT VARIABLES
=========================================================*/

:root{

    --album-primary:#66a9d1;
    --album-primary-dark:#3d8dbc;
    --album-accent:#8fd0f6;

    --album-bg:#050b16;
    --album-bg-2:#081120;
    --album-bg-3:#111b2b;

    --album-card:rgba(255,255,255,.05);
    --album-border:rgba(255,255,255,.08);

    --album-text:#ffffff;
    --album-muted:#b7c6d6;

    --album-radius:18px;

    --album-shadow:
        0 20px 50px rgba(0,0,0,.28);

    --album-transition:.35s ease;

}

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

body{

    background:var(--album-bg);

}

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

.album-hero{

    position:relative;

    overflow:hidden;

    padding:80px 0;

    background:

        linear-gradient(
            135deg,
            #050b16,
            #0a1626,
            #10253f
        );

}

.album-hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:

        radial-gradient(
            circle at top right,
            rgba(255,255,255,.08),
            transparent 45%
        );

}

.album-hero .container{

    position:relative;

    z-index:2;

}

/*=========================================================
  BREADCRUMB
=========================================================*/

.gallery-breadcrumb{

    display:flex;

    flex-wrap:wrap;

    align-items:center;

    gap:10px;

    margin-bottom:30px;

    font-size:14px;

}

.gallery-breadcrumb a{

    color:var(--album-primary);

    text-decoration:none;

    transition:.3s;

}

.gallery-breadcrumb a:hover{

    color:var(--album-accent);

}

.gallery-breadcrumb span{

    color:#d6e4ef;

}

/*=========================================================
  TITLE
=========================================================*/

.album-title{

    font-size:48px;

    font-weight:700;

    color:#fff;

    margin-bottom:18px;

    line-height:1.15;

}

.album-description{

    font-size:18px;

    color:var(--album-muted);

    max-width:700px;

    margin-bottom:28px;

    line-height:1.8;

}

/*=========================================================
  INFO BAR
=========================================================*/

.album-info{

    display:flex;

    flex-wrap:wrap;

    gap:16px;

}

.album-info span{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:10px 18px;

    border-radius:50px;

    background:

        rgba(255,255,255,.05);

    border:

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

    color:#ffffff;

    font-size:14px;

    transition:var(--album-transition);

}

.album-info span:hover{

    transform:translateY(-3px);

    background:

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

}

.album-info i{

    color:var(--album-primary);

}

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

.album-cover{

    width:100%;

    max-width:360px;

    border-radius:22px;

    border:

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

    box-shadow:

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

    object-fit:cover;

    transition:

        transform .45s ease,

        box-shadow .45s ease;

}

.album-cover:hover{

    transform:

        translateY(-8px)
        scale(1.02);

    box-shadow:

        0 35px 70px rgba(0,0,0,.45);

}

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

.gallery-grid{

    padding:80px 0;

    background:var(--album-bg);

}

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

.gallery-card{

    height:100%;

    overflow:hidden;

    border-radius:20px;

    background:

        linear-gradient(
            145deg,
            rgba(255,255,255,.05),
            rgba(255,255,255,.025)
        );

    border:

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

    box-shadow:var(--album-shadow);

    transition:

        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

}

.gallery-card:hover{

    transform:

        translateY(-10px);

    border-color:

        rgba(102,169,209,.70);

    box-shadow:

        0 28px 65px rgba(0,0,0,.35);

}

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

.gallery-image-wrapper{

    position:relative;

    overflow:hidden;

    background:#020711;

    aspect-ratio:4/3;

}

.gallery-image{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:

        transform .55s ease;

}

.gallery-card:hover .gallery-image{

    transform:

        scale(1.08);

}

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

.gallery-overlay{

    position:absolute;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    background:

        linear-gradient(
            rgba(3,9,18,.10),
            rgba(3,9,18,.82)
        );

    opacity:0;

    visibility:hidden;

    transition:all .35s ease;

}

.gallery-card:hover .gallery-overlay{

    opacity:1;

    visibility:visible;

}

/*=========================================================
  VIEW BUTTON
=========================================================*/

.gallery-view-btn{

    width:72px;

    height:72px;

    border:none;

    outline:none;

    border-radius:50%;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#ffffff;

    font-size:28px;

    background:

        rgba(255,255,255,.16);

    backdrop-filter:blur(12px);

    border:

        1px solid rgba(255,255,255,.28);

    transform:

        translateY(20px)
        scale(.9);

    transition:all .35s ease;

}

.gallery-card:hover .gallery-view-btn{

    transform:

        translateY(0)
        scale(1);

}

.gallery-view-btn:hover{

    background:

        rgba(102,169,209,.90);

    transform:

        scale(1.08);

}

/*=========================================================
  CARD BODY
=========================================================*/

.gallery-card-body{

    padding:22px;

}

/*=========================================================
  FOLDER BADGE
=========================================================*/

.gallery-folder{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:7px 14px;

    border-radius:50px;

    margin-bottom:15px;

    background:

        rgba(102,169,209,.15);

    color:var(--album-primary);

    border:

        1px solid rgba(102,169,209,.22);

    font-size:13px;

    font-weight:600;

    text-transform:uppercase;

    letter-spacing:.4px;

}

.gallery-folder i{

    font-size:13px;

}

/*=========================================================
  FILE NAME
=========================================================*/

.gallery-filename{

    color:#ffffff;

    font-size:16px;

    font-weight:600;

    line-height:1.6;

    word-break:break-word;

    overflow-wrap:anywhere;

    transition:color .3s ease;

}

.gallery-card:hover .gallery-filename{

    color:var(--album-primary);

}

/*=========================================================
  EMPTY ALBUM
=========================================================*/

.empty-album{

    text-align:center;

    padding:80px 35px;

    border-radius:22px;

    background:

        linear-gradient(
            145deg,
            rgba(255,255,255,.04),
            rgba(255,255,255,.02)
        );

    border:

        1px dashed rgba(255,255,255,.12);

}

.empty-album i{

    font-size:70px;

    color:var(--album-primary);

    margin-bottom:25px;

}

.empty-album h3{

    color:#ffffff;

    font-size:34px;

    margin-bottom:18px;

}

.empty-album p{

    max-width:520px;

    margin:0 auto 35px;

    color:var(--album-muted);

    font-size:17px;

    line-height:1.8;

}

/*=========================================================
  BOTTOM SECTION
=========================================================*/

.gallery-bottom{

    padding:90px 0;

    background:var(--album-bg-2);

}

.gallery-bottom-card{

    border-radius:24px;

    padding:55px;

    background:

        linear-gradient(
            145deg,
            rgba(255,255,255,.05),
            rgba(255,255,255,.025)
        );

    border:

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

    box-shadow:

        0 22px 55px rgba(0,0,0,.30);

}

.gallery-bottom-card h3{

    color:#ffffff;

    font-size:36px;

    margin-bottom:18px;

    font-weight:700;

}

.gallery-bottom-card p{

    color:var(--album-muted);

    line-height:1.8;

    font-size:17px;

    margin-bottom:0;

}

.gallery-bottom-card .btn{

    min-width:220px;

    min-height:56px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    border-radius:14px;

    font-weight:600;

}


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

.lightbox{

    position:fixed;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    opacity:0;

    visibility:hidden;

    transition:all .35s ease;

    z-index:9999;

}

.lightbox.active{

    opacity:1;

    visibility:visible;

}

.lightbox-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.88);

    backdrop-filter:blur(6px);

}

.lightbox-container{

    position:relative;

    z-index:2;

    width:min(92vw,1400px);

    max-height:92vh;

    display:flex;

    flex-direction:column;

    align-items:center;

}

.lightbox-image-container{

    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

}

#lightboxImage{

    max-width:100%;

    max-height:78vh;

    object-fit:contain;

    border-radius:18px;

    box-shadow:0 25px 70px rgba(0,0,0,.45);

    animation:albumZoom .35s ease;

}

/*=========================================================
  CLOSE BUTTON
=========================================================*/

.lightbox-close{

    position:absolute;

    top:-60px;

    right:0;

    width:46px;

    height:46px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    color:#ffffff;

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

    backdrop-filter:blur(10px);

    transition:all .3s ease;

}

.lightbox-close:hover{

    background:var(--album-primary);

    transform:rotate(90deg);

}

/*=========================================================
  NAVIGATION
=========================================================*/

.lightbox-nav{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:58px;

    height:58px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    color:#ffffff;

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

    backdrop-filter:blur(10px);

    transition:all .3s ease;

}

.lightbox-nav:hover{

    background:var(--album-primary);

}

.lightbox-nav.prev{

    left:-85px;

}

.lightbox-nav.next{

    right:-85px;

}

/*=========================================================
  FOOTER
=========================================================*/

.lightbox-footer{

    width:100%;

    margin-top:24px;

    padding:18px 24px;

    border-radius:16px;

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

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

    text-align:center;

}

.lightbox-counter{

    color:var(--album-primary);

    font-size:15px;

    font-weight:700;

    margin-bottom:8px;

}

.lightbox-filename{

    color:#ffffff;

    font-size:17px;

    font-weight:600;

    word-break:break-word;

}

.lightbox-folder{

    margin-top:6px;

    color:var(--album-muted);

    font-size:14px;

}

/*=========================================================
  BODY LOCK
=========================================================*/

body.lightbox-open{

    overflow:hidden;

}

/*=========================================================
  ANIMATIONS
=========================================================*/

@keyframes albumZoom{

    from{

        opacity:0;

        transform:scale(.92);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}

.gallery-card,
.gallery-view-btn,
.album-cover{

    will-change:transform;

}

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

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#07111f;

}

::-webkit-scrollbar-thumb{

    background:var(--album-primary);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--album-primary-dark);

}

/*=========================================================
  RESPONSIVE
=========================================================*/

@media (max-width:992px){

    .album-hero{

        text-align:center;

        padding:70px 0;

    }

    .album-title{

        font-size:40px;

    }

    .album-description{

        margin-left:auto;

        margin-right:auto;

    }

    .album-info{

        justify-content:center;

    }

    .album-cover{

        margin-top:35px;

    }

    .gallery-bottom-card{

        padding:40px;

        text-align:center;

    }

    .lightbox-nav.prev{

        left:15px;

    }

    .lightbox-nav.next{

        right:15px;

    }

}

@media (max-width:768px){

    .album-title{

        font-size:34px;

    }

    .album-description{

        font-size:16px;

    }

    .gallery-grid{

        padding:60px 0;

    }

    .gallery-card-body{

        padding:18px;

    }

    .gallery-bottom{

        padding:70px 0;

    }

    .gallery-bottom-card{

        padding:30px;

    }

    .gallery-bottom-card h3{

        font-size:28px;

    }

    .gallery-bottom-card p{

        font-size:16px;

    }

    .lightbox-nav{

        width:48px;

        height:48px;

    }

    .lightbox-close{

        top:-52px;

    }

}

@media (max-width:576px){

    .album-title{

        font-size:28px;

    }

    .gallery-info{

        flex-direction:column;

    }

    .gallery-bottom-card{

        padding:24px;

    }

    .gallery-bottom-card h3{

        font-size:24px;

    }

    .lightbox-footer{

        padding:14px;

    }

    .lightbox-filename{

        font-size:15px;

    }

    .lightbox-folder{

        font-size:13px;

    }

}

/*=========================================================
  PRINT
=========================================================*/

@media print{

    .album-hero,

    .gallery-bottom,

    .lightbox{

        display:none !important;

    }

}

/*=========================================================
  END OF FILE
=========================================================*/