/* v25 — Gallery composition and integrated Story quote.
   Section structure is pure flexbox; all page content comes from ACF fields. */

/* The hero should not show or animate the old “A closer look” eyebrow. */
.kc24-gallery-hero-copy {
    transform: none;
    opacity: 1;
}
.kc25-hero-fine-rule {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 160px;
    height: 22px;
}
.kc25-hero-fine-rule i {
    display: block;
    width: 44px;
    height: 1px;
    background: #a46a49;
}
.kc25-hero-fine-rule span {
    width: 8px;
    height: 8px;
    display: block;
    transform: rotate(45deg);
    border: 1px solid #a46a49;
}
.kc24-gallery-hero h1 {
    margin-top: 24px;
}

/* Purposeful, functional index bar, instead of a row of arbitrary spinning stars. */
.kc25-gallery-index-band {
    background: #36221a;
    color: #f5e5d5;
    border-top: 1px solid #b6855d;
    border-bottom: 1px solid #b6855d;
}
.kc25-gallery-index-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: space-between;
    min-height: 104px;
}
.kc25-gallery-index-label {
    width: 175px;
    flex: 0 0 175px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d9b69a;
}
.kc25-gallery-index-title {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
.kc25-gallery-index-ornament {
    font-size: 32px;
    line-height: 1;
    color: #d39b74;
    display: inline-block;
    animation: kc25-breathe 8s ease-in-out infinite;
}
.kc25-gallery-index-title strong {
    font-size: 23px;
    line-height: 1.2;
    color: #fff0e1;
    font-family: Nunito, Arial, sans-serif;
    font-weight: 800;
}
.kc25-gallery-index-detail {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 1px;
    color: #c49b7b;
}
.kc25-gallery-index-link {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #c79570;
    padding: 9px 0;
    text-decoration: none;
    color: #fff2e3;
    font-size: 14px;
    font-weight: 800;
    transition: color 250ms ease, border-color 250ms ease;
}
.kc25-gallery-index-link:hover,
.kc25-gallery-index-link:focus-visible {
    color: #ecc096;
    border-color: #ecc096;
}
.kc25-gallery-index-link span {
    font-size: 22px;
    line-height: 1;
}
@keyframes kc25-breathe {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* Adaptive photo archive: wide/narrow editorial pairs and balanced three-up rows.
   JS reflows these after category changes, so no abandoned empty columns. */
.kc24-gallery-collection {
    background: #fcf9f4;
}
.kc25-gallery-mosaic {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 24px;
    row-gap: 48px;
}
.kc25-gallery-mosaic > .kc24-gallery-tile:nth-child(n) {
    flex: 0 0 calc((100% - 24px) / 2);
    min-width: 0;
}
.kc25-gallery-mosaic > .kc24-gallery-tile:last-child:nth-child(odd):not([data-kc25-layout]) {
    flex-basis: 100%;
}
.kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="wide"] {
    flex-basis: calc(57% - 12px);
}
.kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="narrow"] {
    flex-basis: calc(43% - 12px);
}
.kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="third"] {
    flex-basis: calc((100% - 48px) / 3);
}
.kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="half"] {
    flex-basis: calc((100% - 24px) / 2);
}
.kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="full"] {
    flex-basis: 100%;
}
.kc25-gallery-mosaic .kc24-gallery-image,
.kc25-gallery-mosaic .kc24-gallery-tile:nth-child(n) .kc24-gallery-image {
    height: 410px;
    background: #e3cbb2;
    border-radius: 2px;
}
.kc25-gallery-mosaic .kc24-gallery-tile[data-kc25-layout="wide"] .kc24-gallery-image,
.kc25-gallery-mosaic .kc24-gallery-tile[data-kc25-layout="narrow"] .kc24-gallery-image {
    height: 505px;
}
.kc25-gallery-mosaic .kc24-gallery-tile[data-kc25-layout="third"] .kc24-gallery-image {
    height: 330px;
}
.kc25-gallery-mosaic .kc24-gallery-tile[data-kc25-layout="full"] .kc24-gallery-image {
    height: 455px;
}
.kc25-gallery-mosaic .kc24-gallery-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 900ms cubic-bezier(0.18, 0.78, 0.2, 1);
}
.kc25-gallery-mosaic .kc24-gallery-tile:hover .kc24-gallery-image img {
    transform: scale(1.055);
}
.kc25-gallery-mosaic .kc24-gallery-tile-caption {
    min-height: 104px;
    border-bottom: 1px solid #d5bca3;
    padding: 17px 4px 20px;
}
.kc25-gallery-mosaic .kc24-gallery-tile-caption h3 {
    font-weight: 800;
    line-height: 1.28;
    font-size: 24px;
    margin-top: 7px;
}
.kc25-gallery-mosaic .kc24-gallery-tile-caption p {
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.6;
    max-width: 380px;
}
.kc25-gallery-mosaic .kc24-gallery-index {
    background: #f0e4d6;
    display: inline-flex;
    width: 37px;
    height: 37px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
}
.kc25-gallery-mosaic .kc24-gallery-tile.is-filtered,
.kc25-gallery-mosaic .kc24-gallery-tile.is-paged {
    display: none;
}

/* Gallery companion sections, with quieter typography and less wasted space. */
.kc24-gallery .kc24-gallery-feature {
    background: #e9d7c0;
}
.kc24-gallery .kc24-gallery-studies {
    background: #faf5ed;
}
.kc24-gallery .kc24-gallery-quote {
    background: #eee1cf;
    color: #39241b;
    padding: 74px 0;
    border-top: 1px solid #d7bc9f;
}
.kc24-gallery .kc24-gallery-quote p {
    font-size: 36px;
    letter-spacing: -0.6px;
}
.kc24-gallery .kc24-gallery-quote .kc-container > span {
    font-size: 37px;
    margin-bottom: 12px;
    color: #ac7251;
}

/* The Story quote belongs inside the Origins narrative, not in its own dark panel. */
.kc25-story-note {
    margin-top: 28px;
    padding: 22px 0 22px 22px;
    border-left: 3px solid #b77951;
    color: #74533b;
    font-family: Nunito, Arial, sans-serif;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 13px;
}
.kc25-story-note span {
    font-weight: 400;
    color: #ba8459;
    font-size: 18px;
    margin-top: 4px;
}

@media (max-width: 1100px) {
    .kc25-gallery-index-label { width: 135px; flex-basis: 135px; }
    .kc25-gallery-index-detail { display: none; }
    .kc25-gallery-index-title strong { font-size: 19px; }
    .kc25-gallery-mosaic .kc24-gallery-tile[data-kc25-layout="wide"] .kc24-gallery-image,
    .kc25-gallery-mosaic .kc24-gallery-tile[data-kc25-layout="narrow"] .kc24-gallery-image { height: 400px; }
    .kc25-gallery-mosaic .kc24-gallery-tile[data-kc25-layout="third"] .kc24-gallery-image { height: 275px; }
}
@media (max-width: 767px) {
    .kc25-gallery-index-inner { min-height: 115px; flex-wrap: wrap; gap: 8px 14px; padding-top: 17px; padding-bottom: 17px; }
    .kc25-gallery-index-label { flex: 0 0 100%; width: 100%; font-size: 11px; }
    .kc25-gallery-index-title { justify-content: flex-start; gap: 9px; }
    .kc25-gallery-index-ornament { font-size: 22px; }
    .kc25-gallery-index-title strong { font-size: 17px; }
    .kc25-gallery-index-link { gap: 5px; font-size: 12px; }
    .kc25-gallery-mosaic { gap: 28px 14px; }
    .kc25-gallery-mosaic > .kc24-gallery-tile:nth-child(n),
    .kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="wide"],
    .kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="narrow"],
    .kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="third"],
    .kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="half"] {
        flex: 0 0 calc((100% - 14px) / 2);
    }
    .kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="full"],
    .kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-mobile="full"] {
        flex: 0 0 100%;
    }
    .kc25-gallery-mosaic .kc24-gallery-tile:nth-child(n) .kc24-gallery-image,
    .kc25-gallery-mosaic .kc24-gallery-tile[data-kc25-layout="wide"] .kc24-gallery-image,
    .kc25-gallery-mosaic .kc24-gallery-tile[data-kc25-layout="narrow"] .kc24-gallery-image,
    .kc25-gallery-mosaic .kc24-gallery-tile[data-kc25-layout="third"] .kc24-gallery-image,
    .kc25-gallery-mosaic .kc24-gallery-tile[data-kc25-layout="full"] .kc24-gallery-image { height: 220px; }
    .kc25-gallery-mosaic .kc24-gallery-tile[data-kc25-mobile="full"] .kc24-gallery-image { height: 300px; }
    .kc25-gallery-mosaic .kc24-gallery-tile-caption h3 { font-size: 17px; }
    .kc25-gallery-mosaic .kc24-gallery-tile-caption p { font-size: 13px; }
    .kc25-gallery-mosaic .kc24-gallery-index { width: 30px; height: 30px; }
    .kc25-story-note { font-size: 19px; padding: 16px 0 16px 16px; }
    .kc24-gallery .kc24-gallery-quote p { font-size: 29px; }
}
@media (max-width: 420px) {
    .kc25-gallery-index-title { flex: 0 0 100%; }
    .kc25-gallery-index-link { margin-left: 30px; }
    .kc25-gallery-mosaic > .kc24-gallery-tile:nth-child(n),
    .kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="wide"],
    .kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="narrow"],
    .kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="third"],
    .kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="half"],
    .kc25-gallery-mosaic > .kc24-gallery-tile[data-kc25-layout="full"] {
        flex-basis: 100%;
    }
    .kc25-gallery-mosaic .kc24-gallery-tile:nth-child(n) .kc24-gallery-image { height: 325px; }
}
@media (prefers-reduced-motion: reduce) {
    .kc25-gallery-index-ornament { animation: none; }
    .kc25-gallery-mosaic .kc24-gallery-image img { transition: none; }
}
