/* Professional Gallery Styles */

.gallery-tabs {
    margin-bottom: 40px;
    text-align: center;
}

.gallery-tabs .nav-tabs {
    border: none;
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 5px;
}

.gallery-tabs .nav-tabs li {
    float: none;
    display: inline-block;
}

.gallery-tabs .nav-tabs li a {
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    margin: 0 5px;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.gallery-tabs .nav-tabs li a:hover {
    color: #264676;
    background: #fff;
    border: none;
}

.gallery-tabs .nav-tabs li.active a,
.gallery-tabs .nav-tabs li.active a:hover,
.gallery-tabs .nav-tabs li.active a:focus {
    background: #264676;
    color: #fff;
    box-shadow: 0 4px 15px rgba(38, 70, 118, 0.3);
    border: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img,
.gallery-item .video-thumbnail {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:hover .video-thumbnail {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(38, 70, 118, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #fff;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item .gallery-overlay-content {
    width: 100%;
}

.gallery-item .gallery-overlay h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.gallery-item .gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.gallery-item .gallery-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(38, 70, 118, 0.9);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.gallery-item .gallery-type-badge.video-badge {
    background: rgba(220, 53, 69, 0.9);
}

.gallery-item .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(220, 53, 69, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .play-button {
    background: rgba(220, 53, 69, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-item .play-button i {
    margin-left: 4px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal-content .close-video {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.video-modal-content .close-video:hover {
    color: #dc3545;
}

.video-modal-content iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* Album Filter */
.album-filter {
    margin-bottom: 30px;
    text-align: center;
}

.album-filter .filter-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.album-filter .filter-btn:hover,
.album-filter .filter-btn.active {
    background: #264676;
    border-color: #264676;
    color: #fff;
}

/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 80px 20px;
}

.gallery-empty i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.gallery-empty h3 {
    color: #666;
    margin-bottom: 10px;
}

.gallery-empty p {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-item img,
    .gallery-item .video-thumbnail {
        height: 200px;
    }
    
    .video-modal-content iframe {
        height: 300px;
    }
    
    .gallery-tabs .nav-tabs li a {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery-item img,
    .gallery-item .video-thumbnail {
        height: 150px;
    }
}

/* Home Page Gallery Styles */
.gallery-professional-section {
    padding: 80px 0;
}

.gallery-item-wrapper {
    margin-bottom: 25px;
}

.gallery-item-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item-card .gallery-img {
    position: relative;
    overflow: hidden;
    height: 220px;
    width: 100%;
}

.gallery-item-card .gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item-card .gallery-img > div {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item-card:hover .gallery-img img {
    transform: scale(1.05);
}

.gallery-item-card .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 70, 118, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-card .gallery-overlay i {
    font-size: 40px;
    margin-bottom: 10px;
}

.gallery-item-card .gallery-overlay.video-overlay {
    background: rgba(38, 70, 118, 0.8);
}

.gallery-item-card .gallery-overlay.video-overlay i {
    font-size: 50px;
    margin-bottom: 15px;
    color: #fff;
}

.gallery-item-card .gallery-overlay h4 {
    margin: 0;
    font-size: 18px;
    text-align: center;
    padding: 0 15px;
}

.gallery-empty-state {
    padding: 60px 20px;
}

.gallery-empty-state i {
    color: #264676;
    opacity: 0.5;
}

/* Responsive adjustments for home gallery */
@media (max-width: 768px) {
    .gallery-item-card .gallery-img {
        height: 180px;
    }
    
    .gallery-item-card .gallery-img img,
    .gallery-item-card .gallery-img > div {
        min-height: 180px;
        height: 180px;
    }
    
    .gallery-item-card .gallery-overlay i {
        font-size: 30px;
    }
    
    .gallery-item-card .gallery-overlay h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-item-card .gallery-img {
        height: 150px;
    }
    
    .gallery-item-card .gallery-img img,
    .gallery-item-card .gallery-img > div {
        min-height: 150px;
        height: 150px;
    }
}

