/* Navigation */
.gallery-nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 160, 0, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.gallery-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-nav .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.gallery-nav .logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.gallery-nav .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    line-height: 1;
}

.gallery-nav .logo-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.gallery-nav .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.gallery-nav .nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-nav .nav-links a:hover,
.gallery-nav .nav-links a.active {
    color: rgba(255, 255, 255, 0.9);
}

.gallery-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.gallery-nav .nav-links a:hover::after,
.gallery-nav .nav-links a.active::after {
    width: 80%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Update navbar on scroll */
.gallery-nav.scrolled {
    background: rgba(255, 160, 0, 0.95);
}

.gallery-nav.scrolled .nav-links a {
    color: white;
}

.gallery-nav.scrolled .nav-links a:hover,
.gallery-nav.scrolled .nav-links a.active {
    color: rgba(255, 255, 255, 0.9);
}

.gallery-nav.scrolled .nav-links a::after {
    background-color: white;
}

.gallery-header {
    height: 40vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/pcelinjak.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    margin-top: 0;
}

.gallery-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-header p {
    font-size: 1.1rem;
    text-align: justify;
    padding: 0 1rem;
}

.gallery-container {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 20px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-image {
    margin-bottom: 1rem;
}

.gallery-description {
    text-align: justify;
    padding: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2rem;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    right: 2rem;
    top: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.modal-prev,
.modal-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-content {
    width: 90%;
    margin: 1rem auto;
}

/* Footer */
footer {
    background-color: #995500;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 2rem;
        text-align: center;
    }

    .gallery-header p {
        font-size: 1.1rem;
        text-align: justify;
        padding: 0 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 1rem;
    }

    .gallery-image {
        margin-bottom: 1rem;
    }

    .gallery-description {
        text-align: justify;
        padding: 1rem;
    }

    .mobile-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 160, 0, 0.95);
        padding: 1rem 0;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .gallery-nav .nav-links a::after {
        bottom: -5px;
    }

    .lightbox-content {
        width: 90%;
        margin: 1rem auto;
    }
}
