/* 

.galleries-container {
    max-width: 1200px;
    margin: -30px auto 0 auto;
}

.galleries-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.galleries-row {
    display: grid;
    gap: 10px;
    justify-items: center;
    position: relative;
}

.galleries-row:nth-child(odd) {
    grid-template-columns: repeat(3, 1fr);
}

.galleries-row:nth-child(even) {
    grid-template-columns: repeat(4, 1fr);
}

.galleries-row img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: zoom-in;
} */

#galleries {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    overflow: hidden;
    /* background-image: url("/margo-utomo/assets/patterns/pattern1.png"); */
    background-repeat: repeat;
    background-position: center;
}

.galleries-row {
    column-count: 3;
    column-gap: 16px;
}

.galleries-row img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
    border-radius: 8px;
    break-inside: avoid;
    cursor: zoom-in;
}

@media (max-width: 992px) {
    .galleries-row {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .galleries-row {
        column-count: 1;
    }
}


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(255, 245, 230, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#caption {
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 20px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
