/* HERO IMAGE */
.hero-wrap {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    padding: 12px 0;
    color: white;
}

.hero-wrap .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

/* ABOUT SECTION */
.about-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding: 50px 20px;
}

.about-content img {
    width: 80%;
    border-radius: 10px;
    transition: 0.4s;
    cursor: pointer;
}

.about-content img:hover {
    transform: scale(1.07);
}

/* MISSION + VISION */
.box {
    flex: 1;
    min-width: 280px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* PRINCIPAL SECTION */
.principal-wrap {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding: 60px 20px;
}

.principal-wrap img {
    width: 100%;
    border-radius: 10px;
    transition: 0.4s;
    cursor: pointer;
}

.principal-wrap img:hover {
    transform: scale(1.07);
}

/* GALLERY */
#slider {
    display: flex;
    width: max-content;
    animation: scroll-left 25s linear infinite;
}

.gal-img {
    width: 260px;
    margin-right: 5px;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* POPUP */
#popup {
    display:none;
    position:fixed;
    top:0; left:0;
    width:100%; height:100%;
    background:rgba(0,0,0,0.85);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

#popupImg {
    max-width:90%;
    max-height:90%;
    border-radius:10px;
}

/* MOBILE */
@media(max-width:768px){
    .gal-img { width:180px; }
    h2 { font-size:28px; }
    p { font-size:16px; }
    section { padding:40px 15px; }
}
