/* ==========================================
   ALHIR Portfolio Gallery
   Version: 1.0
========================================== */

*{
    box-sizing:border-box;
}

/* ===========================
   Albums
=========================== */

.alhir-album-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:25px;
    margin:30px 0;
}

.alhir-album-card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.alhir-album-card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.alhir-album-card img{
    width:100%;
    height:240px;
    object-fit:cover;
    display:block;
    transition:.4s;
}

.alhir-album-card:hover img{
    transform:scale(1.08);
}

.alhir-album-content{
    padding:20px;
}

.alhir-album-content h3{
    margin:0;
    font-size:22px;
}

.alhir-album-content h3 a{
    color:#222;
    text-decoration:none;
}

.alhir-description{
    margin-top:10px;
    color:#777;
    line-height:1.7;
}

.alhir-footer{
    margin-top:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.alhir-count{
    font-size:14px;
    color:#999;
}


/* ===========================
   Gallery
=========================== */

.alhir-gallery-wrapper{
    max-width:1400px;
    margin:auto;
    padding:20px;
}

.alhir-gallery-header{
    text-align:center;
    margin-bottom:30px;
}

.alhir-gallery-header h2{
    font-size:34px;
    margin:10px 0;
}

.alhir-gallery-description{
    max-width:800px;
    margin:auto;
    color:#666;
}

.alhir-back-btn{
    display:inline-block;
    margin-bottom:20px;
    text-decoration:none;
    font-weight:bold;
}

.alhir-photo-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:20px;
}

.alhir-photo-item{
    overflow:hidden;
    border-radius:12px;
    background:#fff;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.alhir-photo-item img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    transition:.4s;
}

.alhir-photo-item:hover img{
    transform:scale(1.08);
}

.alhir-caption{
    padding:12px;
    text-align:center;
    color:#666;
}


/* ===========================
   Lightbox
=========================== */

.alhir-lightbox{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.95);
    z-index:999999;
}

.alhir-lightbox img{
    max-width:90%;
    max-height:90%;
    object-fit:contain;
}

.alhir-close{
    position:absolute;
    top:20px;
    right:30px;
    font-size:42px;
    color:#fff;
    cursor:pointer;
}

.alhir-prev,
.alhir-next{

    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:rgba(255,255,255,.15);
    color:#fff;
    font-size:28px;
}

.alhir-prev{
    left:25px;
}

.alhir-next{
    right:25px;
}

.alhir-prev:hover,
.alhir-next:hover{

    background:#ffffff;
    color:#000;

}

#alhir-counter{
    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    color:#fff;
    font-size:16px;
}


/* ===========================
   Empty
=========================== */

.alhir-empty,
.alhir-gallery-empty{
    text-align:center;
    padding:80px 20px;
    color:#777;
}


/* ===========================
   Responsive
=========================== */

@media(max-width:991px){

.alhir-album-grid{

grid-template-columns:repeat(2,1fr);

}

.alhir-photo-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:767px){

.alhir-album-grid{

grid-template-columns:1fr;

}

.alhir-photo-grid{

grid-template-columns:1fr;

}

.alhir-gallery-header h2{

font-size:28px;

}

.alhir-prev,
.alhir-next{

width:45px;
height:45px;
font-size:22px;

}

}