:root {
  --color-bg: #1B1B1B;
  --color-fg: #E4E4E4;
  --color-accent: #FFA500;
  --color-accent-hover: #FFBE00;
  --color-card: #171717cc;
  --color-border: #222222;
  --color-footer: #AAAAAA;
  --radius-md: 1rem;
  --radius-xl: 1.25rem;
  --shadow-md: 0 3px 18px 0 rgba(0,0,0,0.15);
  --shadow-xl: 0 12px 32px 0 rgba(0,0,0,0.35), 0 1.5px 3px 0 rgba(0,0,0,0.15);
  --sidebar-width: 16rem;
  --transition: cubic-bezier(.4,0,.2,1);
}

/* ===========================
   BASIC & ACCESSIBILITY POLISH
   =========================== */
html, body, .site-body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1024px) {
  html, body, .site-body {
    min-height: 100vh;
  }
}

a { color: inherit; text-decoration: none; }
a:focus,
a:focus-visible,
button:focus,
button:focus-visible {
  outline: 1px solid #FFA500;
  outline-offset: 1px;
  box-shadow: 0 0 0 3px #3b82f633;
  z-index: 10;
}

/* ======================
   CARD & OVERLAY UTILITY
   ====================== */
.card, .welcome-card, .contact-card, .album-card, .gallery-masonry a {
  border-radius: var(--radius-xl);
/*  box-shadow: var(--shadow-xl); */
  transition: box-shadow 0.15s var(--transition), transform 0.14s var(--transition);
}

/* --- Ken Burns Background --- */
.kenburns-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.kenburns-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s var(--transition);
  z-index: 0;
}
.kenburns-img.active {
  opacity: 1;
  z-index: 1;
}
.kenburns-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.07);
  z-index: 2;
}
.kenburns-up    { animation: kenburns-up    12s var(--transition) infinite alternate; }
.kenburns-down  { animation: kenburns-down  12s var(--transition) infinite alternate; }
.kenburns-zoom  { animation: kenburns-zoom  12s var(--transition) infinite alternate; }
@keyframes kenburns-up   { 0%{transform:scale(1.15)translateY(0);}100%{transform:scale(1.15)translateY(-6%);} }
@keyframes kenburns-down { 0%{transform:scale(1.15)translateY(0);}100%{transform:scale(1.15)translateY(6%);} }
@keyframes kenburns-zoom { 0%{transform:scale(1.15)translate(0,0);}100%{transform:scale(1.15)translate(-6%,-6%);} }

.fade {
  opacity: 0;
  transition: opacity 1.5s var(--transition);
}
.fade.active {
  opacity: 1;
  z-index: 1;
}

/* --- Responsive Header/Menu --- */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: rgba(0,0,0,0.8);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-title {
  font-weight: bold;
  letter-spacing: .15em;
  font-size: 1.2rem;
  user-select: none;
}
.menu-button {
  background: none;
  border: none;
  color: var(--color-fg);
  font-size: 2rem;
  cursor: pointer;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  color: var(--color-fg);
  z-index: 40;
  overflow-y: auto;
  padding: 6rem 0 2.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2rem);
  transition: opacity 0.35s var(--transition), transform 0.35s var(--transition);
}
.mobile-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.close-menu {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--color-fg);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}
.menu-logo {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border: 4px solid #4D2408;
  box-shadow: 0 2px 8px #000000;
}
.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.menu-link {
  display: block;
  width: 100%;
  padding: 0.85em 0;
  text-align: center;
  border-radius: 0.5em;
  font-size: 1.15rem;
  font-weight: 500;
  transition: background 0.16s, color 0.16s;
  text-decoration: none;
  color: var(--color-fg);
  margin-bottom: 0.15em;
}
.menu-link:hover, .menu-link.active {
  background: #1B1B1B;
  text-decoration: none;
}
.menu-social {
  display: flex;
  gap: 1.3em;
  justify-content: center;
  margin: 2.2em 0 0 0;
}
.menu-footer {
  color: var(--color-footer);
  font-size: 0.89em;
  text-align: center;
  margin-top: 3.3em;
  width: 100%;
  user-select: none;
}

/* --- Sidebar (Desktop) --- */
.sidebar {
  display: none;
}
@media (min-width: 1024px) {
.sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--sidebar-width);
  background: rgba(0,0,0,0.80);
  border-right: 1px solid var(--color-border);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  padding-bottom: 2em;
  transition: transform 0.38s var(--transition);
  transform: translateX(0);
}
.sidebar.hidden {
  transform: translateX(-110%);
}
.sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 2.7rem 0 0 0;
}
.sidebar-logo {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border: 4px solid #4D2408;
  box-shadow: 0 2px 8px #0008;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 1em;
  font-size: 1.11rem;
}
.sidebar-link {
  display: block;
  width: 100%;
  padding: 0.82em 0;
  text-align: center;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-fg);
  transition: background 0.15s;
}
.sidebar-link:hover {
  background: #1B1B1B;
  text-decoration: none;
}
.sidebar-link.active {
  text-decoration: none;
}
.sidebar-social {
  display: flex;
  gap: 1.3em;
  justify-content: center;
  margin: 2.2em 0 0 0;
}
.sidebar-footer {
  color: var(--color-footer);
  font-size: 0.80em;
  text-align: center;
  margin-top: 2em;
  margin-bottom: 2em;
  width: 100%;
  user-select: none;
}
}

/* Sidebar Toggle (desktop only) */
.sidebar-toggle {
  display: none;
}

@media (min-width: 1024px) {
.sidebar-toggle {
  display: flex;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900 !important;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 4px solid #1B1B1B;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.sidebar-toggle:hover {
  background: #FFF999;
}
}

/* Main layout */
.main-layout {
  min-height: 100vh;
  display: flex;
  position: relative;
  z-index: 10;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: 0;
  transition: margin-left 0.38s var(--transition);
}
@media (min-width: 1024px) {
.main-content {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}
}

/* Welcome card */
.welcome-card {
  max-width: 28rem;
  width: 100%;
  background: rgba(0,0,0,0.80);
  border-radius: var(--radius-xl);
  padding: 2rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--color-border);
  position: relative;
  transition: opacity 0.7s var(--transition);
}
@media (min-width: 640px) {
.welcome-card {
  padding: 2.5rem 1.75rem;
  max-width: 28rem;
  padding-top: 0;
  padding-bottom: 0;
}
}
@media (min-width: 1024px) {
.welcome-card {
  padding: 3rem 2.2rem;
  max-width: 28rem;
  overflow-y: auto;
}
}
.welcome-logo {
  display: block;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  margin-bottom: 1.15rem;
  border: 4px solid #4D2408;
  box-shadow: 0 2px 8px #000000;
}
@media (min-width: 1024px) {
.welcome-logo { display: none; }
}
.welcome-title {
  font-size: 2rem;
  font-weight: 800;
  margin-top: auto;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px #0008;
}
.welcome-subtitle {
  font-size: 1.15rem;
  color: #e5e5e5;
  margin-top: 0.7rem;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 2px 8px #0008;
}
@media (min-width: 640px) {
.welcome-title { font-size: 2.5rem; }
.welcome-subtitle { font-size: 1.4rem; }
}
@media (min-width: 1024px) {
.welcome-title { font-size: 3rem; }
.welcome-subtitle { font-size: 1.75rem; }
}

@media (max-width: 767px) {
html, body {
  height: 100%;
  min-height: 100%;
  overflow-x: hidden;
}
.main-content {
  min-height: 0 !important;
}
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}
.action-button {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.12);
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
  margin: 0.12em 0;
  border: none;
  cursor: pointer;
  width: auto;
}
.action-button.albums {
  background: #222;
  color: #E4E4E4;
}
.action-button.albums:hover {
  background: #FFA500;
  color: #1B1B1B;
}
.action-button.contact {
  background: #222;
  color: var(--color-fg);
}
.action-button.contact:hover {
  background: #FFA500;
  color: #1B1B1B;
}
@media (min-width: 640px) {
.welcome-actions {
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}
.action-button {
  width: 90%;
  min-width: 4rem;
}
}
.close-card {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: #444;
  font-size: 2rem;
  border-radius: 50%;
  padding: 0.25em 0.5em;
  cursor: pointer;
  transition: color 0.22s, background 0.19s;
}
.close-card:hover {
  color: #FFFFFF;
  background: none;
  outline: none;
}

/* --- Social icons --- */
.social-link {
  display: inline-block;
  transition: filter 0.2s, opacity 0.2s;
  opacity: 0.8;
}

.social-icon {
  width: 1.7em;
  height: 1.5em;
  vertical-align: middle;
}

/* Utility: hide sidebar or menu as needed */
@media (max-width: 1023px) {
.sidebar { display: none !important; }
.sidebar-toggle { display: none !important; }
.mobile-header { display: flex; }
}
@media (min-width: 1024px) {
.mobile-header, .mobile-menu { display: none !important; }
.sidebar { display: flex; }
}

/* Hide scrollbars for background images if desired */
.kenburns-bg::-webkit-scrollbar { display: none; }
.kenburns-bg { -ms-overflow-style: none; scrollbar-width: none; }

/* ==============================
   EXTRA SMALL MOBILE SPACING
   ============================== */

/* Responsive tweaks for mobile menu and card */
@media (max-width: 640px) {
.welcome-card {
  max-width: 85vw;
  padding: 1.1rem 0.85rem;
  font-size: 0.95rem;
}  
}

@media (max-height: 420px) {
.welcome-card {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
}

/* --- Albums Page Specific --- */
.albums-main {
  flex: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-left: 0;
}
@media (min-width: 1024px) {
.albums-main {
  margin-left: var(--sidebar-width);
}
}
.albums-wrapper {
  width: 90%;
  max-width: 68rem;
  padding: 2.5rem 1.1rem 4.5rem 1.1rem;
}

@media (min-width: 640px) {
.albums-wrapper {
  padding: 3rem 2rem 5rem 2rem;
}
}

.albums-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.2rem;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px #0008;
}
@media (min-width: 640px) {
.albums-title { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
.albums-title { text-align: left; font-size: 2.5rem; }
}

.albums-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 640px) {
.albums-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
}
@media (min-width: 1024px) {
.albums-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
}
.album-card {
  display: block;
  background: rgba(40,40,40,0.85);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  text-decoration: none;
  transition: 
    box-shadow 0.18s, 
    transform 0.15s, 
    outline 0.14s,
    filter 0.13s;
  outline: 2px solid transparent;
  will-change: transform;
  cursor: pointer;
}
.album-card:focus {
  outline: 2.5px solid #FFA500;
}
.album-card:hover, .album-card:focus-visible {
  box-shadow: 0 6px 34px 0 rgba(0,0,0,0.28), 0 2.5px 4px 0 rgba(0,0,0,0.18);
  filter: brightness(1.03);
  transform: scale(1.024);
}
.album-thumb {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  transition: opacity 0.17s, transform 0.17s;
  display: block;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
@media (min-width: 640px) {
.album-thumb { height: 14rem; }
}
.album-card:hover .album-thumb,
.album-card:focus .album-thumb {
  opacity: 0.91;
  transform: scale(1.03);
}
.album-name {
  padding: 0.15em 0 0.15em 0;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #f5f5f5;
  user-select: none;
  transition: color 0.17s;
}
@media (min-width: 640px) {
.album-name { font-size: 1.19rem; }
}

/* Albums logo tweaks */
.albums-logo {
  width: 9rem;
  height: 9rem;
  max-width: 100%;
  max-height: 100%;
}
@media (max-width: 640px) {
.albums-logo { width: 5rem !important; height: 5rem !important; }
}

/* --- Contact Page Specific --- */
.contact-card {
  max-width: 34rem;
  width: 90%;
  background: rgba(23,23,23,0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem 1.5rem 2.5rem 1.5rem;
  margin: 3rem auto;
  border: 1px solid #222222;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(4px);
}
@media (max-width: 640px) {
.contact-card { padding: 1.1rem 0.5rem; margin: 2.1rem auto; }
}
.contact-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px #0008;
}
@media (min-width: 640px) {
.contact-title { font-size: 2.7rem; }
}
.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.input-label {
  display: block;
  margin-bottom: 0.4em;
  font-size: 0.97rem;
  font-weight: 500;
  color: #E4E4E4;
  letter-spacing: 0.01em;
}
.input-text {
  width: 100%;
  border-radius: 0.67em;
  border: 1px solid #222222;
  background: rgba(0,0,0,0.7);
  padding: 0.72em 1em;
  font-size: 1.04rem;
  color: #E4E4E4;
  transition: border 0.16s, background 0.14s;
  outline: none;
  box-sizing: border-box;
}
.input-text:focus {
  border: 2px solid var(--color-accent);
  background: #111111;
}
.textarea {
  min-height: 7.5em;
  resize: vertical;
}
.contact-submit {
  width: 100%;
  background: #222;
  color: #E4E4E4;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 0.85em 0;
  border-radius: 0.95em;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.14);
  border: none;
  cursor: pointer;
  transition: background 0.16s;
  margin-top: 0.8rem;
}
.contact-submit:hover, .contact-submit:focus {
  background: #FFA500;
  color: #1B1B1B;
}
.contact-status {
  margin-top: 1em;
  text-align: center;
  color: #FFA500;
  font-size: 1.03rem;
  display: none;
}
.contact-status.show {
  display: block;
}
.contact-footer-note {
  color: #AAAAAA;
  font-size: 0.98em;
  text-align: center;
  margin-top: 2.5em;
  user-select: none;
}
.hidden-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* --- 404 Error Page --- */
.site-404 {
  background: #1B1B1B;
  color: #E4E4E4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.8rem 1.2rem 1.5rem 1.2rem;
  width: 100%;
  min-height: 60vh;
}
@media (min-width: 640px) {
  .error-container { padding-top: 5.5rem; padding-bottom: 2.3rem; }
}
.error-logo {
  width: 7rem;
  height: 7rem;
  margin-bottom: 0.2rem;
  border-radius: 50%;
  border: 4px solid #4D2408;
  box-shadow: 0 5px 24px 0 rgba(0,0,0,0.20), 0 1.5px 3px 0 rgba(0,0,0,0.18);
}
@media (min-width: 640px) {
  .error-logo { width: 7rem; height: 7rem; }
}
.error-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.2em;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px #0008;
}
@media (min-width: 640px) {
.error-title { font-size: 4.3rem; }
}
.error-message {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 1.2em;
  text-align: center;
}
@media (min-width: 640px) {
.error-message { font-size: 1.48rem; }
}
.error-subtext {
  color: #BBBBBB;
  margin-bottom: 1.5em;
  text-align: center;
  max-width: 28rem;
  font-size: 1.01rem;
}
.error-buttons {
  display: flex;
  gap: 1.1em;
  margin-bottom: 1.7em;
}
.error-btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0.75em 1.65em;
  border-radius: 0.85em;
  text-decoration: none;
  box-shadow: 0 3px 18px 0 rgba(0,0,0,0.15);
  transition: background 0.16s, color 0.16s;
  border: none;
  cursor: pointer;
}
.error-btn-primary {
  background: #222;
  color: #E4E4E4;
}
.error-btn-primary:hover,
.error-btn-primary:focus {
  background: #FFA500;
  color: #1B1B1B;
}
.error-btn-secondary {
  background: #222;
  color: #E4E4E4;
}
.error-btn-secondary:hover,
.error-btn-secondary:focus {
  background: #FFA500;
  color: #1B1B1B;
}
.error-social {
  display: flex;
  gap: 1.35em;
  justify-content: center;
  margin-top: 2.3em;
  margin-bottom: 1.3em;
}
.error-social-icon {
  width: 1.75em;
  height: 1.75em;
  opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s;
  vertical-align: middle;
}
.error-footer {
  margin-top: 2.8em;
  color: #BBBBBB;
  font-size: 0.95em;
  text-align: center;
  opacity: 0.93;
  width: 100%;
}

/* --- Gallery Page Layout --- */
.site-gallery {
  background: #1B1B1B;
  color: #E4E4E4;
  min-height: 100vh;
}

.gallery-main {
  margin-left: 0;
  padding: 2.2rem 0.9rem 3.5rem 0.9rem;
  max-width: 1200px;
  width: 90%;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 1024px) {
.gallery-main { margin-left: 16.5rem; }
}

.gallery-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2.2rem;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px #0008;
}
.gallery-masonry {
  column-count: 1;
  column-gap: 1.1rem;
}
@media (min-width: 640px) {
.gallery-masonry { column-count: 2; }
}
@media (min-width: 900px) {
.gallery-masonry { column-count: 3; }
}
.gallery-masonry a {
  display: block;
  margin-bottom: 1.2rem;
  break-inside: avoid;
  background: rgba(32,32,32,0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.16s;
}
.gallery-masonry a:hover, .gallery-masonry a:focus {
  box-shadow: 0 8px 24px 0 #0008;
  transform: scale(1.03);
}
.gallery-masonry img {
  width: 100%;
  display: block;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transition: opacity 0.14s, transform 0.17s;
}
.gallery-masonry a:hover img,
.gallery-masonry a:focus img {
  opacity: 0.89;
  transform: scale(1.03);
}

/* ==============================
   LIGHTBOX MODAL - ANIMATION
   ============================== */
#lightbox {
  display: none;
  position: fixed;
  z-index: 100;
  inset: 0;
  background: #1B1B1B;
  justify-content: center;
  align-items: center;
  outline: none;
  transition: opacity 0.25s;
}
#lightbox.show {
  display: flex;
  animation: fadein 0.25s, zoomin 0.28s cubic-bezier(.32,1.56,.64,1);
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomin { from { transform: scale(0.98);} to { transform: scale(1);} }
.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 70vh;
  box-shadow: 0 0 40px #0008;
  border-radius: var(--radius-xl);
  margin: 0 auto;
  display: block;
}
.lightbox-caption {
  margin-top: 0.9rem;
  margin-bottom: 0.35rem;
  font-size: 1.09rem;
  line-height: 1.25rem;
  color: #ececec;
  text-align: center;
  max-width: 520px;
}
.lightbox-actions {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  justify-content: center;
}
.lightbox-share, .lightbox-fullsize {
  background: #222;
  color: #E4E4E4;
  border-radius: 0.7em;
  padding: 0.45rem 1.3rem;
  font-size: 1.01rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 12px #0002;
  cursor: pointer;
  transition: background 0.14s;
  min-width: fit-content;
  text-decoration: none;
  margin-right: 0.5em;
}
.lightbox-fullsize {
  background: #25262b;
  color: #f2f2f2;
  margin-right: 0;
}
.lightbox-share:hover, .lightbox-share:focus { background: #FFA500; color: #1B1B1B; }
.lightbox-fullsize:hover, .lightbox-fullsize:focus { background: #FFA500; color: #1B1B1B; }

.lightbox-share-msg {
  display: none;
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  padding: 12px 26px;
  border-radius: var(--radius-xl);
  background: rgba(25, 164, 70, 0.98);
  color: #E4E4E4;
  font-size: 1.15rem;
  font-weight: 600;
  box-shadow: 0 4px 36px #0008;
  text-align: center;
  pointer-events: none;
  letter-spacing: 0.04em;
  min-width: 100px;
}
@media (max-width: 500px) {
.lightbox-share-msg { font-size: 1rem; padding: 9px 10px; min-width: 90px; }
.lightbox-caption { font-size: 0.97rem; padding: 0 0.3rem; }
.lightbox-actions button,
.lightbox-actions a { font-size: 0.93rem; }
}

/* Lightbox prev/next/close buttons */
.lightbox-btn {
  opacity: 0.85;
  position: absolute;
  background: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #E4E4E4;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 10;
  bottom: inherit;
  transform: translateY(-50%);
  transition: background 0.16s, opacity 0.16s;
}
.lightbox-btn:hover, .lightbox-btn:focus { opacity: 1; background: #1B1B1B; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-close {
  top: 0.5rem; right: 0.5rem;
  width: 2.5rem; height: 2.5rem;
  font-size: 1.8rem;
  background: #1B1B1B;
  z-index: 20;
  transform: none;
  left: unset;
}

.modal-open {
  overflow: hidden !important;
  height: 100% !important;
}

html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100% !important;
}

@media (max-width: 767px) {
html, body {
  min-height: 0 !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
}
