/*
Theme Name: GeneratePress Child
Template:   generatepress
*/

/* =====================================================
   THE KAIKŌURA PROJECT — Work CPT Styles
   ===================================================== */

/* ── Archive: View All Works ─────────────────────── */
.tkp-archive {
    max-width: 900px;
    margin: 0 auto;
}

.tkp-archive-entry {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.tkp-archive-entry:last-child {
    border-bottom: none;
}

.tkp-archive-image img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
}

.tkp-archive-text h2 {
    margin: 0 0 0.3rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.tkp-archive-text h2 a {
    text-decoration: none;
    color: inherit;
}

.tkp-detail-1 {
    margin: 0 0 0.15rem;
    opacity: 0.65;
    font-size: 1.05rem;
}

.tkp-detail-2 {
    margin: 0 0 1.2rem;
    opacity: 0.5;
    font-size: 1rem;
}

.tkp-archive-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* View the work link */
.tkp-view-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0.6;
}

.tkp-view-link:hover {
    opacity: 1;
}

/* Archive page heading */
.post-type-archive-work .page-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0 1.5rem 0;
}

.post-type-archive-work .page-title {
    font-weight: 700;
    font-size: 2.4rem;
    margin: 0;
}


/* ── Single Work: two-column header ──────────────── */
.single-work .site-main,
.single-work #primary {
    max-width: 100%;
    width: 100%;
}

.tkp-work-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    padding-top: 3rem;
    padding-bottom: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.tkp-work-header-left h1 {
    margin: 0 0 0.6rem;
    font-size: 2.4rem;
    line-height: 1.1;
    font-weight: 700;
}

.tkp-work-header-left .tkp-detail-1 {
    margin: 0;
    font-size: 1.05rem;
    opacity: 0.65;
}

.tkp-work-header-left .tkp-detail-2 {
    margin: 0.15rem 0 0;
    font-size: 1rem;
    opacity: 0.5;
}

.tkp-work-header-right {
    padding-top: 0.4rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Gallery full width */
.tkp-gallery-content {
    max-width: 100%;
    padding: 0;
}

.tkp-gallery-content .wp-block-gallery {
    margin-left: 0;
    margin-right: 0;
}

/* Separator white */
.tkp-gallery-content .wp-block-separator {
    border-color: white;
    opacity: 1;
}

/* Camera note */
.tkp-camera-note {
    margin-top: 2rem;
    margin-left: 2rem;
    font-size: 0.88rem;
    opacity: 0.45;
    letter-spacing: 0.02em;
}


/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 700px) {
    .tkp-archive {
        padding: 0 1.2rem;
    }
    .tkp-archive-entry {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .tkp-work-header {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 0;
    }
    .tkp-camera-note {
        margin-left: 1rem;
    }
    .tkp-gallery-content .wp-block-gallery,
    .tkp-gallery-content .wp-block-gallery.has-nested-images,
    .tkp-gallery-content figure.wp-block-gallery {
        grid-template-columns: 1fr !important;
        columns: 1 !important;
    }
    .tkp-gallery-content .wp-block-gallery .wp-block-image,
    .tkp-gallery-content .wp-block-gallery figure {
        width: 100% !important;
        max-width: 100% !important;
    }
    .post-type-archive-work .page-header {
    padding-left: 1.2rem;
}
}