/* Only things the original page does not have: lightbox, admin tools, toast. */
/* No footer here, so the page background must not show the dark blue of the theme. */
html, body.elementor-kit-5 { background: #FCFCFC !important; }
.elementor-gallery__titles-container .elementor-gallery-title { user-select: none; }
/* The selected album stays highlighted so everybody sees where they are. */
.elementor-gallery__titles-container .elementor-gallery-title.elementor-item-active { background: #1C4778 !important; color: #fff !important; border-radius: 6px; }
#gallery { position: relative; }
.e-gallery-item { cursor: zoom-in; overflow: hidden; }
/* Own masonry sets the size of every tile, so the picture simply fills it. */
.e-gallery-item > .e-gallery-image { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }

/* Lightbox */
#lb { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; font-family: "Source Sans Pro", sans-serif; }
#lb[hidden] { display: none; }
#lb.lb-embedded { position: absolute; inset: auto; left: 0; width: 100%; }
#lb .lb-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .92); }
#lb .lb-img { position: relative; max-width: 94%; max-height: calc(100% - 110px); object-fit: contain; border-radius: 3px; background: #111; }
#lb .lb-btn { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14); border-radius: 50%; width: 46px; height: 46px; font-size: 26px; line-height: 46px; padding: 0; text-align: center; }
#lb .lb-btn:hover { background: rgba(255, 255, 255, .3); }
#lb .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
#lb .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
#lb .lb-close { right: 14px; top: 14px; font-size: 20px; }
#lb .lb-bar { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; gap: 16px; align-items: center; justify-content: center; color: #fff; font-size: 16px; }
#lb .lb-dl { color: #fff; background: #1C4778; padding: 9px 20px; border-radius: 5px; text-decoration: none; font-weight: 600; }
#lb .lb-dl:hover { background: #2a5d9c; }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #1c1c1c; color: #fff; padding: 10px 18px; border-radius: 6px; font: 16px "Source Sans Pro", sans-serif; z-index: 10001; display: none; max-width: 90vw; }

/* Admin tools: only visible when logged in */
.adm-fab { position: fixed; right: 16px; bottom: 16px; z-index: 9000; border: 0; cursor: pointer; background: #1C4778; color: #fff; border-radius: 28px; padding: 12px 20px; font: 600 16px "Source Sans Pro", sans-serif; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.adm-fab:hover { background: #2a5d9c; }
.adm-x { position: absolute; top: 8px; right: 8px; z-index: 3; border: 0; cursor: pointer; background: rgba(255, 255, 255, .94); color: #b3261e; border-radius: 4px; width: 30px; height: 30px; font-size: 15px; line-height: 30px; padding: 0; }
.adm-x:hover { background: #b3261e; color: #fff; }

#dlg { border: 0; border-radius: 10px; padding: 0; width: min(640px, 94vw); max-height: 90vh; box-shadow: 0 12px 50px rgba(0, 0, 0, .4); font: 16px/1.45 "Source Sans Pro", sans-serif; color: #333; }
#dlg::backdrop { background: rgba(0, 0, 0, .55); }
#dlg .d-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: #1C4778; color: #fff; position: sticky; top: 0; }
#dlg .d-head h3 { margin: 0; color: #fff; font-size: 20px; font-weight: 700; }
#dlg .d-x { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }
#dlg .d-body { padding: 8px 20px 20px; overflow: auto; max-height: calc(90vh - 56px); }
#dlg section { padding: 14px 0; border-bottom: 1px solid #e5e9ee; }
#dlg section:last-child { border-bottom: 0; }
#dlg h4 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: #1C4778; }
#dlg label { display: block; margin: 8px 0; font-size: 15px; font-weight: 600; }
#dlg input, #dlg select, #dlg textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid #c9d2db; border-radius: 6px; font: 16px "Source Sans Pro", sans-serif; box-sizing: border-box; }
#dlg textarea { min-height: 84px; }
#dlg .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
#dlg .row input { flex: 1; min-width: 150px; margin: 0; }
.adm-btn { border: 1px solid #c9d2db; background: #fff; color: #1C4778; border-radius: 6px; padding: 9px 16px; font: 600 15px "Source Sans Pro", sans-serif; cursor: pointer; }
.adm-btn:hover { border-color: #1C4778; }
.adm-btn.primary { background: #1C4778; border-color: #1C4778; color: #fff; }
.adm-btn.primary:hover { background: #2a5d9c; }
.adm-btn.danger { color: #b3261e; }
.adm-btn.danger:hover { border-color: #b3261e; }
.adm-btn:disabled { opacity: .5; cursor: default; }
#dlg .hint { color: #66727f; font-size: 14px; margin: 4px 0 0; }
#dlg .err { color: #b3261e; min-height: 1.2em; margin: 6px 0 0; font-size: 15px; }
#dlg .user { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed #e5e9ee; flex-wrap: wrap; }
#dlg .user .who { flex: 1; min-width: 180px; word-break: break-all; }
#dlg .user small { color: #66727f; }
#dlg .bar { height: 8px; background: #e5e9ee; border-radius: 4px; overflow: hidden; margin: 8px 0 0; display: none; }
#dlg .bar i { display: block; height: 100%; width: 0; background: #1C4778; transition: width .2s; }
#dlg label.chk { display: flex; gap: 8px; align-items: center; font-weight: 600; }
#dlg label.chk input { width: auto; margin: 0; }
#dlg .hint.warn { color: #b3261e; font-weight: 600; }
#dlg .rep p { margin: 6px 0 0; font-size: 15px; }
#dlg .rep .good { color: #1b6e3c; font-weight: 600; }
#dlg .rep .warn { color: #b3261e; font-weight: 600; }
#dlg .rep ul { margin: 4px 0 0; padding-left: 18px; max-height: 170px; overflow: auto; color: #b3261e; font-size: 14px; }
