/* Dynamos Gallery Page — Red #E7120A / Charcoal / White */
:root {
    --dg-red: #E7120A;
    --dg-dark: #191919;
    --dg-text: #292929;
    --dg-muted: #777777;
    --dg-soft: #F8F4F4;
    --dg-white: #ffffff;
}
.dyn-gallery-page { color: var(--dg-text); background: var(--dg-white); overflow: hidden; }
.dyn-gallery-page * { box-sizing: border-box; }
.dyn-gallery-container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.dyn-gallery-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 390px; display: flex; align-items: center; color: #fff; background: linear-gradient(115deg, #171717 0%, #242020 62%, #3a1716 100%); }
.dyn-gallery-hero__inner { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 78px; }
.dyn-gallery-eyebrow, .dyn-gallery-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--dg-red); font-size: 11px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; }
.dyn-gallery-eyebrow span { width: 28px; height: 2px; display: inline-block; background: var(--dg-red); }
.dyn-gallery-hero h1 { margin: 19px 0 13px; color: #fff; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; font-weight: 850; letter-spacing: -2.5px; }
.dyn-gallery-hero h1 em { color: var(--dg-red); font-style: normal; }
.dyn-gallery-hero p { max-width: 590px; margin: 0; color: #d4d0d0; font-size: 16px; line-height: 1.85; }
.dyn-gallery-hero__link { display: inline-flex; align-items: center; gap: 16px; margin-top: 28px; padding-bottom: 8px; color: #fff; border-bottom: 1px solid var(--dg-red); font-size: 13px; font-weight: 700; text-decoration: none; transition: gap .25s ease; }
.dyn-gallery-hero__link:hover { gap: 23px; color: #fff; }
.dyn-gallery-hero__pattern { position: absolute; z-index: 0; inset: 0 0 0 48%; opacity: .16; background-image: linear-gradient(135deg, transparent 48%, #fff 49%, transparent 50%), linear-gradient(45deg, transparent 48%, #fff 49%, transparent 50%); background-size: 42px 42px; mask-image: linear-gradient(to right, transparent, #000); }
.dyn-gallery-hero__mark { position: absolute; z-index: 1; right: 7%; bottom: -130px; color: rgba(231,18,10,.13); font-size: clamp(250px, 34vw, 470px); line-height: 1; font-weight: 900; pointer-events: none; }
.dyn-gallery-section { padding: 88px 0 78px; background: #fff; }
.dyn-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.dyn-gallery-heading h2 { margin: 12px 0 0; color: var(--dg-dark); font-size: clamp(30px, 4vw, 43px); line-height: 1.15; font-weight: 850; letter-spacing: -1.4px; }
.dyn-gallery-heading h2 span { color: var(--dg-red); }
.dyn-gallery-heading > p { max-width: 390px; margin: 0 0 3px; color: var(--dg-muted); font-size: 14px; line-height: 1.8; }
.dyn-gallery-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.dyn-gallery-filter { padding: 11px 19px; border: 1px solid #e8e2e2; border-radius: 3px; color: #555; background: #fff; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.dyn-gallery-filter:hover, .dyn-gallery-filter.is-active { color: #fff; border-color: var(--dg-red); background: var(--dg-red); }
.dyn-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 22px; }
.dyn-gallery-card { display: flex; min-width: 0; flex-direction: column; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: #fff; text-align: left; cursor: pointer; box-shadow: 0 8px 30px rgba(22,15,15,.055); transition: transform .28s ease, box-shadow .28s ease; }
.dyn-gallery-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(22,15,15,.12); }
.dyn-gallery-card[hidden] { display: none !important; }
.dyn-gallery-card__image { position: relative; display: block; height: 245px; overflow: hidden; background: #eee; }
.dyn-gallery-card--feature { grid-column: span 1; }
.dyn-gallery-card--feature .dyn-gallery-card__image { height: 300px; }
.dyn-gallery-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.dyn-gallery-card:hover .dyn-gallery-card__image img { transform: scale(1.06); }
.dyn-gallery-card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(18,18,18,.5) 100%); opacity: .7; transition: opacity .25s; }
.dyn-gallery-card:hover .dyn-gallery-card__overlay { opacity: 1; }
.dyn-gallery-card__open { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; width: 39px; height: 39px; color: #fff; background: var(--dg-red); border-radius: 50%; font-size: 20px; opacity: 0; transform: translateY(5px); transition: opacity .25s, transform .25s; }
.dyn-gallery-card:hover .dyn-gallery-card__open { opacity: 1; transform: translateY(0); }
.dyn-gallery-card__caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 19px 20px; }
.dyn-gallery-card__caption > span:first-child { display: flex; flex-direction: column; gap: 6px; }
.dyn-gallery-card__caption small { color: var(--dg-red); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.dyn-gallery-card__caption strong { color: var(--dg-dark); font-size: 15px; line-height: 1.35; font-weight: 800; }
.dyn-gallery-card__arrow { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border: 1px solid #eee; border-radius: 50%; color: var(--dg-red); font-size: 18px; transition: color .2s, background .2s, border-color .2s; }
.dyn-gallery-card:hover .dyn-gallery-card__arrow { color: #fff; background: var(--dg-red); border-color: var(--dg-red); }
.dyn-gallery-empty { padding: 35px 0; color: var(--dg-muted); text-align: center; }
.dyn-gallery-bottom { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 45px; }
.dyn-gallery-bottom p { margin: 0; color: #777; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-align: center; }
.dyn-gallery-bottom__line { width: 48px; height: 1px; background: var(--dg-red); }
.dyn-gallery-cta { padding: 48px 0; background: var(--dg-soft); border-top: 1px solid #f0e7e7; }
.dyn-gallery-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.dyn-gallery-cta h2 { max-width: 630px; margin: 10px 0 0; color: var(--dg-dark); font-size: clamp(25px, 3.5vw, 36px); line-height: 1.2; font-weight: 850; letter-spacing: -.8px; }
.dyn-gallery-cta__button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; flex-shrink: 0; padding: 16px 22px; color: #fff; background: var(--dg-red); border: 1px solid var(--dg-red); border-radius: 3px; font-size: 12px; font-weight: 800; text-decoration: none; transition: background .2s, color .2s; }
.dyn-gallery-cta__button:hover { color: var(--dg-red); background: #fff; }
.dyn-gallery-lightbox { position: fixed; z-index: 99999; inset: 0; display: none; align-items: center; justify-content: center; padding: 35px 80px; background: rgba(10,10,10,.94); }
.dyn-gallery-lightbox.is-open { display: flex; }
.dyn-gallery-lightbox__content { width: min(100%, 1000px); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.dyn-gallery-lightbox__content img { display: block; max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; box-shadow: 0 15px 55px rgba(0,0,0,.35); }
.dyn-gallery-lightbox__text { width: 100%; color: #fff; text-align: center; }
.dyn-gallery-lightbox__text span { color: #ff514a; font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.dyn-gallery-lightbox__text h3 { margin: 5px 0; font-size: 20px; }
.dyn-gallery-lightbox__text p { margin: 0; color: #c9c9c9; font-size: 13px; }
.dyn-gallery-lightbox__close, .dyn-gallery-lightbox__prev, .dyn-gallery-lightbox__next { position: absolute; display: grid; place-items: center; width: 45px; height: 45px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); font-size: 26px; cursor: pointer; transition: background .2s, border-color .2s; }
.dyn-gallery-lightbox__close:hover, .dyn-gallery-lightbox__prev:hover, .dyn-gallery-lightbox__next:hover { background: var(--dg-red); border-color: var(--dg-red); }
.dyn-gallery-lightbox__close { top: 22px; right: 25px; font-size: 31px; }
.dyn-gallery-lightbox__prev { left: 22px; top: 50%; }
.dyn-gallery-lightbox__next { right: 22px; top: 50%; }
body.dyn-gallery-lock { overflow: hidden; }
@media (max-width: 900px) {
    .dyn-gallery-heading { align-items: start; flex-direction: column; gap: 15px; }
    .dyn-gallery-heading > p { max-width: 600px; }
    .dyn-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
    .dyn-gallery-card__image, .dyn-gallery-card--feature .dyn-gallery-card__image { height: 250px; }
}
@media (max-width: 600px) {
    .dyn-gallery-container { width: min(100% - 32px, 1200px); }
    .dyn-gallery-hero { min-height: 350px; }
    .dyn-gallery-hero__inner { padding-top: 58px; padding-bottom: 60px; }
    .dyn-gallery-hero h1 { letter-spacing: -1.5px; }
    .dyn-gallery-hero p { font-size: 14px; }
    .dyn-gallery-section { padding: 60px 0 52px; }
    .dyn-gallery-filters { gap: 7px; }
    .dyn-gallery-filter { padding: 10px 12px; font-size: 11px; }
    .dyn-gallery-grid { grid-template-columns: 1fr; gap: 18px; }
    .dyn-gallery-card__image, .dyn-gallery-card--feature .dyn-gallery-card__image { height: 255px; }
    .dyn-gallery-card__open { opacity: 1; transform: none; }
    .dyn-gallery-cta__inner { align-items: flex-start; flex-direction: column; }
    .dyn-gallery-lightbox { padding: 60px 16px 25px; }
    .dyn-gallery-lightbox__content img { max-height: calc(100vh - 210px); }
    .dyn-gallery-lightbox__prev, .dyn-gallery-lightbox__next { top: 40%; width: 38px; height: 38px; }
    .dyn-gallery-lightbox__prev { left: 8px; }
    .dyn-gallery-lightbox__next { right: 8px; }
    .dyn-gallery-lightbox__close { top: 12px; right: 12px; }
}
