@font-face {
    font-family: "TheYoungestrg";
    src: url("../../fonts/The\ Youngest\ Script-Rg.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "TheYoungestbook";
    src: url("../../fonts/The\ Youngest\ Serif-Book.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "DroidSerif";
    src: url("../../fonts/DroidSerif-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "poppins";
    src: url("../../fonts/Poppins-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

#loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Main Content Styling */
.main-content {
    padding: 40px 0;
}

.gallery-title {
    font-size: 50px;
    margin-bottom: 50px;
}

/* Mengatur Gallery Image agar rounded dan rapi */
.gallery-image {
    width: 100%;
    height: 300px; /* Mengatur tinggi gambar untuk konsistensi */
    object-fit: cover; /* Memastikan gambar menutupi seluruh area tanpa distorsi */
    border-radius: 15px; /* Membuat sudut gambar menjadi rounded */
    transition: transform 0.3s ease-in-out;
    margin-bottom: 15px; /* Memberikan jarak antar gambar */
}

/* Efek Hover */
.gallery-image:hover {
    transform: scale(1.05); /* Menambah efek zoom ketika gambar dihover */
}

/* Responsivitas untuk Gambar Potret dan Landscape */
@media (max-width: 768px) {
    .gallery-image {
        height: 250px; /* Ukuran gambar lebih kecil di perangkat mobile */
    }
}

@media (min-width: 1200px) {
    .gallery-image {
        height: 350px; /* Gambar lebih besar di layar lebar */
    }
}

.gallery-container {
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 300px; /* Sesuaikan tinggi yang diinginkan */
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Custom Lightbox Styles */
.lb-data .lb-caption {
    font-family: "The Youngest", sans-serif;
    font-size: 1.2rem;
    padding: 10px 0;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.6;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

.lb-dataContainer {
    padding-top: 10px;
}

.pagination {
    justify-content: center;
}
.pagination .page-item .page-link {
    color: #000;
    border: 1px solid #ddd;
    margin: 0 2px;
}
.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    color: #6c757d;
}
