/* Image Gallery Page Styles - Central University of Gujarat */

:root {
    --orange: #f57c00;
    --blue: #005cb9;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8f9fa;
}

.page-header {
    background: var(--orange);
    color: var(--white);
    margin-top: 24px;
    padding: 20px 0 !important;
    text-align: center;
}

.page-header h1 {
    font-size: 36px !important;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
}

.breadcrumb {
    background: #fff;
    font-size: 0.9rem;
    display: inline-block;
    /* Fit to text width */
    width: auto;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

.page-header h1 {
    font-weight: 600;
    color: var(--white) !important;
}

.main-content {
    padding: 60px 0;
}

.main-content h2 {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 20px;
}

.main-content p {
    text-align: justify;
}

.sidebar {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dean-message {
    background: var(--orange);
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.dean-photo {
    max-width: 140px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dean-message-content {
    flex: 1;
    min-width: 200px;
}

.dean-message h3 {
    font-weight: 700;
}

.dean-message p {
    text-align: justify;
}

.sidebar h4 {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 15px;
}

.sidebar ul {
    padding-left: 20px;
}

.sidebar ul li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.sidebar ul li a {
    text-decoration: none;
    color: var(--orange);
    font-weight: 500;
}

@media (max-width: 768px) {
    .page-header {
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 28px;
    }
}

/* Gallery Image Styles */
.gallery-img-box {
    width: 100%;
    height: 220px;
    /* Fixed height */
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-img-wrapper:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 92, 185, 0.75);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.gallery-img-wrapper:hover .gallery-caption {
    background: rgba(245, 124, 0, 0.85);
}

/* Gallery Cover Wrapper */
.gallery-cover-wrapper {
    max-width: 400px;
    /* Smaller width */
    height: 250px;
    /* Fixed height */
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop to fill the space */
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-cover-wrapper:hover .gallery-thumbnail {
    transform: scale(1.03);
}

.gallery-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-cover-wrapper:hover img {
    transform: scale(1.03);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 92, 185, 0.55);
    transition: opacity 0.3s ease;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-cover-wrapper:hover .gallery-overlay {
    opacity: 1;
}

/* Gallery Labels and Buttons */
.gallery-label {
    background-color: rgba(255, 255, 255, 0.9);
    color: #005cb9;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.view-gallery-btn {
    background-color: #f57c00;
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.view-gallery-btn:hover {
    background-color: #e26a00;
}