/* ---------- Kept from the removed animation snippet: never leave blocks invisible ---------- */
.elementor-invisible { opacity: 1 !important; }

/* ---------- Client logo marquee: reserve space and animate on the GPU ---------- */
.uc_logo_marquee { min-height: 200px; overflow: hidden; }
.uc_logo_marquee .uc-logo-wrapper { will-change: transform; backface-visibility: hidden; }
.uc_logo_marquee img.ue_img_marquee { opacity: 1 !important; transition: none !important; }

/* ---------- Blog, Gallery, category, tag and search pages ---------- */
/* Older custom CSS hides the menu on some page IDs, including the Gallery page. */
body.dp-page .rn-header.header-style-1 { display: block !important; }
.dp-listing { padding: 140px 0 70px; min-height: 60vh; }
.dp-wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.dp-head { margin-bottom: 30px; }
.dp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #878e99; margin-bottom: 10px; }
.dp-listing .dp-title { margin: 0 0 8px; font-size: clamp(30px, 5vw, 46px); line-height: 1.2; }
.dp-listing .dp-intro { margin: 0; max-width: 70ch; font-size: 16px; line-height: 1.7; }
.dp-tools { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.dp-listing > .dp-wrap > .dp-chips { margin-bottom: 26px; }
.dp-listing .dp-chip {
	display: inline-flex; align-items: center; width: auto; min-height: 42px; padding: 0 18px;
	font-size: 14px; line-height: 1; border: 1px solid rgba(196, 207, 222, .22); border-radius: 999px;
	background: transparent; color: #c4cfde; cursor: pointer;
}
.dp-listing .dp-chip:hover, .dp-listing .dp-chip:focus-visible { border-color: #ff014f; color: #fff; }
.dp-listing .dp-chip.is-active { background: #ff014f; border-color: #ff014f; color: #fff; }
.dp-search { display: flex; gap: 8px; flex: 0 1 360px; margin: 0; }
.dp-listing .dp-search input { flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0 14px; border-radius: 6px; font-size: 15px; }
.dp-listing .dp-search button { width: auto; height: 44px; padding: 0 20px; border: 0; border-radius: 6px; background: #ff014f; color: #fff; font-size: 14px; line-height: 44px; }

.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 30px; }
.dp-card {
	display: flex; flex-direction: column; overflow: hidden; border-radius: 14px;
	background: linear-gradient(145deg, #1e2024, #23272b); box-shadow: 8px 8px 18px #1c1e22, -8px -8px 18px #262a2e;
}
.dp-media { display: block; aspect-ratio: 4 / 3; background: #1a1c20; overflow: hidden; }
.dp-card .dp-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform .35s ease; }
.dp-card:hover .dp-media img { transform: scale(1.04); }
.dp-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.dp-listing .dp-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 10px; font-size: 13px; line-height: 1.4; color: #878e99; }
.dp-meta a { color: #ff4d84; text-transform: uppercase; letter-spacing: .5px; }
.dp-listing .dp-card-title { margin: 0 0 12px; font-size: 21px; line-height: 1.4; }
.dp-listing .dp-excerpt { margin: 0 0 18px; font-size: 15px; line-height: 1.7; }
.dp-more { margin-top: auto; color: #ff4d84; font-weight: 600; font-size: 14px; }
.dp-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.dp-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 6px; border: 1px solid rgba(196, 207, 222, .22); color: #c4cfde; }
.dp-pages .page-numbers.current { background: #ff014f; border-color: #ff014f; color: #fff; }
.dp-empty { padding: 40px 0; }

.dp-listing ul.dp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 260px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.dp-listing ul.dp-gallery li { margin: 0; padding: 0; }
.dp-listing ul.dp-gallery li[hidden] { display: none; }
.dp-gallery a { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; background: #1a1c20; }
.dp-gallery .dp-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; background: rgba(8, 9, 11, .72); pointer-events: none; }
.dp-gallery .dp-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.dp-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.dp-gallery a:hover img, .dp-gallery a:focus-visible img { transform: scale(1.05); }

.dp-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(8, 9, 11, .94); }
.dp-lightbox[hidden] { display: none; }
.dp-lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 6px; }
.dp-lightbox video { width: min(92vw, 149vh); max-height: 84vh; aspect-ratio: 16 / 9; border-radius: 6px; background: #000; }
.dp-lightbox [hidden] { display: none !important; }
.dp-lightbox .dp-error { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; color: #fff; text-align: center; }
.dp-lightbox .dp-error a { color: #fff; text-decoration: underline; }
.dp-lightbox button { position: absolute; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 48px; cursor: pointer; }
.dp-lightbox .dp-close { top: 18px; right: 18px; }
.dp-lightbox .dp-prev { left: 14px; top: calc(50% - 24px); }
.dp-lightbox .dp-next { right: 14px; top: calc(50% - 24px); }

@media (max-width: 767px) {
	.dp-listing { padding-top: 110px; }
	.dp-search { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.dp-card .dp-media img, .dp-gallery img { transition: none; }
}
