* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: white;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  height: 100%;
  margin: 0;
  line-height: 1.6;
}

body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  font-weight: 400;
  color: white;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: url(/images/site/bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

header, footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

main {
  width: 100%;
  padding: 20px;
  min-height: 1vh;
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.8em;
  letter-spacing: 0.01em;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; padding-bottom: 10px; }
h4 { font-size: 1.25rem; font-weight: 500; }

p {
  line-height: 1.7;
  margin-bottom: 1em;
  font-weight: 400;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: auto;
  gap: 1rem;
  padding: 1rem;
  width: 100%;
}

.pswp-gallery__item {
  display: block;
}

.pswp-gallery__item.wide {
  grid-column: span 2;
}

.pswp-gallery__item.tall img {
  max-height: 300px;
  object-fit: cover;
}

.gallery-grid a img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid a img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.pswp-gallery__item img {
  display: block;
}

.pswp-gallery {
  padding: 0 50px 50px;
  background: #eee;
  position: relative;
  display: flex;
  flex-wrap: wrap;
}

.pswp__dynamic-caption {
  color: blue;
  width: 100%;
}

.pswp__dynamic-caption a {
  color: #fff;
  text-decoration: underline;
}

.footer {
  background: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.footer-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

.footer-icons a {
  margin-right: 10px;
  display: inline-block;
}

.footer-icons img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.footer-icons img:hover {
  transform: scale(1.1);
}

.footer-disclaimer {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.8;
  padding: 10px;
  letter-spacing: 0.01em;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.site-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.navbar a:hover {
  border-color: white;
  color: #f0f0f0;
}

.navbar a.active {
  border-color: #00bfff;
  font-weight: 600;
  color: #00bfff;
}

/* Unified info-stack */
.info-stack {
  display: flex;
  gap: 2rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* .about and .faq shared styles */
.about, .faq {
  width: 100%;
  max-width: 600px;
}

.about h2, .faq h2 {
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.faq-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  backdrop-filter: blur(5px);
  transition: all 0.2s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #f0f0f0;
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease;
}

.faq-answer-inner {
  padding: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-weight: 300;
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
}

/* Tabs Styling */
.faq-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.faq-tab {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.faq-tab:hover,
.faq-tab.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.site-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.site-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.source-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.loading-content, .error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
}

.loading-content .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #00bfff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.7);
  padding: 1.5rem 2rem;

}

.main {
  padding-top: 1rem;
}

/* Desktop-only overrides */
@media (min-width: 769px) {
  .info-stack {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
  }

  .about, .faq {
    width: 48%;
  }
}
/* Mobile Overrides */
@media (max-width: 768px) {
  .site-title {
    font-size: 1.8rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }

  body {
    font-size: 15px;
  }

  .navbar a {
    font-size: 0.9rem;
  }

  .info-stack {
    flex-direction: column;
    align-items: center;
  }

  .about, .faq {
    width: 100%;
  }
}

