#title {
    font-size: 2.5em;
    font-weight: 600;
}

/* ============================================================== */
/* bagian gallery */
.gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    grid-gap: 20px;
    margin-top: 20px;
}

.gallery .img-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.gallery .img-item:nth-child(7n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery .img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery .img-item:hover {
    box-shadow: 0px 0px 15px rgb(49, 41, 41);
}

.gallery .img-item:hover img {
    opacity: 0.7;
    transform: scale(1.05);
}

/* ============================================================ */
/* bagian lightbox */
#lightBox {
    position: fixed;
    z-index: 100000;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#lightBox .close-btn {
    position: absolute;
    top: 0;
    right: 1.8rem;
    font-size: 3.5em;
    cursor: pointer;
}

#lightBox .lightImgWrap {
    width: 95%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#prev,
#next {
    margin-top: 5%;
    font-size: 3rem;
    color: rgba(121, 121, 121, 0.8);
    cursor: pointer;
    user-select: none;
}

#lightBox .lightImgWrap .lightImg {
    width: 35%;
}

#lightBox .lightImgWrap .lightImg img {
    width: 100%;
    user-select: none;
}

#lightBox .lightPreview {
    width: 50%;
    display: flex;
    justify-content: space-evenly;
    margin-top: 2%;
    user-select: none;
}

#lightBox .lightPreview .preview-img {
    width: 15%;
    transition: opacity 0.3s;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    object-fit: cover;
    /* background-color: yellow; */
}

#lightBox .lightPreview .preview-img img {
    width: 100%;
}

#lightBox .lightPreview .preview-img:hover {
    border: solid #ffffff 3px;
}

#lightBox .close-btn:hover {
    color: #A33324;
}

#prev:hover,
#next:hover {
    color: white;
}

.imgSlideOn {
    border: solid #ffffff 3px;
    transform: scale(1.1);
}

@media screen and (min-width: 1378px) {
    .gallery .img-item:nth-child(4n+1) {
        grid-column: unset;
        grid-row: span 2;
    }
}

@media screen and (max-width: 1177px) {
    .gallery .img-item:nth-child(4n+2) {
        grid-column: unset;
        grid-row: span 2;
    }
}

@media screen and (max-width: 1177px) {
    #lightBox .lightPreview {
        display: none;
        background-color: red;
    }

    #lightBox .lightImgWrap .lightImg {
        width: 40%;
    }

    #lightBox .lightImgWrap #prev,
    #lightBox .lightImgWrap #next {
        margin-top: 0;
    }
}

@media screen and (max-width: 877px) {
    .gallery .img-item:nth-child(4n+4) {
        grid-column: unset;
        grid-row: span 2;
    }

    #lightBox .lightPreview {
        display: none;
        background-color: red;
    }

    #lightBox .lightImgWrap .lightImg {
        width: 60%;
    }
}

@media screen and (max-width: 690px) {
    .gallery .img-item:nth-child(n+1) {
        grid-column: span 2;
        grid-row: span 2;
    }
}