body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
}

.gallery-header {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    color: #2c3e50;
}

.gallery-header h1 {
    color: #2c3e50;
    margin: 0;
    font-size: 2.5rem;
}

.gallery-header p {
    color: #2c3e50;
    margin: 10px 0 0;
    font-size: 1.2rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #ddd;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Style panelu do przeglądania zdjęć */
.photo-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.photo-viewer.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.photo-viewer-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-viewer-image-container {
    position: relative;
    max-width: 100%;
    max-height: 85vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.photo-viewer-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.photo-viewer-info {
    /* disabled for now */
    display: none; 

    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.photo-viewer-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    color: #ecf0f1;
}

.photo-viewer-description {
    font-size: 0.95rem;
    margin: 8px 0 0;
    color: #bdc3c7;
}

.photo-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.photo-viewer-close:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.photo-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.8);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.photo-viewer-nav:hover {
    background: rgba(44, 62, 80, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.photo-viewer-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.photo-viewer-nav.disabled:hover {
    transform: translateY(-50%) scale(1);
    background: rgba(44, 62, 80, 0.8);
}

.photo-viewer-prev {
    left: 20px;
}

.photo-viewer-next {
    right: 20px;
}

.photo-viewer-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Loading spinner */
.photo-viewer-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(44, 62, 80, 0.3);
    border-top: 3px solid #2c3e50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsywność */
@media (max-width: 768px) {
    .photo-viewer-content {
        max-width: 98%;
        max-height: 98%;
    }

    .photo-viewer-image-container {
        max-height: 80vh;
    }

    .photo-viewer-image {
        max-height: 80vh;
    }

    .photo-viewer-close {
        width: 45px;
        height: 45px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }

    .photo-viewer-nav {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .photo-viewer-prev {
        left: 10px;
    }

    .photo-viewer-next {
        right: 10px;
    }

    .photo-viewer-info {
        padding: 12px 16px;
        margin-top: 10px;
    }

    .photo-viewer-title {
        font-size: 1rem;
    }

    .photo-viewer-description {
        font-size: 0.85rem;
    }

    .photo-viewer-counter {
        bottom: 10px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .photo-viewer-image-container {
        max-height: 75vh;
    }

    .photo-viewer-image {
        max-height: 75vh;
    }

    .photo-viewer-nav {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
}

/* Style cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    display: none;
}

.cookie-p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

.cookie-a {
    color: #3498db;
    text-decoration: underline;
}

.cookie-button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cookie-button:hover {
    background-color: #229954;
}