/* WEYWOT GALLERY STYLES 2.0 */
.weywot-gallery-wrap { margin: 40px 0; width: 100%; }

.wg-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    background: #0a0b0c;
    border: 1px solid #1a1a1a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.wg-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}
.wg-item:hover img { transform: scale(1.08); filter: brightness(0.4) blur(2px); }

/* ANIMOWANA NAKŁADKA ZACHĘCAJĄCA DO KLIKNIĘCIA */
.wg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: radial-gradient(circle, rgba(0,255,65,0.1) 0%, rgba(0,0,0,0.6) 100%);
    color: #fff;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    text-align: center;
    padding: 20px;
}
.wg-item:hover .wg-overlay { opacity: 1; }

.wg-pulse-icon {
    width: 50px; height: 50px;
    background: var(--accent); color: #000;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 15px;
    animation: pulseGlow 1.5s infinite;
}
.wg-pulse-icon svg { width: 24px; height: 24px; fill: currentColor; }
.wg-title { margin: 0 0 5px 0; font-size: 1.2rem; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: 1px; transform: translateY(20px); transition: 0.4s; }
.wg-desc { margin: 0; font-size: 0.85rem; color: #ccc; transform: translateY(20px); transition: 0.4s; transition-delay: 0.1s; }
.wg-item:hover .wg-title, .wg-item:hover .wg-desc { transform: translateY(0); }

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 255, 65, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0); }
}

/* --- STYLE WYŚWIETLANIA --- */

/* 1. Nowość: BENTO BOX */
.wg-style-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 20px; }
.wg-style-bento .wg-item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; } /* Wielki główny */
.wg-style-bento .wg-item:nth-child(6n + 2), .wg-style-bento .wg-item:nth-child(6n + 3) { grid-column: span 1; grid-row: span 1; } /* Małe kwadraty */
.wg-style-bento .wg-item:nth-child(6n + 4) { grid-column: span 2; grid-row: span 1; } /* Szeroki poziomy */
.wg-style-bento .wg-item:nth-child(6n + 5), .wg-style-bento .wg-item:nth-child(6n + 6) { grid-column: span 1; grid-row: span 1; }

/* 2. Grid, Masonry, Scroll (Bez zmian) */
.wg-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.wg-style-grid .wg-item { aspect-ratio: 1 / 1; }
.wg-style-masonry { column-count: 3; column-gap: 20px; }
.wg-style-masonry .wg-item { margin-bottom: 20px; break-inside: avoid; display: inline-block; width: 100%; }
.wg-style-masonry .wg-item img { height: auto; }
.wg-style-scroll { display: flex; overflow-x: auto; gap: 20px; padding-bottom: 20px; scroll-snap-type: x mandatory; }
.wg-style-scroll::-webkit-scrollbar { height: 8px; }
.wg-style-scroll::-webkit-scrollbar-track { background: #111; }
.wg-style-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
.wg-style-scroll .wg-item { flex: 0 0 300px; height: 300px; scroll-snap-align: start; }

/* --- LIGHTBOX Z NAWIGACJĄ --- */
.wg-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(15px);
    z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.4s ease;
}
.wg-lightbox.active { opacity: 1; visibility: visible; }
.wg-lb-img { max-width: 85vw; max-height: 75vh; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.9); border: 1px solid #222; }
.wg-lb-caption { margin-top: 25px; text-align: center; color: #fff; max-width: 800px; }
.wg-lb-caption strong { color: var(--accent); font-size: 1.4rem; display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 2px; }

/* Przyciski w Lightboxie */
.wg-lb-btn { position: absolute; background: #111; border: 1px solid #333; color: #fff; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; transition: 0.3s; top: 50%; transform: translateY(-50%); z-index: 10000; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.wg-lb-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); transform: translateY(-50%) scale(1.1); }
.wg-lb-prev { left: 30px; }
.wg-lb-next { right: 30px; }
.wg-lb-close { position: absolute; top: 30px; right: 30px; background: transparent; border: none; font-size: 2.5rem; color: #fff; cursor: pointer; transition: 0.3s; z-index: 10000; }
.wg-lb-close:hover { color: #ff4141; transform: rotate(90deg); }

/* RWD */
@media(max-width: 992px) { .wg-style-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media(max-width: 768px) { 
    .wg-style-masonry { column-count: 2; } 
    .wg-style-bento { grid-template-columns: 1fr; grid-auto-rows: 250px; } 
    .wg-style-bento .wg-item:nth-child(n) { grid-column: span 1 !important; grid-row: span 1 !important; }
    .wg-lb-btn { width: 40px; height: 40px; } .wg-lb-prev { left: 10px; } .wg-lb-next { right: 10px; }
}