/* Visual Journal — isolated styles for the gallery shortcode. */
.tfpm-gallery {
    --tfpm-green: #123e34;
    --tfpm-dark: #092b25;
    --tfpm-orange: #ff8f00;
    --tfpm-citrus: #e7fb96;
    --tfpm-cream: #f9f7f1;
    --tfpm-text: #172d28;
    --tfpm-muted: #66746d;
    --tfpm-font: 'kalame', 'Kalame', 'Kalameh', Tahoma, sans-serif;
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    direction: rtl;
    text-align: right;
    font-family: var(--tfpm-font);
    font-size: 16px;
    line-height: 1.8;
    color: var(--tfpm-text);
    background: var(--tfpm-cream);
    -webkit-font-smoothing: antialiased;
    isolation: isolate;
}
.tfpm-gallery, .tfpm-gallery *, .tfpm-gallery *::before, .tfpm-gallery *::after { box-sizing: border-box; }
.tfpm-gallery :is(a, button, h2, h3, p, b, small, strong) { font-family: var(--tfpm-font) !important; }
.tfpm-gallery :is(h2, h3, p) { margin: 0; padding: 0; }
.tfpm-gallery :is(h2, h3) { line-height: 1.28; }
.tfpm-gallery :is(a, button) { -webkit-tap-highlight-color: transparent; }
.tfpm-gallery a { text-decoration: none !important; }
.tfpm-gallery button { appearance: none; -webkit-appearance: none; }
.tfpm-gallery :is(a,button):focus-visible { outline: 3px solid var(--tfpm-orange) !important; outline-offset: 4px; }
.tfpm-gallery .tfpm-svg, .tfpm-lightbox .tfpm-svg { display: block; flex: 0 0 auto; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; vertical-align: middle; }
.tfpm-gallery .tfpm-shell { width: min(1260px, calc(100% - 64px)); margin-inline: auto; }

/* A cinematic masthead rather than another illustration-heavy landing page. */
.tfpm-gallery .tfpm-hero {
    position: relative;
    overflow: hidden;
    padding-block: 0 88px;
    background: radial-gradient(ellipse 65% 100% at 80% 15%, #1c5544 0%, transparent 77%),
        linear-gradient(112deg, #0b2925 2%, #0d392e 66%, #103f34 100%);
    color: #fff;
}
.tfpm-gallery .tfpm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .1;
    background-image: linear-gradient(90deg, #ffffff5c 1px, transparent 1px), linear-gradient(#ffffff35 1px, transparent 1px);
    background-size: 95px 95px;
    mask-image: linear-gradient(90deg, transparent 10%, #000 84%);
}
.tfpm-gallery .tfpm-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 85px;
    border-bottom: 1px solid rgba(255,255,255,.16);
    position: relative;
    z-index: 2;
}
.tfpm-gallery .tfpm-hero-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 16px; font-weight: 900; }
.tfpm-gallery .tfpm-hero-brand .tfpm-svg { width: 23px; height: 23px; color: var(--tfpm-orange); }
.tfpm-gallery .tfpm-hero-tag { color: #b9d8c7; font-size: 12px; font-weight: 700; }
.tfpm-gallery .tfpm-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
    align-items: center;
    gap: clamp(30px, 5vw, 85px);
    padding-block: clamp(58px, 7vw, 98px) 26px;
}
.tfpm-gallery .tfpm-hero-copy { min-width: 0; }
.tfpm-gallery .tfpm-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d0e4d4;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}
.tfpm-gallery .tfpm-hero-eyebrow i { flex: 0 0 auto; width: 9px; height: 9px; background: var(--tfpm-orange); border-radius: 2px; transform: rotate(25deg); box-shadow: 0 0 0 5px rgba(255,143,0,.12); }
.tfpm-gallery .tfpm-hero-heading {
    max-width: 680px;
    margin-block: 24px 20px;
    color: #fff;
    font-size: clamp(42px, 5.2vw, 78px);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.33;
    text-wrap: balance;
}
.tfpm-gallery .tfpm-hero-description {
    max-width: 460px;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 2.15;
    color: #b9d0c2;
}
.tfpm-gallery .tfpm-hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-block: 33px 39px; }
.tfpm-gallery .tfpm-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 54px;
    padding: 11px 20px 11px 11px;
    border-radius: 13px;
    background: var(--tfpm-orange);
    color: #152b24 !important;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 6px 6px 0 rgba(255,143,0,.2);
    transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}
.tfpm-gallery .tfpm-hero-cta-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: #193c30; color: #fff; }
.tfpm-gallery .tfpm-hero-cta-icon .tfpm-svg { width: 19px; height: 19px; }
@media (hover:hover) and (pointer:fine) {
    .tfpm-gallery .tfpm-hero-cta:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 rgba(255,143,0,.23); background: #ffb046; }
}
.tfpm-gallery .tfpm-hero-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #e0e9df; white-space: nowrap; }
.tfpm-gallery .tfpm-hero-meta .tfpm-svg { width: 17px; height: 17px; color: var(--tfpm-citrus); }
.tfpm-gallery .tfpm-hero-stat { display: inline-flex; align-items: center; gap: 12px; color: #bed1c5; font-size: 12px; }
.tfpm-gallery .tfpm-hero-stat-num { font: 900 clamp(28px, 3vw, 40px)/1 Arial, sans-serif; color: #fff; }
.tfpm-gallery .tfpm-hero-stat-line { display: block; width: clamp(35px, 6vw, 90px); height: 1px; background: #d6e8dc77; margin-inline-start: 12px; }

/* Four frames, sprocket holes and an editorial index: a distinctive film sheet. */
.tfpm-gallery .tfpm-film {
    position: relative;
    width: 100%;
    max-width: 545px;
    margin-inline: auto;
    padding: 18px 17px 16px;
    background: #f3f0e6;
    color: var(--tfpm-green);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 8px;
    box-shadow: 12px 19px 0 rgba(4, 25, 21, .28), 0 28px 65px rgba(0,0,0,.27);
}
.tfpm-gallery .tfpm-film-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 12px; font-weight: 800; }
.tfpm-gallery .tfpm-film-indicator { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #e5ead7; color: #35594a; }
.tfpm-gallery .tfpm-film-indicator .tfpm-svg { width: 16px; height: 16px; }
.tfpm-gallery .tfpm-film-holes {
    height: 11px;
    margin: 0 0 9px;
    background-image: repeating-linear-gradient(90deg, #2c3933 0 12px, transparent 12px 29px);
    background-size: 100% 7px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .75;
}
.tfpm-gallery .tfpm-film-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tfpm-gallery .tfpm-film-cell { aspect-ratio: 1.14; overflow: hidden; background: #1b4036; position: relative; }
.tfpm-gallery .tfpm-film-cell--2, .tfpm-gallery .tfpm-film-cell--3 { background: #9cba91; }
.tfpm-gallery .tfpm-film-cell img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
@media (hover:hover) and (pointer:fine) { .tfpm-gallery .tfpm-film:hover .tfpm-film-cell img { transform: scale(1.06); } }
.tfpm-gallery .tfpm-film-fallback { display: grid; place-items: center; height: 100%; color: #e7fa95; opacity: .8; }
.tfpm-gallery .tfpm-film-fallback .tfpm-svg { width: 55px; height: 55px; stroke-width: 1.3; }
.tfpm-gallery .tfpm-film-cell--2 .tfpm-film-fallback, .tfpm-gallery .tfpm-film-cell--3 .tfpm-film-fallback { color: #124434; }
.tfpm-gallery .tfpm-film-index { position: absolute; bottom: 9px; left: 10px; padding: 2px 6px; background: rgba(14,35,29,.66); color: #fff; font: 700 10px/1.3 Arial, sans-serif; }
.tfpm-gallery .tfpm-film-grid + .tfpm-film-holes { margin: 9px 0 0; }

/* Gallery index / controls. */
.tfpm-gallery .tfpm-gallery-main { padding-block: 88px 60px; background: var(--tfpm-cream); scroll-margin-top: 36px; }
.tfpm-gallery .tfpm-intro { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 50px; }
.tfpm-gallery .tfpm-intro-copy { min-width: 0; }
.tfpm-gallery .tfpm-intro-index { display: block; margin-bottom: 12px; font: 800 12px/1.7 var(--tfpm-font); color: #108758; }
.tfpm-gallery .tfpm-intro h3 { color: var(--tfpm-green); font-size: clamp(34px, 4vw, 57px); font-weight: 900; }
.tfpm-gallery .tfpm-intro p { max-width: 630px; margin-top: 14px; font-size: 15px; line-height: 2.05; color: var(--tfpm-muted); }
.tfpm-gallery .tfpm-intro-decoration { position: relative; flex: 0 0 220px; height: 125px; display: flex; align-items: center; justify-content: center; }
.tfpm-gallery .tfpm-deco-spark { position: absolute; top: -2px; right: 22px; color: var(--tfpm-orange); transform: rotate(15deg); }
.tfpm-gallery .tfpm-deco-spark .tfpm-svg { width: 43px; height: 43px; }
.tfpm-gallery .tfpm-deco-circle { display: grid; place-items: center; width: 83px; height: 83px; border: 2px solid #1b5841; border-radius: 50%; color: #104b39; transform: rotate(-14deg); }
.tfpm-gallery .tfpm-deco-circle .tfpm-svg { width: 36px; height: 36px; }
.tfpm-gallery .tfpm-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: 25px; }
.tfpm-gallery .tfpm-category-group { min-width: 0; flex: 1 1 400px; }
.tfpm-gallery .tfpm-controls-label { display: block; margin-bottom: 10px; color: var(--tfpm-muted); font-size: 12px; font-weight: 800; }
.tfpm-gallery .tfpm-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tfpm-gallery .tfpm-tabs a { display: inline-flex; align-items: center; min-height: 39px; padding: 7px 16px; border-radius: 10px; border: 1px solid #dfe4da; color: #426054; background: #fff; font-size: 12px; font-weight: 800; line-height: 1.4; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.tfpm-gallery .tfpm-tabs a.is-active { border-color: var(--tfpm-green); background: var(--tfpm-green); color: #fff; }
@media (hover:hover) and (pointer:fine) { .tfpm-gallery .tfpm-tabs a:hover { border-color: #b7d5b9; background: #ebf3e5; color: var(--tfpm-green); transform: translateY(-2px); } .tfpm-gallery .tfpm-tabs a.is-active:hover { background: #205b49; color: #fff; } }
.tfpm-gallery .tfpm-type-group { display: none; flex: 0 0 auto; gap: 2px; padding: 4px; background: #e7e9df; border-radius: 11px; }
.tfpm-gallery.tfpm-enhanced .tfpm-type-group { display: flex; }
.tfpm-gallery .tfpm-type-group button { min-height: 36px; padding: 5px 13px; border: 0; border-radius: 8px; box-shadow: none; background: transparent; color: #62756a; font-size: 12px; line-height: 1.4; font-weight: 800; cursor: pointer; transition: background .2s, box-shadow .2s, color .2s; }
.tfpm-gallery .tfpm-type-group button.is-active { background: #fff; color: var(--tfpm-green); box-shadow: 0 2px 8px #183b2820; }
.tfpm-gallery .tfpm-gallery-rule { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 15px 17px; border-top: 1px solid #d8e0d8; color: #829187; font-size: 11px; }
.tfpm-gallery .tfpm-gallery-rule strong { color: var(--tfpm-green); font: 900 15px/1.2 Arial, sans-serif; margin-inline-end: 5px; }
.tfpm-gallery .tfpm-rule-icon { display: inline-flex; align-items: center; justify-content: center; color: #57836c; }
.tfpm-gallery .tfpm-rule-icon .tfpm-svg { width: 18px; height: 18px; }

/* The gallery is an editorial, asymmetric contact-sheet grid. */
.tfpm-gallery .tfpm-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: clamp(112px, 10vw, 149px); grid-auto-flow: dense; gap: clamp(10px, 1.4vw, 18px); }
.tfpm-gallery .tfpm-item { min-width: 0; min-height: 0; margin: 0; grid-row: span 2; }
/* Align the featured card with two stacked rows of standard cards. */
.tfpm-gallery .tfpm-item--featured { grid-column: span 2; grid-row: span 4; }
.tfpm-gallery .tfpm-grid.tfpm-grid--compact { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: auto; }
.tfpm-gallery .tfpm-grid.tfpm-grid--single { grid-template-columns: minmax(0, min(100%, 640px)); justify-content: center; grid-auto-rows: auto; }
.tfpm-gallery .tfpm-grid--compact .tfpm-item, .tfpm-gallery .tfpm-grid--single .tfpm-item { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
.tfpm-gallery .tfpm-item[hidden] { display: none !important; }
.tfpm-gallery .tfpm-card {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: clamp(11px, 1.4vw, 20px);
    overflow: hidden;
    background: #144a3b;
    color: #fff;
    cursor: zoom-in;
    isolation: isolate;
    text-align: right;
    transform: translateZ(0);
    transition: box-shadow .35s ease, transform .35s cubic-bezier(.2,.75,.25,1);
}
.tfpm-gallery .tfpm-item--video .tfpm-card { cursor: pointer; background: linear-gradient(150deg,#df6a27,#823f21); }
.tfpm-gallery .tfpm-media { position: absolute; inset: 0; display: block; overflow: hidden; }
.tfpm-gallery .tfpm-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.17,.76,.23,1), filter .55s ease; }
.tfpm-gallery .tfpm-card-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4,20,19,.48), transparent 38%, rgba(4,20,19,.06) 52%, rgba(4,20,19,.91) 100%); opacity: .94; transition: opacity .4s ease; }
.tfpm-gallery .tfpm-card-type { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #ffffff7d; border-radius: 7px; background: rgba(12, 40, 30, .58); backdrop-filter: blur(8px); color: #fff; font-size: 10px; font-weight: 900; }
.tfpm-gallery .tfpm-card-type .tfpm-svg { width: 13px; height: 13px; }
.tfpm-gallery .tfpm-item--video .tfpm-card-type { background: #ff8f00; border-color: #ff8f00; color: #172f29; }
.tfpm-gallery .tfpm-card-counter { position: absolute; left: 15px; top: 16px; font: 800 10px/1.4 Arial, sans-serif; letter-spacing: .07em; color: #fff; text-shadow: 0 1px 5px #000a; }
.tfpm-gallery .tfpm-card-foot { display: flex; align-items: end; justify-content: space-between; gap: 8px; position: absolute; inset-inline: 0; bottom: 0; padding: clamp(15px, 2vw, 25px); color: #fff; }
.tfpm-gallery .tfpm-card-foot > span { min-width: 0; }
.tfpm-gallery .tfpm-card-foot b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #fff; font-size: clamp(13px, 1.25vw, 19px); font-weight: 900; line-height: 1.5; }
.tfpm-gallery .tfpm-card-foot small { display: block; margin-top: 2px; color: #dbe5d9; font-size: clamp(10px, .8vw, 12px); font-weight: 700; }
.tfpm-gallery .tfpm-card-zoom { flex: 0 0 auto; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #fff7; border-radius: 9px; color: #fff; background: #ffffff14; transition: color .3s, background .3s, transform .3s; }
.tfpm-gallery .tfpm-card-zoom .tfpm-svg { width: 19px; height: 19px; }
.tfpm-gallery .tfpm-card-play { position: absolute; z-index: 1; top: 47%; left: 50%; display: grid; place-items: center; width: clamp(57px, 5vw, 76px); height: clamp(57px, 5vw, 76px); border: 2px solid #fffb; border-radius: 50%; transform: translate(-50%,-50%); background: rgba(255,143,0,.97); color: #172f29; box-shadow: 0 9px 30px #0005; transition: transform .32s ease, background .32s ease; }
.tfpm-gallery .tfpm-card-play svg { width: 27px; height: 27px; margin-inline-start: 3px; }
.tfpm-gallery .tfpm-video-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(ellipse 70% 70% at 75% 35%, #fbaf53 0%, transparent 70%), repeating-linear-gradient(135deg, #a1502b 0 1px, #ad592f 1px 13px); }
.tfpm-gallery .tfpm-video-art .tfpm-svg { width: clamp(75px, 12vw, 145px); height: clamp(75px, 12vw, 145px); color: #ffe3a1; opacity: .55; stroke-width: 1.15; }
@media (hover:hover) and (pointer:fine) {
    .tfpm-gallery .tfpm-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px #102b2433; }
    .tfpm-gallery .tfpm-card:hover .tfpm-media img { transform: scale(1.095); filter: saturate(1.12); }
    .tfpm-gallery .tfpm-card:hover .tfpm-card-shade { opacity: 1; }
    .tfpm-gallery .tfpm-card:hover .tfpm-card-zoom { background: var(--tfpm-orange); border-color: var(--tfpm-orange); color: #17382e; transform: translate(-2px, -2px); }
    .tfpm-gallery .tfpm-card:hover .tfpm-card-play { transform: translate(-50%,-50%) scale(1.1); background: #fff; }
}
.tfpm-gallery .tfpm-filter-empty[hidden] { display: none !important; }
.tfpm-gallery .tfpm-filter-empty { padding: 48px 24px; margin-top: 20px; text-align: center; border: 1px dashed #9bac9e; border-radius: 14px; color: #547363; }
.tfpm-gallery .tfpm-empty { padding: 78px 26px; background: #fff; border: 1px dashed #ccd7cc; border-radius: 18px; text-align: center; }
.tfpm-gallery .tfpm-empty-icon { display: inline-grid; place-items: center; width: 66px; height: 66px; border-radius: 19px; background: #fff5e6; color: #bb6900; }
.tfpm-gallery .tfpm-empty-icon .tfpm-svg { width: 34px; height: 34px; }
.tfpm-gallery .tfpm-empty h3 { margin-top: 14px; font-size: 25px; color: var(--tfpm-green); }
.tfpm-gallery .tfpm-empty p { margin-top: 10px; font-size: 14px; color: var(--tfpm-muted); }
.tfpm-gallery .tfpm-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin-top: 34px; }
.tfpm-gallery .tfpm-pages a, .tfpm-gallery .tfpm-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 7px 14px; border-radius: 9px; border: 1px solid #dfe4dc; background: #fff; color: #385a47; text-decoration: none; font-size: 12px; font-weight: 800; }
.tfpm-gallery .tfpm-pages .current { background: var(--tfpm-green); border-color: var(--tfpm-green); color: #fff; }
.tfpm-gallery .tfpm-endnote { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 63px; padding-top: 19px; border-top: 1px solid #d4dcd2; color: #63786b; font-size: 12px; font-weight: 700; }

/* The dialog is moved beneath <body> to evade layout and z-index clipping. */
.tfpm-lightbox { --tfpm-modal-font: 'kalame', 'Kalame', 'Kalameh', Tahoma, sans-serif; font-family: var(--tfpm-modal-font); }
.tfpm-lightbox, .tfpm-lightbox *, .tfpm-lightbox *::before, .tfpm-lightbox *::after { box-sizing: border-box; }
.tfpm-lightbox[hidden] { display: none !important; }
.tfpm-lightbox.tfpm-lightbox--active {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: clamp(9px, 2vw, 24px) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
.tfpm-lightbox--active > .tfpm-lightbox-backdrop { position: absolute !important; inset: 0 !important; margin: 0 !important; background: rgba(2,16,15,.91) !important; backdrop-filter: blur(8px); cursor: zoom-out; }
.tfpm-lightbox--active > .tfpm-lightbox-panel {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    width: min(1140px, 100%) !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(100vh - 48px) !important;
    max-height: calc(100dvh - 48px) !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #ffffff2b;
    border-radius: 13px;
    background: #0c1e1b;
    box-shadow: 0 35px 100px #0009;
    overflow: hidden !important;
    animation: tfpm-modal-in .25s ease-out both;
}
.tfpm-lightbox--active .tfpm-lightbox-stage { display: flex; position: relative; align-items: center; justify-content: center; min-height: 0; width: 100%; }
.tfpm-lightbox--active .tfpm-lightbox-media { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; align-items: center; justify-content: center; background: #091512; }
.tfpm-lightbox--active .tfpm-lightbox-media img, .tfpm-lightbox--active .tfpm-lightbox-media video { display: block !important; width: auto !important; height: auto !important; max-width: 100% !important; max-height: calc(100vh - 145px) !important; max-height: calc(100dvh - 145px) !important; object-fit: contain !important; margin: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.tfpm-lightbox--active .tfpm-lightbox-caption { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; gap: 20px; width: 100%; max-height: 22vh; padding: 13px 22px; color: #fff; background: #16342c; border-top: 1px solid #ffffff20; }
.tfpm-lightbox--active .tfpm-lightbox-info { min-width: 0; overflow: auto; max-height: 18vh; text-align: start; }
.tfpm-lightbox--active .tfpm-lightbox-info strong { display: block; color: #fff; font: 800 16px/1.5 var(--tfpm-modal-font); }
.tfpm-lightbox--active .tfpm-lightbox-info p { margin: 2px 0 0 !important; color: #c3d7cb; font: 400 12px/1.8 var(--tfpm-modal-font); overflow-wrap: anywhere; }
.tfpm-lightbox--active .tfpm-lightbox-count { display: inline-flex; flex: 0 0 auto; font: 800 12px/1.5 Arial, sans-serif; direction: ltr; color: var(--tfpm-citrus, #e7fb96); }
.tfpm-lightbox--active .tfpm-close, .tfpm-lightbox--active .tfpm-lightbox-nav { position: absolute; z-index: 4; display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid #ffffff7f; padding: 0; cursor: pointer; background: rgba(9,30,24,.85); color: #fff; font: 400 28px/1 Arial, sans-serif; transition: background .2s, transform .2s; }
.tfpm-lightbox--active .tfpm-close { top: 12px; left: 12px; right: auto; border-radius: 50%; }
.tfpm-lightbox--active .tfpm-close .tfpm-svg, .tfpm-lightbox--active .tfpm-lightbox-nav .tfpm-svg { width: 21px; height: 21px; }
.tfpm-lightbox--active .tfpm-lightbox-nav { top: 50%; transform: translateY(-50%); border-radius: 50%; }
.tfpm-lightbox--active .tfpm-lightbox-prev { right: 13px; left: auto; }
.tfpm-lightbox--active .tfpm-lightbox-next { left: 13px; right: auto; }
.tfpm-lightbox--active .tfpm-lightbox-nav[hidden] { display: none !important; }
@media (hover:hover) and (pointer:fine) { .tfpm-lightbox--active .tfpm-close:hover, .tfpm-lightbox--active .tfpm-lightbox-nav:hover { background: #ff8f00; color: #142e27; } }
.tfpm-lightbox--active :is(.tfpm-close,.tfpm-lightbox-nav):focus-visible { outline: 3px solid #ff8f00 !important; outline-offset: 3px; }
html.tfpm-lb-scroll-lock, body.tfpm-lb-scroll-lock { overflow: hidden !important; }
@keyframes tfpm-modal-in { from { opacity: .5; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1100px) {
    .tfpm-gallery .tfpm-hero-content { gap: 32px; }
    .tfpm-gallery .tfpm-hero-heading { font-size: clamp(38px, 5vw, 58px); }
    .tfpm-gallery .tfpm-grid { grid-template-columns: repeat(3, minmax(0,1fr)); grid-auto-rows: 130px; }
    .tfpm-gallery .tfpm-item--featured { grid-column: span 1; grid-row: span 4; }
}
@media (max-width: 820px) {
    .tfpm-gallery .tfpm-shell { width: min(100% - 36px, 1260px); }
    .tfpm-gallery .tfpm-hero { padding-bottom: 62px; }
    .tfpm-gallery .tfpm-hero-content { grid-template-columns: 1fr; gap: 46px; padding-block: 52px 10px; }
    .tfpm-gallery .tfpm-hero-copy { max-width: 690px; }
    .tfpm-gallery .tfpm-hero-heading { font-size: clamp(42px, 6.6vw, 65px); max-width: 680px; }
    .tfpm-gallery .tfpm-film { max-width: 565px; width: min(100% - 14px, 565px); }
    .tfpm-gallery .tfpm-gallery-main { padding-block: 60px 42px; }
    .tfpm-gallery .tfpm-intro-decoration { flex-basis: 150px; }
    .tfpm-gallery .tfpm-intro { margin-bottom: 34px; }
    .tfpm-gallery .tfpm-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 125px; gap: 13px; }
    .tfpm-gallery .tfpm-item--featured { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 540px) {
    .tfpm-gallery .tfpm-shell { width: calc(100% - 30px); }
    .tfpm-gallery .tfpm-hero-top { min-height: 66px; }
    .tfpm-gallery .tfpm-hero-brand { font-size: 14px; }
    .tfpm-gallery .tfpm-hero-tag { font-size: 11px; }
    .tfpm-gallery .tfpm-hero-content { gap: 34px; padding-block: 39px 8px; }
    .tfpm-gallery .tfpm-hero-heading { font-size: clamp(40px, 10.5vw, 60px); margin-block: 20px 15px; }
    .tfpm-gallery .tfpm-hero-description { font-size: 13px; line-height: 2; }
    .tfpm-gallery .tfpm-hero-cta-row { margin-block: 25px; }
    .tfpm-gallery .tfpm-hero-cta { min-height: 49px; }
    .tfpm-gallery .tfpm-hero-meta { font-size: 11px; }
    .tfpm-gallery .tfpm-film { padding: 10px 10px 10px; }
    .tfpm-gallery .tfpm-film-grid { gap: 6px; }
    .tfpm-gallery .tfpm-film-fallback .tfpm-svg { width: 39px; height: 39px; }
    .tfpm-gallery .tfpm-intro { align-items: flex-start; margin-bottom: 30px; }
    .tfpm-gallery .tfpm-intro-decoration { display: none; }
    .tfpm-gallery .tfpm-intro h3 { font-size: 34px; }
    .tfpm-gallery .tfpm-intro p { font-size: 13px; }
    .tfpm-gallery .tfpm-controls { flex-direction: column; align-items: stretch; gap: 20px; }
    .tfpm-gallery .tfpm-category-group { flex: 0 0 auto; width: 100%; max-width: 100%; }
    .tfpm-gallery .tfpm-tabs { flex-wrap: nowrap; width: 100%; max-width: 100%; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
    .tfpm-gallery .tfpm-tabs a { flex: 0 0 auto; white-space: nowrap; }
    .tfpm-gallery .tfpm-type-group { align-self: stretch; width: 100%; max-width: 100%; }
    .tfpm-gallery .tfpm-type-group button { flex: 1; }
    .tfpm-gallery .tfpm-grid, .tfpm-gallery .tfpm-grid--compact, .tfpm-gallery .tfpm-grid.tfpm-grid--single { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; }
    .tfpm-gallery .tfpm-item, .tfpm-gallery .tfpm-item--featured { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
    .tfpm-gallery .tfpm-item:nth-child(4n+1) { aspect-ratio: 5/5; }
    .tfpm-gallery .tfpm-card { border-radius: 14px; }
    .tfpm-gallery .tfpm-card-foot b { font-size: 17px; }
    .tfpm-gallery .tfpm-card-foot small { font-size: 11px; }
    .tfpm-gallery .tfpm-endnote { gap: 7px; }
    .tfpm-lightbox--active > .tfpm-lightbox-panel { max-height: calc(100dvh - 18px) !important; }
    .tfpm-lightbox--active .tfpm-lightbox-media img, .tfpm-lightbox--active .tfpm-lightbox-media video { max-height: calc(100dvh - 118px) !important; }
    .tfpm-lightbox--active .tfpm-lightbox-caption { padding: 11px 12px; }
    .tfpm-lightbox--active .tfpm-lightbox-info strong { font-size: 14px; }
    .tfpm-lightbox--active .tfpm-lightbox-info p { font-size: 11px; }
    .tfpm-lightbox--active .tfpm-close, .tfpm-lightbox--active .tfpm-lightbox-nav { min-width: 39px; min-height: 39px; font-size: 24px; }
    .tfpm-lightbox--active .tfpm-lightbox-prev { right: 5px; }
    .tfpm-lightbox--active .tfpm-lightbox-next { left: 5px; }
}
@media (max-width: 360px) {
    .tfpm-gallery .tfpm-hero-tag { display: none; }
    .tfpm-gallery .tfpm-hero-heading { font-size: 36px; }
    .tfpm-gallery .tfpm-hero-meta { white-space: normal; }
    .tfpm-gallery .tfpm-film-top { font-size: 10px; }
    .tfpm-gallery .tfpm-film-grid { gap: 4px; }
    .tfpm-gallery .tfpm-card-type { top: 10px; right: 10px; }
    .tfpm-gallery .tfpm-card-counter { top: 12px; left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .tfpm-gallery *, .tfpm-gallery *::before, .tfpm-gallery *::after, .tfpm-lightbox *, .tfpm-lightbox *::before, .tfpm-lightbox *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
