/* =========================
   BASE STYLES
========================= */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    overflow-x: hidden;
}


/* CATEGORY LANDING GRID */
.category-grid{
  max-width:1200px;
  margin:30px auto;
  padding:15px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
}

.category-card{
  position:relative;
  cursor:pointer;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 15px 35px rgba(0,0,0,0.12);
  transition:transform .3s;
}

.category-card:hover{
  transform:translateY(-6px);
}

.category-card img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
  filter:brightness(0.8);
}

.category-title{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:700;
  color:#fff;
  text-transform:uppercase;
  letter-spacing:1px;
  background:linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.2));
}

/* hide gallery initially */
.gallery,
.controls{
  display:none;
}

/* =========================
   HEADER
========================= */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eaeaea;
}

.logo {
    height: 55px;
}

/* =========================
   NAVIGATION (DESKTOP)
========================= */
nav {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

nav a, nav span {
    padding: 8px 12px;
    border-radius: 6px;
    color: #111;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

nav a:hover, nav span:hover {
    background: #f2f2f2;
}

/* =========================
   DROPDOWN
========================= */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    font-weight: 500;
}

.dropdown-content a:hover {
    background: #f2f2f2;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* =========================
   PAGE TITLE
========================= */
.page-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin: 20px 10px 10px;
    color: #111;
}

/* TABLET: 2 IMAGES PER ROW */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================
   GALLERY (DESKTOP)
========================= */
/* DESKTOP: FORCE 3 IMAGES PER ROW */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}


.card {
    background: #fff;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* FORCE SAME IMAGE SIZE IN GRID */
.card img {
    width: 100%;
    height: 220px;           /* adjust if needed */
    object-fit: cover;       /* crop without distortion */
    display: block;
    cursor: pointer;
}


/* =========================
   ACTION BUTTONS
========================= */
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
}

.share-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-text {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.share-text {
    opacity: 0.8;
}


.like-btn.liked {
    animation: pop 0.3s ease;
    color: red;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* =========================
   SHARE ICONS
========================= */
.share svg {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.share.fb svg { fill: #1877f2; }
.share.wa svg { fill: #25d366; }

.share:hover svg {
    transform: scale(1.15);
}

/* =========================
   PAGINATION
========================= */
.pagination {
    text-align: center;
    margin: 15px 0 20px;
}

.pagination a {
    padding: 8px 14px;
    background: #000;
    color: #fff;
    margin: 3px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.pagination a.active {
    background: #e53935;
    pointer-events: none;
}

.pagination a:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .pagination a {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* =========================
   LIGHTBOX
========================= */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;   /* show full image */
}


/* =========================
   MOBILE MENU ICON
========================= */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #111;
}

/* =========================
   MOBILE (HEADER + MENU + GALLERY)
========================= */
@media (max-width: 768px) {

    header.mobile-header {
        justify-content: center;
        position: relative;
    }

    .center-logo {
        height: 45px;
        margin: auto;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        left: 15px;
    }

    nav {
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        background: #fff;
        border-top: 1px solid #ddd;
        border-radius: 0 0 12px 12px;
        z-index: 999;
    }

    nav.show {
        display: flex;
    }

    nav a, nav span {
        font-size: 16px;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
    }

    nav a:hover, nav span:hover {
        background: #f5f5f5;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
    }

    .dropdown-content a {
        padding-left: 30px;
        background: #fafafa;
    }

    /* Mobile gallery */
    .gallery {
        display: block;
        padding: 10px;
        margin: 0;
    }
.page-title {
    background: #f4f4f4;
    padding-top: 10px;
}

    .card {
        width: 100%;
        margin-bottom: 15px;
    }
}

.card img {
    transition: transform 0.3s ease;
}

.card img:hover {
    transform: scale(1.03);
}

