/* Główne style kontenera galerii */
.gallery-container {
    max-width: 1200px;
    margin: 120px auto 60px auto; /* Margines od góry, żeby menu nie zasłaniało */
    padding: 0 20px;
}

.gallery-container h1 {
    font-size: 2.8rem;
    color: var(--dark);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
}

.gallery-container .subtitle {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
}

/* Siatka */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Pojedyncza karta w galerii */
.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 68%; /* Stałe proporcje zdjęć */
    overflow: hidden;
    background: #ccc;
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .img-wrapper img {
    transform: scale(1.06);
}

.item-info {
    padding: 20px;
}

.item-category {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.item-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark);
}

nav a.active {
    color: var(--primary);
}

/* STYLIZACJA LIGHTBOX (Podgląd zdjęcia) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Przyciski sterowania */
.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.arrow {
    position: absolute;
    color: white;
    font-size: 40px;
    font-weight: bold;
    padding: 15px;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
}

.arrow:hover { color: var(--primary); }
.prev { left: 30px; }
.next { right: 30px; }

@media (max-width: 768px) {
    .arrow { font-size: 30px; padding: 10px; }
    .prev { left: 10px; }
    .next { right: 10px; }
}