﻿/* ====================================
   Gallery Hero Section
   ==================================== */
.gallery_pic_hero_section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5faff 0%, #e8f4ff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery_pic_hero_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0a7cc4, #4fc3f7);
}

.gallery_pic_hero_content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery_pic_main_title {
    color: #1a1a1a;
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.gallery_pic_hero_divider {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #0a7cc4, #4fc3f7);
    margin: 20px auto;
    border-radius: 2px;
}

.gallery_pic_hero_subtitle {
    color: #0a7cc4;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery_pic_tagline {
    color: #666;
    font-size: 18px;
    font-style: italic;
    margin-top: 10px;
}

/* ====================================
   Gallery Main Section - UPDATED BACKGROUND
   ==================================== */
.gallery_pic_main_section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    position: relative;
    overflow: hidden;
}

.gallery_pic_main_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 195, 247, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(10, 124, 196, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.gallery_pic_main_section .container {
    position: relative;
    z-index: 1;
}

.gallery_pic_header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery_pic_section_title {
    color: #1a1a1a;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.gallery_pic_single_blue_line {
    width: 80px;
    height: 2px;
    background: #0a7cc4;
    margin: 0 auto 20px;
}

.gallery_pic_section_desc {
    color: #555555;
    font-size: 17px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* ====================================
   Gallery Grid
   ==================================== */
.gallery_pic_grid_container {
    margin-bottom: 0;
}

.gallery_pic_grid_row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.gallery_pic_grid_row:last-child {
    margin-bottom: 0;
}

.gallery_pic_item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s ease;
}

/* Professional Image Box - REMOVED BLUE BORDER */
.gallery_pic_image_wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    height: 280px;
    border: 6px solid white;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    background: #ffffff;
    padding: 2px;
}

.gallery_pic_image_wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 25px 60px rgba(10, 124, 196, 0.2),
        0 15px 35px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.gallery_pic_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    border-radius: 8px;
}

.gallery_pic_image_wrapper:hover .gallery_pic_img {
    transform: scale(1.08);
}

/* Gallery Overlay */
.gallery_pic_overlay {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(10, 124, 196, 0.92), rgba(79, 195, 247, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 8px;
}

.gallery_pic_image_wrapper:hover .gallery_pic_overlay {
    opacity: 1;
}

.gallery_pic_overlay_content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery_pic_image_wrapper:hover .gallery_pic_overlay_content {
    transform: translateY(0);
}

/* Magnifier Icon */
.gallery_pic_magnifier {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #0a7cc4;
    font-size: 28px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.gallery_pic_image_wrapper:hover .gallery_pic_magnifier {
    background: linear-gradient(135deg, #0a7cc4, #4fc3f7);
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ====================================
   Lightbox Modal - MAXIMUM SIZE
   ==================================== */
.gallery_pic_lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery_pic_lightbox.active {
    opacity: 1;
}

.gallery_pic_lightbox_content {
    position: relative;
    width: 95%;
    height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery_pic_lightbox_close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 42px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.6);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.gallery_pic_lightbox_close:hover {
    color: #4fc3f7;
    background: rgba(10, 124, 196, 0.9);
    border-color: #0a7cc4;
    transform: scale(1.1);
}

.gallery_pic_lightbox_nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10001;
}

.gallery_pic_lightbox_prev,
.gallery_pic_lightbox_next {
    width: 65px;
    height: 65px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery_pic_lightbox_prev:hover,
.gallery_pic_lightbox_next:hover {
    background: rgba(10, 124, 196, 0.95);
    border-color: #0a7cc4;
    transform: scale(1.15);
}

.gallery_pic_lightbox_image_container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.gallery_pic_lightbox_img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ====================================
   Animation Classes
   ==================================== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-down"] {
    transform: translateY(-40px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 1200px) {
    .gallery_pic_grid_row {
        gap: 25px;
        max-width: 1000px;
    }
}

@media (max-width: 991px) {
    .gallery_pic_grid_row {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        gap: 25px;
    }
    
    .gallery_pic_main_title {
        font-size: 38px;
    }
    
    .gallery_pic_hero_subtitle {
        font-size: 24px;
    }
    
    .gallery_pic_section_title {
        font-size: 32px;
    }
    
    .gallery_pic_image_wrapper {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .gallery_pic_hero_section {
        padding: 100px 0 60px;
    }
    
    .gallery_pic_main_section {
        padding: 60px 0;
    }
    
    .gallery_pic_main_title {
        font-size: 32px;
    }
    
    .gallery_pic_hero_subtitle {
        font-size: 22px;
    }
    
    .gallery_pic_tagline {
        font-size: 16px;
    }
    
    .gallery_pic_section_title {
        font-size: 28px;
    }
    
    .gallery_pic_section_desc {
        font-size: 16px;
    }
    
    .gallery_pic_image_wrapper {
        height: 240px;
        border-width: 5px;
    }
    
    .gallery_pic_magnifier {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .gallery_pic_lightbox_content {
        width: 98%;
        height: 98%;
    }
    
    .gallery_pic_lightbox_close {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 36px;
    }
    
    .gallery_pic_lightbox_prev,
    .gallery_pic_lightbox_next {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .gallery_pic_grid_row {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 25px;
    }
    
    .gallery_pic_main_title {
        font-size: 28px;
    }
    
    .gallery_pic_hero_subtitle {
        font-size: 20px;
    }
    
    .gallery_pic_section_title {
        font-size: 26px;
    }
    
    .gallery_pic_image_wrapper {
        height: 220px;
        border-width: 4px;
    }
    
    .gallery_pic_magnifier {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .gallery_pic_lightbox_close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 30px;
    }
    
    .gallery_pic_lightbox_prev,
    .gallery_pic_lightbox_next {
        width: 50px;
        height: 50px;
        font-size: 20px;
        padding: 0 15px;
    }
}