/* -----------------------------
   Reusable Slideshow / Gallery CSS
   File: static/styles/gallery.css
   ----------------------------- */

   * { box-sizing: border-box; }

   .container-gallery {
     position: relative;
     width: 100%;
     max-width: 920px;
     margin: 0 auto 30px auto;
     padding: 10px 0 0 0;
   }
   
   .mySlides {
     display: none;
   }
   
   .mySlides img.image {
     width: 100%;
     max-height: 520px;
     object-fit: contain;
     display: block;
     margin: 0 auto;
   }
   
   .numbertext {
     position: absolute;
     top: 10px;
     left: 12px;
     padding: 6px 10px;
     font-size: 12px;
     border-radius: 999px;
     background: rgba(0, 0, 0, 0.55);
     color: #fff;
   }
   
   .prev,
   .next {
     cursor: pointer;
     position: absolute;
     top: 45%;
     transform: translateY(-50%);
     padding: 12px 14px;
     font-size: 22px;
     font-weight: 700;
     user-select: none;
     border-radius: 999px;
     background: rgba(0, 0, 0, 0.35);
     color: #fff;
     transition: background 0.15s ease;
   }
   
   .prev:hover,
   .next:hover {
     background: rgba(0, 0, 0, 0.55);
   }
   
   .prev { left: 10px; }
   .next { right: 10px; }
   
   .caption-container {
     text-align: center;
     padding: 10px 14px;
     margin-top: 10px;
     border-radius: 10px;
     background: #f6f6f6;
   }
   
   #caption {
     margin: 0;
     font-size: 14px;
   }
   
   .row {
     margin-top: 12px;
     display: flex;
     gap: 10px;
     flex-wrap: wrap;
     justify-content: center;
   }
   
   .column {
     flex: 0 0 auto;
     width: 120px;
   }
   
   .demo {
     width: 100%;
     height: 74px;
     object-fit: cover;
     border-radius: 10px;
     cursor: pointer;
     opacity: 0.65;
     border: 2px solid transparent;
     transition: opacity 0.15s ease, border-color 0.15s ease;
   }
   
   .demo:hover {
     opacity: 1;
   }
   
   .demo.active {
     opacity: 1;
     border-color: #7f2549;
   }
   
   @media (max-width: 520px) {
     .column { width: 90px; }
     .demo { height: 58px; }
     .prev, .next { font-size: 18px; padding: 10px 12px; }
   }

/* Add this to the bottom of static/styles/career.css */

/* -----------------------------
   W3Schools-style Image Compare
   ----------------------------- */

   .img-comp-container {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    height: 520px; /* match your gallery max-height */
    border-radius: 12px;
    overflow: hidden;
    background: #000; /* looks good with contain */
  }
  
  .img-comp-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .img-comp-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* behaves like your .image class */
    vertical-align: middle;
    user-select: none;
    pointer-events: none;
  }
  
  .img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    width: 40px;
    height: 40px;
    background: #2196F3;
    opacity: 0.7;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
  }
  
  /* optional: make it nicer on mobile */
  @media (max-width: 520px) {
    .img-comp-container { height: 360px; }
    .img-comp-slider { width: 34px; height: 34px; }
  }
  