.gallery-title {
    text-align: center;
    font-size: 2em;
    color: orange;
    margin-bottom: 20px;
}

.card-custom {
    position: relative;  /* Menambahkan position relative */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card-custom img {
    width: 100%;
    height: 250px;  /* Atur sesuai kebutuhan */
    object-fit: cover; /* Gambar akan menyesuaikan ukuran dengan menjaga proporsi */
    border: none;
}

.container-fluid .row > .card-custom {
    margin: 10px 0;
}

.m-2 {
    margin: 10px !important;
}

.content {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease; /* Menambahkan easing untuk transisi yang lebih halus */
}

.content:hover {
    opacity: 1;
}

.content h1 {
    font-size: 24px;
    color: white;
    margin: 0 auto;
}

.content p {
    font-size: 12px;
    color: lightgray;
    font-weight: bold;
    margin: 0 auto;
    text-align: center;
}

.content > * {
    transform: translateY(25px);
    transition: transform 0.6s ease; /* Menambahkan easing untuk transisi yang lebih halus */
}

.content:hover > * {
    transform: translateY(0px);
}

.gallery-links {
    display: flex;
    align-items: center;
}

.gallery-links a {
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    color: black;
    margin: 0 10px;  /* Menambahkan margin antar link */
}

.gallery-links a.active {
    color: orange;
}

.gallery-links a:hover {
    opacity: 0.8;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .card-custom img {
        height: 200px;  /* Sesuaikan tinggi gambar untuk layar kecil */
    }
}

@media (max-width: 576px) {
    .card-custom img {
        height: auto;  /* Sesuaikan tinggi gambar untuk layar lebih kecil */
        object-fit: contain;  /* Agar gambar sepenuhnya terlihat tanpa terpotong */
    }
}
