/* header */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "montserrat", sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* main */

.line {
    width: 58.43px;
    border: 2px solid #ffffff;
    margin: 10px auto;
}

.body-text {
    text-align: center;
    margin: 50px auto;
    width: 50%;
    font-size: 16px;
    line-height: 30px;
    color: #000000;
}

.title {
    text-align: center;
    margin-top: 70px;
    font-size: 36px;
    font-family: Roboto;
    font-style: normal;
}

.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 100px;
    margin-top: 100px;
}

/* galeri item */

.gallery-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-left: 25px; /* Menambahkan jarak antar elemen */
}

.gallery-item1 {
    width: 316.84px;
    height: 221px;
    background: url("../images/galeri5.jpg"), #d9d9d9;
    background-size: cover;
    border-radius: 5px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    margin-right: 20px; /* Menambahkan jarak antar elemen */
}

.gallery div[class^="gallery-item"] {
    width: 250px;
    height: 250px;
    margin: 10px;
    background-color: #ccc; /* Example background color */
}

.gallery-item2 {
    width: 316.84px;
    height: 221px;
    background: url("../images/foto1.jpg"), #d9d9d9;
    background-size: cover;
    border-radius: 5px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    margin-right: 20px; /* Menambahkan jarak antar elemen */
}

.gallery-item3 {
    width: 316.84px;
    height: 221px;
    background: url("../images/foto2.jpg"), #d9d9d9;
    background-size: cover;
    border-radius: 5px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    margin-right: 20px; /* Menambahkan jarak antar elemen */
}

.gallery-item4 {
    width: 316.84px;
    height: 221px;
    background: url("../images/foto3.jpg"), #d9d9d9;
    background-size: cover;
    border-radius: 5px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    margin-right: 20px; /* Menambahkan jarak antar elemen */
}

.gallery-item5 {
    width: 316.84px;
    height: 221px;
    background: url("../images/galeri.jpg"), #d9d9d9;
    background-size: cover;
    border-radius: 5px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    margin-right: 20px; /* Menambahkan jarak antar elemen */
}

.gallery-item6 {
    width: 316.84px;
    height: 221px;
    background: url("../images/galeri2.jpg"), #d9d9d9;
    background-size: cover;
    border-radius: 5px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    margin-right: 20px; /* Menambahkan jarak antar elemen */
}

.gallery-item7 {
    width: 316.84px;
    height: 221px;
    background: url("../images/galeri3.jpg"), #d9d9d9;
    background-size: cover;
    border-radius: 5px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    margin-right: 20px; /* Menambahkan jarak antar elemen */
}

.gallery-item8 {
    width: 316.84px;
    height: 221px;
    background: url("../images/galeri4.jpg"), #d9d9d9;
    background-size: cover;
    border-radius: 5px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    margin-right: 20px; /* Menambahkan jarak antar elemen */
}

/* Responsive gallery*/
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
        gap: 15px;
    }

    .gallery-row {
        justify-content: center; /* Center gallery items on tablet */
    }

    .gallery-item1,
    .gallery-item2,
    .gallery-item3,
    .gallery-item4,
    .gallery-item5,
    .gallery-item6,
    .gallery-item7,
    .gallery-item8 {
        width: 280px; /* Adjust width for smaller screens */
        height: 180px; /* Adjust height for smaller screens */
    }

    .body-text {
        width: 70%; /* Adjust text width for readability on tablets */
    }

    .title {
        font-size: 28px; /* Slightly smaller title size for tablets */
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(
            1,
            1fr
        ); /* Single column for smaller screens */
        gap: 10px;
    }

    .gallery-row {
        flex-direction: column; /* Stack items vertically on mobile */
        align-items: center; /* Center items */
    }

    .gallery-item1,
    .gallery-item2,
    .gallery-item3,
    .gallery-item4,
    .gallery-item5,
    .gallery-item6,
    .gallery-item7,
    .gallery-item8 {
        width: 220px; /* Reduce size for mobile */
        height: 160px; /* Adjust height for mobile */
    }

    .body-text {
        width: 90%; /* Full width on mobile */
    }

    .title {
        font-size: 24px; /* Smaller title size for mobile */
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(
            1,
            1fr
        ); /* Single column for very small devices */
        gap: 10px;
    }

    .gallery-item1,
    .gallery-item2,
    .gallery-item3,
    .gallery-item4,
    .gallery-item5,
    .gallery-item6,
    .gallery-item7,
    .gallery-item8 {
        width: 180px; /* Smaller width for very small devices */
        height: 140px; /* Smaller height for very small devices */
    }

    .body-text {
        width: 100%; /* Full width text on small screens */
    }

    .title {
        font-size: 20px; /* Smaller title size for very small screens */
    }
}
