/* Simboti Galleries – front end */
:root { --sg-accent: #111; }
.sg-gallery, .sg-gate, .sg-modal, .sg-lightbox, .sg-toast {
	--sg-ink: #1a1a1a;
	--sg-muted: #777;
	--sg-line: #e8e8e8;
	--sg-bg: #fff;
	--sg-gap: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--sg-ink);
	box-sizing: border-box;
}
.sg-gallery *, .sg-modal *, .sg-lightbox *, .sg-gate * { box-sizing: border-box; }
html.sg-locked { overflow: hidden; }

body.sg-standalone { margin: 0; background: var(--sg-bg, #fff); }
.sg-standalone .sg-main { min-height: 100vh; }
.sg-footer { text-align: center; font-size: 12px; letter-spacing: .08em; color: #999; padding: 40px 16px; }

/* Buttons */
.sg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--sg-accent); color: #fff; border: 1px solid var(--sg-accent);
	padding: 11px 22px; border-radius: 2px; font: 500 12px/1 inherit; letter-spacing: .16em; text-transform: uppercase;
	cursor: pointer; text-decoration: none; transition: opacity .2s, background .2s;
}
.sg-btn:hover { opacity: .85; color: #fff; }
.sg-btn:disabled { opacity: .5; cursor: wait; }
.sg-btn-ghost { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.sg-btn-ghost:hover { background: rgba(255,255,255,.15); }
.sg-btn-block { width: 100%; padding: 14px; }
.sg-btn.is-busy { position: relative; color: transparent; }
.sg-btn.is-busy::after {
	content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: sg-spin .7s linear infinite;
}
@keyframes sg-spin { to { transform: rotate(360deg); } }
.sg-link { background: none; border: 0; padding: 0; color: var(--sg-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.sg-link:hover { color: var(--sg-ink); }

/* Cover */
.sg-cover {
	position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
	background-size: cover; background-position: center; color: #fff; text-align: center;
}
.sg-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45)); }
.sg-cover-inner { position: relative; padding: 24px 16px; }
.sg-cover-title { font: 300 clamp(30px, 6vw, 64px)/1.1 Georgia, "Times New Roman", serif; letter-spacing: .06em; margin: 0 0 12px; color: #fff; text-transform: uppercase; }
.sg-cover-date { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 30px; opacity: .9; }
.sg-gallery:not(:has(.sg-cover)) .sg-bar { position: relative; }

/* Sticky bar */
.sg-bar {
	position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 14px clamp(16px, 3vw, 40px); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sg-line);
}
.admin-bar .sg-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .sg-bar { top: 0; } }
.sg-bar-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sg-bar-title strong { font: 400 16px/1.2 Georgia, serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-bar-title span { font-size: 11px; color: var(--sg-muted); letter-spacing: .12em; text-transform: uppercase; }

.sg-intro { max-width: 720px; margin: 40px auto 0; padding: 0 16px; text-align: center; color: #555; line-height: 1.7; }
.sg-empty { text-align: center; color: var(--sg-muted); padding: 80px 16px; }

/* Masonry grid */
.sg-grid { column-count: 4; column-gap: var(--sg-gap); padding: clamp(16px, 3vw, 40px); scroll-margin-top: 60px; }
@media (max-width: 1200px) { .sg-grid { column-count: 3; } }
@media (max-width: 760px)  { .sg-grid { column-count: 2; --sg-gap: 6px; padding: 16px; } }
.sg-item {
	position: relative; break-inside: avoid; margin: 0 0 var(--sg-gap); cursor: zoom-in; overflow: hidden;
	background: #f2f2f2; outline: none;
}
.sg-item img, .sg-item video { display: block; width: 100%; height: auto; transition: transform .5s ease, opacity .3s; }
.sg-item:hover img, .sg-item:hover video { transform: scale(1.02); }
.sg-item:focus-visible { box-shadow: 0 0 0 3px var(--sg-accent); }
.sg-item.is-video { cursor: pointer; }
.sg-play {
	position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
	background: rgba(0,0,0,.45); border: 1.5px solid rgba(255,255,255,.9); pointer-events: none;
}
.sg-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.sg-item-dl {
	position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0;
	background: rgba(255,255,255,.95); color: #111; display: grid; place-items: center; cursor: pointer;
	opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.sg-item:hover .sg-item-dl, .sg-item:focus-within .sg-item-dl { opacity: 1; transform: none; }
@media (hover: none) { .sg-item-dl { opacity: 1; transform: none; width: 34px; height: 34px; } }

/* Lightbox */
.sg-lightbox { position: fixed; inset: 0; z-index: 99998; background: #0c0c0c; color: #fff; display: flex; align-items: center; justify-content: center; }
.sg-lightbox[hidden] { display: none; }
.sg-lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; z-index: 2; }
.sg-lb-count { font-size: 12px; letter-spacing: .2em; opacity: .7; }
.sg-lb-actions { display: flex; gap: 6px; }
.sg-lb-btn, .sg-lb-nav { background: none; border: 0; color: #fff; cursor: pointer; padding: 10px; opacity: .8; display: grid; place-items: center; }
.sg-lb-btn:hover, .sg-lb-nav:hover { opacity: 1; }
.sg-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; padding: 20px 14px; }
.sg-lb-prev { left: 4px; }
.sg-lb-next { right: 4px; }
.sg-lb-nav[hidden], .sg-lb-btn[hidden] { display: none; }
.sg-lb-stage { position: absolute; inset: 64px 64px 30px; display: flex; align-items: center; justify-content: center; }
.sg-lb-media { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
img.sg-lb-media { opacity: 0; transition: opacity .3s; }
img.sg-lb-media.is-loaded { opacity: 1; }
video.sg-lb-media { width: 100%; height: 100%; background: #000; }
@media (max-width: 760px) {
	.sg-lb-stage { inset: 56px 0 20px; }
	.sg-lb-nav { display: none; }
}

/* Modal */
.sg-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sg-modal[hidden] { display: none; }
.sg-modal-box { position: relative; width: 100%; max-width: 420px; background: #fff; color: var(--sg-ink); padding: 36px 30px 30px; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.sg-modal-box h3 { margin: 0 0 8px; font: 400 22px/1.2 Georgia, serif; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.sg-modal-intro { text-align: center; color: #555; font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.sg-modal-x { position: absolute; top: 8px; right: 8px; background: none; border: 0; padding: 8px; cursor: pointer; color: #888; }
.sg-modal-x:hover { color: #111; }
.sg-label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sg-muted); margin-bottom: 12px; }
.sg-label input, .sg-gate input[type=password] {
	display: block; width: 100%; margin-top: 8px; padding: 13px 14px; font-size: 16px; border: 1px solid #ccc; border-radius: 2px;
	background: #fff; color: #111; letter-spacing: normal; text-transform: none;
}
.sg-label input:focus, .sg-gate input:focus { outline: none; border-color: var(--sg-accent); box-shadow: 0 0 0 1px var(--sg-accent); }
.sg-pin-input { font: 600 26px/1 Menlo, Consolas, monospace !important; letter-spacing: .5em !important; text-align: center; padding-left: .5em !important; }
.sg-msg { min-height: 1em; font-size: 13px; margin: 0 0 12px; color: #2b7a3d; }
.sg-msg:empty { margin: 0; }
.sg-msg.is-error { color: #b42318; }
.sg-modal-links { display: flex; justify-content: space-between; margin-top: 16px; }
.sg-step[hidden] { display: none; }

/* Password / expired gate */
.sg-gate { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.sg-gate-box { width: 100%; max-width: 380px; text-align: center; }
.sg-gate-box h2 { font: 300 30px/1.2 Georgia, serif; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.sg-gate-box p { color: #666; line-height: 1.6; }
.sg-gate-box input { margin-bottom: 14px; }
.sg-gate-box .sg-btn { width: 100%; }

/* Toast */
.sg-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 100000; max-width: calc(100% - 32px);
	background: #111; color: #fff; padding: 12px 18px; border-radius: 4px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s;
}
.sg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
