/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 0 40px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 8rem;
    color: #000000;
    letter-spacing: -2px;
}

/* Hero Section */
.hero {
    margin-bottom: 40px;
    width: 180%;
    margin-left: -40%;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

/* Gallery Section */
.gallery-section {
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
    color: #000000;
}

.gallery-item {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-item::after {
    content: 'Kliknij, aby powiększyć';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 128, 255, 0.3);
}

.gallery-item:hover::after {
    opacity: 1;
}

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

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

/* Button Group */
.button-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background-color: #ffffff;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn:hover {
    background-color: #f5f5f5;
    border-color: #cccccc;
}

.btn:active {
    transform: scale(0.98);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .hero {
        width: 100%;
        margin-left: 0;
    }

    .hero-image {
        border-radius: 12px;
    }

    .logo {
        font-size: 5rem;
    }

    .gallery-item {
        border-radius: 12px;
    }

    .button-group {
        gap: 8px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-controls {
        gap: 10px;
    }

    .lightbox-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .button-group {
        flex-direction: row;
    }

    .btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }

    .lightbox-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .lightbox-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Placeholder styles for missing images */
.gallery-item img[src=""],
.gallery-item img:not([src]),
.hero-image[src=""],
.hero-image:not([src]) {
    background-color: #0080ff;
}
