/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Navbar ===== */
.navbar {
    background-color: #fff;
    padding: 12px 0;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.logo img {
    max-width: 150px;
    height: auto;
    cursor: pointer;
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 30px 12px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
}

.gallery-section h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #000;
}

/* ===== Tabs ===== */
.gallery-tabs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 20px;
    padding: 6px 0;
    scrollbar-width: none;
}

.gallery-tabs::-webkit-scrollbar {
    display: none;
}

.gallery-tabs .tab-btn {
    flex: 0 0 auto;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    background-color: #9370DB;
    color: #fff;
    font-weight: 500;
    border: none;
    transition: 0.25s;
}

.gallery-tabs .tab-btn:hover {
    opacity: 0.85;
}

.gallery-tabs .tab-btn.active {
    background-color: #6e54c5;
    border: 1px solid #fff;
}

/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.gallery-grid img {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    cursor: pointer;
    object-fit: cover;
    transition: 0.3s;
    border: 2px solid #fff;
}

.gallery-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 5000;
    padding: 15px;
}

.lightbox img {
    max-width: 90%;
    max-height: 70%;
    border-radius: 10px;
}

/* Caption */
#lightbox-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    text-align: center;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

/* ===== Footer (UPGRADED 🔥) ===== */
.footer {
    background-color: #9370DB;
    color: #fff;
    text-align: center;
    padding: 25px 12px; /* BIGGER */
}

.footer-social h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* more spacing */
    margin-bottom: 10px;
}

/* FORCE WHITE ICONS */
.social-icons a,
.social-icons i {
    color: #fff !important;
}

/* Bigger icons */
.social-icon {
    font-size: 22px;
    transition: 0.3s;
}

.social-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.footer-bottom {
    margin-top: 10px;
    font-size: 13px;
}

/* ===== Back Button ===== */
.back-btn {
  position: fixed;
  bottom: 16px;
  left: 16px;
  padding: 7px 14px;
  background-color: #9370DB;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  z-index: 9999;
}

.back-btn:hover {
  opacity: 0.85;
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
    .gallery-grid img {
        height: 130px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid img {
        height: 120px;
    }

    .gallery-section h2 {
        font-size: 1.4rem;
    }
}

/* ===== Prevent Scroll Issues ===== */
html, body {
    overflow-x: hidden;
}