/* === FONTS === */
@font-face {
  font-family: "LT Remark";
  src: url("ltremark/LTRemark-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Redaction 10";
  src: url("redaction/Redaction10-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Redaction 20";
  src: url("redaction/Redaction20-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Human Sans";
  src: url("other fonts/HumanSans.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "VCR OSD Mono";
  src: url("other fonts/VCR_OSD_MONO_1.001.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Blaster";
  src: url("other fonts/BlasterFont-Demo.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* === VARIABLES === */
:root {
  --color-dark:       #445f74;
  --color-mid:        #80a4ba;
  --color-light-mid:  #C8DCE8;
  --color-light:      #F7FAFC;
  --color-border:     #EDE9E4;
  --color-table-row:  #E8F2F8;
  --border:           3px solid var(--color-border);
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
}

/* === HIDE SCROLLBAR === */
html {
  scrollbar-width: none;
  background-color: #B3BAB3;
}
html::-webkit-scrollbar {
  display: none;
}

/* === CURSORS === */
body {
  cursor: url("arrow.cur"), auto;
}

a,
.photo-placeholder,
.photo-placeholder img,
#lightbox,
#lb-prev,
#lb-next {
  cursor: url("pointer.cur"), pointer;
}

/* === BACKGROUND === */
@keyframes bgfadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("wallpaper.jpg");
  background-size: cover;
  background-position: center;
  animation: bgfadein 1s ease-in-out;
}

/* === BODY & BACKGROUND === */
body {
  margin: 0;
  padding: 20px 12px;
  font-family: "LT Remark", "Times New Roman", serif;
  color: var(--color-dark);
}

/* === CENTERED WRAPPER === */
#wrapper {
  width: 100%;
  max-width: 704px;
  margin: 0 auto;
}

/* === HEADER === */
#header {
  background: var(--color-dark);
  border: var(--border);
  padding: 28px 10px;
  text-align: center;
  user-select: none;
}

#header h1 {
  margin: 14px 0 0;
  font-size: 2.4em;
  font-family: "Redaction 20", "Times New Roman", serif;
  color: var(--color-light);
  text-shadow: 3px 3px var(--color-mid);
  letter-spacing: 4px;
  text-transform: uppercase;
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.wave-letter {
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
}

#header p.tagline {
  margin: 6px 0 0;
  color: var(--color-light-mid);
  font-size: 0.9em;
  font-style: italic;
}

/* === MARQUEE === */
@keyframes marquee-scroll {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

.marquee-bar {
  background: var(--color-mid);
  color: var(--color-light);
  font-weight: bold;
  font-size: 0.85em;
  padding: 4px 0;
  overflow: hidden;
  border-left: var(--border);
  border-right: var(--border);
  user-select: none;
}

.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 20s linear infinite;
  animation-delay: -10s;
}

/* === NAV === */
#nav {
  background: var(--color-dark);
  border-left: var(--border);
  border-right: var(--border);
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

#nav a {
  text-decoration: none;
  font-family: "Redaction 10", "Times New Roman", serif;
  font-weight: bold;
  font-size: 0.95em;
  padding: 6px 10px;
  border: 2px outset var(--color-light-mid);
  background: var(--color-light-mid);
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}

#nav a:hover,
#nav a.active {
  border-style: inset;
  background: var(--color-light);
  color: var(--color-dark);
}

/* === MAIN CONTENT AREA === */
#content {
  display: flex;
  border-top: var(--border);
}

#sidebar {
  width: 160px;
  flex-shrink: 0;
  background: var(--color-mid);
  border-left: var(--border);
  border-bottom: var(--border);
  padding: 10px;
}

#sidebar-toggle {
  display: none;
}

#sidebar h3 {
  margin: 0 0 8px;
  color: var(--color-light);
  font-size: 0.85em;
  font-family: "Redaction 10", "Times New Roman", serif;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--color-light-mid);
  padding-bottom: 4px;
}

#sidebar ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

#sidebar ul li::before {
  content: "> ";
  color: var(--color-light-mid);
}

#sidebar ul li a {
  color: var(--color-light);
  text-decoration: none;
  font-size: 0.85em;
}

#sidebar ul li a:hover {
  color: var(--color-light-mid);
  text-decoration: underline;
}

#sidebar ul li a.evil:hover {
  color: #cc3333;
}

.gb-sidebar-box {
  display: block;
  margin: 16px 0;
  padding: 8px 10px;
  border: 2px dashed var(--color-light-mid);
  color: var(--color-light);
  text-decoration: none;
  font-size: 0.85em;
  text-align: center;
  line-height: 1.4;
  transition: border-color 0.15s, color 0.15s;
}

.gb-sidebar-box:hover {
  border-color: var(--color-light);
  color: var(--color-light-mid);
  text-decoration: none;
}

.sidebar-disclaimer-details {
  margin-top: 16px;
}

.sidebar-disclaimer-details summary {
  color: var(--color-light-mid);
  font-size: 0.85em;
  font-family: "Redaction 10", "Times New Roman", serif;
  text-transform: uppercase;
  padding-bottom: 4px;
  margin-bottom: 6px;
  cursor: url("pointer.cur"), pointer;
  user-select: none;
  list-style: none;
}

.sidebar-disclaimer-details[open] > summary,
#mobile-disclaimer[open] > summary {
  border-bottom: 1px dashed var(--color-light-mid);
}

.sidebar-disclaimer-details[open] > summary::after,
#mobile-disclaimer[open] > summary::after,
.sidebar-disclaimer-fonts[open] > summary::after {
  content: " [-]";
  font-size: 0.85em;
  color: var(--color-light-mid);
}

.sidebar-disclaimer {
  font-size: 0.72em;
  color: var(--color-light-mid);
  line-height: 1.5;
  margin: 0 0 6px;
}

.sidebar-disclaimer a,
.sidebar-disclaimer a:visited,
.sidebar-disclaimer a:hover {
  color: var(--color-light-mid);
}

.sidebar-disclaimer-fonts > summary {
  cursor: url("pointer.cur"), pointer;
  user-select: none;
}


#main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: var(--border);
  border-right: var(--border);
  border-bottom: var(--border);
}

#main-col > #main {
  border-top: var(--border);
}

#main {
  flex: 1;
  min-width: 0;
  background: var(--color-light);
  padding: 14px;
}

#content > #main {
  border-left: var(--border);
  border-right: var(--border);
  border-bottom: var(--border);
}

#main h2 {
  font-size: 1.3em;
  font-family: "Redaction 10", "Times New Roman", serif;
  text-transform: uppercase;
  border-bottom: 2px dashed var(--color-mid);
  padding-bottom: 4px;
  margin-top: 1.4em;
  margin-bottom: 0.5em;
}

#main h2:first-child {
  margin-top: 0;
}

#main p {
  font-size: 0.9em;
  line-height: 1.6;
}

#main a {
  color: var(--color-dark);
}

#main a:hover {
  color: var(--color-mid);
}

.highlight {
  color: var(--color-mid);
}

/* === TABLE === */
.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
  margin-top: 12px;
}

.content-table th {
  background: var(--color-dark);
  color: var(--color-light);
  padding: 5px 8px;
  text-align: left;
  border: 1px solid var(--color-border);
}

.content-table td {
  background: var(--color-table-row);
  color: var(--color-dark);
  padding: 5px 8px;
  border: 1px solid var(--color-border);
}

.content-table tr:nth-child(even) td {
  background: var(--color-light-mid);
}

/* === FAVOURITES TABLE === */
.fav-table {
  table-layout: fixed;
  font-size: 0.95em;
}

.fav-table td {
  vertical-align: top;
  font-family: Arial, sans-serif;
}

.font-vcr        { font-family: "VCR OSD Mono", Arial, sans-serif; }
.font-tnr        { font-family: "Times New Roman", Arial, sans-serif; }
.font-human      { font-family: "Human Sans", Arial, sans-serif; }
.font-blaster    { font-family: "Blaster", Arial, sans-serif; }
.font-ltremark   { font-family: "LT Remark", "Times New Roman", serif; }
.font-redaction10 { font-family: "Redaction 10", "Times New Roman", serif; }
.font-redaction20 { font-family: "Redaction 20", "Times New Roman", serif; }

/* === HOLIDAY DEV PANEL === */
#holiday-dev-panel {
  display: none;
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  background: #1a1a1a;
  border: 2px solid #444;
  padding: 10px;
  font-family: "Courier New", monospace;
  font-size: 0.75em;
  color: #eee;
  min-width: 200px;
}

#holiday-dev-panel.holiday-dev-open {
  display: block;
}

#holiday-dev-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 8px;
  border-bottom: 1px solid #444;
  padding-bottom: 4px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
}

#holiday-dev-minimize {
  color: #666;
  font-size: 1.1em;
  line-height: 1;
}

#holiday-dev-body {
  max-height: 300px;
  overflow-y: auto;
}

#holiday-dev-panel.holiday-dev-minimized #holiday-dev-body {
  display: none;
}

#holiday-dev-panel.holiday-dev-minimized #holiday-dev-title {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.holiday-dev-btn {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 4px 8px;
  background: #2a2a2a;
  color: #eee;
  border: 1px solid #555;
  font-family: "Courier New", monospace;
  font-size: 1em;
  text-align: left;
  cursor: pointer;
}

.holiday-dev-btn:hover {
  background: #3a3a3a;
  border-color: #888;
}

/* === HOLIDAY BANNER === */
#holiday-banner {
  display: none;
  text-align: center;
  padding: 8px 10px;
  margin-bottom: 14px;
  background: var(--color-mid);
  color: var(--color-light);
  font-family: "Redaction 10", "Times New Roman", serif;
  font-size: 0.9em;
  border: 2px dashed var(--color-light-mid);
}

body[class*="holiday-"] #holiday-banner {
  display: block;
}

/* === ENTRY ARROW === */
.entry-gt {
  font-size: 1.15em;
}

/* === OLDER UPDATES === */
.older-updates {
  margin-top: 0;
}

.older-updates > summary {
  cursor: url("pointer.cur"), pointer;
  font-size: 0.85em;
  color: var(--color-mid);
  user-select: none;
  padding: 4px 8px;
  background: var(--color-table-row);
  border: 1px solid var(--color-border);
  border-top: none;
  display: block;
}

.older-updates > summary:hover {
  color: var(--color-dark);
}

.older-updates .table-scroll {
  margin-top: 0;
}

.older-updates .content-table {
  margin-top: 0;
  border-top: none;
}

.older-updates .content-table td {
  border-top: none;
}

/* === UNDER CONSTRUCTION === */
.under-construction {
  text-align: center;
  padding: 10px;
  background: var(--color-table-row);
  border: 2px dashed var(--color-border);
  margin-top: 14px;
  font-size: 0.8em;
  color: var(--color-dark);
}

/* === FOOTER BANNER === */
.footer-banner {
  display: block;
  width: 60%;
  margin: 0 auto;
  opacity: 0.99;
}

.footer-banner-top {
  width: 100%;
  margin: 0 0 7px 0;
  border: none;
}


/* === FOOTER === */
#footer {
  background: var(--color-dark);
  border: var(--border);
  border-top: none;
  padding: 10px;
  text-align: center;
  font-size: 0.92em;
  color: var(--color-light-mid);
}

#footer a {
  color: var(--color-light);
  display: inline-block;
  margin-top: 6px;
}

/* === DIVIDER === */
hr.fancy {
  border: none;
  border-top: var(--border);
  margin: 0;
}

/* === PHOTO GRID === */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.photo-item {
  text-align: center;
}

.photo-placeholder {
  background: var(--color-light-mid);
  border: 2px inset var(--color-border);
  color: var(--color-dark);
  font-size: 0.8em;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === LIGHTBOX === */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 5vh;
}

#lb-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: url("arrow.cur"), auto;
}

#lightbox.open {
  display: flex;
}

#lightbox-wrap {
  position: relative;
  cursor: url("arrow.cur"), auto;
  box-shadow: 0 0 0 3px #ffffff;
}

#lb-thumb {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

#lb-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  cursor: url("pointer.cur"), pointer;
  transition: opacity 0.5s ease, clip-path 0.07s linear;
}

#lb-prev,
#lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  height: 30vh;
  display: flex;
  align-items: center;
  padding: 0 40px;
  color: var(--color-border);
  font-size: 2em;
  font-family: "Courier New", monospace;
  user-select: none;
  z-index: 1001;
}

#lb-prev { left: 0; }
#lb-next { right: 0; }

#lb-prev:hover,
#lb-next:hover {
  color: #0000EE;
}

#lb-caption {
  color: var(--color-border);
  font-size: 0.85em;
  font-family: "Courier New", monospace;
  text-align: center;
  user-select: none;
}

#lb-meta {
  color: var(--color-mid);
  font-size: 0.75em;
  font-family: "Courier New", monospace;
  text-align: center;
  user-select: none;
}

#lb-meta a {
  color: var(--color-light-mid);
  text-decoration: underline;
}

.album-heading {
  cursor: url("pointer.cur"), pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.album-heading::after {
  content: "V";
  font-size: 0.75em;
  color: var(--color-mid);
  flex-shrink: 0;
}

.album-heading.collapsed::after {
  content: ">";
}

.photo-caption {
  margin: 4px 0 0;
  font-size: 0.75em;
  color: var(--color-mid);
  font-style: normal;
}

/* === GEAR HEADINGS === */
.gear-heading {
  cursor: url("pointer.cur"), pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gear-toggle {
  font-size: 0.65em;
  color: var(--color-mid);
  font-family: "Courier New", monospace;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  flex-shrink: 0;
}

/* === GEAR LIST === */
.gear-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.gear-item {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.gear-img-wrap {
  flex-shrink: 0;
  width: 160px;
  text-align: center;
}

.gear-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  display: block;
  border: 2px inset var(--color-border);
}

.gear-img-label {
  font-size: 0.72em;
  color: var(--color-mid);
  font-style: italic;
  margin: 3px 0 0;
  word-break: break-all;
}

.gear-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.gear-desc {
  font-size: 0.9em;
  color: var(--color-dark);
  line-height: 1.6;
  margin: 2px 0 0;
}

.gear-period {
  font-size: 0.78em;
  color: var(--color-mid);
  font-style: italic;
  margin: 0;
}

/* === MOBILE DISCLAIMER === */
#mobile-disclaimer {
  display: none;
}

/* === TABLE SCROLL === */
.table-scroll {
  overflow-x: auto;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  body {
    padding: 0;
  }

  #wrapper {
    max-width: 100%;
  }

  #header {
    padding: 18px 8px;
  }

  #header h1 {
    font-size: 9vw;
    letter-spacing: 2px;
  }

  .h1-line2 {
    display: block;
  }

  @keyframes wave {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
  }

  #nav {
    flex-wrap: nowrap;
    align-items: stretch;
  }

  #nav a {
    font-size: clamp(8px, 3.2vw, 0.72em);
    padding: 8px 2px;
    min-height: unset;
    flex: 1;
    justify-content: center;
  }

  #content {
    flex-direction: column;
  }

  #sidebar {
    width: 100%;
    border-right: var(--border);
    border-bottom: none;
  }

  #sidebar-toggle {
    display: block;
    color: var(--color-light);
    font-size: 0.85em;
    font-family: "Redaction 10", "Times New Roman", serif;
    font-weight: bold;
    text-transform: uppercase;
    padding: 6px 2px;
    cursor: url("pointer.cur"), pointer;
    user-select: none;
  }

  #sidebar.sidebar-collapsed > *:not(#sidebar-toggle) {
    display: none;
  }

  #main {
    border-top: none;
  }

  #main-col {
    border-top: var(--border);
    border-right: var(--border);
  }

  #main h2 {
    font-size: 1.1em;
  }

  #footer {
    font-size: clamp(0.55em, 3.2vw, 0.92em);
    white-space: nowrap;
    border-bottom: var(--border);
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gear-img-wrap {
    width: 140px;
  }

  .gear-img {
    width: 140px;
    height: 140px;
  }

  #lb-prev,
  #lb-next {
    font-size: 1.4em;
    padding: 0 12px;
  }

  .footer-banner {
    width: 100%;
    margin: 0;
  }

  /* On non-home pages, show disclaimer above the banner */
  body:not(.page-home) #wrapper {
    display: flex;
    flex-direction: column;
  }
  body:not(.page-home) #mobile-disclaimer { order: 1; }
  body:not(.page-home) .footer-banner     { order: 2; }
  body:not(.page-home) #footer            { order: 3; }

  #mobile-disclaimer {
    display: block;
    background: var(--color-mid);
    border-left: var(--border);
    border-right: var(--border);
    border-bottom: var(--border);
    padding: 4px 10px;
    text-align: center;
  }

  #mobile-disclaimer summary {
    color: var(--color-light-mid);
    font-size: 0.85em;
    font-family: "Redaction 10", "Times New Roman", serif;
    text-transform: uppercase;
    padding-bottom: 4px;
    margin-bottom: 4px;
    cursor: url("pointer.cur"), pointer;
    user-select: none;
    list-style: none;
  }

  #latest-photos .photo-item:nth-child(3) {
    display: none;
  }
}

/* ============================================================
   HOLIDAY THEMES
   Override CSS variables per holiday. All colours cascade
   automatically — no other changes needed.
   ============================================================ */

/* Christmas (Dec 18 – Jan 1, Jan 4 – Jan 10) */
body.holiday-christmas {
  --color-dark:       #1b4332;
  --color-mid:        #c0392b;
  --color-light-mid:  #d4edda;
  --color-border:     #c3e6cb;
  --color-table-row:  #e8f5e9;
}

/* Halloween (Oct 26 – Oct 31) */
body.holiday-halloween {
  --color-dark:       #2d1b00;
  --color-mid:        #e67e22;
  --color-light-mid:  #f9c784;
  --color-border:     #f0d9a0;
  --color-table-row:  #fdf3dc;
}

/* Valentine's Day (Feb 11 – Feb 17) */
body.holiday-valentine {
  --color-dark:       #b06080;
  --color-mid:        #e8a0bc;
  --color-light-mid:  #fce4ee;
  --color-border:     #f9d0e2;
  --color-table-row:  #fdf0f6;
}

/* New Year (Dec 30 – Jan 3, Jan 12 – Jan 16) */
body.holiday-newyear {
  --color-dark:       #1a1a2e;
  --color-mid:        #c9a84c;
  --color-light-mid:  #f5e6b8;
  --color-border:     #f0dfa0;
  --color-table-row:  #fdf8e1;
}

/* Women's Day (March 7 – March 9) */
body.holiday-womensday {
  --color-dark:       #7b6fa0;
  --color-mid:        #b8a9d9;
  --color-light-mid:  #e8e0f5;
  --color-border:     #ded6f0;
  --color-table-row:  #f3effb;
}

/* Novi Sad Memorial Day (November 1) */
body.memorial-greyscale {
  filter: grayscale(1);
}

body.holiday-memorial {
  --color-dark:       #0d0d0d;
  --color-mid:        #555555;
  --color-light-mid:  #cccccc;
  --color-border:     #999999;
  --color-table-row:  #eeeeee;
  filter: grayscale(1);
}

body.holiday-memorial .marquee-bar,
body.holiday-memorial .footer-banner,
body.holiday-memorial #sidebar,
body.holiday-memorial hr.fancy,
body.holiday-memorial #nav,
body.holiday-memorial #mobile-disclaimer {
  display: none;
}


body.holiday-memorial::before {
  display: none;
}

body:not(.page-home) #footer {
  margin-top: 8px;
  border-top: var(--border);
}

body.holiday-memorial #footer {
  margin-top: 0;
}

body.holiday-memorial #content,
body.holiday-memorial #main-col > #main {
  border-top: none;
}

#main-content-dropdown > summary {
  display: none;
}

body.holiday-memorial #main-content-dropdown > summary {
  display: list-item;
  cursor: url('assets/pointer.cur'), pointer;
  margin: 12px 0;
  color: var(--color-mid);
}

body.holiday-memorial .wave-letter {
  animation: none;
  display: inline;
}

body.holiday-memorial,
body.holiday-memorial * {
  font-family: 'Times New Roman', Times, serif !important;
}

.memorial-section {
  display: none;
}

body.holiday-memorial .memorial-section {
  display: block;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.memorial-photos {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 600px) {
  body.holiday-memorial .memorial-section {
    display: flex;
    flex-direction: column;
  }

  .memorial-section h2  { order: 0; }
  .memorial-photos      { order: 1; margin-top: 0; margin-bottom: 12px; }
  .memorial-section > p { order: 2; }
}

.memorial-photos img {
  flex: 1 1 0;
  width: 0;
  height: 180px;
  object-fit: cover;
  object-position: center;
  border: var(--border);
  cursor: url("pointer.cur"), pointer;
}

/* === GUESTBOOK === */
.guestbook-form {
  margin-bottom: 20px;
}

.gb-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.gb-field {
  margin-bottom: 10px;
}

.gb-field label {
  display: block;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-mid);
  margin-bottom: 3px;
}

.gb-optional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-light-mid);
  font-size: 0.9em;
}

.gb-field input,
.gb-field textarea {
  width: 100%;
  background: var(--color-light);
  border: var(--border);
  padding: 6px 8px;
  font-family: "Redaction 10", "Times New Roman", serif;
  font-size: 0.9em;
  color: var(--color-dark);
  resize: vertical;
}

.gb-field input:focus,
.gb-field textarea:focus {
  outline: none;
  border-color: var(--color-mid);
}

.gb-submit {
  background: var(--color-dark);
  color: var(--color-light);
  border: var(--border);
  padding: 6px 14px;
  font-family: "Redaction 10", "Times New Roman", serif;
  font-size: 0.9em;
  cursor: url("pointer.cur"), pointer;
}

.gb-submit:hover {
  background: var(--color-mid);
}

.gb-entry {
  border: var(--border);
  padding: 10px;
  margin-bottom: 10px;
  background: var(--color-table-row);
}

.gb-entry-header {
  font-size: 0.8em;
  color: var(--color-mid);
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 4px;
}

.gb-entry-name {
  font-weight: bold;
  color: var(--color-dark);
}

.gb-entry-date {
  color: var(--color-mid);
  float: right;
  font-size: 0.85em;
}

.gb-entry-message {
  font-size: 0.9em;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.gb-empty {
  font-size: 0.85em;
  color: var(--color-light-mid);
  font-style: italic;
}

.gb-flash {
  padding: 8px 12px;
  margin-bottom: 12px;
  border: var(--border);
  font-size: 0.9em;
}
.gb-flash-ok  { background: var(--color-table-row); color: var(--color-dark); }
.gb-flash-err { background: #f8e8e8; color: #7a2020; border-color: #e0b0b0; }

/* === VIDEO GRID === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.video-item a {
  cursor: url("pointer.cur"), pointer;
  display: block;
  border: 2px inset var(--color-border);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* === YOUTUBE FEATURE === */
.yt-feature {
  display: none;
  margin-bottom: 16px;
}

body.holiday-saintsava .yt-feature {
  display: block;
}

.yt-thumb {
  display: block;
  width: 100%;
  border: var(--border);
}

.yt-title {
  margin: 6px 0 0;
  font-size: 0.85em;
}

.yt-quote {
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--color-dark);
  color: var(--color-light);
  border: 2px dashed var(--color-light-mid);
  font-size: 0.85em;
  font-style: italic;
}

/* === 404 PAGE === */
.content-no-top { border-top: none; }

.main-404 {
  text-align: center;
  padding: 40px 14px;
}

.error-code {
  font-size: 4em;
  margin: 0;
  line-height: 1;
}

.error-code + h2 {
  margin-top: 0.5em;
}

/* === SPOTIFY PLAYLIST BLOCK === */
.playlist-block {
  background: var(--color-dark);
  border: var(--border);
  padding: 10px;
  margin-bottom: 16px;
}

.playlist-block-title {
  margin: 0 0 8px;
  font-family: "Redaction 10", "Times New Roman", serif;
  font-size: 0.75em;
  text-transform: uppercase;
  color: var(--color-light-mid);
  border-bottom: 1px dashed var(--color-light-mid);
  padding-bottom: 4px;
  letter-spacing: 2px;
}

.playlist-block-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.playlist-block-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 2px inset var(--color-border);
  flex-shrink: 0;
}

.playlist-block-name {
  margin: 0;
  font-family: "Redaction 10", "Times New Roman", serif;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-light);
}

.playlist-block-subtitle {
  margin: 8px 0 0;
  font-size: 0.8em;
  color: var(--color-light-mid);
  font-style: italic;
}

.playlist-block-cta {
  margin: 12px 0 0;
  font-size: 0.8em;
  color: var(--color-mid);
}

/* === NOW PLAYING BLOCK === */
.now-playing-block {
  background: var(--color-dark);
  border: var(--border);
  padding: 10px;
  margin-bottom: 16px;
}

.now-playing-text {
  margin: 0;
  font-size: 0.9em;
  color: var(--color-light);
}

/* === FAV TOGGLE === */
.fav-toggle {
  cursor: url("pointer.cur"), pointer;
  color: var(--color-mid);
  float: right;
}

/* April Fools (April 1 only) */
/* Kosta's Birthday (August 31) */
body.holiday-birthday {
  --color-dark:       #8b0000;
  --color-mid:        #cc2222;
  --color-light-mid:  #f5c0c0;
  --color-border:     #e8a0a0;
  --color-table-row:  #fdf0f0;
}

body.holiday-vidovdan #holiday-banner {
  background: #c8e6c9;
  border-color: #4caf50;
  color: #1b4a1b;
}

body.holiday-fools {
  --color-dark:       #1b4a1b;
  --color-mid:        #4caf50;
  --color-light-mid:  #c8e6c9;
  --color-border:     #b2dfb2;
  --color-table-row:  #e8f5e9;
}
