/* ============================================================
   ICHIGO BLOOM — CUSTOM CSS
   Last updated: May 2026
   ============================================================ */


/* ------------------------------------------------------------
   STORY CARDS
   Used on workshop pages for the "case studies" section.
   .story-card / .story-card-right / .story-row-reverse
   control layout and column order on desktop/mobile.
   ------------------------------------------------------------ */

/* Full-height photo columns with cover fit */
.story-row {
    align-items: stretch !important;
}
.story-photo-column {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
}
.story-photo-column figure {
    height: 100%;
    flex: 1;
    margin: 0;
}
.story-photo-column figure img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* White border on photo edges to visually separate from text column */
.story-photo-column:last-child figure img {
    border-right: 20px solid var(--theme-palette-color-8);
}
.story-photo-column:first-child figure img {
    border-left: 20px solid var(--theme-palette-color-8);
}

/* Reverse column order for alternating story layout (mobile) */
@media (max-width: 781px) {
    .story-row-reverse .wp-block-column:first-child {
        order: 2 !important;
    }
    .story-row-reverse .wp-block-column:last-child {
        order: 1 !important;
    }
}

/* Hide decorative spacer blocks on mobile */
@media (max-width: 768px) {
    .story-spacer {
        display: none;
    }
}


/* ------------------------------------------------------------
   WORKSHOP CARDS (HOMEPAGE)
   Used on the homepage workshop grid.
   Controls column order and hover effect on workshop images.
   ------------------------------------------------------------ */

/* Reverse column order on desktop for alternating layout */
@media (min-width: 782px) {
    .workshop-row-reverse .wp-block-column:first-child {
        order: 2 !important;
    }
    .workshop-row-reverse .wp-block-column:last-child {
        order: 1 !important;
    }
}

/* On mobile: image goes above text for both normal and reverse rows */
@media (max-width: 781px) {
    .workshop-row .wp-block-column:first-child,
    .workshop-row-reverse .wp-block-column:first-child {
        order: 2 !important;
    }
    .workshop-row .wp-block-column:last-child,
    .workshop-row-reverse .wp-block-column:last-child {
        order: 1 !important;
    }
}

/* Left-align text in workshop rows on mobile */
@media (max-width: 781px) {
    .workshop-row .wp-block-column h3,
    .workshop-row .wp-block-column h2,
    .workshop-row .wp-block-column p,
    .workshop-row .wp-block-column .wp-block-buttons {
        text-align: left !important;
        justify-content: flex-start !important;
    }
}

/* Hover lift effect on workshop card images */
.workshop-row .wp-block-column:last-child figure {
    transition: transform 0.2s ease, filter 0.2s ease;
}
.workshop-row .wp-block-column:last-child figure:hover {
    transform: translateY(-6px);
    filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.15));
}


/* ------------------------------------------------------------
   COLLAGE IMAGES
   The large bleed image on workshop pages (left column).
   Negative margin is set inline on each block in WordPress.
   On mobile, reset margins to avoid overflow.
   ------------------------------------------------------------ */

@media (max-width: 781px) {
    .collage-image,
    .wp-block-image.alignfull {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* ------------------------------------------------------------
   LOGO STRIPS
   Partner/client logo galleries.
   Centers the logo gallery and wraps to grid on mobile.
   ------------------------------------------------------------ */

/* Centered logo gallery on workshop pages */
.logos-inner {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* 4-logo strip wraps to 2x2 grid on mobile */
@media (max-width: 781px) {
    .logo-strip-4.wp-block-group.is-nowrap {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .logo-strip-4.wp-block-group > .wp-block-image {
        flex-shrink: 0 !important;
        flex-basis: calc(25% - 6px) !important;
        width: calc(25% - 6px) !important;
    }
}


/* ------------------------------------------------------------
   LATEST POSTS SECTION
   Used on homepage. Overrides default block styles to match
   brand colors (palette-color-9 = dark red).
   ------------------------------------------------------------ */

.latest-posts-section .wp-block-latest-posts__post-title {
    color: var(--theme-palette-color-9) !important;
    font-weight: 700;
    line-height: 1.3 !important;
    display: block;
}
.latest-posts-section .wp-block-latest-posts__post-date {
    color: var(--theme-palette-color-9) !important;
    opacity: 0.7;
    font-size: 14px;
}
.latest-posts-section .wp-block-latest-posts__post-excerpt {
    color: var(--theme-palette-color-9) !important;
}
.latest-posts-section .wp-block-latest-posts__featured-image {
    margin-bottom: 6px !important;
}


/* ------------------------------------------------------------
   LINKS
   Dotted underline on all body links (excludes buttons,
   nav menus). Becomes solid on hover for clear affordance.
   ------------------------------------------------------------ */

.wp-block-group a:not(.wp-block-button__link):not(.wp-element-button),
.wp-block-post-content a:not(.wp-block-button__link) {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.wp-block-group a:not(.wp-block-button__link):hover,
.wp-block-post-content a:not(.wp-block-button__link):hover {
    text-decoration-style: solid;
    text-decoration-thickness: 2px;
}


/* ------------------------------------------------------------
   MISC
   ------------------------------------------------------------ */

/* Remove default left border from WordPress quote blocks */
.wp-block-quote {
    border-left: none !important;
}

/* Blog archive — force 16:9 featured images */
.entry-card .ct-media-container img {
    aspect-ratio: 16 / 9 !important;
    object-fit: cover;
    width: 100%;
}

/* Single post — larger red title */
.single .page-title {
    font-size: clamp(32px, 4vw, 52px);
    color: var(--theme-palette-color-1) !important;
}

/* Search modal — input text color */
#search-modal .modal-field {
    color: var(--theme-palette-color-9) !important;
}