/* FC Modal — 1440x840 white panel with gaps */
/* Easy tweak vars */
:root{
  --fc-panel-w: 1440px;
  --fc-panel-h: 840px;
  --fc-side-gap: 50px;
  --fc-bottom-gap: 24px;
  --fc-header-h: 80px;
  --fc-gold: #96694C;
  --fc-title-font: "Regulator Nova", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --fc-title-size: 21px;
  --fc-title-weight: 600;
  --fc-title-line: 28px;
  --fc-title-ls: 1.47px;
  --fc-blue: #42657D;
  --fc-shadow: 0 12px 36px rgba(0,0,0,.25);
  --fc-arrow-x: 16px;
  --fc-arrow-y: 0px;
  --fc-thumb-arrow-w: 24px;
}

body.fc-open { overflow: hidden; }

#fc-modal-root .fc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.60);
  z-index: 2147483000;
}

#fc-modal-root .fc-overlay-inner {
  position: absolute;
  top: var(--fc-header-h);
  left: 0; right: 0;
  height: calc(100% - var(--fc-header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--fc-side-gap) var(--fc-bottom-gap);
  box-sizing: border-box;
}

#fc-modal-root .fc-panel {
  background: #fff;
  border-radius: 0;
  box-shadow: var(--fc-shadow);
  width: min(var(--fc-panel-w), calc(100vw - (var(--fc-side-gap) * 2)));
  height: min(var(--fc-panel-h), calc(100vh - var(--fc-header-h) - var(--fc-bottom-gap)));
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Title top-left */
#fc-modal-root .fc-title {
  position: absolute;
  top: 14px; left: 16px;
  color: var(--fc-gold);
  font-family: var(--fc-title-font);
  font-size: var(--fc-title-size);
  font-weight: var(--fc-title-weight);
  line-height: var(--fc-title-line);
  letter-spacing: var(--fc-title-ls);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 3;
}

/* X button top-right */
#fc-modal-root .fc-x {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  color: #1e2a34;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  cursor: pointer;
  border: none;
  z-index: 3;
}

/* Stage area */
#fc-modal-root .fc-stage-wrap { 
  position: relative; 
  flex: 1 1 auto; 
  min-height: 0; 
  padding: 24px; 
  box-sizing: border-box; 
}
#fc-modal-root .fc-stage {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; 
  background: transparent;
  position: relative;
  z-index: 1;
}
#fc-modal-root .fc-stage img, 
#fc-modal-root .fc-stage iframe, 
#fc-modal-root .fc-stage video {
  max-width: 100%; max-height: 100%; display: block;
  background: transparent;
}

/* Main Arrows inside the panel */
#fc-modal-root .fc-prev, 
#fc-modal-root .fc-next {
  position: absolute; 
  top: calc(50% + var(--fc-arrow-y));
  width: 40px; height: 40px; border-radius: 20px;
  transform: translateY(-50%);
  background: var(--fc-blue);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  cursor: pointer; border: none;
  z-index: 5;
  pointer-events: auto;
}
#fc-modal-root .fc-prev { left: var(--fc-arrow-x); }
#fc-modal-root .fc-next { right: var(--fc-arrow-x); }

/* Thumbnails rail (window of 8 with fade edges) */
#fc-modal-root .fc-thumbs {
  position: relative;
  background: #fff;
  padding: 10px 24px 46px;
  border-top: 1px solid rgba(0,0,0,.06);
}
#fc-modal-root .fc-thumbs-viewport{
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, #000 24px, #000 calc(100% - 24px), rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, #000 24px, #000 calc(100% - 24px), rgba(0,0,0,0) 100%);
}
#fc-modal-root .fc-thumbs-inner{
  display: flex; gap: 8px; justify-content: center; align-items: center;
  padding: 0 24px;
}
#fc-modal-root .fc-thumb {
  width: 80.223px; height: 69.568px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex: 0 0 auto;
  display: grid; place-items: center;
  background:#fff;
}
#fc-modal-root .fc-thumb img { max-width: 100%; max-height: 100%; display: block; }
#fc-modal-root .fc-thumb.is-active { border-color: var(--fc-blue); }


/* NEW: Thumbnail Navigation Arrows (Styling for the white background) */
#fc-modal-root .fc-thumb-prev,
#fc-modal-root .fc-thumb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--fc-thumb-arrow-w);
  height: var(--fc-thumb-arrow-w);
  border: none;
  background: #fff;
  color: #25323b;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  cursor: pointer;
  z-index: 6;
  border-radius: 4px;
}

#fc-modal-root .fc-thumb-prev { left: 8px; }
#fc-modal-root .fc-thumb-next { right: 8px; }

/* Bottom centered close */
#fc-modal-root .fc-bottom-close {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 10px;
  background: transparent; border: 0; color: #25323b;
  font: 500 13px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  cursor: pointer;
  z-index: 6;
}

.site-header { z-index: 2147483646; }
.fc-gallery img { cursor: zoom-in; }

.fc-prev, .fc-next {
  padding: 0 !important;
}

#fc-modal-root .fc-x {
  padding: 8px 12px !important;
}

.fc-panel {
  padding-top: 65px;
}


#fc-modal-root .fc-thumb-prev {
  left: -22px !important;
  height: 70px !important;
  box-shadow: none !important;
}
#fc-modal-root .fc-thumb-next {
  right: -5px !important;
  height: 70px !important;
  box-shadow: none !important;
}

.fc-thumbs {
  overflow: hidden !important;
  max-width: 800px !important;
  align-self: center !important;
}

.fc-panel{
  padding-bottom: 12px;
} 

#fc-modal-root .fc-bottom-close {
  bottom: 0;
}
