/* static/css/gallery.css */
/* ===== Base Styles ===== */
:root {
    --primary: #0e5a5f;
    --secondary: #57C5B6;
    --accent: #FEA82F;
    --light: #f8f9fa;
    --dark: #212529;
    --text: #495057;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.5px;
}

h1 {
    font-weight: 700;
    letter-spacing: -1px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ===== Navigation ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(14, 90, 95, 0.7);
    backdrop-filter: blur(10px);
}

nav.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 24px;
}

/* ===== Gallery Page Styles ===== */
.gallery-header {
    background-color: var(--primary);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    height: 70vh;
}

.gallery-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: white;
}

.gallery-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    opacity: 0.9;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    color: white;
}

.filter-btn.active {
    font-weight: 600;
}

/* Mobile-Style Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1;
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Gallery Styles */
.video-section {
    padding: 60px 0;
    background: #f1f7fa;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: white;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    background-color: #ddd;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.play-icon i {
    color: var(--accent);
    font-size: 20px;
    margin-left: 4px;
}

.video-card:hover .play-icon {
    background: var(--accent);
}

.video-card:hover .play-icon i {
    color: white;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    margin-bottom: 8px;
    font-size: 18px;
    color: var(--dark);
}

.video-info p {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 14px;
}

.video-duration {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== Lightbox Overlay ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border: 3px solid white;
    border-radius: 5px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3000;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--accent);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    width: 90%;
    max-width: 800px;
    position: relative;
}

.video-modal-content video {
    width: 100%;
    border-radius: 8px;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.video-close:hover {
    color: var(--accent);
}

/* ===== Footer (Matched with About Page) ===== */
footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent);
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

.footer-links a:before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 20px;
}

.footer-contact-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--accent);
    margin-right: 15px;
    margin-top: 5px;
}

.footer-contact-item div {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
    font-size: 14px;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .burger {
        display: block;
    }

    .section {
        padding: 60px 0;
    }

    .gallery-header {
        padding: 100px 0 40px;
    }

    .gallery-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .gallery-header h1 {
        font-size: 28px;
    }
}