/*
Theme Name: Love90s Custom Theme v2
Theme URI: https://love90s.net/
Author: love90s
Author URI: https://love90s.net/
Version: 2.0
Text Domain: love90s
*/

/* Global Styles */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  background-color: #fdfdfd;
  color: #111;
  margin: 0;
}

/* Header Title Image */
.site-header {
  text-align: center;
  padding: 20px;
}
.site-title img {
  width: 319px;
  height: 56px;
}

/* Layout */
.layout {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sidebar */
.menu-toggle {
  display: none;
  background: #111;
  color: #fff;
  text-align: right;
  padding: 10px;
  cursor: pointer;
}
.sidebar {
  width: 250px;
  position: sticky;
  top: 0;
  background: #fff;
  padding: 20px;
  border-right: 1px solid #ddd;
}
.sidebar h2 {
  font-size: 18px;
  margin-bottom: 10px;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar li {
  margin: 6px 0;
}
.sidebar a {
  text-decoration: none;
  color: #333;
}
.sidebar a:hover {
  color: #0073aa;
}

/* Main Content Grid - Desktop */
.content {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
}

/* Card */
.card {
  overflow: hidden;
  border-radius: 8px;
}
.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    padding: 10px;
  }
  .menu-toggle {
    display: block;
  }
  .sidebar {
    display: none;
    width: 100%;
    border-right: none;
    border-top: 1px solid #ddd;
  }
  .sidebar.open {
    display: block;
  }
  .content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 95%;
    margin: 0 auto;
  }
}

/* Global responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Single/Post Content Width */
.single-post .content,
.page-post .content {
  display: block;
  width: 900px;
  max-width: 95%;
  margin: 0 auto;
  padding: 20px; 
}

/* Enforce title image original size */
.site-header .site-title img {
  width: 319px !important;
  height: 56px !important;
  max-width: none !important;
}

/* 1) Title image responsive size: 10% viewport width, maintain ratio, centered */
.site-header .site-title img {
  width: 10vw !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  max-width: none !important;
}

/* 3) Mobile single/page content full width */
@media (max-width: 768px) {
  .single-post .content,
  .page-post .content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
  }
}

/* Updated title image size: PC 5%, Mobile 15% */
.site-header .site-title img {
  width: 5vw !important;
  height: auto !important;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .site-header .site-title img {
    width: 15vw !important;
  }
}
