/* Basic Reset and Global Styles */
body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
    background-color: #e9eff4; /* Light background to make the gallery pop */
}

h1 {
    color: #333;
    margin-bottom: 1px;
}

/* --- GALLERY CONTAINER (THE ORBITAL HUB) --- */
.gallery-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1400px;
    margin: 100px 0;
    padding: 165px 10px;
    background-color: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* Stronger shadow for a 'hub' feel */
    border-radius: 15px;
}

/* Photo Orbit Display - The center point of the wheel */
.photo-orbit-display {
    position: relative;
    width: 320px; /* Size of the central focus point/gallery hub */
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #4a90e2 0%, #2c3e50 100%); /* Deep blue glow background */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7), 0 0 30px rgba(74, 144, 226, 0.8); /* Glow effect */
}

/* Individual Image Elements in the Orbit */
.photo-item {
position: absolute;
    /* Anchor to the exact center of the blue hub */
    top: 50%;
    left: 50%;
    /* Pull the image back by half its width (150/2) and height (150/2) so it centers perfectly */
    margin-top: -75px; 
    margin-left: -75px; 
    width: 115px; 
    height: 115px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 4px solid #fff; 
    z-index: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* State when the photo is selected (the central focus) */
.photo-item.is-active {
    width: 270px;
    height: 270px;
    /* Adjust margins for the new larger size (215/2) to keep it centered */
    margin-top: -137.5px;
    margin-left: -137.5px;
    
    border-color: #e74c3c; 
    box-shadow: 0 0 25px rgba(231, 76, 60, 0.8); 
    z-index: 10;
}


.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease-in-out; /* Smooth image transformation */
}

/* Arrows (These remain outside the orbit container) */
button {
    background: #e74c3c; /* Use a contrasting red/orange color */
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.8em;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    z-index: 10;
    border-radius: 50%; /* Make buttons round */
    box-shadow: 0 4px #c0392b;
}

button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px #a93226;
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 2px #8d2e25;
}

/* Description Box Styling (Remains the same) */
.description-box {
    width: 70%;
    max-width: 400px;
    text-align: center; /* Align text left for better readability */
    /* margin-top: 50px; /* Added space above description */
    padding-right: 20px;
    background-color: #ecf0f1;
    border-radius: 50px;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.1);
}

#imageTitle {
    margin-top: 10;
    text-align: center;
    color: #2c3e50;
    font-size: 1.8em;
    border-bottom: 2px solid #bdc3c7;
    padding-bottom: 15px;
}

#imageDescription {
    line-height: 1.6;
    color: #4a4a4a;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
}

/* --- LIGHTBOX OVERLAY --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Semi-transparent black */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* Optional: adds a nice blur to the background */
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 4px solid #fff;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1001;
}

.close-lightbox:hover {
    color: #e74c3c; /* Matches your theme's red/orange */
}