:root {
  --mystic-bg: #0a0a0c;
  --mystic-white: #f5e6d0;
  --mystic-accent: #c9a959;
  --mystic-accent-glow: rgba(201, 169, 89, 0.5);
  --mystic-red: #8b1a1a;
  --mystic-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  --mystic-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --mystic-font-display: "Merriweather", serif;
  --mystic-font-heading: "Merriweather", serif;
  --mystic-font-body: "Merriweather", serif;
  --dl-layout-size-maxwidth: 1400px;
  --dl-layout-space-unit: 16px;
  --dl-layout-space-halfunit: 8px;
  --dl-layout-space-oneandhalfunits: 24px;
  --dl-layout-space-twounits: 32px;
  --dl-layout-space-threeunits: 48px;
  --dl-layout-space-fiveunits: 80px;
  --dl-layout-radius-imageradius: 4px;
  --dl-layout-radius-cardradius: 4px;
  --dl-color-theme-neutral-dark: #191818;
  --dl-color-theme-neutral-light: #FBFAF9;
  --dl-color-theme-primary1: #8b1a1a;
  --dl-color-theme-primary2: #a52020;
  --dl-color-theme-secondary1: #f5e6d0;
  --dl-color-theme-secondary2: #e8d5b8;
  --dl-color-theme-accent1: #1a1a2e;
  --dl-color-theme-accent2: #16213e;
}

/* ========================================
   MEDIEVAL THEMED GALLERY
   ======================================== */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--mystic-font-body);
  background: var(--mystic-bg);
  color: var(--mystic-white);
  overflow-x: hidden;
  -webkit-text-stroke: 0.03em #000;
}

/* --- Decorative border texture --- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  border: 3px solid rgba(201, 169, 89, 0.15);
}

/* ========================================
   PHOTO GALLERY - BENTO GRID
   ======================================== */

.mystic-gallery {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 26, 26, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(201, 169, 89, 0.06) 0%, transparent 50%),
    var(--mystic-bg);
}

.mystic-gallery-grid {
  display: grid;
  width: 100%;
  max-width: 1100px;
  gap: 1rem;
  /*
    Layout:
    +------------------+--------+
    |                  |   2    |
    |       1          +--------+
    |                  |        |
    +--------+---------+--------+
    |   3    |    4    |        |
    +--------+---------+--------+
  */
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 3 / 2;
}

/* --- Photo Card Base --- */
.mystic-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--dl-layout-radius-cardradius);
  cursor: pointer;
  transition: var(--mystic-transition);
  border: 1px solid rgba(201, 169, 89, 0.2);
}

.mystic-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  pointer-events: none;
  transition: var(--mystic-transition);
}

.mystic-photo::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  font-family: var(--mystic-font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mystic-accent);
  opacity: 0;
  transform: translateY(8px);
  transition: var(--mystic-transition);
}

.mystic-photo:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.mystic-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
  transition: var(--mystic-transition);
}

.mystic-photo:hover {
  transform: translateY(-4px);
  border-color: var(--mystic-accent);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 20px var(--mystic-accent-glow);
}

.mystic-photo:hover img {
  filter: grayscale(0%) contrast(1.1);
  transform: scale(1.05);
}

.mystic-photo:hover::before {
  background: linear-gradient(to top, rgba(10, 10, 12, 0.85) 0%, transparent 60%);
}

/* --- Photo 1: Big, spans left 2 columns and both rows --- */
.mystic-photo--1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

/* --- Photo 2: Small, upper right --- */
.mystic-photo--2 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

/* --- Photo 3: Bottom left --- */
/* Note: since photo 1 spans both rows and 2 cols,
   photos 3 & 4 go under photo 2 or we rearrange.
   Let me adjust the grid to make room. */

/* Revised grid: 4 columns for finer control */

.mystic-gallery-grid {
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.mystic-photo--1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.mystic-photo--2 {
  grid-column: 3 / 5;
  grid-row: 1 / 2;
}

.mystic-photo--3 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.mystic-photo--4 {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}

/* ========================================
   GALLERY TITLE
   ======================================== */

.mystic-gallery-header {
  text-align: center;
  padding: 3rem 2rem 0;
  background: var(--mystic-bg);
}

.mystic-gallery-title {
  font-family: var(--mystic-font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--mystic-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow:
    0 0 30px var(--mystic-accent-glow),
    0 4px 15px rgba(0, 0, 0, 0.5);
  margin: 0;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.mystic-gallery-subtitle {
  font-family: var(--mystic-font-heading);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  color: rgba(245, 230, 208, 0.5);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

/* --- Decorative divider --- */
.mystic-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2rem 0;
  background: var(--mystic-bg);
}

.mystic-divider-line {
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--mystic-accent), transparent);
}

.mystic-divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--mystic-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ========================================
   HERO SECTION (kept from original)
   ======================================== */

.mystic-hero {
  color: var(--mystic-white);
  width: 100%;
  height: 66.66vh;
  display: flex;
  overflow: hidden;
  position: relative;
  align-items: center;
  flex-direction: column;
  background-size: cover;
  justify-content: center;
  background-image: url("photos/1.jpg");
  background-position: center;
  background-attachment: fixed;
}

.mystic-hero-overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  background: radial-gradient(circle at center, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 0.9) 100%);
  pointer-events: none;
}

.mystic-hero-content {
  z-index: 10;
  position: relative;
  animation: mysticFadeInDown 1.2s ease-out;
  text-align: center;
}

.mystic-logo-container {
  gap: 1.5rem;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.mystic-logo-icon {
  color: var(--mystic-accent);
  filter: drop-shadow(0 0 15px var(--mystic-accent-glow));
  animation: mysticPulse 3s infinite ease-in-out;
}

.mystic-brand-name {
  margin: 0;
  font-family: var(--mystic-font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mystic-accent);
}

/* ========================================
   CARDS SECTION (kept from original)
   ======================================== */

.mystic-cards-section {
  color: var(--mystic-white);
  width: 100%;
  height: 33.33vh;
  display: flex;
  padding: 0 2rem;
  overflow: hidden;
  position: relative;
  align-items: center;
  justify-content: center;
  background-color: var(--mystic-bg);
}

.mystic-cards-container {
  gap: 2rem;
  width: 100%;
  height: 100%;
  display: grid;
  max-width: 1200px;
  max-height: 250px;
  align-items: center;
  grid-template-columns: repeat(3, 1fr);
}

.mystic-card {
  width: 100%;
  cursor: pointer;
  margin: 0 auto;
  display: block;
  overflow: hidden;
  position: relative;
  max-width: 250px;
  box-shadow: var(--mystic-shadow);
  transition: var(--mystic-transition);
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid rgba(201, 169, 89, 0.15);
}

.mystic-card-bg {
  top: 0;
  left: 0;
  width: 100%;
  filter: grayscale(40%) contrast(1.1);
  height: 100%;
  position: absolute;
  object-fit: cover;
  transition: var(--mystic-transition);
}

.mystic-card-overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 5;
  position: absolute;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
  align-items: center;
  justify-content: center;
}

.mystic-card-title {
  padding: 0 10px;
  font-family: var(--mystic-font-heading);
  font-size: 1.5rem;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mystic-accent);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.mystic-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  border-color: var(--mystic-accent);
}

.mystic-card:hover .mystic-card-bg {
  filter: grayscale(0%) contrast(1.2);
  transform: scale(1.1);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes mysticFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mysticPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes titleGlow {
  from {
    text-shadow:
      0 0 20px var(--mystic-accent-glow),
      0 4px 15px rgba(0, 0, 0, 0.5);
  }
  to {
    text-shadow:
      0 0 40px var(--mystic-accent-glow),
      0 0 60px rgba(201, 169, 89, 0.2),
      0 4px 15px rgba(0, 0, 0, 0.5);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Photo entrance animations */
.mystic-photo--1 { animation: fadeInUp 0.8s ease-out 0.1s both; }
.mystic-photo--2 { animation: fadeInUp 0.8s ease-out 0.25s both; }
.mystic-photo--3 { animation: fadeInUp 0.8s ease-out 0.4s both; }
.mystic-photo--4 { animation: fadeInUp 0.8s ease-out 0.55s both; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .mystic-gallery {
    padding: 1.5rem 1rem;
  }

  .mystic-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    aspect-ratio: unset;
  }

  .mystic-photo--1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    aspect-ratio: 16 / 9;
  }

  .mystic-photo--2 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    aspect-ratio: 16 / 9;
  }

  .mystic-photo--3 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    aspect-ratio: 1 / 1;
  }

  .mystic-photo--4 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    aspect-ratio: 1 / 1;
  }

  .mystic-hero {
    height: 50vh;
    background-attachment: scroll;
  }

  .mystic-cards-section {
    height: auto;
    padding: 2rem 1rem;
  }

  .mystic-cards-container {
    gap: 1.5rem;
    max-height: none;
    grid-template-columns: 1fr;
  }

  .mystic-card {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .mystic-brand-name {
    font-size: 2rem;
  }
}

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

  .mystic-photo--1,
  .mystic-photo--2,
  .mystic-photo--3,
  .mystic-photo--4 {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  .mystic-gallery-title {
    font-size: 1.6rem;
    letter-spacing: 0.08em;
  }
}

/* ========================================
   UTILITY CLASSES (from original)
   ======================================== */

.thq-section-padding {
  width: 100%;
  display: flex;
  padding: var(--dl-layout-space-fiveunits);
  position: relative;
  align-items: center;
  flex-direction: column;
}

.thq-section-max-width {
  width: 100%;
  max-width: var(--dl-layout-size-maxwidth);
}

.thq-heading-1 {
  font-size: 48px;
  font-family: var(--mystic-font-display);
  font-weight: 900;
  line-height: 1.3;
  color: var(--mystic-accent);
}

.thq-heading-2 {
  font-size: 35px;
  font-family: var(--mystic-font-heading);
  font-weight: 700;
  line-height: 1.4;
}

.thq-heading-3 {
  font-size: 26px;
  font-family: var(--mystic-font-heading);
  font-weight: 600;
  line-height: 1.4;
}

.thq-body-large {
  font-size: 18px;
  font-family: var(--mystic-font-body);
  line-height: 1.6;
}

.thq-body-small {
  font-size: 16px;
  font-family: var(--mystic-font-body);
  line-height: 1.6;
}
