/* ========== Global Styles ========== */
body, h1, h2, h3, h4, h5, h6, p, a, li, div {
    font-family: "Arial Narrow", Arial, sans-serif;
    color: #e0e0e0; /* Light gray for readability */
}

/* ========== Layout and Body ========== */
body {
    background-color: #121212; /* Dark background */
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

/* ========== Smooth Fade-In Animation ========== */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Header Styling ========== */
header {
    text-align: center;
    background: #1e1e1e;
    padding: 10px 0; /* Slimmed down padding */
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

/* Urban Planner Title */
.urban-planner-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #a8a8a8;
    text-transform: uppercase;
    margin: 0;
}

/* Name Styling */
header h1 {
    font-size: 32px; /* Slightly larger */
    font-weight: 100 !important; /* Ultra-thin for elegance */
    letter-spacing: 0.2em; /* Increased spacing */
    color: #f5f5f5;
    margin: 5px 0 15px;
}

/* Header Navigation */
.header-nav {
    display: flex;
    justify-content: center;
    border-top: 2px solid #333;
    padding-top: 10px;
    margin-top: 10px;
}

.header-nav a {
    padding: 5px 10px; /* Reduce padding to make buttons smaller */
    margin: 0 5px; /* Add a small margin to control spacing */
    text-decoration: none;
    color: #b0b0b0;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.header-nav a:hover {
    background-color: #292929;
    color: #ffffff;
    border-radius: 5px;
}

/* ========== Body Content Styling ========== */
.content {
    background-color: #1a1a1a;
    padding: 5px 20px !important;
    margin: 20px auto !important; /* Center horizontally along the vertical axis */
    max-width: 800px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center; /* Ensures title stays centered */
    font-size: 16px;
    display: block; /* Ensures proper margin auto behavior */
}

/* Justify body text inside .content */
.content p {
    text-align: left;
}

/* Elegant Heading Styling */
h2 {
    font-size: 28px; /* Slightly refined size */
    font-weight: 100 !important; /* Ultra-thin for elegance */
    letter-spacing: 0.05em; /* More subtle spacing */
    color: #f5f5f5; /* Keep consistent with your theme */
    margin-bottom: 15px;
    text-align: center; /* Explicitly keep the heading centered */
}

/* Center menu links */
.menu {
    text-align: center;
}

.menu a {
    display: block; /* Makes each link a full-width block to stack vertically */
    margin: 10px auto; /* Adds spacing and centers them */
    text-decoration: none; /* Removes underlines */
    color: #f5f5f5; /* Matches theme */
    font-size: 18px;
    font-weight: 300;
}

.menu a:hover {
    text-decoration: underline; /* Adds hover effect */
}
/* Monochrome Link Styling */
.content a {
    text-decoration: none;
    color: #d1d1d1;
    transition: color 0.3s ease-in-out;
}

.content a:visited {
    color: #b0b0b0;
}

.content a:hover {
    color: #ffffff;
}

/* ========== Footer Styling ========== */
.footer {
    width: 100vw;
    background-color: #1e1e1e;
    text-align: center;
    font-size: small;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #333;
}

/* Footer Navigation (Restored) */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-nav a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.footer-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ========== Responsive Pics ========== */
.responsive {
  max-width: 100%;
  height: auto;
}

.small-responsive {
  max-width: 55%;
  height: auto;
}

/* ========== Table of Contents ========== */
.toc {
    background-color: #333;
    padding: 12px;
    width: 250px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    margin: auto; /* Centers the container */
    font-size: 14px;
    text-align: left; /* Ensures text stays left-aligned */
}

.toc h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #f5f5f5;
    text-decoration: none;
}

.toc a {
    text-decoration: none;
    color: #d1d1d1;
    transition: color 0.3s ease-in-out;
    font-size: 13px;
}

.toc a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Box within body */
.box {
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    border: 2px solid #292929;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    background-color: #1a1a1a; /* Matches your .content background */
}

/* Title Above Photo */
.photo-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 5px;
}
/* Photo Grid Styling */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: 0;
    padding-top: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.photo-item:hover img {
    opacity: 0.6;
}

.photo-item .photo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 20px;
    font-weight: 300;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-text {
    opacity: 1;
}

.photo-item a {
    color: #ffffff;
    text-decoration: none;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    display: block;
    transition: transform 0.3s ease;
}

.modal-description {
    text-align: center;
    color: #ffffff;
    font-size: 14px; /* smaller text */
    padding: 10px 15px; /* inner padding: 10px top/bottom, 15px left/right */
    font-weight: 300;
    max-width: 80%; /* ensures the container is not wider than the photo */
    margin: auto;
    background-color: #1a1a1a;
    box-sizing: border-box; /* ensures padding does not affect width calculation */
}


@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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


/*-------------------*/

/* ========== Photo Album Styles ========== */
.photo-album {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
    margin: 40px 0;
    max-width: 800px; /* Adjust width as needed */
    margin-left: auto;
    margin-right: auto;
}

.photo-album-item {
    display: flex;
    flex-direction: column; /* Stack image and description vertically */
    align-items: center; /* Center items */
    gap: 10px; /* Space between image and description */
    margin-bottom: 20px;
    background-color: #1a1a1a; /* Matches your dark theme */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.photo-album-item img {
    max-width: 100%; /* Make image responsive */
    height: auto;
    object-fit: contain; /* Ensures the image maintains its aspect ratio */
    border-radius: 8px;
    max-height: 250px; /* Ensures the image doesn't grow too large */
    width: 100%; /* Ensures the image fills the container but maintains aspect ratio */
}

.photo-album-description {
    max-width: 500px; /* Ensures description doesn't take up too much space */
    color: #e0e0e0;
}

.photo-album-description h2 {
    font-size: 24px;
    color: #f5f5f5;
    margin-bottom: 10px;
}

.photo-album-description p {
    font-size: 16px;
    line-height: 1.5;
}

/* ========== Responsive Styles for Mobile ========== */
@media (max-width: 768px) {
    .photo-album-item img {
        width: 100%; /* Make the image full-width on mobile */
        height: auto;
    }
}

/* Force dual-boxes layout to show as side-by-side boxes */
.dual-boxes {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin: 20px auto;
  width: fit-content; /* keeps them grouped neatly */
  text-align: left !important; /* cancel the content centering */
}

.dual-box {
  background-color: #333;
  padding: 16px;
  width: 300px; /* make them clearly wider than .toc */
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
  font-size: 14px;
  display: block;
}

.dual-box h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #f5f5f5;
}

.dual-box a {
  display: block;
  color: #d1d1d1;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
  font-size: 13px;
  margin-bottom: 4px;
}

.dual-box a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Stack boxes vertically on mobile */
@media (max-width: 600px) {
  .dual-boxes {
    flex-direction: column;
    align-items: center;
  }
}
/* SIMPLE, ROBUST LIST INDENTS (minimal, Neocities-safe) */

.list-block {
  text-align: left;        /* force left alignment for the whole block */
  white-space: normal;     /* allow wrapping (no ellipsis) */
  overflow: visible;       /* let long lines show */
  margin: 0.5em 0;         /* spacing around the block */
}

.list-block span {
  display: block;          /* make each span its own line */
}

/* first-level (1., 2., 3.) */
.indent-line {
  margin-left: 2em;
  margin-top: 0.15em;
  margin-bottom: 0.15em;
}

/* second-level (a., b., c.) */
.secondary-indent {
  margin-left: 4em;
  margin-top: 0.1em;
  margin-bottom: 0.1em;
}
.content p {
  margin-bottom: 0;
}
