body { font-family: sans-serif; margin: 0; padding: 0; background: #f4f4f4; }

.navbar { background: #333; color: white; padding: 1rem; display: flex; justify-content: space-between; align-items: center; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: white; text-decoration: none; }

.main-container { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }

.featured-wrapper {
    width: 100%;
    height: 500px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

#featured-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#image-caption { color: #fff; padding: 10px; }

.thumbnail-scroller {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    background: #f8f8f8;
    border-top: 1px solid #ddd;
}

.scrolling-track {
    display: flex;
    width: max-content;
    gap: 15px;
    
    animation: scroll 20s linear infinite;
}

.scrolling-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
    opacity: 0.8;
}

.thumb:hover {
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cat-btn {
    background: white;
    border: 2px solid #ddd;
    border-radius: 30px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    color: #555;
}

.cat-btn i {
    color: #007bff;
}

.cat-btn:hover {
    border-color: #007bff;
    background: #f0f8ff;
    transform: translateY(-2px);
}

.cat-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.cat-btn.active i {
    color: white;
}

.site-footer {
    background-color: #222;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top p {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.footer-divider {
    height: 1px;
    background-color: #444;
    width: 100px;
    margin: 15px auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.featured-wrapper {
    position: relative;
    overflow: hidden;
}

.gallery-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    z-index: 10;
    
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.featured-wrapper:hover .gallery-controls {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}