/* BASE */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #0f0f0f;
    color: #fff;
}

.hero {
    padding: 70px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1f1f1f, #111);
}

.hero h1 {
    font-size: 2.5rem;
}

.btn {
    padding: 12px 30px;
    background: #ff4d4d;
    color: white;
    text-decoration: none;
    border-radius: 30px;
}

/* GALLERY (MOBILE FIRST) */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
}

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
        padding: 15px;
    }
}

.photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}

.photo-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .photo-card img {
        height: 240px;
    }
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    font-size: 14px;
}

.meta button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
}

/* UPLOAD */
.upload-box {
    max-width: 350px;
    margin: 80px auto;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    background: rgba(255,255,255,0.05);
}

.upload-box.drag {
    border: 2px dashed #ff4d4d;
}

/* LIGHTBOX (FULLSCREEN MOBILE) */
.lightbox {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox.hidden {
    display: none;
}

.lightbox img {
    max-height: 80vh;   /* max height 80% of viewport */
    max-width: 90vw;    /* max width 90% of viewport */
    object-fit: contain; /* keep aspect ratio */
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.lightbox-info {
    padding: 10px 15px;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto 10px auto;
}

.lightbox-info.hidden {
    display: none;
}

.close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
}

.lightbox-container {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-container img {
    max-height: 80vh;
    max-width: 90vw;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 36px;
    padding: 10px 16px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    user-select: none;
}

.nav.prev {
    left: 10px;
}

.nav.next {
    right: 10px;
}

.nav:hover {
    background: rgba(255,77,77,0.8);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .nav {
        font-size: 28px;
        padding: 8px 12px;
    }
}

