/* BBT photo gallery V8 — scoped to /foto-bbt/ */
.photo-page{max-width:1240px}
.photo-page>h2{margin-top:38px;margin-bottom:8px}
.photo-gallery-intro{margin:0 0 18px;color:#526579}
.photo-submit-card{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:32px;align-items:start;margin:0 0 38px;padding:28px;border:1px solid #dbe5ee;border-radius:24px;background:#f6f9fc}
.photo-submit-copy h2{margin:6px 0 12px;font-size:clamp(26px,3vw,38px)}
.photo-submit-copy p{margin:8px 0;max-width:700px}
.photo-submit-note{color:#526579;font-size:14px}
.photo-submit-form{display:grid;gap:12px;padding:20px;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(11,53,87,.08)}
.photo-submit-form label:not(.photo-consent){display:grid;gap:6px;font-weight:700;color:#17354d}
.photo-submit-form input[type=text],.photo-submit-form input[type=file]{width:100%;min-height:48px;border:1px solid #cad8e5;border-radius:12px;padding:11px 13px;background:#fff;color:#102b40;font:inherit}
.photo-submit-form input[type=file]{padding:8px}
.photo-file-hint{font-size:12px;font-weight:400;color:#6a7b8b}
.photo-consent{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.35;color:#566879}
.photo-consent input{margin-top:2px}
.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important}
.photo-submit-status{min-height:20px;font-size:14px}
.photo-auth-step{grid-column:1/-1;padding:18px 20px;border-radius:16px;background:#fff;border:1px solid #dbe5ee}
.photo-auth-step p{margin:6px 0 12px}
.photo-auth-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.photo-auth-skip{border:0;background:transparent;color:#526579;text-decoration:underline;cursor:pointer;padding:9px 5px;font:inherit}

.photo-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.photo-card{margin:0;min-width:0;border-radius:18px;overflow:hidden;background:#fff;border:1px solid #dbe5ee;box-shadow:0 6px 22px rgba(11,53,87,.06)}
.photo-card__button{display:block;width:100%;height:270px;padding:0;border:0;background:#eaf1f6;cursor:zoom-in;overflow:hidden}
.photo-card__button img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.photo-card__button:hover img{transform:scale(1.025)}
.photo-card figcaption{padding:12px 14px 14px;font-weight:750;line-height:1.3;color:#17354d}
.photo-card__author{display:block;margin-top:6px;font-size:13px;font-weight:500;color:#557087}
.photo-card__author a{color:#0b65a4;text-decoration:underline;text-underline-offset:2px}
.community-title{margin-top:44px!important}

.photo-lightbox{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(4,18,30,.96);color:#fff;overflow:hidden}
.photo-lightbox::backdrop{background:rgba(4,18,30,.96)}
.photo-lightbox[open]{display:grid;grid-template-columns:72px minmax(0,1fr) 72px;grid-template-rows:1fr;align-items:center}
.photo-lightbox figure{display:grid;grid-template-rows:minmax(0,1fr) auto;width:100%;height:100%;margin:0;padding:24px 0 18px;min-width:0;min-height:0}
.photo-lightbox figure img{max-width:100%;max-height:calc(100dvh - 86px);width:100%;height:100%;object-fit:contain;min-height:0}
.photo-lightbox figcaption{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;padding:10px 18px 0;text-align:center;font-size:15px}
.photo-lightbox figcaption a{color:#fff;text-decoration:underline}
.photo-lightbox__close{position:fixed;right:18px;top:14px;z-index:3;width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.13);color:#fff;font-size:34px;line-height:1;cursor:pointer}
.photo-lightbox__nav{width:52px;height:64px;justify-self:center;border:0;border-radius:14px;background:rgba(255,255,255,.10);color:#fff;font-size:44px;line-height:1;cursor:pointer}
.photo-lightbox__nav:hover,.photo-lightbox__close:hover{background:rgba(255,255,255,.22)}
body.photo-lightbox-open{overflow:hidden}

.photo-auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#eef4f8;font-family:Arial,sans-serif;color:#15344b}
.photo-auth-box{width:min(520px,100%);padding:28px;border-radius:22px;background:#fff;box-shadow:0 18px 50px rgba(11,53,87,.14);text-align:center}
.photo-auth-box h1{margin:0 0 10px;font-size:28px}
.photo-auth-box p{line-height:1.5;color:#53687a}
.photo-auth-box .btn{margin-top:8px}

.photo-moderation{font-family:Arial,sans-serif;background:#eef4f8;color:#15344b;min-height:100vh;padding:28px}
.photo-moderation__card{max-width:900px;margin:auto;background:#fff;border-radius:22px;padding:26px;box-shadow:0 18px 50px rgba(11,53,87,.12)}
.photo-moderation__card img{display:block;max-width:100%;max-height:65vh;margin:16px auto;border-radius:14px;object-fit:contain}
.photo-moderation__actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.photo-moderation button{border:0;border-radius:12px;padding:12px 18px;font-weight:700;cursor:pointer}
.photo-moderation .approve{background:#17844b;color:#fff}.photo-moderation .reject{background:#b42318;color:#fff}

@media(max-width:980px){
  .photo-submit-card{grid-template-columns:1fr;gap:20px;padding:22px}
  .photo-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .photo-card__button{height:245px}
}
@media(max-width:640px){
  .article-section .photo-page{padding-left:16px;padding-right:16px}
  .photo-submit-card{padding:16px;border-radius:18px;margin-bottom:28px}
  .photo-submit-form{padding:15px}
  .photo-gallery-grid{gap:12px}
  .photo-card{border-radius:14px}
  .photo-card__button{height:42vw;min-height:150px;max-height:210px}
  .photo-card figcaption{padding:10px 11px 12px;font-size:14px}
  .photo-lightbox[open]{grid-template-columns:48px minmax(0,1fr) 48px}
  .photo-lightbox figure{padding-top:60px}
  .photo-lightbox__nav{width:40px;height:54px;font-size:36px;border-radius:10px}
  .photo-lightbox__close{right:10px;top:10px;width:44px;height:44px}
  .photo-auth-actions{display:grid;grid-template-columns:1fr}
  .photo-auth-actions .btn{width:100%}
}
@media(max-width:430px){
  .photo-gallery-grid{grid-template-columns:1fr 1fr}
  .photo-card__button{height:46vw;min-height:145px}
}

/* v9 simplified uploader */
.photo-form-main{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);gap:14px}.photo-form-optional{display:grid;grid-template-columns:.8fr 1.35fr 1.15fr;gap:12px;padding-top:12px;border-top:1px solid #dfe7ed}.photo-submit-form label{min-width:0}.photo-submit-form input[type=text],.photo-submit-form input[type=url]{width:100%}.photo-auth-step,.photo-auth-actions{display:none!important}@media(max-width:760px){.photo-form-main,.photo-form-optional{grid-template-columns:1fr}.photo-submit-card{gap:16px}}
