/* Award Gallery Styles */
.photo-gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-title {
    color: #004080;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.gallery-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px;
}

.gallery-stats {
    margin-top: 15px;
}

.awards-count {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Gallery Container */
.gallery-container {
    margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--gallery-columns, 4), 1fr);
    gap: 25px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 3px solid var(--border-color, #007bff);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-container {
    position: relative;
    aspect-ratio: var(--aspect-ratio, 12/9);
    overflow: hidden;
    background: #f8f9fa;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 15px;
    transition: transform 0.3s ease;
}

.gallery-item:hover .image-container img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.view-btn {
    background: white;
    color: #007bff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

.image-title {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    background: white;
    border-top: 1px solid #eee;
}

/* No Images Message */
.no-images-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ccc;
}

.no-images-message i {
    display: block;
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

/* Lightbox Styles */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.lightbox-close:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10000;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-btn:hover {
    background: #007bff;
    transform: scale(1.1);
}

.lightbox-image-container {
    width: 100%;
    /*height: calc(90vh - 80px);*/
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    padding: 20px;
}

.lightbox-caption {
    padding: 20px;
    text-align: center;
    background: white;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .photo-gallery-wrapper {
        padding: 30px 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gallery-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .gallery-title {
        font-size: 1.8rem;
    }

    .gallery-header {
        margin-bottom: 30px;
    }

    .lightbox-content {
        width: 95vw;
    }

    .lightbox-image-container {
        height: calc(90vh - 60px);
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .photo-gallery-wrapper {
        padding: 20px 10px;
    }

    .gallery-title {
        font-size: 1.6rem;
    }

    .no-images-message {
        padding: 40px 15px;
        font-size: 1rem;
    }

    .no-images-message i {
        font-size: 2.5rem;
    }
}