<!DOCTYPE html >
<html lang="pl" >
<head >
<meta charset="UTF-8" >
<meta name="viewport" content="width=device-width, initial-scale=1.0" >
<title > Kinga Raszczyk Portfolio</title >
<link href="https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@300;400;600&display=swap" rel="stylesheet" >
<style >
/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Kolory i fonty */
:root {
    --main-color: #1a1313;
    --accent-color: #ffffff;
    --bg-light: hsl(0, 16%, 15%);
}

body {
    font-family: 'Poppins', sans-serif;
    background: #1a1313;
    color: #333;
    line-height: 1.6;
}

/* Kontener */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 20px;
    box-shadow: 0 6px 25px rgb(51, 51, 51);
    text-align: center;
}

/* Nagłówki */
.header {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(36px, 6vw, 64px);
    color: #dedbcc;
    margin-bottom: 30px;
}

/* Hamburger */
.hamburger {
    position: fixed;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    z-index: 3000;
    color: #ffffff;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 3px;
    background: #333;
    transition: transform 0.3s;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

    .hamburger-inner::before {
        top: -8px;
    }

    .hamburger-inner::after {
        bottom: -8px;
    }

.hamburger[aria-expanded="true"] .hamburger-inner {
    background: transparent;
}

    .hamburger[aria-expanded="true"] .hamburger-inner::before {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger[aria-expanded="true"] .hamburger-inner::after {
        transform: translateY(-8px) rotate(-45deg);
    }

/* Menu */
.side-menu {
    position: fixed;
    right: -400px;
    top: 0;
    width: 260px;
    height: 100%;
    background: #1a1313;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    padding: 30px;
    transition: right 0.3s ease;
    z-index: 2001;
}

    .side-menu.visible {
        right: 0;
    }

.menu-header {
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.menu-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    background: none;
    border: none;
    width: 100%;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

    .menu-item:hover {
        color: var(--accent-color);
    }

/* Strona główna - układ 6 zdjęć w gridzie */
.home-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 300px; /* Zwiększona wysokość dla polaroida */
    gap: 25px;
}

    .home-gallery img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 2px;
        /* Styl polaroida */
        background: white;
        padding: 10px 10px 40px 10px; /* Większy dolny padding dla efektu polaroid */
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        border: 1px solid rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

        .home-gallery img:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 20px rgba(0,0,0,0.25);
        }

/* Galeria klasyczna */
.home-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: auto; /* ZMIENIONE na auto */
    gap: 30px; /* Odstęp między zdjęciami */
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    grid-auto-rows: auto; /* ZMIENIONE na auto */
    gap: 50px; /* Odstęp między zdjęciami */
}

    .home-gallery img, .grid-gallery img {
        width: 100%;
        height: 350px; /* Stała wysokość zdjęcia */
        object-fit: cover;
        border-radius: 2px;
        /* Styl polaroida */
        background: white;
        padding: 10px 10px 50px 10px; /* ZWIĘKSZONY dolny padding do 50px */
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        border: 1px solid rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

@media (max-width:768px) {
    .home-gallery, .grid-gallery {
        grid-template-columns: repeat(2,1fr);
        gap: 25px; /* ZWIĘKSZONE z 20px do 25px */
        margin-right: 40px;
    }

        .home-gallery img, .grid-gallery img {
            height: 170px; /* Zmniejszone o 10px dla lepszych proporcji */
            padding: 8px 8px 40px 8px;
        }
}

@media (max-width:480px) {
    .home-gallery, .grid-gallery {
        grid-template-columns: 1fr;
        gap: 170px; /* ZWIĘKSZONE z 25px do 30px */
        margin-right: 40px;
    }

        .home-gallery img, .grid-gallery img {
            height: 350px; /* Zmniejszone o 20px */
            padding: 10px 10px 45px 10px;
        }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* Okienka info */
.about-box, .contact-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0.8);
    background: #2c2020;
    color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    max-width: 400px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 2500;
}

    .about-box.visible, .contact-box.visible {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1);
        pointer-events: auto;
    }

.close-about, .close-contact {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--main-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
}

/* Mobilne */
@media (max-width:768px) {
    .home-gallery {
        grid-template-columns: repeat(2,1fr);
        grid-auto-rows: 200px;
    }

    .grid-gallery {
        grid-template-columns: repeat(2,1fr);
        grid-auto-rows: 200px;
    }
}

@media (max-width:480px) {
    .home-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .grid-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
}

</style >
</head >
<body >
<!-- Hamburger -->
<button class="hamburger" id="hamburger-btn" aria-label="Menu" aria-expanded="false" >
<span class="hamburger-box" > <span class="hamburger-inner" > </span > </span >
</button >
<!-- Menu -->
<div class="side-menu" id="side-menu" >
<div class="menu-header" > Menu</div >
<a href="https://www.instagram.com/kingaraszczyk_/" target="_blank" class="menu-item" > Instagram</a >
<button class="menu-item" id="about-btn" > O mnie</button >
<button class="menu-item" id="contact-btn" > Kontakt</button >
<a href="https://www.facebook.com/kinga.raszczyk" target="_blank" class="menu-item" > Facebook</a >
<a href="galeria.html" class="menu-item" > Galeria</a >
</div >

<div class="container" >
<div class="header" > Kinga Raszczyk<br > Portfolio</div >
<div class="home-gallery" >
<img src="https://picsum.photos/400/500?random=1" alt="Zdjęcie 1" >
<img src="https://picsum.photos/400/500?random=2" alt="Zdjęcie 2" >
<img src="https://picsum.photos/400/500?random=3" alt="Zdjęcie 3" >
<img src="https://picsum.photos/400/500?random=4" alt="Zdjęcie 4" >
<img src="https://picsum.photos/400/500?random=5" alt="Zdjęcie 5" >
<img src="https://picsum.photos/400/500?random=6" alt="Zdjęcie 6" >
</div >
</div >
<!-- Modal -->
<div id="modal" class="modal" >
<span class="close" > &times;</span >
<img class="modal-content" id="modal-img" alt="Powiększone zdjęcie" >
</div >
<!-- Okienka -->
<div id="about-box" class="about-box" > <p >
167cm 76-59-86 <br >
oczy: zielone<br / > włosy: rude<br / > rozmiar buta: 40
</p > <button id="close-about" class="close-about" > Zamknij</button > </div >
<div id="contact-box" class="contact-box" > <p > e-mail: kinga@raszczyk.info</p > <button id="close-contact" class="close-contact" > Zamknij</button > </div >
<div class="overlay" id="overlay" > </div >

<script >
// Modal zdjęć
const modal = document.getElementById("modal");
const modalImg = document.getElementById("modal-img");
document.querySelectorAll(".home-gallery img").forEach(img => {
            img.addEventListener("click", () => { modal.style.display = "flex"; modalImg.src = img.src; });
        });
document.querySelector(".close").addEventListener("click", () => modal.style.display = "none");
modal.addEventListener("click", e => { if (e.target === modal) modal.style.display = "none"; });

// Hamburger menu
document.addEventListener('DOMContentLoaded', function () {
            const hamburgerBtn = document.getElementById('hamburger-btn');
            const sideMenu = document.getElementById('side-menu');
            const overlay = document.getElementById('overlay');
            const aboutBtn = document.getElementById('about-btn');
            const contactBtn = document.getElementById('contact-btn');
            const closeAbout = document.getElementById('close-about');
            const closeContact = document.getElementById('close-contact');
            const aboutBox = document.getElementById('about-box');
            const contactBox = document.getElementById('contact-box');

            function toggleMenu() {
                const isExpanded = hamburgerBtn.getAttribute('aria-expanded') === 'true';
                hamburgerBtn.setAttribute('aria-expanded', !isExpanded);
                sideMenu.classList.toggle('visible');
                document.body.classList.toggle('menu-open');
                overlay.style.display = isExpanded ? 'none' : 'block';
            }
            function closeMenu() {
                hamburgerBtn.setAttribute('aria-expanded', 'false');
                sideMenu.classList.remove('visible');
                document.body.classList.remove('menu-open');
                overlay.style.display = 'none';
            }

            hamburgerBtn.addEventListener('click', e => { e.stopPropagation(); toggleMenu(); });
            document.addEventListener('click', e => { if (!sideMenu.contains(e.target) && e.target !== hamburgerBtn) closeMenu(); });

            aboutBtn.addEventListener('click', () => { aboutBox.classList.add('visible'); overlay.style.display = 'block'; closeMenu(); });
            contactBtn.addEventListener('click', () => { contactBox.classList.add('visible'); overlay.style.display = 'block'; closeMenu(); });
            closeAbout.addEventListener('click', () => { aboutBox.classList.remove('visible'); overlay.style.display = 'none'; });
            closeContact.addEventListener('click', () => { contactBox.classList.remove('visible'); overlay.style.display = 'none'; });
            overlay.addEventListener('click', () => { aboutBox.classList.remove('visible'); contactBox.classList.remove('visible'); closeMenu(); });
        });
</script >
</body >
</html >
