input[name="filter"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
}
input[name="filter"] + label {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
}
input[name="filter"]:checked + label {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--surface);
}
input[name="filter"]:not(:checked) + label:hover {
    background-color: var(--pink-bg);

    transition: background-color .4s ease,
        border-color .4s ease;
}
input[name="filter"]:focus-visible + label {
    outline: 2px solid var(--heading-accent);
    outline-offset: 3px;
}

#filter-and-text-container {
    display: flex;
    flex-direction: column;

    margin: 20px 0;
}
#gallery-section hr {
    margin-bottom: 20px;
}
.filters-container {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;
}

hr {
    height: 1px;
    background-color: var(--border);
    border: none;
}

#gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 10px;

    list-style: none;
    padding: 0;
}
#gallery li .tab-btn {
    background-color: inherit;
    border: none;
    text-align: left;
    border-radius: 5px;
}
#gallery .img-holder {
    position: relative;
    border-radius: 5px;
    aspect-ratio: 1 / 1;
}
#gallery li .img-holder img {
    transition: transform 0.3s ease;
}
#gallery li:hover .img-holder img {
    transform: scale(1.05);
}
#gallery .img-holder::after {
    content: "+";
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;

    bottom: 10px;
    right: 10px;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background-color: var(--surface);
}
#gallery li h2 {
    font-family: "poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin: 5px 0 5px 0;

    /* line-height: 1.2rem; */
}
#gallery li p {
    margin: 0;
    font-size: 12px;
    /* line-height: 1rem; */
}

#gallery-modal[open] {
    display: flex;
}
#gallery-modal:not([open]) {
    display: none;
}

#gallery-modal {
    flex-direction: column;
    position: fixed;

    margin: auto;
    box-sizing: border-box;

    max-width: calc(100% - 40px);
    height: 80vh;

    background-color: var(--background);
    border: none;
    border-radius: 10px;
    padding: 0; 

    z-index: 101;
}
#gallery-modal::backdrop {
    background-color: rgb(0 0 0 / 60%);
}
#gallery-modal .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 20px;
    height: 100px;
}
#gallery-modal #close-modal {
    display: flex;
    align-items: center;
    justify-content: center;

    appearance: none;
    margin-left: auto;

    border: 1px solid var(--border);
    color: var(--primary);
    background-color: inherit;
    border-radius: 50%;

    width: 40px;
    height: 40px;
}
#gallery-modal .img-holder {
    width: 100%;
    height: 100%;
    background-color: #dfdfdf;
}
#gallery-modal .img-holder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
#gallery-modal #modal-title {
    font-family: "poppins", sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 20px 0;
}
#gallery-modal .content {
    height: 200px;
    padding: 0 20px 10px 20px;
}
#gallery-modal .content h2 {
    margin: 10px 0;
}
#gallery-modal .content a { 
    font-size: 12px;
    padding: 10px 15px;
}
#gallery-modal .content p {
    font-size: 12px;
}

#spotted-something {
    padding: 30px 20px;
    background-color: var(--pink-bg);

    border-radius: 10px;
}
#spotted-something h2 {
    margin: 0;
}
#spotted-something p {
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    #filter-and-text-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    #gallery-section hr {
        margin-bottom: 30px;
    }

    #gallery {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 30px;

        margin-bottom: 80px;
    }
    #gallery li h2 {
        font-size: 16px;
        font-weight: 500;
        margin: 10px 0;

        /* line-height: 1.2rem; */
    }

    #spotted-something {
        display: flex;
        justify-content: space-between;
        align-items: center;

        padding: 40px;
    }
    #spotted-something h2 {
        font-size: 2.8rem;
        /* line-height: 2.8rem; */
    }
    #spotted-something a {
        height: fit-content;
    }
    #spotted-something p {
        margin-bottom: 0;
    }

    #gallery-modal {
        width: 65vw;
        height: 85vh;
    }

}