/* ===========================
   GLOBAL
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:#F5F5DC;
    color:#333;
    overflow-x:hidden;
}

/* ===========================
   HEADER
=========================== */

header{
    background:linear-gradient(90deg,#0b5c74,#1976a2);
    color:white;
    text-align:center;
    padding:10px;
}

header h1{
    font-size:42px;
    margin-bottom:5px;
}

header p{
    font-size:18px;
    max-width:900px;
    margin:auto;
    line-height:1.6;
}

/* ===========================
   NAVIGATION
=========================== */

nav{
    background:#1f4f66;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    padding:10px;
    flex-wrap:wrap;
}

nav a{
    color:white;
    text-decoration:none;
    font-size:18px;
    font-weight:bold;
    padding:10px 18px;
    border-radius:25px;
    transition:.3s;
}

nav a:hover,
nav a.active{
    background:gold;
    color:black;
}

/* ===========================
   BANNER
=========================== */

.banner{
    background:url("../Assets/gallery-banner.jpg") center center/cover no-repeat;
    height:140px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.banner h1{
    background:rgba(24,197,209,.75);
    padding:15px 35px;
    border-radius:12px;
    color:#000;
    font-size:30px;
    text-align:center;
}

/* ===========================
   INTRO
=========================== */

.intro{
    width:90%;
    max-width:900px;
    margin:30px auto;
    text-align:center;
}

.intro h2{
    color:#005792;
    margin-bottom:20px;
    font-size:34px;
}

.intro p{
    font-size:19px;
    line-height:1.8;
}

/* ===========================
   GALLERY
=========================== */

.gallery{
    width:92%;
    max-width:1400px;
    margin:40px auto;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
}

.photo{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.18);
    transition:.4s;
    display:flex;
    flex-direction:column;
}

.photo:hover{
    transform:translateY(-8px);
}

.photo img{
    width:100%;
    height:300px;
    object-fit:cover;
    transition:.4s;
}

.photo:hover img{
    transform:scale(1.05);
}

.photo h3{
    color:#005792;
    font-size:24px;
    text-align:center;
    padding:18px 15px 10px;
}

.photo p{
    padding:0 20px 25px;
    text-align:center;
    font-size:17px;
    line-height:1.7;
}

/* ===========================
   LOADING
=========================== */

.loading{
    grid-column:1/-1;
    text-align:center;
    font-size:28px;
    color:#005792;
    padding:80px;
}

/* ===========================
   LIGHTBOX
=========================== */

.lightbox{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.95);
    justify-content:center;
    align-items:center;
    flex-direction:column;
    z-index:99999;
}

.lightbox img{
    max-width:90%;
    max-height:80%;
    border-radius:15px;
}

.lightbox h2{
    color:white;
    margin-top:20px;
    font-size:28px;
    text-align:center;
}

.close{
    position:absolute;
    top:15px;
    right:25px;
    font-size:50px;
    color:white;
    cursor:pointer;
}

.close:hover{
    color:gold;
}

/* ===========================
   FOOTER
=========================== */

footer{
    background:#1f4f66;
    color:white;
    text-align:center;
    padding:25px;
    margin-top:50px;
}

/* ===========================
   TABLETS
=========================== */

@media (max-width:900px){

    header h1{
        font-size:30px;
    }

    .banner{
        height:120px;
    }

    .banner h1{
        font-size:24px;
        padding:10px 20px;
    }

    .gallery{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

    .photo img{
        height:220px;
    }
}

/* ===========================
   PHONES
=========================== */

@media (max-width:768px){

    .gallery{
        grid-template-columns:1fr;
    }

    .photo img{
        height:240px;
    }
}

@media (max-width:480px){

    nav{
        gap:8px;
    }

    nav a{
        font-size:14px;
        padding:8px 12px;
    }

    .banner{
        height:100px;
    }

    .banner h1{
        font-size:20px;
        padding:8px 16px;
    }

    .intro h2{
        font-size:24px;
    }

    .intro p{
        font-size:16px;
    }

    .photo img{
        height:200px;
    }

    .photo h3{
        font-size:20px;
    }

    .photo p{
        font-size:15px;
    }

    .lightbox h2{
        font-size:20px;
    }

    .close{
        font-size:40px;
        right:15px;
    }
}