:root {
  --bg: #fbfbfe;
  --surface: #ffffff;
  --surface-alt: #f2efff;
  --text: #171427;
  --muted: #6f6a7c;
  --primary: #6c3bff;
  --primary-dark: #4f22d6;
  --accent: #b9ff2c;
  --border: rgba(35, 28, 58, 0.12);
  --shadow: 0 22px 60px rgba(54, 36, 108, 0.12);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --container: 1180px;
  --header-height: 78px;
  --transition: 220ms ease;
}

[data-theme="dark"] {
  /* Main colors */
  --bg: #0d0a17;
  --surface: #171222;
  --surface-alt: #211a32;

  /* Text colors */
  --text: #f8f6ff;
  --muted: #b9b2c9;

  /* Brand colors */
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --accent: #b9ff2c;

  /* Borders and shadows */
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; font-family: "Manrope", sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; transition: background var(--transition), color var(--transition); }
body.nav-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -0.035em; line-height: 1.12; }
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { line-height: 1.3; }

.visit-website-btn{
  display:inline-block;
  margin-top:15px;
  padding:12px 20px;
  background:#6c3bff;
  color:#fff;
  text-decoration:none;
  border-radius:8px;
  font-weight:600;
  transition:.3s;
}

.visit-website-btn:hover{
  background:#5a2fe0;
  transform:translateY(-2px);
}

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 830px; }
.section { padding: 110px 0; }
.section-muted { background: var(--surface-alt); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow { margin-bottom: 14px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading p:last-child { color: var(--muted); font-size: 1.05rem; }
.button-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; transition: transform var(--transition), background var(--transition), border var(--transition); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); }
.btn-light { color: #24164d; background: #fff; }
.text-link { color: var(--primary); font-weight: 800; }

.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 1000; height: 3px; background: transparent; }
.scroll-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.site-header { position: sticky; top: 0; z-index: 900; height: var(--header-height); background: color-mix(in srgb, var(--bg) 87%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(18px); }
.nav-wrap { display: flex; align-items: center; height: 100%; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; aspect-ratio: 1; color: #fff; background: linear-gradient(145deg, var(--primary), #9d78ff); border-radius: 12px; box-shadow: 0 10px 24px rgba(108, 59, 255, .25); }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a { position: relative; color: var(--muted); font-size: .92rem; font-weight: 700; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--primary); transition: right var(--transition); }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.theme-toggle, .nav-toggle { display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; font-size: 1.05rem; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 12px; }
.nav-toggle span { width: 20px; height: 2px; margin: 2px 0; background: currentColor; transition: transform var(--transition), opacity var(--transition); }

.hero { min-height: calc(100vh - var(--header-height)); display: grid; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.hero h1 span { color: var(--primary); }
.hero-text { max-width: 680px; color: var(--muted); font-size: 1.12rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.hero-stats div { padding-top: 18px; border-top: 1px solid var(--border); }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { font-size: 1.7rem; }
.hero-stats span { color: var(--muted); font-size: .82rem; }
.workspace-card { position: relative; padding: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 40px 90px rgba(64, 37, 155, .22); transform: rotate(2deg); }
.workspace-top { display: flex; gap: 7px; padding: 4px 4px 14px; }
.workspace-top span { width: 9px; aspect-ratio: 1; border-radius: 50%; background: #d7d2e2; }
.workspace-screen { height: 520px; overflow: hidden; border-radius: 22px; background: #251750; }
.workspace-screen img { width: 100%; height: 100%; object-fit: cover; }
.floating-badge { position: absolute; padding: 10px 14px; color: #fff; background: #211641; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; font-size: .78rem; font-weight: 800; box-shadow: var(--shadow); }
.badge-one { top: 17%; left: -38px; }.badge-two { top: 46%; right: -30px; }.badge-three { bottom: 12%; left: -22px; color: #251844; background: var(--accent); }

.split-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: start; }
.about-copy p { color: var(--muted); font-size: 1.08rem; }
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.service-card { padding: 28px; box-shadow: none; transition: transform var(--transition), box-shadow var(--transition); }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 48px; color: var(--primary); background: var(--surface-alt); border-radius: 14px; font-weight: 800; }
.service-card p { color: var(--muted); font-size: .9rem; }
.service-card a { color: var(--primary); font-size: .86rem; font-weight: 800; }

.portfolio-section { padding: 85px 0; border-bottom: 1px solid var(--border); }
.portfolio-section:last-child { border-bottom: 0; }
.portfolio-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.portfolio-heading p { max-width: 520px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { overflow: hidden; box-shadow: none; }
.project-card[hidden] { display: none; }
.project-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #e8e4f5; }
.project-media img, .project-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-media img { transform: scale(1.045); }
.play-overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.25)); font-size: 3rem; pointer-events: none; }
.video-fallback { position: absolute; inset: auto 12px 12px; padding: 8px 10px; color: #fff; background: rgba(20,14,39,.82); border-radius: 8px; font-size: .72rem; }
.project-copy { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding: 22px; }
.project-copy h3 { margin-bottom: 5px; }
.project-copy p { margin-bottom: 0; color: var(--muted); font-size: .83rem; }
.project-open { flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; color: var(--text); background: var(--surface); }
.view-more-wrap { margin-top: 34px; text-align: center; }

.skills-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.skills-grid span { padding: 11px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-weight: 700; box-shadow: 0 8px 30px rgba(35,28,58,.05); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card { padding: 30px; box-shadow: none; }
.feature-card > span { color: var(--primary); font-weight: 800; }
.feature-card p { margin-bottom: 0; color: var(--muted); }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.preview-card { padding: 34px; box-shadow: none; }
.preview-card h3 { min-height: 82px; font-size: 1.4rem; }
.cta-section { padding-top: 30px; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 58px; color: #fff; background: radial-gradient(circle at 85% 10%, rgba(185,255,44,.32), transparent 26%), linear-gradient(135deg, #32147d, #6c3bff); border-radius: var(--radius-lg); box-shadow: 0 35px 80px rgba(77,42,188,.28); }
.cta-box .eyebrow { color: var(--accent); }.cta-box h2 { max-width: 780px; margin-bottom: 0; }

.page-header { padding: 120px 0 85px; text-align: center; background: radial-gradient(circle at 50% 0, rgba(108,59,255,.17), transparent 50%); }
.page-header p:last-child { color: var(--muted); font-size: 1.12rem; }
.process-timeline { position: relative; max-width: 980px; margin: 0 auto; }
.process-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 49px; width: 2px; background: linear-gradient(var(--primary), var(--accent)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 30px; margin-bottom: 34px; }
.timeline-marker { position: relative; z-index: 1; display: grid; place-items: start center; padding-top: 30px; }
.timeline-marker span { display: grid; place-items: center; width: 58px; height: 58px; color: #fff; background: var(--primary); border: 8px solid var(--bg); border-radius: 50%; font-size: .78rem; font-weight: 800; }
.timeline-card { display: grid; grid-template-columns: 76px 1fr; gap: 24px; padding: 34px; box-shadow: none; }
.process-icon { display: grid; place-items: center; width: 62px; height: 62px; color: var(--primary); background: var(--surface-alt); border-radius: 18px; font-size: 1.2rem; font-weight: 800; }
.phase-label { margin-bottom: 7px; color: var(--primary); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.timeline-card h2 { margin-bottom: 12px; font-size: 2rem; }.timeline-card p { color: var(--muted); }
.timeline-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 0; }
.timeline-card dl div { padding: 16px; background: var(--surface-alt); border-radius: var(--radius-sm); }
.timeline-card dt { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }.timeline-card dd { margin: 3px 0 0; font-weight: 700; }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 38px; }
.filter-btn { padding: 10px 16px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: .82rem; font-weight: 800; }
.filter-btn.active, .filter-btn:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial-card { padding: 30px; box-shadow: none; transition: opacity var(--transition), transform var(--transition); }
.testimonial-card[hidden] { display: none; }
.testimonial-head { display: flex; align-items: center; gap: 16px; }
.testimonial-head img { width: 62px; height: 62px; object-fit: cover; border-radius: 50%; }
.testimonial-head h2 { margin-bottom: 2px; font-size: 1.15rem; }.testimonial-head p, .testimonial-head span { margin: 0; color: var(--muted); font-size: .78rem; }
.rating { margin: 24px 0 14px; color: #f5b800; letter-spacing: .12em; }
.testimonial-card blockquote { margin: 0; font-family: "Playfair Display", serif; font-size: 1.2rem; line-height: 1.65; }
.testimonial-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }

.contact-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; align-items: start; }
.contact-form-card, .contact-panel { padding: 38px; box-shadow: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.form-full { grid-column: 1/-1; }
.form-group label { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 800; }
.form-group label span { color: #d33c4e; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; outline: none; transition: border var(--transition), box-shadow var(--transition); }
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108,59,255,.12); }
.form-group .invalid { border-color: #d33c4e; }
.error-message { display: block; min-height: 18px; margin-top: 4px; color: #d33c4e; font-size: .74rem; }
.field-help { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; }
.form-status { display: none; margin-bottom: 22px; padding: 14px 16px; border-radius: 10px; font-size: .88rem; }
.form-status.success { display: block; color: #14532d; background: #dcfce7; border: 1px solid #86efac; }
.form-status.error { display: block; color: #7f1d1d; background: #fee2e2; border: 1px solid #fca5a5; }
.submit-btn { min-width: 210px; margin-top: 26px; border: 0; }
.loading-label { display: none; align-items: center; gap: 8px; }.is-loading .submit-label { display: none; }.is-loading .loading-label { display: inline-flex; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.contact-panel { position: sticky; top: calc(var(--header-height) + 24px); }
.contact-panel h2 { font-size: 2.15rem; }.contact-panel > p { color: var(--muted); }
.contact-list { margin: 30px 0; padding: 0; list-style: none; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-list span { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }.contact-list p { margin: 3px 0 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 9px; }.social-links a { padding: 8px 11px; background: var(--surface-alt); border-radius: 8px; font-size: .75rem; font-weight: 800; }

.site-footer { padding: 70px 0 24px; background: #0e0b17; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.footer-brand { margin-bottom: 16px; }.footer-grid p { max-width: 420px; color: #aaa4b8; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 24px; }.footer-links a { color: #d3cede; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; color: #918a9f; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.scroll-top { position: fixed; right: 22px; bottom: 22px; z-index: 800; width: 46px; height: 46px; color: #fff; background: var(--primary); border: 0; border-radius: 50%; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--transition); box-shadow: var(--shadow); }.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

.modal { position: fixed; inset: 0; z-index: 1100; display: none; place-items: center; padding: 20px; }.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,5,16,.78); backdrop-filter: blur(8px); }
.modal-panel { position: relative; z-index: 1; width: min(900px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: var(--radius); box-shadow: 0 40px 100px rgba(0,0,0,.35); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; color: #fff; background: rgba(16,13,29,.7); border: 0; border-radius: 50%; font-size: 1.5rem; }
#modal-media { background: #1c1531; }.modal-media-image, .modal-media-video { width: 100%; max-height: 520px; object-fit: cover; }.modal-copy { padding: 32px; }.modal-copy h2 { font-size: 2.5rem; }.modal-copy p:last-child { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }.reveal.visible { opacity: 1; transform: none; }
.page-enter { animation: pageEnter .55s ease both; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .nav-toggle { display: grid; }
  .site-nav { position: fixed; inset: var(--header-height) 0 auto; display: grid; gap: 0; margin: 0; padding: 18px 20px 30px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); transform: translateY(-130%); visibility: hidden; transition: transform .3s ease, visibility .3s ease; }
  .site-nav.open { transform: translateY(0); visibility: visible; }.site-nav a { padding: 14px; }.site-nav a::after { display: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; }.hero-visual { max-width: 720px; }.workspace-screen { height: 460px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }.feature-grid { grid-template-columns: repeat(2, 1fr); }.contact-layout { grid-template-columns: 1fr; }.contact-panel { position: static; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }.section { padding: 78px 0; } h1 { font-size: clamp(2.7rem, 14vw, 4.5rem); }
  .hero { min-height: auto; padding-top: 90px; }.hero-grid { gap: 55px; }.hero-stats { grid-template-columns: 1fr; }.workspace-screen { height: 360px; }.floating-badge { display: none; }
  .split-layout, .footer-grid { grid-template-columns: 1fr; gap: 30px; }.service-grid, .project-grid, .preview-grid, .testimonial-grid { grid-template-columns: 1fr; }.service-icon { margin-bottom: 28px; }
  .portfolio-heading { display: block; }.feature-grid { grid-template-columns: 1fr; }.cta-box { display: block; padding: 38px 28px; }.cta-box .btn { margin-top: 28px; }
  .page-header { padding: 90px 0 60px; }.process-timeline::before { left: 24px; }.timeline-item { grid-template-columns: 50px 1fr; gap: 12px; }.timeline-marker { padding-top: 24px; }.timeline-marker span { width: 48px; height: 48px; border-width: 6px; }.timeline-card { grid-template-columns: 1fr; padding: 24px; }.timeline-card dl { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }.form-full { grid-column: auto; }.contact-form-card, .contact-panel { padding: 24px; }.footer-links { grid-template-columns: repeat(2, 1fr); }.footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Enhanced project gallery modal */
body.modal-open { overflow: hidden; }
.modal-panel { width: min(1040px, 100%); }
.modal-gallery { position: relative; background: #1c1531; overflow: hidden; }
#modal-media { min-height: 360px; display: grid; place-items: center; transition: opacity .18s ease, transform .18s ease; }
#modal-media.is-changing { opacity: .2; transform: scale(.99); }
.modal-media-image, .modal-media-video { display: block; width: 100%; max-height: 620px; object-fit: contain; background: #1c1531; cursor: zoom-in; }
.gallery-arrow, .gallery-zoom { position: absolute; z-index: 3; border: 0; color: #fff; background: rgba(16,13,29,.72); backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.gallery-arrow { top: 50%; width: 48px; height: 48px; border-radius: 50%; transform: translateY(-50%); font-size: 2rem; line-height: 1; }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-zoom { right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; font-size: 1.35rem; }
.gallery-counter { position: absolute; left: 18px; bottom: 18px; z-index: 3; padding: 8px 12px; border-radius: 999px; color: #fff; background: rgba(16,13,29,.72); font-size: .82rem; font-weight: 700; letter-spacing: .08em; }
.modal-thumbnails { display: flex; gap: 10px; padding: 14px 18px; overflow-x: auto; background: #130f22; scrollbar-width: thin; }
.modal-thumbnail { flex: 0 0 82px; width: 82px; height: 58px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: #2f2354; opacity: .62; }
.modal-thumbnail.active { border-color: var(--primary); opacity: 1; }
.modal-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-video { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; }
.gallery-help { margin-top: 18px; font-size: .82rem; color: var(--muted); }
.image-zoom { position: fixed; inset: 0; z-index: 1200; display: none; place-items: center; padding: 28px; }
.image-zoom.open { display: grid; }
.zoom-backdrop { position: absolute; inset: 0; background: rgba(5,3,10,.94); }
.image-zoom img { position: relative; z-index: 1; max-width: min(1500px, 96vw); max-height: 92vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.zoom-close { position: fixed; top: 18px; right: 18px; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.14); font-size: 1.7rem; }
.gallery-arrow:hover, .gallery-zoom:hover, .zoom-close:hover { background: var(--primary); }

@media (max-width: 640px) {
  .modal { padding: 8px; }
  .modal-panel { max-height: 96vh; border-radius: 18px; }
  #modal-media { min-height: 260px; }
  .modal-media-image, .modal-media-video { max-height: 56vh; }
  .gallery-arrow { width: 42px; height: 42px; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .gallery-zoom { right: 10px; bottom: 10px; }
  .gallery-counter { left: 10px; bottom: 10px; }
  .modal-copy { padding: 24px 20px; }
  .modal-copy h2 { font-size: 2rem; }
}
