/* Memastikan footer tetap di bawah */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.content {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Masih menggunakan 4 kolom */
    gap: 20px;
    margin: 8% auto;
    max-width: 1200px;
}

.content .grid-item {
    position: relative;
    padding-bottom: 150%; /* Rasio 4:6 (lebar 4, tinggi 6) */
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.content .grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content .grid-item:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: #888;
}

.content .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px 10px;
    border-radius: 0 0 8px 8px;
    text-align: left;
}

.content .caption p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.content .caption a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.promo-section {
    padding: 4rem 0;
    background-color: #f4f4f4;
    text-align: center;
}

.promo-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.social-icons a {
    margin-right: 15px;
    text-decoration: none;
}

/* Custom Styling for Arrow Buttons */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.arrow-btn:hover {
    color: #007bff;
}

#prevBtn {
    margin-right: 20px;
}

#nextBtn {
    margin-left: 20px;
}

/* Media Query untuk ponsel */
@media screen and (max-width: 768px) {
    /* Menampilkan hanya judul (caption p), sembunyikan "lihat selengkapnya" (caption a) di tampilan ponsel */
    .content .caption a {
        display: none; /* Sembunyikan "Lihat Selengkapnya" */
    }

    /* Menyesuaikan ukuran teks pada judul di ponsel */
    .content .caption p {
        font-size: 14px; /* Menyesuaikan ukuran font judul di ponsel */
    }
}
