/* Container */
.pm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Archive */
.pm-archive {
    padding-bottom: 60px;
}

/* Full-width breakout — ignores any constrained parent (theme content wrapper). */
.pm-archive--fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: none;
}

.pm-archive__hero {
    position: relative;
    background-color: #1a1a1a;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.32)),
        url('../background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 70px 20px;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.pm-archive__title {
    position: relative;
    color: #fff;
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pm-archive__inner {
    padding: 50px 0;
    max-width: 1680px;
    box-sizing: border-box;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pm-archive__inner {
        padding: 50px 20px;
    }
}

/* Grid */
.pm-grid {
    display: grid;
    gap: 28px;
}

.pm-grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pm-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .pm-grid--cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {

    .pm-grid--cols-2,
    .pm-grid--cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Card */
.pm-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease;
}

.pm-card:hover {
    transform: translateY(-3px);
}

.pm-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #f4f4f4;
    overflow: hidden;
}

.pm-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-bottom: 10px solid;
    border-radius: 6px;
}

.pm-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eee, #d8d8d8);
}

.pm-card__body {
    position: relative;
    padding: 18px 70px 20px 18px;
}

.pm-card__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.pm-card__title a {
    color: inherit;
    text-decoration: none;
}

.pm-card__excerpt {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.pm-card__cta {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #ee2d2d;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(238, 45, 45, 0.35);
    transition: background .2s, transform .2s, box-shadow .2s;
}

.pm-card__cta:hover {
    background: #c82323;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(238, 45, 45, 0.45);
}

.pm-card__cta-icon {
    width: 20px;
    height: 20px;
    display: block;
}

/* Pagination */
.pm-pagination {
    margin-top: 32px;
    text-align: center;
}

.pm-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pm-pagination .page-numbers.current {
    background: #ee2d2d;
    color: #fff;
}

/* Single project */
.pm-single {
    padding: 50px 0 80px;
    background: #fff;
}

/* Full-width breakout — matches archive behavior. */
.pm-single--fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: none;
}

.pm-single__inner {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    box-sizing: border-box;
}

/* Roboto on plugin templates */
.pm-archive,
.pm-archive *,
.pm-single,
.pm-single * {
    font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
}

/* Breadcrumbs */
.pm-breadcrumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.pm-breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color .15s;
}
.pm-breadcrumbs a:hover {
    color: #ee2d2d;
}
.pm-breadcrumbs__sep {
    color: #b5b5b5;
    font-size: 14px;
    line-height: 1;
}
.pm-breadcrumbs__current {
    color: #111;
    font-weight: 600;
}

.pm-single__logo {
    margin-bottom: 24px;
}

.pm-single__logo img {
    max-height: 70px;
    width: auto;
    display: block;
}

.pm-single__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .pm-single__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.pm-single__title {
    margin: 0 0 18px;
    font-size: 44px;
    font-weight: 800;
    color: #111;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.pm-single__description {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    max-width: 560px;
}

.pm-single__description p {
    margin: 0 0 12px;
}

/* Meta rows on the right (no card, just rows with dotted leader feel) */
.pm-single__meta {
    padding-top: 8px;
}

.pm-meta__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pm-meta__list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #ececec;
    font-size: 15px;
}

.pm-meta__list li:last-child {
    border-bottom: 0;
}

.pm-meta__label {
    color: #888;
    font-weight: 500;
}

.pm-meta__value {
    color: #111;
    font-weight: 600;
    text-align: right;
}

/* Section title */
.pm-section-title {
    margin: 50px 0 24px;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    color: #111;
    position: relative;
    letter-spacing: -0.3px;
}

.pm-section-title--left {
    text-align: left;
}


/* Gallery / Swiper */
.pm-gallery {
    margin-top: 10px;
    position: relative;
}

.pm-gallery-swiper {
    padding: 6px 6px 60px;
    position: relative;
    overflow: hidden;
}

.pm-gallery-swiper .swiper-wrapper {
    align-items: stretch;
}

.pm-gallery-swiper .swiper-slide {
    height: auto;
}

.pm-slide {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pm-slide__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f4f4f4;
    overflow: hidden;
}

.pm-slide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pm-slide__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eee, #d8d8d8);
}

.pm-slide__logo {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 6px 10px;
    max-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pm-slide__logo img {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 38px;
    width: auto;
}

.pm-slide__body {
    padding: 16px 22px 18px;
}

.pm-slide__title {
    margin: 0 0 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ececec;
    font-size: 17px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.2px;
}

.pm-slide__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #444;
}

.pm-slide__meta li {
    padding: 2px 0;
    display: flex;
    gap: 12px;
}

.pm-slide__meta-label {
    color: #888;
    min-width: 76px;
    flex-shrink: 0;
}

.pm-slide__meta-value {
    color: #222;
    font-weight: 500;
}

/* Round white nav buttons (positioned over edges) */
.pm-gallery-swiper .swiper-button-prev,
.pm-gallery-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #333;
    margin-top: -22px;
    top: 40%;
    transition: background .2s, color .2s, transform .2s;
}

.pm-gallery-swiper .swiper-button-prev {
    left: 14px;
}

.pm-gallery-swiper .swiper-button-next {
    right: 14px;
}

.pm-gallery-swiper .swiper-button-prev::after,
.pm-gallery-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

.pm-gallery-swiper .swiper-button-prev:hover,
.pm-gallery-swiper .swiper-button-next:hover {
    background: #ee2d2d;
    color: #fff;
}

/* Pagination dots */
.pm-gallery-swiper .swiper-pagination {
    bottom: 0;
}

.pm-gallery-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d4d4d4;
    opacity: 1;
    margin: 0 4px;
    transition: width .2s, background .2s;
}

.pm-gallery-swiper .swiper-pagination-bullet-active {
    background: #ee2d2d;
    width: 24px;
    border-radius: 4px;
}

.pm-gallery-swiper .swiper-pagination-bullet-active {
    background: #ee2d2d;
}