/* --- CSS PRE REFERENCIE --- */
body {
    padding-top: 100px; /* Odsadenie kvôli fixnému menu */
}

.gallery-section {
    padding: 3rem 0 5rem 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-header h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.gallery-header p {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Mriežka obrázkov */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    aspect-ratio: 4 / 3;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

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

.portfolio-item:hover img {
    transform: scale(1.08);
}

/* Overlay efekt */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay i {
    color: white;
    font-size: 2rem;
}

/* CTA sekcia na konci galérie */
.cta-banner {
    text-align: center;
    padding: 3rem;
}

.cta-banner h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cta-banner p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center; justify-content: center;
}

.lightbox img {
    max-width: 90%; max-height: 85%;
    border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute; top: 20px; right: 40px;
    font-size: 3rem; color: white; cursor: pointer;
}

.nav-lightbox {
    position: absolute; top: 50%; font-size: 3rem;
    color: white; cursor: pointer; padding: 20px;
}
.prev { left: 20px; }
.next { right: 20px; }

/* Responzivita */
@media screen and (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}