/* Gallery Page Styles */

.gallery-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-header-container {
    position: relative;
    z-index: 2;
}

.gallery-header-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.gallery-header-desc {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-header-shape {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.gallery-grid-section {
    padding: 100px 0;
    background: var(--bg-accent);
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    height: 300px;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 122, 133, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.overlay-icon {
    color: white;
    font-size: 40px;
    margin-bottom: 10px;
}

.overlay-title {
    color: white;
    font-weight: 800;
    font-size: 18px;
    text-align: center;
    padding: 0 20px;
}

/* Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    border: 5px solid white;
}

.modal-caption {
    background: var(--white);
    color: var(--primary);
    padding: 15px 30px;
    text-align: center;
    border-radius: 40px;
    margin-top: 20px;
    font-weight: 800;
    font-size: 20px;
    box-shadow: var(--shadow-md);
}

.modal-close-btn {
    position: absolute;
    top: -60px;
    right: 0;
    background: var(--secondary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}