/* 
 * GIMS Dynamic Gallery - CSS Styles
 * Matches GIMS official theme (#36BA98 / #2aa889)
 */

:root {
    --gims-teal: #36BA98;
    --gims-teal-dark: #26a382;
    --gims-bg-light: #f8f9fa;
    --gims-text-dark: #333;
    --gims-text-muted: #666;
    --gims-radius: 8px;
    --gims-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.gallery-main {
    background-color: #fff;
    min-height: 80vh;
}

/* Breadcrumb Styling Override */
.breadcrumb__area {
    background-color: var(--gims-teal);
    position: relative;
    overflow: hidden;
}

.breadcrumb__title {
    color: #fff !important;
    font-weight: 700;
}

.breadcrumb__list a, .breadcrumb__list span {
    color: #eee !important;
}

/* Year Section */
.year-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gims-teal);
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    position: relative;
}

.year-title span::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--gims-teal);
}

/* Event Cards */
.event-card {
    background: #fff;
    border-radius: var(--gims-radius);
    overflow: hidden;
    box-shadow: var(--gims-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.event-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-thumb img {
    transform: scale(1.05);
}

.image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.event-info {
    padding: 15px;
    text-align: center;
}

.event-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gims-text-dark);
    margin: 0;
    text-transform: capitalize;
}

/* Image Grid (Inside Event) */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-image-wrapper {
    position: relative;
    border-radius: var(--gims-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background-color: #eee;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-img {
    transform: scale(1.03);
}

/* Back Button */
.back-btn {
    display: inline-block;
    color: var(--gims-teal);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--gims-teal-dark);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 60px;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
}

.lightbox-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 20px 15px;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.2s;
}

.lightbox-nav button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav .prev { left: 20px; border-radius: 0 4px 4px 0; }
.lightbox-nav .next { right: 20px; border-radius: 4px 0 0 4px; }

/* Responsive adjustments */
@media (max-width: 991px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-content {
        padding: 40px 10px;
    }
    .close-lightbox {
        right: 15px;
        top: 10px;
    }
}
