/* Project: Sinful Celluloid */
/* File: moongate-apps/public/sc-wp.css V1.0 */

@charset "utf-8";

/* ================================================
   WORDPRESS ARTICLE STYLES (.article-content)
   ================================================ */
/* Article container - Includes Header and Back Button */
.scroll-wrapper article {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

/* Inner content */
.article-content {
    margin: 0;
}

/* Featured image full-span banner */
.featured-image {
    display: block;
    margin: 0 auto;
    justify-content: center;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto;
    justify-content: center;
}

.article-content .wp-block-image img,
.article-content .wp-block-gallery img,
.article-content .wp-block-embed iframe {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* WordPress Image Alignments */
.alignleft {
    float: left;
    margin: 0 1em 1em 0;
    vertical-align: top;
}
.alignright {
    float: right;
    margin-left: 1em;
    margin-bottom: 1em;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
img.alignleft {
  display: inline-block;
  vertical-align: top;
  margin: 0 1em 1em 0;
}



/* WordPress video embeds */
.article-content .wp-block-video video,
.article-content .wp-block-embed iframe[src*="youtube"],
.article-content .wp-block-embed iframe[src*="vimeo"],
.article-content .video-embed.youtube iframe {
    display: block;
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-content .video-embed.youtube {
    display: flex;
    width: 100%;
}

/* WordPress Legacy line breaks */
.article-content .MsoNormal {
  margin-bottom: 1em;
  display: block;
}
.article-content .MsoNormal:empty {
  height: 1em;
}


/* Tables with inline images */
.article-content .wp-block-table img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    max-height: 80vh;
    object-fit: contain;
}

/* override WordPress fixed-layout tables */
.article-content figure.wp-block-table {
    display: block;
    width: 100%;
}

.article-content .wp-block-table table {
    margin: 0 auto;              /* centers the table block itself */
    border-collapse: collapse;
    width: 100%;                 /* restore normal text flow */
}

.article-content .wp-block-table td {
    text-align: left;            /* restore normal alignment */
    vertical-align: middle;
    border: none;
}

.article-content .wp-block-table td img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* WORDPRESS GALLERY GRID (uniform image size) */
.article-content .wp-block-gallery,
.article-content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    margin: 0 auto;
    justify-items: center;
}

/* each cell same fixed height for uniform grid */
.article-content .wp-block-gallery figure,
.article-content .gallery .gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    margin: 0;
    padding: 0;
}

.article-content .wp-block-gallery img,
.article-content .gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.article-content .wp-block-gallery img:hover,
.article-content .gallery .gallery-item img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* captions stay pinned at bottom */
.article-content .wp-block-gallery figcaption,
.article-content .gallery .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.85em;
    padding: 6px 10px;
    text-align: center;
}