@charset "utf-8";
/* CSS Document */

/* =================================================== */
/* GLOBAL/GENERAL STYLES */
/* =================================================== */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

main {
    max-width: 960px;
    margin: 20px auto;
    padding: 0 15px;
}

h1 {
    font-size: 21px; 
    text-align: center;
    margin: 0 0 20px 0;
}

h1 img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #007bff; 
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =================================================== */
/* INTERACTIVE CAROUSEL STYLES */
/* =================================================== */

.carousel-title {
    text-align: center;
    margin-top: 40px;
    font-size: 1.8em;
    color: #2c3e50;
}

.carousel-container {
    width: 90%; 
    max-width: 800px;
    margin: 20px auto; 
    overflow: hidden;
    position: relative;
    border: 5px solid #ecf0f1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    /* Height for clear space below caption and dot navigation */
    height: 515px; 
}

/* Hide the radio buttons from view */
.carousel-container input[type="radio"] {
    display: none;
}

.carousel-track {
    display: flex;
    width: 1100%; 
    height: 100%; 
    transition: transform 0.4s ease-in-out; 
}

.carousel-slide {
    width: 9.0909%; 
    flex-shrink: 0;
    text-align: center;
    height: 100%; 
    
    /* Flexbox for centering and stacking */
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    margin: 0; 
    padding-top: 10px; 
    box-sizing: border-box; 
}

.carousel-slide img {
    width: 100%;
    /* Max height set to leave sufficient space for caption and dots */
    max-height: 80%; 
    object-fit: contain; 
    display: block;
    margin: auto; 
    padding: 0; 
    flex-grow: 0; 
}

.carousel-slide figcaption {
    /* Guarantees the caption keeps its size and is not squeezed out */
    flex-shrink: 0; 
    
    /* Sizing and Styling */
    height: auto; 
    padding: 12px;
    font-style: italic;
    font-size: 0.9em;
    background-color: #f4f4f4;
    color: #555;
    width: 100%;
    box-sizing: border-box; 
    text-align: center;
}


/* --- SLIDE MOVEMENT LOGIC (Corrected Precision) --- */

#slide-1:checked ~ .carousel-track { transform: translateX(0%); }
#slide-2:checked ~ .carousel-track { transform: translateX(-9.090909%); }
#slide-3:checked ~ .carousel-track { transform: translateX(-18.181818%); }
#slide-4:checked ~ .carousel-track { transform: translateX(-27.272727%); }
#slide-5:checked ~ .carousel-track { transform: translateX(-36.363636%); }
#slide-6:checked ~ .carousel-track { transform: translateX(-45.454545%); }
#slide-7:checked ~ .carousel-track { transform: translateX(-54.545454%); }
#slide-8:checked ~ .carousel-track { transform: translateX(-63.636363%); }
#slide-9:checked ~ .carousel-track { transform: translateX(-72.727272%); }
#slide-10:checked ~ .carousel-track { transform: translateX(-81.818181%); }
#slide-11:checked ~ .carousel-track { transform: translateX(-90.909090%); }


/* --- ARROW NAVIGATION STYLING (Unchanged) --- */

.arrows label {
    display: none; 
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.arrows label:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

.prev-arrow::after {
    content: "\276E";
}

.next-arrow::after {
    content: "\276F";
}

/* --- DOT NAVIGATION STYLES --- */

.dot-nav {
    position: absolute;
    /* Positioned to be clear of the caption text */
    bottom: -10px; 
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot-nav .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Highlight the dot for the currently checked slide */
#slide-1:checked ~ .dot-nav label[for="slide-1"],
#slide-2:checked ~ .dot-nav label[for="slide-2"],
#slide-3:checked ~ .dot-nav label[for="slide-3"],
#slide-4:checked ~ .dot-nav label[for="slide-4"],
#slide-5:checked ~ .dot-nav label[for="slide-5"],
#slide-6:checked ~ .dot-nav label[for="slide-6"],
#slide-7:checked ~ .dot-nav label[for="slide-7"],
#slide-8:checked ~ .dot-nav label[for="slide-8"],
#slide-9:checked ~ .dot-nav label[for="slide-9"],
#slide-10:checked ~ .dot-nav label[for="slide-10"],
#slide-11:checked ~ .dot-nav label[for="slide-11"] {
    background: #007bff;
}

/* ARROW VISIBILITY LOGIC (Final and Explicit Correction for Seamless Travel) */

/* The following block ensures two arrows are visible for every checked slide: 
   The arrow to go to the PREVIOUS slide (left arrow) 
   AND the arrow to go to the NEXT slide (right arrow). */


/* Slide 1: Previous is 11, Next is 2 */
/* Slide 1 */
#slide-1:checked  ~ .arrows label.prev-arrow[for="slide-11"],
#slide-1:checked  ~ .arrows label.next-arrow[for="slide-2"]  { display:block; }

/* Slide 2 */
#slide-2:checked  ~ .arrows label.prev-arrow[for="slide-1"],
#slide-2:checked  ~ .arrows label.next-arrow[for="slide-3"]  { display:block; }

/* Slide 3 */
#slide-3:checked  ~ .arrows label.prev-arrow[for="slide-2"],
#slide-3:checked  ~ .arrows label.next-arrow[for="slide-4"]  { display:block; }

/* Slide 4 */
#slide-4:checked  ~ .arrows label.prev-arrow[for="slide-3"],
#slide-4:checked  ~ .arrows label.next-arrow[for="slide-5"]  { display:block; }

/* Slide 5 */
#slide-5:checked  ~ .arrows label.prev-arrow[for="slide-4"],
#slide-5:checked  ~ .arrows label.next-arrow[for="slide-6"]  { display:block; }

/* Slide 6 */
#slide-6:checked  ~ .arrows label.prev-arrow[for="slide-5"],
#slide-6:checked  ~ .arrows label.next-arrow[for="slide-7"]  { display:block; }

/* Slide 7 */
#slide-7:checked  ~ .arrows label.prev-arrow[for="slide-6"],
#slide-7:checked  ~ .arrows label.next-arrow[for="slide-8"]  { display:block; }

/* Slide 8 */
#slide-8:checked  ~ .arrows label.prev-arrow[for="slide-7"],
#slide-8:checked  ~ .arrows label.next-arrow[for="slide-9"]  { display:block; }

/* Slide 9 */
#slide-9:checked  ~ .arrows label.prev-arrow[for="slide-8"],
#slide-9:checked  ~ .arrows label.next-arrow[for="slide-10"] { display:block; }

/* Slide 10 */
#slide-10:checked ~ .arrows label.prev-arrow[for="slide-9"],
#slide-10:checked ~ .arrows label.next-arrow[for="slide-11"] { display:block; }

/* Slide 11 (loop) */
#slide-11:checked ~ .arrows label.prev-arrow[for="slide-10"],
#slide-11:checked ~ .arrows label.next-arrow[for="slide-1"]  { display:block; }

/* =================================================== */
/* MODAL / LIGHTBOX STYLES */
/* =================================================== */

/* The Modal (Shadow Box) itself */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 200; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 25px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 700px;
    border-radius: 8px;
    position: relative;
}

/* The Close Button */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    padding: 0 5px;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* Styling for the PDF Download Link */
.download-link {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    background-color: #007bff;
    color: white !important; /* Override default link color */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.download-link:hover {
    background-color: #0056b3;
}

/* Responsive Video Container for Charlotte's entry */
.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    height: 0;
    margin-top: 15px;
}

.video-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}
/* --- CSS for Portrait Video Framing (Add to styles.css) --- */

/* Ensures the video container is centered in the modal content */
.video-portrait-responsive {
    /* Adjust max-width to control the portrait frame width */
    max-width: 400px; /* Example: Adjust this for desired width */
    margin: 15px auto; /* Centers the container horizontally */
    position: relative;
    /* Ratio for standard portrait video (e.g., 9:16) */
    padding-bottom: 177.77%; /* (16 / 9) * 100% = 177.77% */
    height: 0;
    overflow: hidden;
    background-color: #000; /* Black background behind video */
}

/* The video element itself */
.portrait-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* CRITICAL: Ensures the video fits perfectly within the portrait frame */
}
