#portfolio-container h1 {
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    display: none;
}

#portfolio-container h1 span {
    position: relative;
    display: inline-block;
    padding: 0 0.1rem; 
}

#portfolio-container h1 span::before {
    content: '';
    position: absolute;
    top: 0rem;     
    left: -0.1rem;   
    right: 0.1rem;
    height: 0.25rem;
    background:
        linear-gradient(rgba(173, 146, 119, 0.5), rgba(173, 146, 119, 0.5)) 0 0 / 0.25rem 0.0625rem no-repeat,
        linear-gradient(rgba(173, 146, 119, 0.5), rgba(173, 146, 119, 0.5)) 0 0 / 0.0625rem 0.25rem no-repeat,
        linear-gradient(rgba(173, 146, 119, 0.5), rgba(173, 146, 119, 0.5)) 100% 0 / 0.25rem 0.0625rem no-repeat,
        linear-gradient(rgba(173, 146, 119, 0.5), rgba(173, 146, 119, 0.5)) 100% 0 / 0.0625rem 0.25rem no-repeat;
}

#portfolio-container h1 span::after {
    content: '';
    position: absolute;
    bottom: 0.3rem;   
    left: -0.1rem;
    right: 0.1rem;
    height: 0.25rem;
    background: 
        linear-gradient(rgba(173, 146, 119, 0.5), rgba(173, 146, 119, 0.5)) 0 100% / 0.25rem 0.0625rem no-repeat,
        linear-gradient(rgba(173, 146, 119, 0.5), rgba(173, 146, 119, 0.5)) 0 100% / 0.0625rem 0.25rem no-repeat,
        linear-gradient(rgba(173, 146, 119, 0.5), rgba(173, 146, 119, 0.5)) 100% 100% / 0.25rem 0.0625rem no-repeat,
        linear-gradient(rgba(173, 146, 119, 0.5), rgba(173, 146, 119, 0.5)) 100% 100% / 0.0625rem 0.25rem no-repeat;
}

#buttons-container {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1rem;
    row-gap: 0.5rem;
    margin-top: 0.5rem;
}

#buttons-container button {
    background: rgba(0, 0, 0, 0.5);
    color: #b79f86;
    border: 1px solid rgba(172, 144, 118, 0.5);
    padding: 0.3rem;
    padding-inline: 0.75rem;
    font-family: "Cinzel", serif;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease-out;
    margin-top: 0.5rem;
    width: fit-content;
    font-weight: 600;
    text-align: center;
}

#buttons-container button.active-category,
#buttons-container button:hover {
    background: linear-gradient(to right, #a98d73 0%, #b79f86 50%, #a98d73 100%);
    color: #070707;
}

#buttons-container button:hover {
    filter: brightness(1.15);
}

#gallery-container {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 2rem;
    gap: 0; 
}

.photo-pair {
    flex-grow: 1; 
    width: 100%;
    max-width: 42rem;
    /* min-width: 22.25rem;  */
    display: flex;
    gap: 0;
}

.photo-pair a {
    flex: 1;
    display: block;
    position: relative;
    overflow: hidden;
}

.photo-pair img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.photo-pair a:hover img {
    transform: scale(1.05);
    z-index: 2;
}

@media (min-width: 1024px) {
    #portfolio-container h1 {
        display: block;
        margin-bottom: 2rem;
    }

    #buttons-container {
        margin-top: 0;
    }
}