/* ==========================================================================
   detail.css — Shared layout styles for all project/detail pages
   Loaded in addition to style.css on every detail page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared: "More Projects" footer section
   -------------------------------------------------------------------------- */
.more-projects {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
}

.more-projects h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.more-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

/* --------------------------------------------------------------------------
   Shared: Architecture thumbnail cards (arch pages + detail pages)
   -------------------------------------------------------------------------- */
.detail-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.detail-card h4 {
    margin-top: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.detail-img-fixed {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.detail-card:hover .detail-img-fixed {
    transform: translateY(-5px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
}

/* --------------------------------------------------------------------------
   Architecture editorial layout (lsdpc.html + any editorial-style arch page)
   -------------------------------------------------------------------------- */
.int-detail-hero {
    padding-top: 15vh;
    min-height: auto;
    align-items: start;
    margin-bottom: 50px;
}

.int-editorial-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .int-editorial-layout {
        grid-template-columns: 2fr 1fr;
        gap: 80px;
        align-items: center;
        margin-bottom: 80px;
    }

    .int-editorial-layout.alt {
        grid-template-columns: 1fr 2fr;
    }
}

.int-image-wrapper img {
    width: 100%;
    height: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: block;
}

.int-text-content h1 {
    font-size: clamp(3rem, 6vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.int-text-content p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.8;
}

.int-metadata {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.int-metadata li {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.int-secondary-container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Architecture gallery layout (studio.html, mosque.html)
   -------------------------------------------------------------------------- */
.arch-detail-hero {
    padding-top: 15vh;
    padding-bottom: 5vh;
}

.arch-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.arch-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    text-transform: capitalize;
}

.arch-hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.arch-detail-gallery {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.image-figure {
    margin-bottom: 40px;
    text-align: center;
}

.image-figure img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}

.image-figure figcaption {
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-color);
    opacity: 0.8;
    text-transform: uppercase;
    border-bottom: 1px dashed var(--border-color);
    display: inline-block;
    padding-bottom: 5px;
}

.arch-grid-imgs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

/* --------------------------------------------------------------------------
   Technical drawing detail pages (ceiling, wardrobe, kitchen, toilet)
   -------------------------------------------------------------------------- */
.detail-page-hero {
    padding-top: 15vh;
    padding-bottom: 5vh;
    text-align: center;
}

.detail-page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
}

.detail-image-container {
    width: 100%;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.detail-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 0 10px;
}

.detail-image-wrapper img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   Interior "More Projects" gallery thumbnails
   -------------------------------------------------------------------------- */
.int-gallery-item {
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px;
    background: var(--surface-color);
    transition: transform 0.3s;
}

.int-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.int-gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 15px;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.int-gallery-item:hover .int-gallery-img {
    filter: grayscale(0%);
}

.int-gallery-item h4 {
    font-size: 1rem;
    text-align: center;
}
