@charset "UTF-8";
/*  JavaScript 7th Edition
    Chapter 5
    Chapter Case

    Filename: lightbox.css
*/


/* --------------------------------------------------------------*/
/* Styles for the slideshow box containing the images and tools  */
/* --------------------------------------------------------------*/

/* Lightbox styles for the slideshow and modal */

/* Slideshow container */
#gallery {
   position: relative;
   width: 960px;
   margin: 0 auto;
   text-align: center;
}

/* Left and right arrows */
#leftBox, #rightBox {
   position: absolute;
   top: 50%;
   font-size: 3rem;
   font-weight: bold;
   color: #e60c0cf5;
   cursor: pointer;
   z-index: 10;
   padding: 0.5rem;
   background: rgba(0, 0, 0, 0.3);
   border-radius: 50%;
   -webkit-user-select: none; /* Safari 3+ */
   user-select: none;
   transition: background 0.3s;
}

#leftBox { left: 0; }
#rightBox { right: 0; }

#leftBox:hover, #rightBox:hover {
   background: rgba(231, 9, 9, 0.5);
}

/* Play/Pause button */
#playPause {
   position: absolute;
   top: 260px;
   left: 50%;
   transform: translateX(-50%);
   font-size: 2.2em;
   cursor: pointer;
   text-shadow: 3px 3px 20px rgb(165, 16, 16);
   -webkit-user-select: none; /* Safari 3+ */
   user-select: none;
   filter: grayscale(1);
}

#playPause:hover {
   filter: grayscale(0.6) hue-rotate(120deg);
}

/* Slide container */
#slideBox {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 15px;
   overflow: hidden;
   padding: 5px 0;
}

#slideBox img {
   width: 230px;
   height: auto;
   border: 2px solid #9C6908;
   border-radius: 8px;
   cursor: pointer;
   box-shadow: 3px 3px 10px black;
   transition: transform 0.3s ease, opacity 0.3s ease;
   opacity: 0.8;
}

#slideBox img:hover {
   transform: scale(1.05);
   opacity: 1;
}

/* Modal overlay */
#activeModal {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0,0,0,0.8);
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 9999;
}

/* Modal figure */
#activeModal figure {
   text-align: center;
   color: white;
}

#activeModal img {
   max-width: 90%;
   max-height: 80vh;
   border-radius: 10px;
   box-shadow: 5px 5px 20px black;
   animation: zoom 1s;
}

#activeModal figcaption {
   margin-top: 10px;
   font-size: 1.25em;
   animation: zoom 1s;
}

/* Modal close button */
#modalClose {
   position: absolute;
   top: 20px;
   right: 40px;
   font-size: 40px;
   color: #f1f1f1;
   cursor: pointer;
   -webkit-user-select: none; /* Safari 3+ */
   user-select: none;
}

#modalClose:hover {
   color: #F7F1A9;
   text-shadow: 3px 3px 0 black;
}

