/* ============================================================
   Violence Free Futures — Spring Fling Gallery
   Design tokens drawn from violencefreefutures.org
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --clr-primary:      #61098a;   /* deep purple  */
    --clr-primary-dark: #4a076b;
    --clr-secondary:    #a9a2c1;   /* muted lavender */
    --clr-accent:       #833556;   /* deep burgundy  */
    --clr-peach:        #ffd0b3;   /* warm peach     */
    --clr-peach-light:  #fff0e6;
    --clr-text:         #4b4f58;
    --clr-text-light:   #7a7e8a;
    --clr-bg:           #f8f8f8;
    --clr-white:        #ffffff;
    --clr-border:       #e4dff0;
    --clr-success:      #2e7d32;
    --clr-success-bg:   #e8f5e9;
    --clr-error:        #c62828;
    --clr-error-bg:     #ffebee;

    --font-heading:  'Work Sans', sans-serif;
    --font-script:   'Comforter', cursive;
    --font-ui:       'Poppins', sans-serif;
    --font-body:     'Inter', sans-serif;

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --shadow-sm:  0 2px 8px rgba(97, 9, 138, 0.08);
    --shadow-md:  0 4px 20px rgba(97, 9, 138, 0.12);
    --shadow-lg:  0 8px 40px rgba(97, 9, 138, 0.18);
    --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--clr-text);
    background: var(--clr-bg);
    min-height: 100vh;
}

a {
    color: var(--clr-primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--clr-accent); text-decoration: underline; }
a:focus-visible {
    outline: 2px dotted var(--clr-primary);
    outline-offset: 3px;
}

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}
.container-narrow {
    max-width: 640px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
    line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px dotted var(--clr-primary); outline-offset: 3px; }

.btn-primary {
    background: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
}
.btn-primary:hover {
    background: var(--clr-primary-dark);
    border-color: var(--clr-primary-dark);
    color: var(--clr-white);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--clr-white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--clr-white);
    color: var(--clr-white);
}

.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border-color: transparent;
}
.btn-ghost:hover {
    color: var(--clr-white);
    background: rgba(255,255,255,0.1);
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.btn-block { width: 100%; text-align: center; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.alert-error  { background: var(--clr-error-bg);   color: var(--clr-error);   border-left: 4px solid var(--clr-error); }
.alert-success { background: var(--clr-success-bg); color: var(--clr-success); border-left: 4px solid var(--clr-success); display: block; }
.alert ul { list-style: disc; padding-left: 1.2rem; }
.alert li { margin-bottom: 0.25rem; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    padding: 0.875rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--clr-white);
}
.header-logo {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    /* Light backdrop so logo text reads clearly against the purple header */
    background: linear-gradient(135deg, #ffffff 0%, #ffeede 100%);
    border-radius: var(--radius-md);
    padding: 5px 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}
.header-org  { font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.header-event{ font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; }
.header-nav  { display: flex; gap: 0.75rem; align-items: center; flex-shrink: 0; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
    background: var(--clr-primary);
    color: rgba(255,255,255,0.75);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.875rem;
    margin-top: 4rem;
}
.site-footer a { color: var(--clr-peach); }
.site-footer a:hover { color: var(--clr-white); }

/* ============================================================
   DECORATIVE PETALS  (login + hero backgrounds)
   ============================================================ */
@keyframes floatPetal {
    0%   { transform: translateY(0)   rotate(0deg)   scale(1);   opacity: 0.18; }
    50%  { transform: translateY(-30px) rotate(20deg) scale(1.05); opacity: 0.25; }
    100% { transform: translateY(0)   rotate(0deg)   scale(1);   opacity: 0.18; }
}

.petal {
    position: absolute;
    border-radius: 50% 0 50% 0;
    opacity: 0.18;
    animation: floatPetal 6s ease-in-out infinite;
}

/* ---------- Login page petal positions ---------- */
.login-backdrop {
    position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
    background: linear-gradient(160deg, #f0e8f9 0%, #fff0e6 50%, #f8e6f0 100%);
}
.login-backdrop .petal-1 { width: 200px; height: 200px; background: var(--clr-primary);   top: -60px;  left: -60px;  animation-delay: 0s; }
.login-backdrop .petal-2 { width: 140px; height: 140px; background: var(--clr-accent);    top: 20%;   right: -40px; animation-delay: 1.5s; }
.login-backdrop .petal-3 { width: 180px; height: 180px; background: var(--clr-secondary); bottom: 10%; left: 5%;    animation-delay: 3s; }
.login-backdrop .petal-4 { width: 100px; height: 100px; background: var(--clr-peach);     bottom: 20%; right: 10%;  animation-delay: 4.5s; }
.login-backdrop .petal-5 { width: 120px; height: 120px; background: var(--clr-primary);   top: 50%;   left: 30%;   animation-delay: 2s; }

/* ---------- Hero petal positions ---------- */
.hero-petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-petals .petal-1 { width: 300px; height: 300px; background: rgba(255,255,255,0.08); top: -100px; right: -80px; animation-delay: 0s; }
.hero-petals .petal-2 { width: 180px; height: 180px; background: rgba(255,208,179,0.15); bottom: -60px; left: 10%;  animation-delay: 2s; }
.hero-petals .petal-3 { width: 120px; height: 120px; background: rgba(255,255,255,0.06); top: 20%;   left: -40px; animation-delay: 4s; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--clr-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    color: var(--clr-white);
}

.org-logo-wrap {
    display: inline-block;
    background: linear-gradient(150deg, #ffffff 0%, #ffeede 100%);
    border-radius: var(--radius-lg);
    padding: 0.6rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.org-logo {
    width: 110px;
    height: auto;
    display: block;
}

.org-name {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.event-title {
    font-family: var(--font-script);
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.event-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    opacity: 0.85;
}

.login-body {
    padding: 2rem;
}

.login-prompt {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ---------- Form ---------- */
.form-group  { margin-bottom: 1.25rem; }
.form-label  { display: block; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--clr-text); margin-bottom: 0.4rem; }
.form-input  {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--clr-text);
    background: var(--clr-white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(97, 9, 138, 0.12);
}

.login-footer {
    padding: 1rem 2rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--clr-text-light);
    border-top: 1px solid var(--clr-border);
}

/* ============================================================
   GALLERY HERO
   ============================================================ */
.gallery-hero {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    color: var(--clr-white);
    text-align: center;
    padding: 2rem 1.5rem 2.75rem;
    position: relative;
    overflow: hidden;
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}
.hero-count {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    opacity: 0.75;
    background: rgba(255,255,255,0.12);
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-top: 0.25rem;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-main {
    padding: 3rem 0 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1 / 1;
}

/* Cycle through brand palette letterbox backgrounds */
.gallery-item:nth-child(5n+1) { background: #ede8f7; } /* soft purple    */
.gallery-item:nth-child(5n+2) { background: #fff0e6; } /* warm peach     */
.gallery-item:nth-child(5n+3) { background: #f5e8ef; } /* blush burgundy */
.gallery-item:nth-child(5n+4) { background: #e8e6f3; } /* muted lavender */
.gallery-item:nth-child(5n+5) { background: #fdf6f0; } /* cream          */

.gallery-item-btn {
    width: 100%; height: 100%;
    border: none; background: none; padding: 0; cursor: pointer;
    display: block; position: relative;
}
.gallery-item-btn:focus-visible { outline: 3px solid var(--clr-primary); outline-offset: 2px; }

.gallery-thumb {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
    display: block;
}

.gallery-item-overlay {
    position: absolute; inset: 0;
    background: rgba(97, 9, 138, 0.45);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.overlay-icon { font-size: 2rem; color: var(--clr-white); }

.gallery-item-btn:hover .gallery-thumb,
.gallery-item-btn:focus-visible .gallery-thumb { transform: scale(1.06); }
/* Thumbnail download button */
.gallery-download-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    background: rgba(97, 9, 138, 0.75);
    color: var(--clr-white);
    border-radius: var(--radius-sm);
    width: 2rem; height: 2rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    opacity: 0;
    transition: opacity var(--transition), background var(--transition);
    backdrop-filter: blur(4px);
}
.gallery-item:hover .gallery-download-btn,
.gallery-download-btn:focus-visible {
    opacity: 1;
}
.gallery-download-btn:hover {
    background: var(--clr-primary);
    text-decoration: none;
    color: var(--clr-white);
}

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h2 { font-family: var(--font-heading); font-size: 1.75rem; color: var(--clr-primary); margin-bottom: 0.75rem; }
.empty-state p  { color: var(--clr-text-light); margin-bottom: 1.75rem; }

/* ============================================================
   YEAR NAV
   ============================================================ */
.year-nav {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(0,0,0,0.15);
}
.year-nav-inner {
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.year-nav-inner::-webkit-scrollbar { display: none; }

.year-nav-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    padding-right: 0.5rem;
}

.year-tab {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 0.75rem 1.1rem;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
    display: inline-block;
}
.year-tab:hover { color: var(--clr-white); text-decoration: none; }
.year-tab--active {
    color: var(--clr-white);
    border-bottom-color: var(--clr-peach);
}

/* Inline variant used on the upload page */
.year-select-wrap  { margin-bottom: 1.25rem; }
.year-tabs-inline  { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.4rem; }
.year-tabs-inline .year-tab {
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 0.4rem 1rem;
    border-bottom-width: 2px;
}
.year-tabs-inline .year-tab--active {
    border-color: var(--clr-primary);
    background: #f0e8f9;
    color: var(--clr-primary);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(10, 2, 20, 0.92);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    gap: 1rem;
}
.lightbox[hidden] { display: none; }

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 60px rgba(0,0,0,0.6);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255,255,255,0.12);
    color: var(--clr-white);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    z-index: 1001;
    border-radius: 50%;
    line-height: 1;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

.lightbox-close {
    top: 1.25rem; right: 1.25rem;
    font-size: 1.75rem;
    width: 2.75rem; height: 2.75rem;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 1.25rem;  top: 50%; transform: translateY(-50%); font-size: 2.5rem; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 2.5rem; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; }

.lightbox-toolbar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lightbox-counter {
    color: rgba(255,255,255,0.6);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.lightbox-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-white);
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.9rem;
    transition: background var(--transition), border-color var(--transition);
}
.lightbox-download-btn:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: var(--clr-white);
    text-decoration: none;
}

/* ============================================================
   UPLOAD PAGE
   ============================================================ */
.upload-main {
    padding: 3rem 0 5rem;
}
.upload-card {
    background: var(--clr-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    margin-top: 2rem;
}
.upload-title {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--clr-primary);
    margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.title-flower { font-size: 1.6rem; }
.upload-desc {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

/* ---------- Drop zone ---------- */
.drop-zone {
    position: relative;
    border: 2.5px dashed var(--clr-secondary);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    margin-bottom: 1.5rem;
    background: var(--clr-peach-light);
}
.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--clr-primary);
    background: #f0e8f9;
}
.drop-zone-input {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer; z-index: 1;
}
.drop-zone-inner { pointer-events: none; }
.drop-icon { font-size: 3rem; line-height: 1; margin-bottom: 0.75rem; }
.drop-text {
    font-size: 1rem;
    color: var(--clr-text);
    margin-bottom: 0.25rem;
}
.drop-link { color: var(--clr-primary); font-weight: 600; }
.drop-hint { font-size: 0.85rem; color: var(--clr-text-light); }

/* ---------- Overlay selector ---------- */
.overlay-selector {
    margin-bottom: 1.5rem;
}
.overlay-selector-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: 0.6rem;
}
.overlay-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.overlay-option {
    cursor: pointer;
}
.overlay-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.overlay-option-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem;
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-md);
    background: var(--clr-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    min-width: 72px;
}
.overlay-option:hover .overlay-option-inner {
    border-color: var(--clr-secondary);
}
.overlay-option--selected .overlay-option-inner {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(97, 9, 138, 0.15);
}
.overlay-thumb-pair {
    display: flex;
}
.overlay-option-thumb--portrait {
    width: 40px;
    height: 56px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #ffffff;
}
.overlay-option-thumb--landscape {
    display: none;
}
.overlay-none-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 2rem;
    color: var(--clr-text-light);
    line-height: 1;
}
.overlay-option-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--clr-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* ---------- Preview grid ---------- */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.preview-item {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
/* Cycle through the same brand palette as the gallery */
.preview-item:nth-child(5n+1) { background: #ede8f7; }
.preview-item:nth-child(5n+2) { background: #fff0e6; }
.preview-item:nth-child(5n+3) { background: #f5e8ef; }
.preview-item:nth-child(5n+4) { background: #e8e6f3; }
.preview-item:nth-child(5n+5) { background: #fdf6f0; }
.preview-item img,
.preview-item canvas {
    width: 100%; height: 100%; object-fit: contain; display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .header-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .header-nav   { width: 100%; justify-content: flex-end; }
    .login-header { padding: 2rem 1.5rem 1.5rem; }
    .login-body   { padding: 1.5rem; }
    .login-footer { padding: 0.75rem 1.5rem 1.25rem; }
    .upload-card  { padding: 1.5rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

@media (max-width: 400px) {
    .event-title { font-size: 2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
