.gallery-container {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 4rem;
}

.categories {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-in forwards;
}

.category-btn {
    background: transparent;
    border: none;
    color: #666;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-btn:hover {
    color: white;
}

.category-btn.active {
    color: white;
    border-bottom: 2px solid white;
}

/* FYF Button Specific Styles */
.fyf-btn {
    display: flex;
    gap: 0.3rem;
    padding: 0.5rem 0.5rem;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fyf-btn .word {
    display: flex;
    align-items: center;
}

.fyf-btn .rest {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-filter: blur(4px);
    filter: blur(4px);
    transform: translateX(-5px);
}

.fyf-btn:hover,
.fyf-btn.active {
    color: #ff0000 !important;
    gap: 0.8rem;
}

.fyf-btn:hover .rest,
.fyf-btn.active .rest {
    max-width: 100px; /* Adjust based on word length */
    opacity: 1;
    -webkit-filter: blur(0);
    filter: blur(0);
    transform: translateX(0);
    margin-left: 0.1rem;
}

.fyf-btn.active {
    border-bottom: 2px solid #ff0000;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.image-box {
    aspect-ratio: 16 / 9;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(20%);
}

.image-box:hover {
    border-color: #ff0000;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
}

.image-box:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.image-box.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        #111,
        #111 10px,
        #151515 10px,
        #151515 20px
    );
}

.pagination {
    display: flex;
    gap: 1rem;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.page-btn {
    background: transparent;
    border: 1px solid #333;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: "Courier New", Courier, monospace;
}

.page-btn:hover {
    border-color: #ff0000;
    color: white;
}

.page-btn.active {
    background: white;
    color: black;
    border-color: white;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .categories {
        gap: 1rem;
    }
    
    .category-btn {
        font-size: 0.9rem;
    }
}
