#gallery-title-back-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--stroke-gray);
    margin-bottom: 16px;
}
#gallery-title-back-button h1 {
    color: #333;
    font-family: var(--general-sans-600);
    font-size: 24px;
    line-height: 18px; /* 120% */
}
/*
    gallery container
*/
#gallery-container {
    position: relative;
}

/*
    gallery filter button container
*/
#gallery-filter-container {
    position: sticky;
    width: 100%;
    height: fit-content;
    bottom: 1.5rem;
    right: 0;
    left: 0;
    background-color: #fff;
    box-shadow: var(--hard-shadow);
    border-radius: 24px;
    max-width: 300px;
    margin: 0 auto;
}
#open-filter-dropdown-yearly {
    color: white;
    opacity: 0;
    height: 0;
    transition:
        color 0.3s ease-in-out,
        opacity 0.3s ease-in-out,
        height 0.2s ease-in-out,
        rotate 0.3s ease-in-out,
        padding 0.2s ease-in-out;
    overflow: hidden;
    padding: 0;
    transform: rotateX(-90deg);
    transform-origin: bottom;
}
#open-filter-dropdown-yearly.open-filter-button {
    opacity: 1;
    height: auto;
    color: black;
    padding: 16px;
    transform: rotateX(0deg);
    max-height: 70vh;
    overflow-y: scroll;
}
#open-filter-dropdown-yearly::-webkit-scrollbar {
    display: none;
}
#open-filter-dropdown-yearly > div:last-child {
    margin-bottom: 1rem;
}
#filter-tanggal-gallery {
    font-size: 18px;
    padding: 8px 16px;
    width: 100%;
    display: block;
    border-radius: 9999px;
    box-shadow: var(--hard-shadow);
    text-align: center;
    font-family: var(--general-sans-500);
    margin-bottom: 2rem;
}
.filter-year-dropdown {
    font-family: var(--general-sans-500);
    display: block;
}
.filter-year-dropdown + div {
    margin-left: 1rem;
}
.open-filter-monthly {
    padding-bottom: 1rem;
}
.open-filter-monthly div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
}
.open-filter-monthly label {
    cursor: pointer;
}
/*
    gallery column
*/
#gallery-column {
    /*border-radius: 16px;*/
    column-count: 2;
    column-gap: 8px;
    margin-bottom: 2rem;
}
#gallery-column a {
    display: inline-block;
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

/*
    no item on gallery
*/
.gallery-item-not-found {
    display: grid;
    width: 100%;
    place-items: center;
    height: 100%;
}
#gallery-column:has(.gallery-item-not-found) {
    column-count: 1;
}
@media screen and (min-width: 768px) {
    #gallery-column {
        column-count: 3;
    }
}
@media screen and (min-width: 1280px) {
    #gallery-column {
        column-count: 4;
    }
    #gallery-title-back-button h1 {
        font-size: 28px;
        line-height: 16px; /* 120% */
    }
    #gallery-title-back-button {
        margin-bottom: 24px;
        padding-bottom: 32px;
    }

    /*
        move filter button to the left
    */
    #gallery-container {
        display: grid;
        justify-content: space-between;
        /*align-items: center;*/
        grid-template-columns: 250px 1fr;
        gap: 16px;
        grid-template-areas: "gallery-filter gallery-item";
    }
    #gallery-filter-container {
        grid-area: gallery-filter;
        position: relative;
        height: fit-content;
        bottom: 1.5rem;
        /*========*/
        width: unset;
        right: unset;
        left: unset;
        max-width: unset;
        margin: unset;
        margin-top: 24px;
        border-radius: 14px;
    }
    #gallery-column {
        grid-area: gallery-item;
        /*column-count: 4;*/
    }
    #open-filter-dropdown-yearly,
    #open-filter-dropdown-yearly.open-filter-button {
        opacity: 1;
        height: auto;
        color: black;
        transform: rotateX(0deg);
        max-height: unset;
        overflow: visible;
        overflow-y: scroll;
        padding: 24px 16px 16px;
    }
    #filter-tanggal-gallery {
        display: none;
    }
    .filter-year-dropdown {
        padding-bottom: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--stroke-gray);
        display: block;
        width: 100%;
        text-align: left;
    }
    #open-filter-dropdown-yearly > button:nth-child(1) {
        border-top: unset;
    }
    #gallery-container:has(.gallery-item-not-found) {
        column-count: 1;
    }
    #open-filter-dropdown-yearly > div:last-child {
        margin-bottom: 0;
    }
}
