/* ==================================================================
   Photofine — Landing page do Álbum (galeria compartilhada)
   Estilo premium claro, mobile-first (inspirado no layout de casamento).
   Accent vem da marca do fotógrafo (--accent).
   ================================================================== */
.alb-lp * { margin: 0; padding: 0; box-sizing: border-box; }

.alb-lp {
    --lp-bg: #FCFAF8;
    --lp-card: #FFFFFF;
    --lp-dark: #2A3B32;
    --lp-muted: #6E7A73;
    --lp-border: #E8E5DF;
    --lp-accent: var(--accent, #D4AF37);
    --lp-accent-hover: color-mix(in srgb, var(--lp-accent) 82%, #000);
    --font-title: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', system-ui, sans-serif;
    background: #EFECE7;
    color: var(--lp-muted);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.alb-lp h1, .alb-lp h2, .alb-lp h3 { font-family: var(--font-title); color: var(--lp-dark); font-weight: 400; }
.alb-lp a { color: inherit; }

.alb-lp .wrapper {
    max-width: 520px;
    margin: 0 auto;
    background: var(--lp-bg);
    box-shadow: 0 0 50px rgba(0, 0, 0, .1);
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}
.alb-lp section { padding: 56px 28px; text-align: center; }
.alb-lp .section-header { margin-bottom: 34px; }
.alb-lp .section-title { font-size: 30px; margin-bottom: 14px; position: relative; display: inline-block; }
.alb-lp .section-title::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 42px; height: 1px; background: var(--lp-accent);
}
.alb-lp .body-text { font-size: 15px; color: var(--lp-muted); }

/* Botões */
.alb-lp .btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--lp-accent); color: #fff; padding: 16px 30px; border: none;
    border-radius: 4px; font-family: var(--font-body); font-size: 13px;
    text-transform: uppercase; letter-spacing: 2px; font-weight: 700; cursor: pointer;
    transition: all .3s ease; text-decoration: none; width: 100%;
}
.alb-lp .btn-primary:hover { background: var(--lp-accent-hover); transform: translateY(-2px); }
.alb-lp .btn-ghost {
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45);
    color: #fff; backdrop-filter: blur(5px);
}
.alb-lp .btn-ghost:hover { background: rgba(255, 255, 255, .28); }
.alb-lp .btn-map {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
    background: transparent; border: 1px solid var(--lp-accent); color: var(--lp-accent);
    padding: 10px 18px; border-radius: 999px; font-family: var(--font-body);
    font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
    text-decoration: none; transition: all .25s ease;
}
.alb-lp .btn-map:hover { background: var(--lp-accent); color: #fff; }

/* Hero */
.alb-lp .hero {
    position: relative; min-height: 92vh; display: flex; flex-direction: column;
    justify-content: space-between; padding: 42px 22px;
    background-size: cover; background-position: center;
    color: #fff;
}
.alb-lp .hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(42, 59, 50, .18) 0%, rgba(42, 59, 50, .55) 55%, rgba(42, 59, 50, .86) 100%);
}
.alb-lp .hero > * { position: relative; z-index: 1; }
.alb-lp .hero-top { text-align: center; padding-top: 14px; }
.alb-lp .date-badge {
    font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 5px; display: inline-block;
}
.alb-lp .hero-content { text-align: center; margin-bottom: 10px; }
.alb-lp .couple-name {
    font-size: clamp(38px, 11vw, 52px); line-height: 1.08; margin-bottom: 14px; color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, .45);
}
.alb-lp .invitation-text {
    font-style: italic; font-family: var(--font-title); font-size: 19px;
    color: rgba(255, 255, 255, .92); margin-bottom: 26px;
}
.alb-lp .hero-cta { max-width: 320px; margin: 0 auto; }

/* Detalhes do evento */
.alb-lp .event-info { background: var(--lp-card); border-top: 1px solid var(--lp-border); border-bottom: 1px solid var(--lp-border); }
.alb-lp .info-card { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px dashed var(--lp-border); }
.alb-lp .info-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.alb-lp .info-icon { font-size: 23px; color: var(--lp-accent); margin-bottom: 12px; }
.alb-lp .info-card h3 { font-size: 20px; margin-bottom: 8px; }

/* Galeria pré-wedding */
.alb-lp .gallery-section { background: var(--lp-bg); }
.alb-lp .gallery-quote { font-family: var(--font-title); font-style: italic; font-size: 18px; color: var(--lp-dark); margin-bottom: 26px; }
.alb-lp .photo-grid { columns: 2; column-gap: 10px; }
.alb-lp .photo-grid img {
    display: block; width: 100%; height: auto; object-fit: cover; border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .03); transition: transform .3s ease; cursor: zoom-in;
    margin: 0 0 10px; break-inside: avoid;
}
.alb-lp .photo-grid img:hover { transform: scale(1.01); }

/* Galeria oficial (link /s/{token}): mais larga e com mais colunas no desktop */
@media (min-width: 900px) {
    .alb-lp.alb-galeria .wrapper { max-width: 1120px; }
    .alb-lp.alb-galeria section { padding: 64px 48px; }
    .alb-lp.alb-galeria .hero { min-height: 70vh; }
    .alb-lp.alb-galeria .photo-grid { columns: 3; column-gap: 12px; }
}
@media (min-width: 1280px) {
    .alb-lp.alb-galeria .photo-grid { columns: 4; }
}

/* Upload */
.alb-lp .upload-section { background: var(--lp-card); border-top: 1px solid var(--lp-border); }
.alb-lp .upload-area {
    border: 2px dashed var(--lp-border); border-radius: 8px; padding: 38px 20px;
    background: #FAFAFA; margin-top: 22px; transition: all .3s ease; position: relative; cursor: pointer;
}
.alb-lp .upload-area:hover, .alb-lp .upload-area.dragover { border-color: var(--lp-accent); background: rgba(212, 175, 55, .06); }
.alb-lp .upload-icon { font-size: 38px; color: var(--lp-accent); margin-bottom: 12px; }
.alb-lp .file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.alb-lp .upload-feedback { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--lp-dark); display: none; }
.alb-lp .upload-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; margin-top: 14px; }
.alb-lp .upload-thumbs .t { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 1px solid var(--lp-border); }
.alb-lp .upload-thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.alb-lp .upload-thumbs .t .st { position: absolute; inset: auto 0 0 0; font-size: 10px; text-align: center; padding: 2px; background: rgba(0, 0, 0, .6); color: #fff; }
.alb-lp .upload-thumbs .t.ok .st { background: rgba(76, 175, 80, .9); }
.alb-lp .upload-thumbs .t.err .st { background: rgba(211, 47, 47, .9); }
.alb-lp .up-alert { border-radius: 6px; padding: 11px 14px; font-size: 13px; margin: 12px 0; }
.alb-lp .up-alert.err { background: rgba(211, 47, 47, .1); color: #b3261e; border: 1px solid rgba(211, 47, 47, .3); }
.alb-lp .up-alert.ok { background: rgba(76, 175, 80, .12); color: #256029; border: 1px solid rgba(76, 175, 80, .3); }

/* Rodapé */
.alb-lp .footer { background: #1A1A1A; color: rgba(255, 255, 255, .72); padding: 48px 28px; text-align: center; }
.alb-lp .footer-brand { font-family: var(--font-title); font-size: 24px; color: #fff; letter-spacing: 2px; margin-bottom: 4px; display: block; text-decoration: none; }
.alb-lp .footer-slogan { font-style: italic; font-family: var(--font-title); font-size: 15px; color: var(--lp-accent); margin-bottom: 22px; }
.alb-lp .footer-info { font-size: 12px; line-height: 2; }
.alb-lp .footer-info a { color: #fff; text-decoration: none; }
.alb-lp .footer-info a:hover { color: var(--lp-accent); }
.alb-lp .lp-credit { margin-top: 22px; font-size: 12px; color: var(--lp-muted); }
.alb-lp .lp-credit a { color: var(--lp-accent); text-decoration: none; font-weight: 700; }

/* Lightbox */
.alb-lp .lp-lb { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); }
.alb-lp .lp-lb.on { display: flex; }
.alb-lp .lp-lb img { max-width: 94vw; max-height: 86vh; border-radius: 6px; }
.alb-lp .lp-lb .close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; }
.alb-lp .lp-lb .nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 34px; cursor: pointer; padding: 10px; }
.alb-lp .lp-lb .nav.prev { left: 10px; }
.alb-lp .lp-lb .nav.next { right: 10px; }

/* Gate de senha */
.alb-lp .gate-wrap { max-width: 420px; margin: 10vh auto; padding: 30px; background: #fff; border: 1px solid var(--lp-border); border-radius: 12px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.alb-lp .gate-wrap .ic { font-size: 36px; margin-bottom: 10px; }
.alb-lp .gate-wrap h1 { font-size: 21px; margin-bottom: 8px; }
.alb-lp .gate-wrap p { font-size: 13px; margin-bottom: 16px; }
.alb-lp .gate-wrap input { width: 100%; padding: 12px 14px; border: 1px solid var(--lp-border); border-radius: 8px; font-size: 15px; margin-bottom: 12px; }
.alb-lp .gate-wrap .err { color: #b3261e; font-size: 13px; margin-bottom: 10px; }

@media (min-width: 521px) {
    .alb-lp .wrapper { margin: 24px auto; border-radius: 6px; }
}

/* Logo no rodapé (mesma da página inicial) */
.alb-lp .footer-logo-link {
    display: flex;
    justify-content: center;
    margin: 0 auto 10px;
    max-width: 100%;
}
.alb-lp .footer-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 62%;
    max-height: 52px;
    object-fit: contain;
}
@media (max-width: 380px) {
    .alb-lp .footer-logo { max-width: 74%; max-height: 46px; }
}

/* ================= Temas por tipo de evento ================= */

/* Casamento (padrão) */
.alb-lp.alb-theme-casamento { --font-title: 'Playfair Display', Georgia, serif; }

/* 15 anos / Debutante */
.alb-lp.alb-theme-debutante { --font-title: 'Playfair Display', Georgia, serif; }
.alb-lp.alb-theme-debutante .section-title { text-transform: uppercase; letter-spacing: 3px; font-size: 26px; }
.alb-lp.alb-theme-debutante .section-title::after { width: 72px; height: 2px; }
.alb-lp.alb-theme-debutante .hero::before {
    background: linear-gradient(to bottom, rgba(43, 18, 54, .22) 0%, rgba(43, 18, 54, .6) 55%, rgba(43, 18, 54, .9) 100%);
}
.alb-lp.alb-theme-debutante .info-icon { transform: scale(1.1); }

/* Infantil */
.alb-lp.alb-theme-infantil { --font-title: 'Baloo 2', 'Comic Sans MS', system-ui, sans-serif; }
.alb-lp.alb-theme-infantil .section-title { text-transform: none; }
.alb-lp.alb-theme-infantil .section-title::after { width: 90px; height: 4px; border-radius: 4px; }
.alb-lp.alb-theme-infantil .info-card { border: 2px dashed var(--lp-border); border-radius: 16px; padding: 18px 16px; }
.alb-lp.alb-theme-infantil .btn-primary { border-radius: 999px; }
.alb-lp.alb-theme-infantil .photo-grid img,
.alb-lp.alb-theme-infantil .upload-area { border-radius: 18px; }
.alb-lp.alb-theme-infantil .hero::before {
    background: linear-gradient(to bottom, rgba(20, 40, 80, .2) 0%, rgba(20, 40, 80, .55) 55%, rgba(20, 40, 80, .85) 100%);
}

/* Aniversário adulto */
.alb-lp.alb-theme-adulto { --font-title: 'Playfair Display', Georgia, serif; }
.alb-lp.alb-theme-adulto .section-title { text-transform: uppercase; letter-spacing: 4px; font-size: 24px; }
.alb-lp.alb-theme-adulto .hero::before {
    background: linear-gradient(to bottom, rgba(22, 22, 22, .35) 0%, rgba(22, 22, 22, .7) 55%, rgba(22, 22, 22, .93) 100%);
}

/* Corporativo */
.alb-lp.alb-theme-corporativo { --font-title: 'Lato', system-ui, sans-serif; }
.alb-lp.alb-theme-corporativo .section-title { font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 24px; }
.alb-lp.alb-theme-corporativo .section-title::after { width: 54px; height: 3px; }
.alb-lp.alb-theme-corporativo .btn-primary { border-radius: 2px; }
.alb-lp.alb-theme-corporativo .photo-grid img,
.alb-lp.alb-theme-corporativo .upload-area,
.alb-lp.alb-theme-corporativo .info-card { border-radius: 2px; }

/* Item da galeria de convidados com botao de download (protecao desabilitada) */
.alb-lp .alb-gal-item { position: relative; break-inside: avoid; margin: 0 0 10px; }
.alb-lp .alb-gal-item img { margin: 0; }
.alb-lp .alb-gal-item .guest-dl { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.62); color: #fff; padding: 7px 12px; border-radius: 999px; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .3px; box-shadow: 0 2px 8px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.alb-lp .alb-gal-item .guest-dl:hover { background: rgba(0,0,0,.85); }
.alb-lp .alb-gal-item .guest-task { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); background: rgba(0,0,0,.66); color: #fff; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
