/* Dark theme variables and overrides */
:root {
  --charcoal-gray: #242424;
  --cool-gray: #8d99ae;
  --antiflash-white: #edf2f4;
  --red-pantone: #ef233c;
  --crimson: #d80032;
}

/* Body and sections background/text */
body,
.main.style1.dark.fullscreen,
.main.style1,
.main.style2.dark.fullscreen,
.main.style3.primary,
.main.style3.secondary {
  background: var(--charcoal-gray) !important;
  color: var(--antiflash-white) !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--antiflash-white) !important;
}

a, .icons a, .menu a {
  color: var(--cool-gray) !important;
}

a:hover, .icons a:hover, .menu a:hover {
  color: var(--antiflash-white) !important;
}

.button.style2, .button.style2.down {
  background: var(--red-pantone) !important;
  color: var(--antiflash-white) !important;
  border-color: var(--crimson) !important;
}

.button.style2:hover, .button.style2.down:hover {
  background: var(--crimson) !important;
}

#header, #footer {
  background: var(--charcoal-gray) !important;
}

#header a, #footer, #footer a {
  color: var(--antiflash-white) !important;
}


/* Remove overlay on images for full color thumbnails */
.image:before {
  background: none !important;
}
/* Hero image background for #intro using <img> */
#intro.fullscreen {
  position: relative;
  overflow: hidden;
  background: none !important;
}

#intro.fullscreen .intro-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  z-index: -1;
}

/* Use custom arrow image in down button */
.button.style2.down {
  background-image: url('../../images/arrow.svg') !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Edit Mode Styles */
.edit-mode .gallery {
  border: 2px dashed var(--cool-gray) !important;
  border-radius: 8px;
  padding: 10px;
  min-height: 100px;
}

.edit-mode .gallery article {
  cursor: move !important;
  transition: transform 0.2s ease !important;
}

.edit-mode .gallery article:hover {
  transform: scale(1.02) !important;
  z-index: 1000;
}

.sortable-ghost {
  opacity: 0.5 !important;
  transform: rotate(5deg) !important;
}

.edit-mode .gallery article::before {
  content: "⋮⋮";
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--antiflash-white);
  padding: 5px;
  border-radius: 3px;
  font-size: 14px;
  z-index: 100;
  pointer-events: none;
}

/* Edit mode disable poptrox */
.edit-mode .gallery a {
  pointer-events: none !important;
}

/* Mobile responsive edit controls */
@media (max-width: 736px) {
  #editControls {
    right: 10px !important;
    top: 60px !important;
    left: 10px;
    right: 10px;
  }
  
  #editControls div {
    flex-direction: row !important;
  }
}