/* Website side of the SGS Control Panel */
.sgsp-empty { color: #666; font-style: italic; }
.sgsp-notices { list-style: none; margin: 0 0 1.5em; padding: 0; border-top: 3px solid #8B0D10; }
.sgsp-notices li { display: flex; gap: 16px; align-items: center; padding: 12px 4px; border-bottom: 1px solid #e6e1d8; margin: 0; }
.sgsp-date { flex: none; width: 66px; text-align: center; border: 1px solid #e6e1d8; border-top: 4px solid #d4af37; padding: 4px 0; font-size: 11px; color: #555; line-height: 1.2; background: #fff; }
.sgsp-date b { display: block; font-size: 22px; color: #8B0D10; }
.sgsp-n a { font-weight: 700; color: #1f2328; text-decoration: none; }
.sgsp-n a:hover { color: #8B0D10; text-decoration: underline; }
.sgsp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sgsp-tags span { font: 700 11px/1 Arial, sans-serif; padding: 4px 7px; border-radius: 3px; background: #f1ece4; color: #555; }
.sgsp-tags .sgsp-new { background: #8B0D10; color: #fff; }
.sgsp-tags .sgsp-pin { background: #d4af37; color: #3a2a00; }
.sgsp-tags .sgsp-pdf { background: #b3261e; color: #fff; }
.sgsp-pdf-link a { display: inline-block; padding: 10px 16px; background: #8B0D10; color: #fff; text-decoration: none; border-radius: 4px; font-weight: 700; }
.sgsp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0 0 1.5em; }
.sgsp-grid figure { margin: 0; }
.sgsp-grid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.sgsp-grid figcaption { font-size: 14px; color: #555; margin-top: 4px; }
.sgsp-album-card { display: block; text-decoration: none; color: #1f2328; border: 1px solid #e6e1d8; border-radius: 8px; overflow: hidden; background: #fff; }
.sgsp-album-card img { border-radius: 0; }
.sgsp-album-card span { display: block; padding: 10px 12px; font-size: 13px; color: #666; }
.sgsp-album-card b { display: block; font-size: 16px; color: #8B0D10; }
.sgsp-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 0 0 1.5em; }
.sgsp-videos figure { margin: 0; }
.sgsp-yt { position: relative; aspect-ratio: 16/9; }
.sgsp-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.sgsp-videos figcaption { margin-top: 6px; font-weight: 700; }
.sgsp-pop { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 16px; background: rgba(15, 8, 8, .72); }
.sgsp-pop[hidden] { display: none; }
.sgsp-pop-box { position: relative; width: min(600px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); outline: none; }
.sgsp-pop-img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: #f6f2ea; }
.sgsp-pop-body { padding: 18px 22px 22px; font: 16px/1.55 Arial, sans-serif; color: #1f2328; }
.sgsp-pop-h { margin: 0 0 6px; font: 700 22px/1.25 Arial, sans-serif; color: #8B0D10; }
.sgsp-pop-btn { display: inline-block; margin-top: 8px; padding: 10px 18px; background: #8B0D10; color: #fff !important; border-radius: 4px; text-decoration: none; font-weight: 700; }
.sgsp-pop-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #d4af37; background: #fff; color: #8B0D10; font: 400 26px/1 Arial, sans-serif; cursor: pointer; z-index: 2; }

/* Pages written in the school editor */
.sgsp-page img { max-width: 100%; height: auto; }
.sgsp-page table { width: 100%; border-collapse: collapse; }
.sgsp-page td, .sgsp-page th { border: 1px solid #ccc; padding: 6px 10px; }
.sgsp-page::after { content: ""; display: table; clear: both; }
