body {
    /*
        Gallery Page Styles
        - Professional background gradient
        - Font and layout for modern appearance
    */
    background: linear-gradient(135deg, #e6f0fa 0%, #f8fbff 100%);
    margin: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

.main-header{
    background-color: #001f3f;
    color: white;
    text-align: center;
    padding: 1.5rem 0 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.header-logo{
    font-weight: bold;
    font-size: 2.2rem;
    letter-spacing: 2px;
    text-shadow: 1px 2px 8px #0002;
}

.Gallery-footer{
    background-color: #001f3f;
    color: white;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
    margin-top: 2rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 1rem 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

.gallery-main {
    /*
        Centers the gallery section vertically and horizontally
    */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.gallery-section {
    /*
        Container for the gallery slider
        - Responsive max width
        - Card-like appearance
    */
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 1rem 2.5rem 1rem;
}

.gallery-slider {
    /*
        Main slider area
        - Holds all slides and navigation buttons
    */
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 350px;
}

.gallery-slide {
    /*
        Each slide is absolutely positioned and hidden by default
        - Only the .active slide is visible
        - Fade-in via opacity transition
    */
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
    opacity: 0;
    z-index: 1;
}

.gallery-slide.active {
    /*
        Show the active slide
    */
    display: flex;
    opacity: 1;
    z-index: 2;
}

.gallery-slide img {
    /*
        Responsive image with rounded corners and shadow
    */
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

.slide-caption {
    /*
        Caption overlay for each slide
        - Fades in with slide
        - Gradient background for readability
    */
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    background: linear-gradient(0deg, #001f3fcc 80%, #001f3f00 100%);
    padding: 1.2rem 0 0.7rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s, transform 0.7s;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.gallery-slide.active .slide-caption {
    /*
        Fade in the caption when slide is active
    */
    opacity: 1;
    transform: translateY(0);
}

.slide-caption h2 {
    margin: 0 0 0.3rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #0008;
}

.slide-caption p {
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 0 1px 6px #0006;
}

.gallery-nav {
    /*
        Navigation buttons (left/right)
        - Circular, floating over the slider
    */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #001f3fcc;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #001f3f33;
}
.gallery-nav.left {
    left: 16px;
}
.gallery-nav.right {
    right: 16px;
}
.gallery-nav:hover {
    background: #003366;
    box-shadow: 0 4px 16px #001f3f55;
}
