/* ==========================================================================
   gallery css starts here
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cinzel', serif;
  background-image: url('images/alasyabg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #5C4A36;
  overflow-x: hidden;
}


/* header section starts here */
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cinzel', serif;
} */

/* Header Styling */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    position: relative;
    z-index: 100;
    width: 100%;
}

.logo img {
    max-width: 220px;
    /* increase this as needed */
    height: auto;
}


/* Navigation Menu */
nav ul {
    display: flex;
    list-style: none;
    gap: 60px;
    margin-top: 40px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #5C4A36;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: #805b32;
    border-bottom: 4px solid #825c30;
}

/* Dropdown Styling */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

.dropdown-content a {
    padding: 10px 20px;
    text-align: left;
    font-size: 0.85rem;
    color: #5C4A36;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: rgba(88, 115, 68, 0.2);
    /* Very light transparent green */
    color: #805b32;
}


/* Show dropdown on hover (desktop) */
@media (min-width: 768px) {
    .dropdown:hover .dropdown-content {
        display: flex;
    }
}

/* Hamburger Icon */
.hamburger {
    display: none;
    font-size: 28px;
    color: #5C4A36;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

/* Mobile Menu */
@media (max-width: 767px) {
    .hamburger {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        align-items: center;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
    }

    .dropdown-content.show {
        display: flex;
    }

    .dropdown-content a {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        color: #5C4A36;
        text-decoration: none;
        background-color: transparent;
        transition: background-color 0.3s ease;
    }

    .dropdown-content a:hover {
        background-color: rgba(88, 115, 68, 0.1);
        /* subtle green */
        color: #805b32;
    }

}
/* header section ends here */

.gallery-container {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.gallery-container::before {
  content: "";
  position: absolute;
  top: 33%;
  left: 0;
  width: 100%;
  height: 34%;
  background-color: #5C4A36;
  z-index: 0;
}

.gallery-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 300px);
  grid-gap: 10px;
  z-index: 2;
}


.side-square {
  position: absolute;
  top: 470px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: url('images/brownsquare.png') no-repeat center center;
  background-size: contain;
  z-index: 3;
}

.side-square.left {
  left: -40px;
}

.side-square.right {
  right: -40px;
}

.gallery-item {
  width: 300px;
  height: 300px;
  border: 1px solid #5C4A36;
  background-color: transparent;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}





/* ==========================================================================  
   RESPONSIVE DESIGN - â‰¤767px (Mobile)  
========================================================================== */
@media (max-width: 767px) {

  /* header section starts */

  /* Flex row for logo and hamburger */
  .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    position: relative;
  }

  

  /* header section ends */

  .gallery-container {
  flex-direction: column;
  align-items: center;
  padding: 20px 10px; /* Reduced padding for smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.gallery-container::before {
  top: 30%;
  height: 40%;
}



  .gallery-grid {
    grid-template-columns: repeat(2, 45vw);
    grid-gap: 10px;
    justify-content: center;
  }

  .gallery-item {
    width: 45vw;
    height: 45vw;
  }

  .side-square.left {
    left: -10px;
  }

  .side-square.right {
    right: -10px;
  } 
}


/* ==========================================================================
   gallery css ends here
   ========================================================================== */