body {
    font-family: Arial, sans-serif;
    background-color: #111;
    text-align: center;
    color: white;
    transition:  0.5s ease;
}
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: black;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}
.dark-mode {
    background-color: #eee;
    color: black;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}
.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.gallery img:hover {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    transform: scale(0.8);
    transition: transform 0.5s ease;
}
.caption {
    margin-top: 10px;
    font-size: 18px;
}
.lightbox.show {
    visibility: visible;
    opacity: 1;
}
.lightbox.show img {
    transform: scale(1);
}
.close, .prev, .next {
    position: absolute;
    font-size: 30px;
    color: white;
    cursor: pointer;
    padding: 10px;
}
.close { top: 20px; right: 30px; }
.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.next { right: 20px; top: 50%; transform: translateY(-50%); }