/* Personal Landing Page Starter Styles */
/* Customize these to make the page yours! */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px;
    background: #000000;
    color: #f5ecff;
    min-height: 100vh;
}

/* --- Header / Bio --- */

header {
    text-align: center;
    padding: 34px 20px;
    border: 1px solid #6f47a5;
    border-radius: 14px;
    background: rgba(18, 10, 33, 0.7);
    backdrop-filter: blur(4px);
    margin-bottom: 28px;
}

header h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

header p {
    color: #d7c4ef;
    margin: 10px 0;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

header nav {
    margin-top: 15px;
}

header nav a {
    color: #ffe6a6;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 600;
    font-size: 15px;
}

header nav a:hover {
    color: #fff3cf;
    text-decoration: underline;
}

/* --- Photo Gallery Grid --- */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.photo {
    background: #1e1033;
    border: none;
    border-radius: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-shadow: none;
    transition: none;
}

.photo:hover {
    transform: none;
    box-shadow: none;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1e1033;
    display: block;
    cursor: zoom-in;
}

.photo p {
    display: none;
}

/* --- Footer --- */

footer {
    text-align: center;
    padding: 28px 0;
    margin-top: 40px;
    border-top: 1px solid #64458f;
    color: #c8afd8;
    font-size: 12px;
}

/* --- Lightbox --- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 4, 20, 0.9);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    padding: 64px 24px 84px;
    z-index: 1000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 78vh;
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    background: #120a21;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.lightbox img.from-zoom {
    opacity: 0;
    transform: scale(0.96);
}

.lightbox img.to-left,
.lightbox img.from-left {
    opacity: 0;
    transform: translateX(-36px);
}

.lightbox img.to-right,
.lightbox img.from-right {
    opacity: 0;
    transform: translateX(36px);
}

.lightbox-caption {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #f2e7ff;
    background: rgba(25, 12, 43, 0.88);
    border: 1px solid #7b56ae;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    letter-spacing: 0.02em;
    opacity: 1;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.lightbox-caption.changing {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    border: 1px solid #8b64bf;
    background: rgba(28, 14, 48, 0.88);
    color: #f7ecff;
    border-radius: 999px;
    cursor: pointer;
}

.lightbox-close {
    top: 18px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 28px;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 1;
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(45, 21, 76, 0.95);
}

@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- Responsive adjustments --- */

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 28px;
    }

    body {
        padding: 16px;
    }

    .lightbox {
        padding: 72px 10px 92px;
    }

    .lightbox-nav {
        top: auto;
        bottom: 28px;
        transform: none;
    }

    .lightbox-prev {
        left: 18%;
    }

    .lightbox-next {
        right: 18%;
    }

    .lightbox-caption {
        bottom: 80px;
        font-size: 13px;
        max-width: 92vw;
        text-align: center;
    }
}
