/* ==========================================================
   Creote Project Manager — Frontend Styles
   ========================================================== */

/* ---- Project Title ---- */
.cpm-project-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 50px !important;
    padding-bottom: 0 !important;
    line-height: 1.25;
}

@media (max-width: 768px) {
    .cpm-project-title {
        font-size: 26px;
        margin-bottom: 30px !important;
    }
}

/* ---- Hero image ---- */
.cpm-project-detail {
    width: 100%;
}

.cpm-hero-image {
    width: 100%;
    margin-top: 50px !important;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 8px;
}

.cpm-hero-image .cpm-featured-img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* ---- Main two-column layout ---- */
.cpm-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.cpm-main-content {
    flex: 1;
    min-width: 0;
}

.cpm-entry-content {
    margin-bottom: 36px;
    line-height: 1.8;
    color: #444;
}

/* ---- Sidebar / Project Info ---- */
.cpm-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Reuse Creote's .project_information styles */
.cpm-sidebar .project_information {
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px 24px;
}

.cpm-sidebar .project_information h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
    color: #1a1a1a;
}

.cpm-sidebar .repeat_informtion {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid #efefef;
}

.cpm-sidebar .repeat_informtion:last-of-type {
    border-bottom: none;
}

.cpm-sidebar .repeat_informtion h6 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 3px;
}

.cpm-sidebar .repeat_informtion p {
    font-size: 15px;
    color: #222;
    margin: 0;
    font-weight: 500;
}

.cpm-sidebar .repeat_informtion a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cpm-cat-links a {
    display: inline-block;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.cpm-cat-links a:hover {
    color: var(--primary-color, #e8541d);
    text-decoration: underline;
}

/* ---- Gallery ---- */
.cpm-gallery-section {
    margin-top: 40px;
}

.cpm-gallery-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.cpm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.cpm-gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4/3;
    background: #eee;
}

.cpm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cpm-gallery-item:hover img {
    transform: scale(1.06);
}

.cpm-zoom-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 22px;
}

.cpm-gallery-item:hover .cpm-zoom-icon {
    opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .cpm-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cpm-layout {
        flex-direction: column;
    }

    .cpm-sidebar {
        width: 100%;
    }

    .cpm-hero-image .cpm-featured-img {
        max-height: 320px;
    }

    .cpm-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cpm-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}
