/* ===========================================
   PHOTOS.CSS - Campus/Photos Page Specific Styles
   =========================================== */

/* ===========================================
   PHOTO GALLERY LAYOUT
   =========================================== */

.photo-gallery {
    background-color: #f8f9fa;
    overflow: hidden;
    width: 100%;
}

#campus-container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.campus-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-top: 0px;
    padding-bottom: 230px;
    position: relative;
    width: 100%;
}

#campus-banner {
    z-index: 0;
    width: 100%;
    position: absolute;
    border-radius: 0;
}

#campus-banner img {
    width: 100%;
    border-radius: 0;
    transform: translateY(-40%);
}

#campus-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    background: linear-gradient(to top, #ffffff 55%, rgba(255, 255, 255, 0));
}

#campus-title {
    padding-top: 50px;
    z-index: 2;
    color: #F5E6B8;
    font-size: 2.8rem;
}

#campus-subtitle {
    z-index: 2;
    color: #f9f9f9;
}

/* ===========================================
   SLIDER COMPONENT
   =========================================== */

.slider {
    position: relative;
    width: 600px;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.slides {
    display: flex;
    transition: transform 0.6s ease;
}

.slides img {
    width: 600px;
    height: 450px;
    object-fit: cover;
    flex-shrink: 0;
}

.controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 20px;
    height: 5px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
    cursor: pointer;
    transition: all 0.3s;
    padding-top: 3px;
}

.control-btn:hover {
    transform: translateY(-1px);
}

.control-btn.active {
    background: #fff;
}

/* ===========================================
   SCHOOL OVERVIEW SECTION
   =========================================== */

.school-overview {
    display: flex;
    flex-direction: row;
    padding: 100px 60px 75px 100px;
    align-items: center;
}

.cpage-text {
    padding-bottom: 10px;
    flex: 1;
    max-width: 50%;
}

.cpage-text p {
    margin-top: 30px;
    font-size: 1.2rem;
    color: #555555;
}

.cpage-text h1 {
    font-size: 2rem;
    color: #094d6b;
}

#overview-text {
    margin-right: 50px;
}

.school-overview .slider {
    flex-shrink: 0;
    width: 600px;
    height: 450px;
}

/* ===========================================
   LABS SECTION
   =========================================== */

.labs {
    display: flex;
    padding: 50px 100px 100px 60px;
    background-color: #f9f9f9;
    flex-direction: row-reverse;
}
#lab-text{
    margin-left: 3rem;
}

/* ===========================================
   DORMS SECTION
   =========================================== */

.dorms {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0 50px;
}

#dorms-text {
    width: 90%;
    text-align: center;
    margin-bottom: 20px;
    max-width: 800px;
}

#dorms-text p {
    max-width: 100%;
}

#dorms-slider {
    width: 600px;
    height: 300px;
}

#dorms-slider .slides img {
    width: 600px;
    height: 300px;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */


@media (max-width: 1150px) {
    .campus-header {
        padding-bottom: 150px;
    }
    
    .slider {
        width: 480px;
        height: 300px;
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    
    .slides img {
        width: 480px;
        height: 300px;
    }
    
    .school-overview {
        padding: 10px;
        flex-direction: column;
    }
    
    .school-overview .slider {
        width: 480px;
        height: 300px;
    }
    
    .labs {
        margin-top: 20px;
        padding: 10px;
        flex-direction: column;
        align-items: center;
    }
    #lab-text{
        margin-left: 0;
        width: 800px;
    }
    
    #overview-text {
        margin-right: 0;
        margin-bottom: 20px;
        width: 800px;
    }
    
    .cpage-text h1 {
        font-size: 1.8rem;
    }
    
    .cpage-text p {
        font-size: 1.1rem;
    }
    
    #dorms-text {
        width: 90%;
    }
    
    #dorms-slider {
        width: 480px;
        height: 300px;
    }
    
    #dorms-slider .slides img {
        width: 480px;
        height: 300px;
    }
    
    #campus-title {
        font-size: 2.2rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .campus-header {
        padding-bottom: 100px;
    }
    
    .slider {
        width: 320px;
        height: 240px;
        border-radius: 12px;
    }
    
    .slides img {
        width: 320px;
        height: 240px;
    }
    
    .school-overview .slider {
        width: 320px;
        height: 240px;
    }
    
    .cpage-text h1 {
        font-size: 1.5rem;
    }
    
    .cpage-text p {
        font-size: 1rem;
    }
    
    #campus-title {
        font-size: 1.8rem;
        padding-top: 30px;
    }
    
    .dorms {
        padding: 30px 0;
    }
    
    #dorms-slider {
        width: 320px;
        height: 240px;
    }
    
    #dorms-slider .slides img {
        width: 320px;
        height: 240px;
    }
}
