/* style.css - Wedding Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --cream: #FFFDF5;
    --gold: #D4AF37;
    --charcoal: #333333;
    --ivory: #F9F6EE;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--cream);
    color: var(--charcoal);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    text-align: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Card Styling for Upload Form */
.card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow);
    border: 1px solid #eee;
    text-align: center;
    max-width: 500px;
    margin: 50px auto;
}

select, input[type="file"], button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: inherit;
}

button {
    background-color: var(--gold);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background-color: #b8860b;
}

/* Host Gallery - Polaroid Style */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.polaroid {
    background: white;
    padding: 15px 15px 40px 15px;
    box-shadow: 0 4px 10px var(--shadow);
    border: 1px solid #eee;
    text-align: center;
    transition: transform 0.3s;
}

.polaroid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

.polaroid p {
    margin-top: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--gold);
}

/* Management Section - Hidden by default */
.mgmt-section {
    display: none;
    background: var(--ivory);
    padding: 20px;
    border-top: 2px solid var(--gold);
    margin-top: 50px;
}

.mgmt-active {
    display: block;
}

/* Lightbox Styling */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    border: 3px solid white;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-secondary {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    width: auto;
    padding: 10px 20px;
}

.btn-secondary:hover {
    background-color: var(--gold);
    color: white;
}

.polaroid {
    cursor: zoom-in;
}

.group-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 20px auto;
}

.group-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background: white;
    margin-bottom: 5px;
}

.delete-btn {
    color: #cc0000;
    cursor: pointer;
    font-weight: bold;
    width: auto;
    padding: 0 10px;
    background: none;
    border: none;
}
