* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: 0.3s;
}

:root {
    --bg: #f9f9f9;
    --text: #333;
    --card: #fff;
}

.dark {
    --bg: #181818;
    --text: #f9f9f9;
    --card: #282828;
}

header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    color: white;
    border-radius: 0 0 20px 20px;
}

.controls {
    margin-top: 15px;
}

.controls button {
    margin: 5px;
    padding: 8px 12px;
    border: none;
    background: #fff;
    color: #333;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.controls button:hover {
    transform: scale(1.07);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
}

.photo {
    overflow: hidden;
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 3px 7px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.3s;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.photo:hover img {
    transform: scale(1.05);
}

/* Fullscreen popup */
.popup {
    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: 1000;
}

.popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}
