
/* =========================
   PAGE GALERI FOTO
========================= */

.pageGaleriFoto{
    width:100%;
    padding:70px 15px;
    background:#f8fafc;
    position:relative;
    overflow:hidden;
}

.pageGaleriFoto-container{
    max-width:1300px;
    margin:auto;
}

/* HEADER */

.pageGaleriFoto-header{
    text-align:center;
    margin-bottom:45px;
}

.pageGaleriFoto-subtitle{
    display:inline-block;
    background:#0f172a;
    color:#fff;
    padding:8px 18px;
    border-radius:100px;
    font-size:13px;
    margin-bottom:15px;
    letter-spacing:.5px;
}

.pageGaleriFoto-title{
    font-size:38px;
    line-height:1.3;
    margin-bottom:15px;
    color:#0f172a;
    font-weight:800;
}

.pageGaleriFoto-desc{
    max-width:850px;
    margin:auto;
    color:#64748b;
    font-size:16px;
    line-height:1.8;
}

/* GRID */

.pageGaleriFoto-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

/* CARD */

.pageGaleriFoto-card{
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(0,0,0,.07);
    transition:.35s ease;
}

.pageGaleriFoto-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.12);
}

.pageGaleriFoto-imageWrap{
    position:relative;
    overflow:hidden;
    cursor:pointer;
}

.pageGaleriFoto-image{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    transition:.5s ease;
}

.pageGaleriFoto-card:hover .pageGaleriFoto-image{
    transform:scale(1.08);
}

.pageGaleriFoto-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.1)
    );
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:.4s ease;
}

.pageGaleriFoto-card:hover .pageGaleriFoto-overlay{
    opacity:1;
}

.pageGaleriFoto-overlayContent{
    text-align:center;
    color:#fff;
}

.pageGaleriFoto-overlayContent span{
    display:block;
    margin-top:10px;
    font-size:15px;
    font-weight:600;
}

/* CONTENT */

.pageGaleriFoto-content{
    padding:20px;
}

.pageGaleriFoto-cardTitle{
    font-size:18px;
    line-height:1.5;
    color:#0f172a;
    margin-bottom:12px;
    font-weight:700;
}

.pageGaleriFoto-link{
    text-decoration:none;
    color:#2563eb;
    font-weight:600;
    font-size:14px;
}

.pageGaleriFoto-link:hover{
    text-decoration:underline;
}

/* PAGINATION */

.pageGaleriFoto-pagination{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin-top:50px;
    flex-wrap:wrap;
}

.pageGaleriFoto-pageBtn{
    min-width:45px;
    height:45px;
    padding:0 18px;
    border-radius:14px;
    background:#fff;
    color:#0f172a;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-weight:700;
    box-shadow:0 5px 20px rgba(0,0,0,.06);
    transition:.3s ease;
}

.pageGaleriFoto-pageBtn:hover{
    background:#2563eb;
    color:#fff;
    transform:translateY(-3px);
}

.pageGaleriFoto-pageBtn.active{
    background:#2563eb;
    color:#fff;
}

/* MODAL */

.pageGaleriFoto-modal{
    position:fixed;
    z-index:999999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.93);
    display:none;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    padding:20px;
}

.pageGaleriFoto-modalImg{
    max-width:92%;
    max-height:82vh;
    border-radius:18px;
    animation:pageGaleriFotoZoom .3s ease;
}

@keyframes pageGaleriFotoZoom{

    from{
        transform:scale(.8);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }

}

.pageGaleriFoto-caption{
    margin-top:18px;
    color:#fff;
    font-size:17px;
    text-align:center;
    max-width:800px;
}

.pageGaleriFoto-close{
    position:absolute;
    top:20px;
    right:30px;
    background:none;
    border:none;
    color:#fff;
    font-size:50px;
    cursor:pointer;
}

.pageGaleriFoto-prev,
.pageGaleriFoto-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(255,255,255,.15);
    border:none;
    width:55px;
    height:55px;
    border-radius:50%;
    color:#fff;
    font-size:30px;
    cursor:pointer;
    transition:.3s ease;
}

.pageGaleriFoto-prev:hover,
.pageGaleriFoto-next:hover{
    background:#fff;
    color:#000;
}

.pageGaleriFoto-prev{
    left:25px;
}

.pageGaleriFoto-next{
    right:25px;
}

/* MOBILE */

@media(max-width:991px){

    .pageGaleriFoto-grid{
        grid-template-columns:repeat(2,1fr);
        gap:18px;
    }

    .pageGaleriFoto-title{
        font-size:28px;
    }

    .pageGaleriFoto-image{
        height:190px;
    }

}

@media(max-width:576px){

    .pageGaleriFoto{
        padding:50px 12px;
    }

    .pageGaleriFoto-title{
        font-size:24px;
    }

    .pageGaleriFoto-desc{
        font-size:14px;
    }

    .pageGaleriFoto-cardTitle{
        font-size:15px;
    }

    .pageGaleriFoto-image{
        height:160px;
    }

}

/*========== View admin galeri ===========*/
.admin_galeri{
    background: #fff;
}

.admin_galeri-title{
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.admin_galeri-btn{
    border-radius: 50px;
    font-weight: 600;
    padding: 10px 18px;
    transition: 0.3s ease;
}

.admin_galeri-btn:hover{
    transform: translateY(-2px);
}

.admin_galeri-image{
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.admin_galeri-action{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s ease;
}

.admin_galeri-action.edit{
    background: #0d6efd;
    color: #fff;
}

.admin_galeri-action.delete{
    background: #dc3545;
    color: #fff;
}

.admin_galeri-action:hover{
    transform: scale(1.08);
    opacity: 0.9;
}

#dataTables-view thead th{
    white-space: nowrap;
    vertical-align: middle;
}

#dataTables-view tbody td{
    vertical-align: middle;
}

@media (max-width: 768px){

    .admin_galeri-title{
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
    }

    .admin_galeri-btn{
        width: 100%;
    }

}
/* ============= Tambah Galeri =========== */
.admin_tambahgaleri{
    background: #ffffff;
}

.admin_tambahgaleri-header{
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.admin_tambahgaleri-title{
    font-size: 1.6rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 5px;
}

.admin_tambahgaleri-subtitle{
    color: #6c757d;
    font-size: 0.95rem;
}

.admin_tambahgaleri .form-control,
.admin_tambahgaleri .form-select{
    min-height: 48px;
    border-radius: 12px;
    box-shadow: none;
}

.admin_tambahgaleri .form-control:focus,
.admin_tambahgaleri .form-select:focus{
    border-color: #198754;
    box-shadow: 0 0 0 0.15rem rgba(25,135,84,.15);
}

.admin_tambahgaleri-btn{
    border-radius: 50px;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin_tambahgaleri-btn:hover{
    transform: translateY(-2px);
}

@media (max-width: 768px){

    .admin_tambahgaleri-title{
        font-size: 1.3rem;
        text-align: center;
    }

    .admin_tambahgaleri-subtitle{
        text-align: center;
    }

    .admin_tambahgaleri-btn{
        width: 100%;
    }

}
/* ===================== Edit Galeri -------------------- */
.Admin_editgaleri{
    background: #ffffff;
}

.Admin_editgaleri .nav-link{
    border-radius: 50px;
    padding: 10px 18px;
    font-weight: 600;
    color: #495057;
    background: #f1f3f5;
    transition: all 0.3s ease;
}

.Admin_editgaleri .nav-link.active{
    background: #198754;
    color: #ffffff;
}

.Admin_editgaleri .form-control{
    min-height: 48px;
    border-radius: 12px;
    box-shadow: none;
}

.Admin_editgaleri .form-control:focus{
    border-color: #198754;
    box-shadow: 0 0 0 0.15rem rgba(25,135,84,.15);
}

.Admin_editgaleri-btn{
    border-radius: 50px;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.Admin_editgaleri-btn:hover{
    transform: translateY(-2px);
}

.Admin_editgaleri-upload{
    padding: 20px;
    border: 2px dashed #ced4da;
    border-radius: 16px;
    background: #f8f9fa;
}

#drop-box{
    border: 2px dashed #adb5bd;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.3s ease;
}

#drop-box:hover{
    border-color: #198754;
    background: #f1fff7;
}

#photo_galeri img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
}
.Admin_editgaleri-preview img{
    max-height: 260px;
    object-fit: cover;
    border-radius: 18px;
}
@media (max-width: 768px){

    .Admin_editgaleri .nav{
        flex-direction: column;
    }

    .Admin_editgaleri .nav-link{
        width: 100%;
        text-align: center;
    }

    .Admin_editgaleri-btn{
        width: 100%;
    }

}
