/*
 * Новини / Кастинги / Блог: post cards, post pages and the photo viewer, in the site's black and
 * gold design (Montserrat labels, Cormorant Garamond titles, gold #FFE000).
 */
.mm-posts,
.mm-post {
    --mm-gold: #FFE000;
    --mm-text: #FFFFFF;
    --mm-muted: rgba(255, 255, 255, .68);
    --mm-card: #141414;
    --mm-line: rgba(255, 224, 0, .28);
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 48px;
    color: var(--mm-text);
}

.mm-posts *,
.mm-post *,
.mm-lightbox * {
    box-sizing: border-box;
}

/* Headings: the theme hides the page title and its menu bar is fixed over the top of the page. */
.mm-posts-header,
.mm-post-header {
    padding-top: 170px;
    margin-bottom: 36px;
    text-align: center;
}

.mm-posts-title,
.mm-post-title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--mm-text);
}

.mm-posts-title::after,
.mm-post-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    margin: 20px auto 0;
    background: linear-gradient(90deg, transparent, var(--mm-gold), transparent);
}

.mm-post-section {
    margin: 0 0 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.mm-post-section a {
    color: var(--mm-gold) !important;
    text-decoration: none !important;
}

.mm-posts-intro:empty {
    display: none;
}

.mm-posts-intro {
    margin-bottom: 32px;
}

.mm-posts-empty {
    padding: 48px 16px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--mm-muted);
}

/* ── Cards ─────────────────────────────────────────────── */
.mm-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.mm-card {
    margin: 0;
    background: var(--mm-card);
    border: 1px solid var(--mm-line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.mm-card:hover {
    transform: translateY(-4px);
    border-color: var(--mm-gold);
    box-shadow: 0 12px 30px rgba(255, 224, 0, .12);
}

.mm-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}

/* The agency's logo shows until (and instead of) a photo that cannot load: never an empty box. */
.mm-card-image,
.mm-gallery-item {
    background: #0A0A0A url("../wp-content/uploads/2026/03/final-11111-300x300.png") center / 34% no-repeat;
}

.mm-card-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.mm-card-image img.mm-img-fallback,
.mm-gallery-item img.mm-img-fallback {
    object-fit: contain;
    padding: 18%;
    background: #0A0A0A;
}

.mm-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 24px;
}

.mm-card-date,
.mm-post-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mm-gold);
}

.mm-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--mm-text);
}

.mm-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--mm-muted);
}

.mm-card-excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--mm-muted);
}

.mm-card-more {
    margin-top: auto;
    padding-top: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mm-gold);
}

.mm-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mm-badge--closed {
    background: #2a2a2a;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, .3);
}

.mm-card-image .mm-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

/* ── Pagination ─────────────────────────────────────────── */
.mm-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.mm-pagination a,
.mm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--mm-line);
    border-radius: 999px;
    color: var(--mm-text) !important;
    text-decoration: none !important;
}

.mm-pagination a:hover {
    border-color: var(--mm-gold);
    color: var(--mm-gold) !important;
}

.mm-pagination .is-current {
    background: var(--mm-gold);
    border-color: var(--mm-gold);
    color: #0A0A0A !important;
    font-weight: 700;
}

/* ── Post page ──────────────────────────────────────────── */
.mm-post {
    max-width: 900px;
}

.mm-post-date {
    margin: -16px 0 28px;
    text-align: center;
}

.mm-post-body {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: var(--mm-text);
}

.mm-post-body a {
    color: var(--mm-gold);
}

.mm-post-body h2,
.mm-post-body h3 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--mm-gold);
}

.mm-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.mm-post-body blockquote {
    margin: 24px 0;
    padding: 8px 20px;
    border-left: 3px solid var(--mm-gold);
    color: var(--mm-muted);
}

.mm-post-cover {
    margin: 0 0 28px;
}

.mm-post-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.mm-casting-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 0 0 28px;
    padding: 22px;
    background: var(--mm-card);
    border: 1px solid var(--mm-line);
    border-radius: 16px;
}

.mm-casting-info-row {
    margin: 0;
}

.mm-casting-info dt {
    margin: 0 0 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mm-gold);
}

.mm-casting-info dd {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--mm-text);
}

/* Videos: uploaded files and the players of pasted links, as wide as the text. */
.mm-videos {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

.mm-video video {
    display: block;
    width: 100%;
    max-height: 80vh;
    background: #000;
    border-radius: 14px;
}

.mm-embed {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

.mm-embed--wide {
    aspect-ratio: 16 / 9;
}

.mm-embed--tall {
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
}

.mm-embed--instagram.mm-embed--tall {
    aspect-ratio: 4 / 6;
}

.mm-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Gallery: thumbnails that open the photo viewer. */
.mm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 32px 0;
}

.mm-gallery-item {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
}

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

.mm-gallery-item:hover img {
    transform: scale(1.04);
}

.mm-post-apply {
    margin: 36px 0;
    text-align: center;
}

.mm-apply-button {
    display: inline-block;
    padding: 16px 44px;
    border-radius: 999px;
    background: var(--mm-gold);
    color: #0A0A0A !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(255, 224, 0, .25);
}

.mm-apply-button:hover {
    background: #FFFFFF;
}

.mm-post-back {
    margin: 32px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.mm-post-back a {
    color: var(--mm-gold) !important;
    text-decoration: none !important;
}

.mm-post-more {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--mm-line);
}

.mm-post-more-title {
    margin: 0 0 24px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    text-align: center;
    color: var(--mm-gold);
}

@media (max-width: 782px) {
    .mm-posts-header,
    .mm-post-header {
        padding-top: 120px;
        margin-bottom: 24px;
    }
}

@media (max-width: 600px) {
    .mm-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mm-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .mm-post-body {
        font-size: 16px;
    }

    .mm-card-title {
        font-size: 22px;
    }
}

/* ── Photo viewer ───────────────────────────────────────── */
.mm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .94);
    touch-action: pan-y;
}

.mm-lightbox[hidden] {
    display: none;
}

.mm-lightbox-image {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 6px;
    user-select: none;
}

.mm-lightbox button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 224, 0, .5);
    border-radius: 50%;
    background: rgba(10, 10, 10, .7);
    color: #FFE000;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.mm-lightbox button:hover,
.mm-lightbox button:focus-visible {
    background: #FFE000;
    color: #0A0A0A;
}

.mm-lightbox-close {
    top: 16px;
    right: 16px;
}

.mm-lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.mm-lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.mm-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: #FFFFFF;
}

@media (max-width: 600px) {
    .mm-lightbox-prev,
    .mm-lightbox-next {
        top: auto;
        bottom: 8px;
        transform: none;
    }
}
