/* ==========================================================================
   Fabio Fonda Art (fabiofonda.art) - Native Modern CSS3 Stylesheet
   Wolf Static Standard - Zero Legacy Dependencies (1:1 Visual Parity)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Typography
   -------------------------------------------------------------------------- */
:root {
  --color-bg-dark: #2e2e2e;
  --color-navbar: #333333;
  --color-white: #ffffff;
  --color-text-gray: #767676;
  --color-overlay: rgba(31, 2, 46, 0.9);
  --color-hover: #c1c1c1;
  --color-arrow-bg: rgba(80, 80, 80, 0.5);

  --font-body: 'Rubik', sans-serif;
  --font-heading: 'Ubuntu', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.25s ease-in-out;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Elements
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-gray);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover,
a:focus {
  text-decoration: none;
}

/* Screen reader utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* --------------------------------------------------------------------------
   4. Navbar (#menu)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 77px;
  background-color: var(--color-navbar);
  z-index: 1030;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  transition: min-height var(--transition-fast), padding var(--transition-fast), background-color var(--transition-fast);
}

.navbar.scrolled,
.navbar.navbar-short {
  min-height: 60px;
  padding: 0.25rem 0;
  background-color: var(--color-bg-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar__container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  margin-left: 5rem;
  text-decoration: none;
}

.navbar__logo {
  height: 3.8rem;
  width: auto;
  transition: height var(--transition-fast);
  display: block;
}

.navbar.scrolled .navbar__logo,
.navbar.navbar-short .navbar__logo {
  height: 3rem;
}

.navbar-collapse {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-right: 5rem;
}

.navbar-nav {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-white);
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-hover);
}

.nav-link--contact::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  vertical-align: -2px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M1.101 21.757L23.8 12.028 1.101 2.3 1 9.878l15 2.15-15 2.15z'/%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M1.101 21.757L23.8 12.028 1.101 2.3 1 9.878l15 2.15-15 2.15z'/%3E") no-repeat center / contain;
}

/* Language Switcher Buttons */
.nav-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.nav-lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  transition: color var(--transition-fast), font-weight var(--transition-fast);
}

.nav-lang-btn:hover,
.nav-lang-btn:focus {
  color: var(--color-white);
}

.nav-lang-btn.active {
  color: var(--color-white);
  font-weight: 700;
}

.nav-lang-divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  user-select: none;
}

/* Hamburger Toggler */
.navbar-toggler {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
}

.hamburger {
  width: 30px;
  height: 18px;
  position: relative;
  cursor: pointer;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transition: all var(--transition-normal);
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 6px; }
.hamburger span:nth-child(3) { top: 6px; }
.hamburger span:nth-child(4) { top: 12px; }

/* Hamburger animated to X */
.hamburger.is-active span:nth-child(1),
.hamburger.opened span:nth-child(1) {
  top: 6px;
  width: 0%;
  left: 50%;
  opacity: 0;
}

.hamburger.is-active span:nth-child(2),
.hamburger.opened span:nth-child(2) {
  transform: rotate(45deg);
}

.hamburger.is-active span:nth-child(3),
.hamburger.opened span:nth-child(3) {
  transform: rotate(-45deg);
}

.hamburger.is-active span:nth-child(4),
.hamburger.opened span:nth-child(4) {
  top: 6px;
  width: 0%;
  left: 50%;
  opacity: 0;
}

/* --------------------------------------------------------------------------
   5. Hero Section (#hero)
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../assets/images/thumbnail-ff-jcm-bis-1240x825.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  text-align: center;
  padding: 0 1rem;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(31, 2, 46);
  opacity: 0;
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  font-size: clamp(2.75rem, 6vw + 1rem, 6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Circular Scroll-Down Arrow */
.hero__scroll-down {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-arrow-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  z-index: 10;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  animation: arrowdown 1.7s ease-in-out infinite;
}

.hero__scroll-down:hover,
.hero__scroll-down:focus {
  background-color: rgba(80, 80, 80, 0.8);
}

@keyframes arrowdown {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* --------------------------------------------------------------------------
   6. Parallax Dividers
   -------------------------------------------------------------------------- */
.divider {
  height: 28px;
  min-height: 28px;
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(31, 2, 46, 0.9);
}

.divider--1 {
  background-image: url('../assets/images/thumbnail-ff-jcm-bis-1-1240x825.jpg');
}

.divider--2 {
  background-image: url('../assets/images/thumbnail-ff-jcm-bis-1240x825.jpg');
}

/* --------------------------------------------------------------------------
   7. Bio Section (#bio)
   -------------------------------------------------------------------------- */
.bio {
  padding-top: 60px;
  padding-bottom: 120px;
  background-color: var(--color-white);
}

.bio__container {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.bio__row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}

.bio__image-col {
  flex: 0 0 60%;
  width: 60%;
  padding-right: 4rem;
}

.bio__image {
  width: 100%;
  height: auto;
  display: block;
}

.bio__content-col {
  flex: 1 1 100%;
  width: 100%;
}

.bio__paragraph {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text-gray);
  margin-bottom: 1.5rem;
}

.bio__paragraph:last-child {
  margin-bottom: 0;
}

.bio__paragraph strong {
  font-weight: 700;
  color: var(--color-text-gray);
}

/* --------------------------------------------------------------------------
   8. Projects & Competencies Section (#projects)
   -------------------------------------------------------------------------- */
.projects {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: var(--color-white);
}

.projects__container {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.projects__heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text-gray);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.projects__heading:first-child {
  margin-top: 0;
}

.projects__heading strong {
  font-weight: 700;
  color: var(--color-text-gray);
}

.projects__paragraph {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text-gray);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   9. Footer Section (#footer)
   -------------------------------------------------------------------------- */
.footer {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: var(--color-bg-dark);
  color: var(--color-white);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-left: -1rem;
  margin-right: -1rem;
}

.footer__col {
  flex: 0 0 25%;
  max-width: 25%;
  padding-left: 1rem;
  padding-right: 1rem;
}

.footer__logo-link {
  display: inline-block;
}

.footer__logo {
  height: 6rem;
  width: auto;
  display: block;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-white);
  padding-bottom: 1rem;
}

.footer__text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.footer__text a {
  color: var(--color-white);
  text-decoration: underline;
}

.footer__text a:hover,
.footer__text a:focus {
  color: var(--color-hover);
}

.footer__divider {
  border: none;
  border-top: 1px solid var(--color-white);
  opacity: 0.05;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.footer__lower {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-white);
}

.footer__socials {
  display: flex;
  align-items: center;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  opacity: 0.5;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  transition: opacity var(--transition-fast);
}

.footer__social-link:hover,
.footer__social-link:focus {
  opacity: 1.0;
}

.footer__social-link svg {
  width: 21px;
  height: 21px;
  display: block;
}

/* --------------------------------------------------------------------------
   10. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Breakpoint: Desktop / Tablet (< 992px) */
@media (max-width: 991px) {
  .navbar-brand {
    margin-left: 1rem;
  }

  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--color-navbar);
    padding: 1.5rem 1rem;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-right: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }

  .navbar-collapse.show {
    display: flex;
  }

  .bio__row {
    flex-direction: column;
    align-items: center;
  }

  .bio__image-col {
    flex: 0 0 100%;
    width: 100%;
    max-width: 436px;
    padding-right: 0;
    padding-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
  }

  .bio__content-col {
    flex: 0 0 100%;
    width: 100%;
  }

  .hero,
  .divider {
    background-attachment: scroll;
  }
}

/* Breakpoint: Tablet / Mobile (< 768px) */
@media (max-width: 767px) {
  .hero__scroll-down {
    display: none;
  }

  .footer__grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__col {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .footer__logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer__col--spacer {
    display: none;
  }

  .footer__lower {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

/* Touch / iOS WebKit Devices: disable fixed background attachment to prevent cover zoom bug */
@media (hover: none) and (pointer: coarse) {
  .hero,
  .divider {
    background-attachment: scroll;
  }
}

/* --------------------------------------------------------------------------
   11. Dedicated Gallery Page (/gallery) & Wolf CMS In-Place Editor
   -------------------------------------------------------------------------- */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link.active {
  color: var(--color-hover);
}

.gallery-page {
  background-color: #161616;
  color: var(--color-white);
}

body.wolf-cms-edit-active {
  padding-top: 56px;
}

body.wolf-cms-edit-active .navbar {
  top: 56px;
}

.gallery-hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: 70px;
  background-image: url('../assets/images/thumbnail-ff-jcm-bis-1240x825.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.85) 0%, rgba(22, 22, 22, 0.95) 100%);
}

.gallery-hero__container {
  position: relative;
  z-index: 2;
  max-width: 1180px;
}

.gallery-hero__kicker {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 0.75rem;
}

.gallery-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.gallery-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.gallery-main {
  padding-top: 3rem;
  padding-bottom: 5rem;
  background-color: #161616;
}

.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: #d4af37;
  border-color: #d4af37;
  color: #111111;
  font-weight: 500;
}

.gallery-filter-count {
  opacity: 0.75;
  font-size: 0.8rem;
}

.gallery-section {
  margin-bottom: 4.5rem;
}

.gallery-section__header {
  margin-bottom: 1.75rem;
}

.gallery-section__title-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.gallery-section__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d4af37;
  color: #d4af37;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
}

.gallery-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--color-white);
}

.gallery-section__description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.68);
  padding-left: 2.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.gallery-card {
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
}

.gallery-card--picking-focal {
  border: 2px solid #d4af37;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

.gallery-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111111;
  cursor: pointer;
}

.gallery-card--picking-focal .gallery-card__media {
  cursor: crosshair;
}

.gallery-card__img {
  --cms-zoom: 1;
  --cms-rotate: 0deg;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(var(--cms-zoom, 1)) rotate(var(--cms-rotate, 0deg));
  transition: transform 0.35s ease, filter 0.3s ease;
}

.gallery-card:hover .gallery-card__img {
  transform: scale(calc(var(--cms-zoom, 1) * 1.03)) rotate(var(--cms-rotate, 0deg));
}

.gallery-card__zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-card:hover .gallery-card__zoom-overlay {
  opacity: 1;
}

.gallery-card__zoom-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.85);
  border: 1px solid #d4af37;
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.gallery-card__body {
  padding: 1rem 1.15rem;
}

.gallery-card__caption {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox__stage {
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.gallery-lightbox__meta {
  margin-top: 1rem;
  text-align: center;
}

.gallery-lightbox__section {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #d4af37;
  margin-bottom: 0.25rem;
}

.gallery-lightbox__caption {
  font-size: 1.05rem;
  color: var(--color-white);
}

.gallery-lightbox__counter {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__close {
  top: 1.5rem;
  right: 1.5rem;
}

.gallery-lightbox__nav--prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox__nav--next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Wolf CMS In-Place Admin Toolbar & Controls — Distinct Electric Violet Engine Palette */
:root {
  --cms-engine-bg: #12091f;
  --cms-engine-surface: #1b0e2e;
  --cms-accent: #a855f7;
  --cms-accent-bright: #c084fc;
  --cms-accent-text: #ffffff;
  --cms-accent-border: rgba(168, 85, 247, 0.8);
  --cms-accent-soft: rgba(168, 85, 247, 0.14);
  --cms-accent-hover: rgba(168, 85, 247, 0.26);
  --cms-publish: #10b981;
}

.wolf-cms-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--cms-engine-bg);
  border-bottom: 2px solid var(--cms-accent);
  box-shadow: 0 4px 22px rgba(168, 85, 247, 0.28);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.wolf-cms-toolbar__left,
.wolf-cms-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.wolf-cms-toolbar__brand {
  color: var(--cms-accent-bright);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.wolf-cms-toolbar__pill {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  color: #f3e8ff;
}

.wolf-cms-toolbar__status {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  color: #6ee7b7;
  font-weight: 600;
}

.wolf-cms-toolbar__status.is-dirty {
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.2);
}

.cms-btn {
  padding: 0.42rem 0.85rem;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.cms-btn--small {
  padding: 0.28rem 0.65rem;
  font-size: 0.76rem;
  background: rgba(168, 85, 247, 0.18);
  border-color: var(--cms-accent);
  color: #e9d5ff;
}

.cms-btn--small:hover {
  background: var(--cms-accent);
  color: var(--cms-accent-text);
}

.cms-btn--primary {
  background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%);
  border-color: var(--cms-accent-bright);
  color: var(--cms-accent-text);
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(168, 85, 247, 0.4);
}

.cms-btn--primary:hover {
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
  border-color: #d8b4fe;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.55);
}

#cms-btn-publish {
  background: var(--cms-publish);
  border-color: var(--cms-publish);
  color: #03150e;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.35);
}

#cms-btn-publish:hover {
  background: #34d399;
  border-color: #34d399;
}

.cms-btn--secondary {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.5);
  color: #f3e8ff;
}

.cms-btn--secondary:hover {
  background: rgba(168, 85, 247, 0.28);
  border-color: var(--cms-accent-bright);
}

.cms-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
}

.cms-btn--ghost:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: var(--cms-accent-bright);
}

.cms-editable-field {
  cursor: pointer;
  border-bottom: 2px dashed rgba(192, 132, 252, 0.8);
}

.cms-dropzone {
  border: 2px dashed var(--cms-accent-border);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.15) 0%, rgba(18, 9, 31, 0.88) 100%);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
  cursor: pointer;
  box-shadow: inset 0 0 24px rgba(168, 85, 247, 0.1);
  transition: all 0.2s ease;
}

.cms-dropzone:hover,
.cms-dropzone--dragover {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.26) 0%, rgba(18, 9, 31, 0.94) 100%);
  border-color: var(--cms-accent-bright);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.32);
}

.cms-dropzone__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: #f3e8ff;
  font-size: 0.92rem;
}

.cms-dropzone__cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.cms-dropzone__content span {
  font-size: 0.78rem;
  color: rgba(233, 213, 255, 0.78);
}

.gallery-card--add-new {
  border: 2px dashed var(--cms-accent);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.15) 0%, rgba(18, 9, 31, 0.92) 100%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.18);
  transition: all 0.22s ease;
}

.gallery-card--add-new:hover {
  border-color: var(--cms-accent-bright);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.26) 0%, rgba(27, 14, 46, 0.96) 100%);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.35);
  transform: translateY(-3px);
}

.gallery-card__add-media {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.25rem;
  text-align: center;
}

.gallery-card__add-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%);
  color: var(--cms-accent-text);
  font-size: 1.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.5);
}

.gallery-card__add-title {
  color: var(--cms-accent-bright);
  font-size: 1.02rem;
  font-family: var(--font-body);
}

.gallery-card__add-sub {
  color: #e9d5ff;
  font-size: 0.82rem;
  font-family: var(--font-body);
}

.gallery-card__add-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(18, 9, 31, 0.88);
  border-top: 1px dashed rgba(168, 85, 247, 0.5);
}

.cms-upload-picker-box {
  border: 2px dashed rgba(168, 85, 247, 0.7);
  background: rgba(168, 85, 247, 0.1);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cms-upload-picker-box:hover,
.cms-upload-picker-box.is-dragover {
  border-color: var(--cms-accent-bright);
  background: rgba(168, 85, 247, 0.2);
}

.cms-focal-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cms-accent-bright);
  background: rgba(18, 9, 31, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.85), 0 0 10px rgba(168, 85, 247, 0.7);
}

.cms-order-badge-wrap {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
}

.cms-order-select {
  background: rgba(18, 9, 31, 0.94);
  border: 1px solid var(--cms-accent-bright);
  color: #f3e8ff;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.35);
}

.cms-order-select:hover,
.cms-order-select:focus {
  outline: none;
  background: var(--cms-accent);
  color: #ffffff;
  border-color: #d8b4fe;
}

.cms-order-select--badge {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.95) 0%, rgba(168, 85, 247, 0.95) 100%);
  color: #ffffff;
  border: 1px solid #d8b4fe;
  padding: 0.24rem 0.55rem;
  border-radius: 5px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.65), 0 0 12px rgba(168, 85, 247, 0.5);
}

.cms-card-Controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
}

.cms-card-btn {
  background: rgba(18, 9, 31, 0.88);
  border: 1px solid rgba(168, 85, 247, 0.38);
  color: #f3e8ff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}

.cms-card-btn:hover:not(:disabled) {
  background: rgba(168, 85, 247, 0.25);
  border-color: var(--cms-accent-bright);
}

.cms-card-btn.active {
  background: var(--cms-accent);
  color: var(--cms-accent-text);
  border-color: var(--cms-accent-bright);
  font-weight: 700;
}

.cms-card-btn--danger {
  color: #ff8787;
  border-color: rgba(255, 135, 135, 0.35);
  margin-left: auto;
}

.cms-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 18, 0.84);
  z-index: 9800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cms-modal {
  background: var(--cms-engine-surface);
  border: 2px solid var(--cms-accent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 30px rgba(168, 85, 247, 0.28);
  border-radius: 8px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--color-white);
  font-family: var(--font-body);
}

.cms-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--cms-engine-bg);
  border-bottom: 1px solid rgba(168, 85, 247, 0.32);
}

.cms-modal__header h3 {
  font-size: 1.05rem;
  color: var(--cms-accent-bright);
}

.cms-modal__close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.1rem;
  cursor: pointer;
}

.cms-modal__body {
  padding: 1.25rem;
}

.cms-form-group {
  margin-bottom: 0.9rem;
}

.cms-form-group label {
  display: block;
  font-size: 0.82rem;
  color: #e9d5ff;
  margin-bottom: 0.35rem;
}

.cms-input,
.cms-textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: #0d0618;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 4px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.cms-input:focus,
.cms-textarea:focus {
  outline: none;
  border-color: var(--cms-accent-bright);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
}

.cms-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.wolf-cms-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--cms-engine-bg);
  border: 1px solid var(--cms-accent-bright);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
  color: #f3e8ff;
  padding: 0.75rem 1.15rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.wolf-cms-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.cms-footer-trigger {
  display: inline-block;
  margin-left: 0.75rem;
  font-size: 0.8rem;
  color: rgba(192, 132, 252, 0.6);
  text-decoration: none;
}

.cms-footer-trigger:hover {
  color: var(--cms-accent-bright);
}

/* Wolf Image Studio — Interactive Crop, Zoom, Pan & Light Editor */
.cms-zoom-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(18, 9, 31, 0.92);
  border: 1px solid var(--cms-accent-bright);
  color: var(--cms-accent-bright);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}

.cms-card-btn--studio {
  border-color: rgba(192, 132, 252, 0.75);
  color: var(--cms-accent-bright);
}

.cms-modal.cms-modal--studio {
  max-width: 880px;
}

.cms-studio-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.35rem;
  align-items: start;
}

.cms-studio-stage-wrap {
  background: #0a0412;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 6px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cms-studio-stage {
  position: relative;
  width: 100%;
  max-height: 360px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #12091f;
  border: 2px solid var(--cms-accent);
  border-radius: 4px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.cms-studio-stage.is-dragging {
  cursor: grabbing;
}

.cms-studio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.cms-studio-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  pointer-events: none;
}

.cms-studio-grid span {
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.cms-studio-hint {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: #e9d5ff;
  text-align: center;
}

.cms-studio-readout {
  margin-top: 0.35rem;
  padding: 0.4rem 0.6rem;
  background: #0d0618;
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 4px;
  font-size: 0.76rem;
  color: var(--cms-accent-bright);
  text-align: center;
}

.cms-studio-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cms-studio-slider-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cms-studio-axis-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cms-accent-bright);
  min-width: 16px;
  text-align: center;
}

.cms-range {
  flex: 1;
  accent-color: var(--cms-accent);
  cursor: pointer;
}

.cms-studio-actions {
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  padding-top: 1rem;
}

.cms-studio-actions__right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wolf-cms-toolbar {
    height: auto;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.4rem;
  }
  .gallery-section__description {
    padding-left: 0;
  }
  .cms-studio-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}



