html :where(.wp-block) {
  max-width: 100%;
}
:where(.editor-styles-wrapper) h1,
:where(.editor-styles-wrapper) h2,
:where(.editor-styles-wrapper) h3,
:where(.editor-styles-wrapper) h4,
:where(.editor-styles-wrapper) h5,
:where(.editor-styles-wrapper) h6 {
  color: revert;
  font-size: revert;
  font-weight: revert;
  line-height: revert;
  margin: revert;
}

/* Global Mediluxe Design System */
:root {
  --luxe-bg: #f4f4f2;
  --luxe-dark: #111111;
  --luxe-accent: #7a756d;
}

/* Base Styles */
body {
  color: #111111;
  background-color: transparent;
}

.font-serif {
  font-family: "Bulmer", serif;
}
.font-sans {
  font-family: "Montserrat", sans-serif;
}

/* Luxury Effects */
@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.gold-gradient {
  background: linear-gradient(
    90deg,
    #c5a059 0%,
    #d4b271 45%,
    #e2c48d 50%,
    #d4b271 55%,
    #c5a059 100%
  );
  background-size: 400% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-right: 0.1em;
  margin-right: -0.1em;
  transition: all 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

h1.gold-gradient {
  animation: shimmer 16s linear infinite forwards;
}

.gold-gradient:not(h1):hover {
  background-position: 100% center;
  filter: brightness(1.08);
  transform: translateY(-0.5px);
}

/* Layout Utilities */
.reveal-container {
  overflow: hidden;
  display: block;
}

.reveal-hero-text,
.reveal-item-text {
  display: block;
  transform: translateY(105%);
  will-change: transform;
  padding: 0.15em 0.5em; /* Increased horizontal padding significantly */
  margin-left: -0.5em;
  margin-right: -0.5em;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.group h4 {
  transition:
    color 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    background-position 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  background: linear-gradient(135deg, #c5a059 0%, #f1d5a2 50%, #c5a059 100%);
  background-size: 200% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  color: #111111;
  display: inline-block;
}

.group:hover h4 {
  color: transparent;
  background-position: 100% center;
}

/* Swiper Overrides */
.swiper-slide {
  height: auto;
  opacity: 0.4;
  transition: opacity 0.6s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.swiper-slide-active,
.swiper-slide-next,
.swiper-slide-prev,
.swiper-slide-visible {
  opacity: 1;
}

/* Form Styling */
input,
select,
textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 0;
  padding: 1.2rem 0;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  transition: border-color 0.4s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-bottom-color: #111111;
}

.form-field-wrap {
  position: relative;
  width: 100%;
}

.form-field-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: #111111;
  transition:
    width 0.6s cubic-bezier(0.2, 1, 0.2, 1),
    left 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

/* Navigation & Header */
#site-nav {
  transition: all 0.7s ease-out;
}

.nav-scrolled {
  background-color: rgba(244, 244, 242, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  color: #111111 !important;
}

.nav-scrolling {
  background-color: rgba(244, 244, 242, 0.7);
  backdrop-filter: blur(6px);
  padding-top: 0.9rem !important;
  padding-bottom: 0.9rem !important;
}

.nav-scrolled .nav-link {
  color: #111111 !important;
}

.nav-link {
  position: relative;
  transition: opacity 0.4s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  opacity: 0.8;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-scrolled .nav-link::after {
  background: #c5a059;
  height: 2px;
  opacity: 0.9;
}

/* Global Elements */
.global-fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(
      to bottom,
      #f4f4f2 0%,
      rgba(244, 244, 242, 0.8) 20%,
      rgba(244, 244, 242, 0.8) 80%,
      #f4f4f2 100%
    ),
    url("../images/stocks/bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Ensure sections are transparent when they use bg-transparent */
section.bg-transparent,
.bg-transparent {
  background-color: transparent !important;
}

/* Hamburger & Mobile Menu */
.hamburger {
  width: 20px;
  height: 10px;
  position: relative;
  cursor: pointer;
  z-index: 100;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 50%;
}
.hamburger span:nth-child(3) {
  top: 100%;
}

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: rotate(45deg);
  background: #111111 !important;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 50%;
  transform: rotate(-45deg);
  background: #111111 !important;
}

#mobile-menu {
  position: fixed;
  inset: 0;
  background: #f4f4f2;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

#mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 1rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  color: #111111;
  text-decoration: none;
}

#mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-footer {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: 0.6s;
}

#mobile-menu.active .mobile-footer {
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown Styles */
.nav-item-has-children {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: -20px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: #ffffff;
  min-width: 220px;
  padding: 1.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.03);
  z-index: 1000;
  border-top: 2px solid #c5a059;
}

.nav-item-has-children:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.85rem 2.5rem;
  color: #111111;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  position: relative;
}

.dropdown-link:hover {
  background: #f9f9f7;
  color: #c5a059;
  padding-left: 2.75rem;
}

.dropdown-link::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 50%;
  width: 0;
  height: 1px;
  background: #c5a059;
  transition: width 0.4s ease;
  transform: translateY(-50%);
}

.dropdown-link:hover::before {
  width: 10px;
}

.nav-scrolled .nav-dropdown {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
}

.nav-item-has-children i {
  transition: transform 0.4s ease;
  display: inline-block;
  vertical-align: middle;
  margin-top: -2px;
}

.nav-item-has-children:hover i {
  transform: rotate(180deg);
  color: #c5a059;
}

/* Mobile Dropdown */
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  opacity: 0;
}

.mobile-nav-item.active .mobile-dropdown {
  max-height: 500px;
  margin-top: 1rem;
  margin-bottom: 2rem;
  opacity: 1;
}

.mobile-sub-link {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #111111;
  opacity: 0.4;
  transition: all 0.4s ease;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}

.mobile-sub-link:hover {
  opacity: 1;
  color: #c5a059;
  transform: scale(1.05);
}

.mobile-nav-item i {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav-item.active i {
  transform: rotate(180deg);
  color: #c5a059;
  opacity: 1;
}

/* Utility Classes */
.parallax-img {
  will-change: transform;
}

.watermark-parallax,
.watermark-parallax-m {
  will-change: transform;
}

.service-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
}

/* Insta Feed / Book Section Grid */
.insta-card {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  position: relative;
  background: #eee;
}

.insta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s ease;
}

/* Magnetic Shine Button Effect */
.magnetic-shine {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-shine:hover {
  background: #c5a059 !important;
  border-color: #c5a059 !important;
  color: white !important;
}

.magnetic-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.magnetic-shine:hover::after {
  opacity: 1;
}

.magnetic-shine i,
.magnetic-shine span {
  position: relative;
  z-index: 3;
}

/* Archive Filters */
.sticky-filter-bar {
  background-color: rgba(244, 244, 242, 0.85);
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
}

.pagination-link {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(17, 17, 17, 0.05);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.pagination-link:hover,
.page-numbers.current {
  background: #111;
  color: white;
  border-color: #111;
}
