/* RESET */

*,
*::before,
*::after{
box-sizing:border-box;
}

/* ======== START ====== BTW Gold is d4af37 ============ */

/* ===================== Page Container ===================== */
/* Adjust working area width here for mobiles */

.container{
max-width:1600px;
width:100%;
margin:auto;
padding:16px;
}

body{
font-family:Arial, Helvetica, sans-serif;
background:#FFEABD;
margin:0;
line-height:1.6;
-webkit-text-size-adjust:100%;
font-size:16px;

/* prevents sticky footer nav covering page content */
padding-bottom:60px;
}

/* Make images behave properly everywhere */
img{
max-width:100%;
height:auto;
display:block;
}

/* Prevent link colour changes across pages */
a{
color:inherit;
}

h1, h2, h3, h4, h5, h6 {
  color: #533202;
}

/* --- Desktop Sizes & Spacing --- */
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 0.75rem; } 
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 0.75rem; }
h3 { font-size: 1.75rem; line-height: 1.3; margin-bottom: 0.5rem; } 
h4 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.5rem; } 
h5 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 0.25rem; } 
h6 { font-size: 1rem; line-height: 1.4; margin-bottom: 0.25rem; } 

/* --- Mobile Sizes */
@media screen and (max-width: 600px) {
  h1 { font-size: 1.8rem; margin-bottom: 0.75rem; } 
  h2 { font-size: 1.5rem; margin-bottom: 0.75rem; } 
  h3 { font-size: 1.3rem; margin-bottom: 0.5rem; } 
  h4 { font-size: 1.2rem; margin-bottom: 0.5rem; } 
  h5 { font-size: 1.1rem; margin-bottom: 0.5rem; } 
  h6 { font-size: 1rem; margin-bottom: 0.5rem; } 
}

/* Link styling */
a:link {
  color: #533202;
  text-decoration: underline;
  font-weight: 500;
}

a:visited {
  color: #533202;
}

a:hover, a:focus {
  color: #CB7C09;
  text-decoration: none;
  outline: 2px solid #CB7C09;
}

a:active {
  color: #cc0000;
}

/* Smooth scrolling */
html{
scroll-behavior:smooth;
}

.logo {
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===================== Header ===================== */

header {
    background: #533202;
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar {
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 30px;
    background: transparent;
    position:relative;
    z-index:10000;
}

/* Navigation links */
.nav-links {
    list-style:none;
    display:flex;
    gap:25px;

    margin:0;
    padding:0;
}


.nav-links a {
    color:#FFFFFF;
    text-decoration:none;
    font-size:18px;
    font-weight:600;
    letter-spacing:0.5px;
	display: block;   /* 👈 THIS fixes width */
    width: 100%;
    padding: 12px 25px;	
}

.nav-links a.active {
    background: rgba(212,175,55,0.2);
    border-radius: 6px;
}

/* Mobile menu button */
.menu-toggle {
    display:none;
    color:#FFFFFF;
    font-size:28px;
    cursor:pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {

    .nav-links {
        position:absolute;
        top:100%;
        left:0;
        right:0;
        background:#533202;

        display:flex;
        flex-direction:column;

        margin:0;
        padding:10px 0;   /* 👈 gives space top & bottom */

        overflow:hidden;
        max-height:0;
        opacity:0;

        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    .nav-links.active {
        max-height:500px;   /* 👈 KEY FIX (not 100vh) */
        opacity:1;
    }

    .nav-links a {
        padding:12px 25px;
        display:block;
        width:100%;
    }

    .menu-toggle {
        display:block;
    }
}

/* ===================== Cards ===================== */

.card{
background:white;
border-radius:25px;
box-shadow:0 4px 12px rgba(0,0,0,0.15);
padding:20px;
display:flex;
flex-direction:column;
height:100%;
}

.card img{
width:100%;
height:auto;
border-radius:6px;
margin-bottom:12px;
}

.card p{
margin-bottom:12px;
line-height:1.6;
}

/* ===================== GRID ===================== */

.grid{
display:grid;
grid-template-columns:repeat(3, 1fr);
gap:30px;
align-items:stretch;
width:100%;
max-width:none;
}

@media (max-width:900px){
.grid{
grid-template-columns:1fr;
}
}

/* ===================== GALLERY ===================== */

.gallery {
display:grid;
grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
gap:20px;
padding:16px;
}

.gallery-item {
display:flex;
flex-direction:column;
gap:6px;
}

.gallery-item img {
width:100%;
height:auto;
}

/* Caption */
.gallery-item figcaption {
padding:8px;
font-size:0.9rem;
color:#333;
text-align:center;
}

/* Hover zoom */
.gallery-item:hover img {
transform:scale(1.05);
transition:transform 0.3s ease;
}

/* ===================== LIGHTBOX ===================== */

.lightbox {
opacity:0;
pointer-events:none;
transition:opacity 0.3s ease;

position:fixed;
inset:0;
padding:40px 20px 20px;
background:rgba(0,0,0,0.95);

display:flex;
flex-direction:column;
justify-content:center;
align-items:center;

z-index:9999;
}

.lightbox:not(.hidden) {
opacity:1;
pointer-events:auto;
}

.hidden {
opacity:0;
pointer-events:none;
}

#lightbox-img {
max-width:95vw;
max-height:85vh;
border-radius:6px;
transform:scale(0.98);
transition:transform 0.3s ease;
}

.lightbox:not(.hidden) #lightbox-img {
transform:scale(1);
}

#lightbox-caption {
max-width:900px;
margin:10px auto 0;
font-size:1.05rem;
line-height:1.6;
color:#ddd;
text-align:center;
}

.close {
position:absolute;
top:20px;
right:30px;
font-size:2rem;
background:none;
border:none;
color:white;
cursor:pointer;
}

.nav {
position:absolute;
top:50%;
transform:translateY(-50%);
font-size:2rem;
background:none;
border:none;
color:white;
cursor:pointer;
}

.prev { left:20px; }
.next { right:20px; }

@media (max-width:700px){
.grid{
grid-template-columns:1fr;
}
}