/* Women Firefighters - Legacy Styles */

/* CRITICAL: Override slideshow.css that hides page scroll */
html,
body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* Ensure legacy content doesn't interfere */
.legacy-content {
  position: relative;
}

.home-cols {
  width: 960px !important;
  margin: 0 auto !important;
}

.home-col1 {
  float: left !important;
  width: 385px !important;
}

.home-col2 {
  float: right !important;
  width: 486px !important;
}

.interior .home-photos li {
  float: left !important;
  width: 237px !important;
  margin-right: 6px !important;
}

/* Ensure WordPress theme doesn't override these widths */
.legacy-content .container_12,
.legacy-content .grid_12 {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* CUSTOM MODAL SYSTEM */
.custom-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
}

.custom-modal-overlay.active {
  display: block;
}

.custom-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 940px;
  height: 580px;
  background-color: #282726;
  border-radius: 10px;
  border: 10px solid #000000;
  z-index: 10001;
  overflow: hidden;
}

.custom-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 12px;
  text-transform: uppercase;
  color: #ffa500;
  text-decoration: none;
  cursor: pointer;
  z-index: 10002;
}

.custom-modal-close:hover {
  text-decoration: underline;
}

/* Ensure modal body doesn't add extra padding/margin */
#customModalBody {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* Let jQuery Cycle handle slide visibility */
#customModal #slideshow .slide {
  display: none;
}

/* ENSURE SLIDESHOW STYLES WORK INSIDE MODAL */
/* These force the slideshow.css styles to apply even with theme interference */

#customModal #slidenav {
  width: 940px !important;
  height: 20px !important;
  padding-top: 20px !important;
  position: relative !important;
}

#customModal #slidenav a {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  line-height: 12px !important;
  text-transform: uppercase !important;
  color: #ffa500 !important;
  text-decoration: none !important;
}

#customModal #slidenav a:hover {
  text-decoration: underline !important;
}

#customModal #slidenav #prev2 {
  float: left !important;
  margin-left: 318px !important;
  margin-right: 18px !important;
}

#customModal #slidenav #next2 {
  float: left !important;
}

#customModal #count {
  position: absolute !important;
  left: 36px !important;
  top: 21px !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 600 !important;
  font-size: 10px !important;
  line-height: 12px !important;
  text-transform: uppercase !important;
  color: #cccccc !important;
}

/* Ensure slidewrapper fills modal properly */
#customModal .slidewrapper {
  width: 940px !important;
  height: 560px !important;
  margin: 0 !important;
  padding: 0 !important;
}
